dotfiles/.config/spicetify/Extracted/Themed/xpui/vendor~xpui.js

30 lines
5.8 MiB
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[1814],{77539:e=>{var t;t=function(){return function(){var e={254:function(e,t,n){e.exports=n(721).default},721:function(e,t,n){"use strict";var o=n(48),i=n.n(o),r=n(153),a=n.n(r),s=n(961),l=n.n(s);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},c(e)}var u=l().log,d=l().utils.secondsToMs,p=l().utils.assign,f=l().utils.getComputedStyle,h=l().utils.extractHostname,m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i().shaka;if("object"!==c(e)||void 0===e.constructor.version)return u.warn("[shakaPlayer-mux] You must provide a valid shakaPlayer to initShakaPlayerMux."),{emit:function(){u.warn("[shakaPlayer-mux] emit is a no-op because initShakaPlayerMux was not initialized correctly")},loadErrorHandler:function(){u.warn("[shakaPlayer-mux] loadErrorHandler is a no-op because initShakaPlayerMux was not initialized correctly")}};var o=function(t){return e.getMediaElement()&&e.getMediaElement()[t]},r=function(t){var n=e.getMediaElement();if(n)return parseInt(f(n,t))},s=function(){var e=o("preload");return"auto"===e||"metadata"===e};function m(){var t=a().fullscreenElement||a().webkitFullscreenElement||a().mozFullScreenElement||a().msFullscreenElement;return t?t===e.getMediaElement():void 0}(t=p({automaticErrorTracking:!0},t)).data=p({player_software_name:"Shaka Player",player_software_version:e.constructor.version,player_mux_plugin_name:"shakaplayer-mux",player_mux_plugin_version:"5.8.5"},t.data);var g=l().utils.generateShortID();e.mux={},e.mux.emit=function(e,t){l().emit(g,e,t)},t.getPlayheadTime=function(){return d(o("currentTime"))},t.getStateData=function(){var t=e.getStats();return{player_is_paused:o("paused"),player_width:r("width"),player_height:r("height"),video_source_height:t.height,video_source_width:t.width,player_is_fullscreen:m(),player_autoplay_on:o("autoplay"),player_preload_on:s(),video_source_url:e.getAssetUri(),video_source_duration:d(o("duration")),view_dropped_frame_count:t.droppedFrames,video_poster_url:o("poster"),player_language_code:o("lang")}};var v=["pause","play","playing","seeking","seeked","timeupdate","stalled","waiting","ended"],y={},_={},b=!1;_.onstatechange=function(t){!b&&e.getMediaElement()&&function(){b=!0;var t=e.getMediaElement();if(!t)return u.warn("[shakaPlayer-mux] Unable to getMediaElement() on shaka.Player instance when attempting to attachMediaElementEvents()");v.forEach((function(n){y[n]=function(){var o={};"timeupdate"===n&&(o.player_playhead_time=t.currentTime),e.mux.emit(n,o)},t.addEventListener(n,y[n],!1)}))}(),"load"===t.state&&e.mux.emit("playerready")};var S={video_source_bitrate:void 0,video_source_codec:void 0,video_source_fps:void 0},E=function(){var t=function(){var t,n,o=e.getVariantTracks(),i=o&&o.filter((function(e){return e.active})),r=i&&i.map((function(e){return e.bandwidth}));return{video_source_bitrate:r&&r.reduce((function(e,t){return e+t}),0),video_source_codec:null==i||null===(t=i[0])||void 0===t?void 0:t.videoCodec,video_source_fps:null==i||null===(n=i[0])||void 0===n?void 0:n.frameRate}}();t&&JSON.stringify(t)!==JSON.stringify(S)&&(S=t,e.mux.emit("renditionchange",t))};_.adaptation=function(){E()},_.variantchanged=function(){E()},e.addEventListener("onstatechange",_.onstatechange),e.addEventListener("adaptation",_.adaptation),e.addEventListener("variantchanged",_.variantchanged);var A=function(e){var t,o;if(e.message)return e.message;var i=null===(t=n.util)||void 0===t||null===(o=t.Error)||void 0===o?void 0:o.Code;for(var r in i)if(i[r]===e.code)return r;return e.code},T=function(t){var n;2===(null==t?void 0:t.severity)&&e.mux.emit("error",{player_error_code:t.code,player_error_message:A(t),player_error_context:null===(n=t.data)||void 0===n?void 0:n.toString()})};_.error=function(e){if(t.automaticErrorTracking){var n=e.detail;T(n)}},e.addEventListener("error",_.error),e.mux.destroy=function(){Object.keys(_).forEach((function(t){e.removeEventListener(t,_[t]),delete _[t]})),Object.keys(y).forEach((function(t){var n=e.getMediaElement();n&&n.removeEventListener(t,y[t],!1),delete y[t]})),e.mux.emit("destroy")};var P={0:"manifest",1:"media"};return e.getNetworkingEngine().registerResponseFilter((function(t,n){var o=l().utils.now();if(!n.fromCache){var i=P[t&&t.toString()];if(t){var r={request_bytes_loaded:n.data.byteLength,request_hostname:h(n.uri),request_url:n.uri,request_response_headers:n.headers,request_type:i,request_start:n.timeMs?o-n.timeMs:void 0,request_response_end:o};e.mux.emit("requestcompleted",r)}}})),l().init(g,t),{emit:e.mux.emit,loadErrorHandler:T}};m.utils=l().utils,t.default=m},153:function(e,t,n){var o,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},r=n(558);"undefined"!=typeof document?o=document:(o=i["__GLOBAL_DOCUMENT_CACHE@4"])||(o=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=o},48:function(e,t,n){var o;o="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=o},961:function(e){var t;t=function(){return function(){var e={80:function(e,t,n){e.exports=n(728).default},728:function(e,t,n){"use strict";n.d(t,{default:function(){return lt}});var o=n(48),i=n.n(o),r=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},a=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)},s=function(e){return e&&void 0!==e.nodeName?(e.muxId||(e.muxId=e.id||a()),e.muxId):e},l=function(e){var t;e&&void 0!==e.nodeName?e=s(t=e):t=document.querySelector(e);var n=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,n]},c=n(640),u=n.n(c),d=u().methodFactory;u().methodFactory=function(e,t,n){var o=d(e,t,n);return function(){for(var e=["[mux]"],t=0;t<arguments.length;t++)e.push(arguments[t]);o.apply(void 0,e)}},u().setLevel(u().getLevel());var p=u();function f(){return"1"===(i().doNotTrack||i().navigator&&i().navigator.doNotTrack)}var h={now:function(){var e=i().performance,t=e&&e.timing,n=t&&t.navigationStart,o="number"==typeof n&&"function"==typeof e.now?n+e.now():Date.now();return Math.round(o)}},m=function(e){return g(e)[0]},g=function(e){if("string"!=typeof e||""===e)return["localhost"];var t,n=(e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/)||[])[4];return n&&(t=(n.match(/[^\.]+\.[^\.]+$/)||[])[0]),[n,t]},v=function(){var e=i().performance;return void 0!==(e&&e.timing)},y=function(){var e=i().performance,t=e&&e.timing;return t&&t.domContentLoadedEventEnd},_=function(){var e=i().performance,t=e&&e.timing;return t&&t.navigationStart};function b(e,t,n){n=void 0===n?1:n,e[t]=e[t]||0,e[t]+=n}var S=["x-cdn","content-type","x-request-id"];function E(e){var t={};return(e=e||"").trim().split(/[\r\n]+/).forEach((function(e){if(e){var n=e.split(": "),o=n.shift();o&&(S.indexOf(o.toLowerCase())>=0||0===o.toLowerCase().indexOf("x-litix-"))&&(t[o]=n.join(": "))}})),t}var A=function(e){var t={};for(var n in e){var o=e[n];-1!==o["DATA-ID"].search("io.litix.data.")&&(t[o["DATA-ID"].replace("io.litix.data.","")]=o.VALUE)}return t};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=function(e){if(!e)return{};var t=_(),n=e.loading,o=n?n.start:e.trequest,i=n?n.first:e.tfirst,r=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+o),responseStart:Math.round(t+i),responseEnd:Math.round(t+r)}},k=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return E(e.getAllResponseHeaders())};function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(e,t){if(!e||"function"!=typeof e.getRequests)return{};var n=e.getRequests({state:"executed"});if(0===n.length)return{};var o,i=n[n.length-1],r=m(i.url),a=i.url,s=i.bytesLoaded,l=new Date(i.requestStartDate).getTime(),c=new Date(i.firstByteDate).getTime(),u=new Date(i.requestEndDate).getTime(),d=isNaN(i.duration)?0:i.duration,p="function"==typeof t.getMetricsFor?t.getMetricsFor(i.mediaType).HttpList:t.getDashMetrics().getHttpRequests(i.mediaType);return p.length>0&&(o=E(p[p.length-1]._responseHeaders||"")),{requestStart:l,requestResponseStart:c,requestResponseEnd:u,requestBytesLoaded:s,requestResponseHeaders:o,requestMediaDuration:d,requestHostname:r,requestUrl:a}},w=function(e){var t;return null===(t=e.match(/.*codecs\*?="(.*)"/))||void 0===t?void 0:t[1]},D=0,M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"on",value:function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++D,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t}},{key:"off",value:function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,o){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(o,1)}))}},{key:"one",value:function(e,t,n){var o=this;t._eventEmitterGuid=t._eventEmitterGuid||++D;var i=function i(){o.off(e,i),t.apply(n||this,arguments)};i._eventEmitterGuid=t._eventEmitterGuid,this.on(e,i)}},{key:"emit",value:function(e,t){var n=this;if(this._listeners){t=t||{};var o=this._listeners["before*"]||[],i=this._listeners[e]||[],r=this._listeners["after"+e]||[],a=function(t,o){(t=t.slice()).forEach((function(t){t.call(n,{type:e},o)}))};a(o,t),a(i,t),a(r,t)}}}],n&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),x=M,F=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,t.on("playing",(function(){n._playheadShouldBeProgressing=!0})),t.on("play",this._startPlaybackHeartbeatInterval.bind(this)),t.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),t.on("seeking",this._startPlaybackHeartbeatInterval.bind(this)),t.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),t.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("seeked",(function(){t.data.player_is_paused?n._stopPlaybackHeartbeatInterval():n._startPlaybackHeartbeatInterval()})),t.on("timeupdate",(function(){null!==n._playbackHeartbeatInterval&&t.emit("playbackheartbeat")})),t.on("devicesleep",(function(e,o){null!==n._playbackHeartbeatInterval&&(i().clearInterval(n._playbackHeartbeatInterval),t.emit("playbackheartbeatend",{viewer_time:o.viewer_time}),n._playbackHeartbeatInterval=null)}))}var t,n;return t=e,(n=[{key:"_startPlaybackHeartbeatInterval",value:function(){var e=this;null===this._playbackHeartbeatInterval&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=i().setInterval((function(){e.pm.emit("playbackheartbeat")}),this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(i().clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),U=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.on("viewinit",(function(){n.viewErrored=!1})),t.on("error",(function(e,o){try{var i=t.errorTranslator({player_error_code:o.player_error_code,player_error_message:o.player_error_message,player_error_context:o.player_error_context});i?(t.data.player_error_code=i.player_error_code||o.player_error_code,t.data.player_error_message=i.player_error_message||o.player_error_message,t.data.player_error_context=i.player_error_context||o.player_error_context,n.viewErrored=!0):(delete t.data.player_error_code,delete t.data.player_error_message,delete t.data.player_error_context)}catch(e){t.mux.log.warn("Exception in error translator callback.",e),n.viewErrored=!0}}))})),B=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,this._watchTimeTrackerLastCheckedTime=null,t.on("playbackheartbeat",this._updateWatchTime.bind(this)),t.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}var t,n;return t=e,(n=[{key:"_updateWatchTime",value:function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),b(this.pm.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n}},{key:"_clearWatchTimeState",value:function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),V=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,this._playbackTimeTrackerLastPlayheadPosition=-1,t.on("playbackheartbeat",this._updatePlaybackTime.bind(this)),t.on("playbackheartbeatend",this._clearPlaybackTimeState.bind(this)),t.on("seeking",this._clearPlaybackTimeState.bind(this))}var t,n;return t=e,(n=[{key:"_updatePlaybackTime",value:function(){var e=this.pm.data.player_playhead_time;if(this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&b(this.pm.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e}},{key:"_clearPlaybackTimeState",value:function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t;var n=this._updatePlayheadTime.bind(this);t.on("playbackheartbeat",n),t.on("playbackheartbeatend",n),t.on("timeupdate",n),t.on("destroy",(function(){t.off("timeupdate",n)}))}var t,n;return t=e,(n=[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=void 0===this.pm.data.view_max_playhead_position?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(e,t){var n=this,o=function(){n.pm.currentFragmentPDT&&n.pm.currentFragmentStart&&(n.pm.data.player_program_time=n.pm.currentFragmentPDT+n.pm.data.player_playhead_time-n.pm.currentFragmentStart)};if(t&&t.player_playhead_time)this.pm.data.player_playhead_time=t.player_playhead_time,o(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var i=this.pm.getPlayheadTime();void 0!==i&&(this.pm.data.player_playhead_time=i,o(),this._updateMaxPlayheadPosition())}}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),J=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t.disableRebufferTracking){var n,o=function(e,t){i(t),n=void 0},i=function(e){if(n){var o=e.viewer_time-n;b(t.data,"view_rebuffer_duration",o),n=e.viewer_time,t.data.view_rebuffer_duration>3e5&&(t.emit("viewend"),t.send("viewend"))}t.data.view_watch_time>=0&&t.data.view_rebuffer_count>0&&(t.data.view_rebuffer_frequency=t.data.view_rebuffer_count/t.data.view_watch_time,t.data.view_rebuffer_percentage=t.data.view_rebuffer_duration/t.data.view_watch_time)};t.on("playbackheartbeat",(function(e,t){return i(t)})),t.on("rebufferstart",(function(e,i){n||(b(t.data,"view_rebuffer_count",1),n=i.viewer_time,t.one("rebufferend",o))})),t.on("viewinit",(function(){n=void 0,t.off("rebufferend",o)}))}})),j=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,t.disableRebufferTracking||t.disablePlayheadRebufferTracking||(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,t.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),t.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),t.on("seeking",(function(){n._cleanupRebufferTracker(null,{viewer_time:h.now()})})))}var t,n;return t=e,n=[{key:"_checkIfRebuffering",value:function(e,t){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing)this._cleanupRebufferTracker(e,t);else if(null!==this._lastCheckedTime)if(this._lastPlayheadTime===this.pm.data.player_playhead_time){var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.sustainedRebufferThreshold&&n>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=t.viewer_time}else this._cleanupRebufferTracker(e,t,!0);else this._prepareRebufferTrackerState(t.viewer_time)}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return;var o=this.pm.data.player_playhead_time-this._lastPlayheadTime,i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.minimumRebufferDuration&&o>0&&i-o>this.pm.minimumRebufferDuration&&(this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+i-o}))}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),H=j,K=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,t.on("viewinit",(function(){var e=t.data,o=e.view_id;if(!e.view_program_changed){var i=function(e,i){var r=i.viewer_time;"playing"===e.type&&void 0===t.data.view_time_to_first_frame?n.calculateTimeToFirstFrame(r||h.now(),o):"adplaying"!==e.type||void 0!==t.data.view_time_to_first_frame&&!n._inPrerollPosition()||n.calculateTimeToFirstFrame(r||h.now(),o)};t.one("playing",i),t.one("adplaying",i),t.one("viewend",(function(){t.off("playing",i),t.off("adplaying",i)}))}}))}var t,n;return t=e,(n=[{key:"_inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(e,t){t===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:e}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.NAVIGATION_START))}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Y=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.on("viewinit",(function(){n._lastPlayheadPosition=-1})),["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach((function(e){t.on(e,(function(){if(n._lastPlayheadPosition>=0&&t.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var e=t.data.player_playhead_time-n._lastPlayheadPosition;if(e<0)return void(n._lastPlayheadPosition=-1);var o=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),i=Math.max(0,o-1),r=Math.max(0,1-o);t.data.view_max_upscale_percentage=Math.max(t.data.view_max_upscale_percentage||0,i),t.data.view_max_downscale_percentage=Math.max(t.data.view_max_downscale_percentage||0,r),b(t.data,"view_total_content_playback_time",e),b(t.data,"view_total_upscaling",i*e),b(t.data,"view_total_downscaling",r*e)}n._lastPlayheadPosition=-1}))})),["playing","hb"].forEach((function(e){t.on(e,(function(){n._lastPlayheadPosition=t.data.player_playhead_time,n._lastPlayerWidth=t.data.player_width,n._lastPlayerHeight=t.data.player_height,n._lastSourceWidth=t.data.video_source_width,n._lastSourceHeight=t.data.video_source_height}))}))})),W=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSeeking=!1,t.on("seeking",(function(e,o){Object.assign(t.data,o),n._lastSeekingTime=h.now(),!1===n.isSeeking&&(n.isSeeking=!0,t.send("seeking"))})),t.on("seeked",(function(){n.isSeeking=!1;var e=n._lastSeekingTime||h.now(),o=h.now()-e;b(t.data,"view_seek_count",1),b(t.data,"view_seek_duration",o);var i=t.data.view_max_seek_time||0;t.data.view_max_seek_time=Math.max(i,o)})),t.on("viewend",(function(){n.isSeeking=!1}))}));function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(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 q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var X=function(e,t){e.push(t),e.sort((function(e,t){return e.viewer_time-t.viewer_time}))},Z=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror"],Q=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,t.on("viewinit",(function(){n.isAdBreak=!1,n._currentAdRequestNumber=0,n._currentAdResponseNumber=0,n._adRequests=[],n._adResponses=[],n._adHasPlayed=!1,n._wouldBeNewAdPlay=!0,n._prerollPlayTime=void 0})),Z.forEach((function(e){return t.on(e,n._updateAdData.bind(n))}));var o=function(){n.isAdBreak=!1};t.on("adbreakstart",(function(){n.isAdBreak=!0})),t.on("play",o),t.on("playing",o),t.on("viewend",o),t.on("adrequest",(function(e,o){o=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdRequestNumber++},o),X(n._adRequests,o),b(t.data,"view_ad_request_count"),n.inPrerollPosition()&&(t.data.view_preroll_requested=!0,n._adHasPlayed||b(t.data,"view_preroll_request_count"))})),t.on("adresponse",(function(e,o){o=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdResponseNumber++},o),X(n._adResponses,o);var i=n.findAdRequest(o.ad_request_id);i&&b(t.data,"view_ad_request_time",Math.max(0,o.viewer_time-i.viewer_time))})),t.on("adplay",(function(e,o){n._adHasPlayed=!0,n._wouldBeNewAdPlay&&(n._wouldBeNewAdPlay=!1,b(t.data,"view_ad_played_count")),n.inPrerollPosition()&&!t.data.view_preroll_played&&(t.data.view_preroll_played=!0,n._adRequests.length>0&&(t.data.view_preroll_request_time=Math.max(0,o.viewer_time-n._adRequests[0].viewer_time)),t.data.view_start&&(t.data.view_startup_preroll_request_time=Math.max(0,o.viewer_time-t.data.view_start)),n._prerollPlayTime=o.viewer_time)})),t.on("adplaying",(function(e,o){n.inPrerollPosition()&&void 0===t.data.view_preroll_load_time&&void 0!==n._prerollPlayTime&&(t.data.view_preroll_load_time=o.viewer_time-n._prerollPlayTime,t.data.view_startup_preroll_load_time=o.viewer_time-n._prerollPlayTime)})),t.on("adended",(function(){n._wouldBeNewAdPlay=!0})),t.on("aderror",(function(){n._wouldBeNewAdPlay=!0}))}var t,n;return t=e,(n=[{key:"inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var t=0;t<this._adRequests.length;t++)if(this._adRequests[t].ad_request_id===e)return this._adRequests[t]}},{key:"_updateAdData",value:function(e,t){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&t.ad_tag_url){var n=z(g(t.ad_tag_url),2),o=n[0],i=n[1];this.pm.data.view_preroll_ad_tag_domain=i,this.pm.data.view_preroll_ad_tag_hostname=o}if(!this.pm.data.view_preroll_ad_asset_hostname&&t.ad_asset_url){var r=z(g(t.ad_asset_url),2),a=r[0],s=r[1];this.pm.data.view_preroll_ad_asset_domain=s,this.pm.data.view_preroll_ad_asset_hostname=a}}this.pm.data.ad_asset_url=null==t?void 0:t.ad_asset_url,this.pm.data.ad_tag_url=null==t?void 0:t.ad_tag_url,this.pm.data.ad_creative_id=null==t?void 0:t.ad_creative_id,this.pm.data.ad_id=null==t?void 0:t.ad_id,this.pm.data.ad_universal_id=null==t?void 0:t.ad_universal_id}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(){t.disableRebufferTracking||n&&(b(t.data,"view_waiting_rebuffer_duration",h.now()-n),n=!1,i().clearInterval(o))},a=!1,s=function(){a=!1,r()};t.on("waiting",(function(){a&&(t.disableRebufferTracking||(b(t.data,"view_waiting_rebuffer_count",1),n=h.now(),o=i().setInterval((function(){if(n){var e=h.now();b(t.data,"view_waiting_rebuffer_duration",e-n),n=e}}),250)))})),t.on("playing",(function(){r(),a=!0})),t.on("pause",s),t.on("seeking",s)})),ee=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(){n.lastWallClockTime=h.now(),t.on("before*",i)},i=function(e){var o=h.now(),i=n.lastWallClockTime;n.lastWallClockTime=o,o-i>3e4&&(t.emit("devicesleep",{viewer_time:i}),Object.assign(t.data,{viewer_time:i}),t.send("devicesleep"),t.emit("devicewake",{viewer_time:o}),Object.assign(t.data,{viewer_time:o}),t.send("devicewake"))};t.one("playbackheartbeat",o),t.on("playbackheartbeatend",(function(){t.off("before*",i),t.one("playbackheartbeat",o)}))})),te=n(375),ne=n(655),oe=n.n(ne),ie="muxData",re=function(){var e;try{e=te.parse(oe().get(ie)||"")}catch(t){e={}}return e},ae=function(e){try{oe().set(ie,te.stringify(e),{expires:7300})}catch(e){}},se=function(){var e=re();return e.mux_viewer_id=e.mux_viewer_id||r(),e.msn=e.msn||Math.random(),ae(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},le=function(){var e;switch(ce()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},ce=function(){var e=i().navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};le.getConnectionFromAPI=ce;var ue=le,de=fe({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),pe=fe({ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",cl:"canceled",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"connection",cz:"context",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ep:"experiments",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",pt:"part",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function fe(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function he(e){var t={},n={};return Object.keys(e).forEach((function(o){var i=!1;if(e.hasOwnProperty(o)&&void 0!==e[o]){var r=o.split("_"),a=r[0],s=de[a];s||(p.info("Data key word `"+r[0]+"` not expected in "+o),s=a+"_"),r.splice(1).forEach((function(e){"url"===e&&(i=!0),pe[e]?s+=pe[e]:Number(e)&&Math.floor(Number(e))===Number(e)?s+=e:(p.info("Data key word `"+e+"` not expected in "+o),s+="_"+e+"_")})),i?n[s]=e[o]:t[s]=e[o]}})),Object.assign(t,n)}var me={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},ge=["hb","requestcompleted","requestfailed","requestcanceled"],ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._beaconUrl=e||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},me,t)};ve.prototype.queueEvent=function(e,t){var n=Object.assign({},t);return(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},ve.prototype.flushEvents=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&1===this._eventQueue.length?this._eventQueue.pop():(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},ve.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),i().clearTimeout(this._sendTimeout)},ve.prototype._clearBeaconQueue=function(){var e=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,t=this._eventQueue.slice(e);e>0&&Object.assign(t[t.length-1],he({mux_view_message:"event queue truncated"}));var n=this._createPayload(t);ye(this._beaconUrl,n,!0,(function(){}))},ve.prototype._sendBeaconQueue=function(){var e=this;if(!this._postInFlight){var t=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(t),o=h.now();ye(this._beaconUrl,n,!1,(function(n,i){i?(e._eventQueue=t.concat(e._eventQueue),e._failureCount+=1,p.info("Error sending beacon: "+i)):e._failureCount=0,e._roundTripTime=h.now()-o,e._postInFlight=!1}))}},ve.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},ve.prototype._startBeaconSending=function(){var e=this;i().clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=i().setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},ve.prototype._createPayload=function(e){var t,n,o,i=this,r={transmission_timestamp:Math.round(h.now())};this._roundTripTime&&(r.rtt_ms=Math.round(this._roundTripTime));var a=function(){t=JSON.stringify({metadata:r,events:n||e}),o=t.length/1024},s=function(){return o<=i._options.maxPayloadKBSize};return a(),s()||(p.info("Payload size is too big ("+o+" kb). Removing unnecessary events."),n=e.filter((function(e){return-1===ge.indexOf(e.e)})),a()),s()||(p.info("Payload size still too big ("+o+" kb). Cropping fields.."),n.forEach((function(e){for(var t in e){var n=e[t];"string"==typeof n&&n.length>51200&&(e[t]=n.substring(0,51200))}})),a()),t};var ye=function(e,t,n,o){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(e,t))o();else if(i().fetch)i().fetch(e,{method:"POST",body:t,headers:{"Content-Type":"text/plain"},keepalive:!0}).then((function(e){return o(null,e.ok?null:"Error")})).catch((function(e){return o(null,e)}));else{if(i().XMLHttpRequest){var r=new(i().XMLHttpRequest);return r.onreadystatechange=function(){if(4===r.readyState)return o(null,200!==r.status?"error":void 0)},r.open("POST",e),r.setRequestHeader("Content-Type","text/plain"),void r.send(t)}o()}},_e=ve;function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e){return Ae="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},Ae(e)}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id"],Oe=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse"],Ce=["viewstart","error","ended","viewend"],ke=function(){function e(t,n){var o,r,a,s,l,c,u,d,p,f,h,m,g,v,y,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Te(this,"previousBeaconData",null),Te(this,"lastEventTime",0),Te(this,"rateLimited",!1),this.mux=t,this.envKey=n,this.options=_,this.eventQueue=new _e(function(e,t){var n=t.beaconCollectionDomain,o=t.beaconDomain;if(n)return"https://"+n;var i=o||"litix.io";return(e=e||"inferred").match(/^[a-z0-9]+$/)?"https://"+e+"."+i:"https://img.litix.io/a.gif"}(this.envKey,this.options)),this.sampleRate=null!==(o=this.options.sampleRate)&&void 0!==o?o:1,this.disableCookies=null!==(r=this.options.disableCookies)&&void 0!==r&&r,this.respectDoNotTrack=null!==(a=this.options.respectDoNotTrack)&&void 0!==a&&a,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:null===(s=this.options.platform)||void 0===s?void 0:s.name,viewer_application_version:null===(l=this.options.platform)||void 0===l?void 0:l.version,viewer_application_engine:null===(c=this.options.platform)||void 0===c?void 0:c.layout,viewer_device_name:null===(u=this.options.platform)||void 0===u?void 0:u.product,viewer_device_category:"",viewer_device_manufacturer:null===(d=this.options.platform)||void 0===d?void 0:d.manufacturer,viewer_os_family:null===(p=this.options.platform)||void 0===p||null===(f=p.os)||void 0===f?void 0:f.family,viewer_os_architecture:null===(h=this.options.platform)||void 0===h||null===(m=h.os)||void 0===m?void 0:m.architecture,viewer_os_version:null===(g=this.options.platform)||void 0===g||null===(v=g.os)||void 0===v?void 0:v.version,viewer_connection_type:ue(),page_url:null===i()||void 0===i()||null===(y=i().location)||void 0===y?void 0:y.href},this.viewerData=this.disableCookies?{}:se()}var t,n;return t=e,(n=[{key:"send",value:function(e,t){var n;if(e&&null!=t&&t.view_id){if(this.respectDoNotTrack&&f())return p.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!==Ae(t))return p.error("A data object was expected in send() but was not provided");var o,i,a=this.disableCookies?{}:(o=re(),i=h.now(),o.session_start&&(o.sst=o.session_start,delete o.session_start),o.session_id&&(o.sid=o.session_id,delete o.session_id),o.session_expires&&(o.sex=o.session_expires,delete o.session_expires),(!o.sex||o.sex<i)&&(o.sid=r(),o.sst=i),o.sex=i+15e5,ae(o),{session_id:o.sid,session_start:o.sst,session_expires:o.sex}),s=Ee(Ee(Ee(Ee(Ee({},this.pageLevelData),t),a),this.viewerData),{},{event:e,env_key:this.envKey});s.user_id&&(s.viewer_user_id=s.user_id,delete s.user_id);var l=(null!==(n=s.mux_sample_number)&&void 0!==n?n:0)>=this.sampleRate,c=he(this._deduplicateBeaconData(e,s));if(this.lastEventTime=this.mux.utils.now(),l)return p.info("Not sending event due to sample rate restriction",e,s,c);if(this.envKey||p.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,s,c),!this.rateLimited)if(p.info("Sending event",e,s,c),this.rateLimited=!this.eventQueue.queueEvent(e,c),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(this.mux.WINDOW_HIDDEN&&"hb"===e?this.eventQueue.flushEvents(!0):Ce.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return s.event="eventrateexceeded",c=he(s),this.eventQueue.queueEvent(s.event,c),p.error("Beaconing disabled due to rate limit.")}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,t){var n=this,o={},i=t.view_id;if("-1"===i||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)o=Ee({},t),i&&(this.previousBeaconData=o),i&&"viewend"===e&&(this.previousBeaconData=null);else{var r=0===e.indexOf("request");Object.entries(t).forEach((function(t){var i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),2!==r.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return be(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t),a=i[0],s=i[1];n.previousBeaconData&&(s!==n.previousBeaconData[a]||Pe.indexOf(a)>-1||n.objectHasChanged(r,a,s,n.previousBeaconData[a])||n.eventRequiresKey(e,a))&&(o[a]=s,n.previousBeaconData[a]=s)}))}return o}},{key:"objectHasChanged",value:function(e,t,n,o){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===Ae(n)&&"object"===Ae(o)&&Object.keys(n||{}).length===Object.keys(o||{}).length)}},{key:"eventRequiresKey",value:function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")||!(0!==t.indexOf("ad_id")||!Oe.includes(e))}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Re=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=0,o=0,i=0,r=0,a=0,s=0,l=0;t.on("requestcompleted",(function(e,s){var l,c,u=s.request_start,d=s.request_response_start,p=s.request_response_end,f=s.request_bytes_loaded;if(r++,d?(l=d-u,c=p-d):c=p-u,c>0&&f>0){var h=f/c*8e3;a++,o+=f,i+=c,t.data.view_min_request_throughput=Math.min(t.data.view_min_request_throughput||1/0,h),t.data.view_average_request_throughput=o/i*8e3,t.data.view_request_count=r,l>0&&(n+=l,t.data.view_max_request_latency=Math.max(t.data.view_max_request_latency||0,l),t.data.view_average_request_latency=n/a)}})),t.on("requestfailed",(function(e,n){r++,s++,t.data.view_request_count=r,t.data.view_request_failed_count=s})),t.on("requestcanceled",(function(e,n){r++,l++,t.data.view_request_count=r,t.data.view_request_canceled_count=l}))})),Le=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.on("before*",(function(e,o){var i=o.viewer_time,r=h.now(),a=n._lastEventTime;if(n._lastEventTime=r,a&&r-a>36e5){var s=Object.keys(t.data).reduce((function(e,n){return 0===n.indexOf("video_")?Object.assign(e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,t.data[n])):e}),{});t.mux.log.info("Received event after at least an hour inactivity, creating a new view"),t.emit("viewinit",Object.assign({viewer_time:i},s)),t.playbackHeartbeat._playheadShouldBeProgressing&&"play"!==e.type&&"adbreakstart"!==e.type&&(t.emit("play",{viewer_time:i}),"playing"!==e.type&&t.emit("playing",{viewer_time:i}))}}))}));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},Ie(e)}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function we(e,t){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},we(e,t)}function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Me(e){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(e)}var xe=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(i,e);var t,n,o=function(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 n,o=Me(e);if(t){var i=Me(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return De(e)}(this,n)}}(i);function i(e,t,n){var a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(a=o.call(this)).DOM_CONTENT_LOADED_EVENT_END=y(),a.NAVIGATION_START=_(),a.mux=e,a.id=t,(n=Object.assign({debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,errorTranslator:function(e){return e}},n)).data=n.data||{},n.data.property_key&&(n.data.env_key=n.data.property_key,delete n.data.property_key),p.setLevel(n.debug?"debug":"warn"),a.getPlayheadTime=n.getPlayheadTime,a.getStateData=n.getStateData||function(){return{}},a.getAdData=n.getAdData||function(){},a.minimumRebufferDuration=n.minimumRebufferDuration,a.sustainedRebufferThreshold=n.sustainedRebufferThreshold,a.playbackHeartbeatTime=n.playbackHeartbeatTime,a.disableRebufferTracking=n.disableRebufferTracking,a.disableRebufferTracking&&a.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),a.disablePlayheadRebufferTracking=n.disablePlayheadRebufferTracking,a.errorTranslator=n.errorTranslator,a.playbackEventDispatcher=new ke(e,n.data.env_key,n),a.data={player_instance_id:r(),mux_sample_rate:n.sampleRate,beacon_domain:n.beaconCollectionDomain?n.beaconCollectionDomain:n.beaconDomain},a.data.view_sequence_number=1,a.data.player_sequence_number=1,a.oldEmit=a.emit,a.emit=function(e,t){t=Object.assign({viewer_time:this.mux.utils.now()},t),this.oldEmit(e,t)};var s=function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}.bind(De(a));a.on("viewinit",(function(e,t){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,t),this._initializeViewData(),this.one("play",s),this.one("adbreakstart",s)}));var l=function(e){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",e)}.bind(De(a));if(a.on("videochange",(function(e,t){l(t)})),a.on("programchange",(function(e,t){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),l(Object.assign(t,{view_program_changed:!0})),s(),this.emit("play"),this.emit("playing")})),a.on("fragmentchange",(function(e,t){this.currentFragmentPDT=t.currentFragmentPDT,this.currentFragmentStart=t.currentFragmentStart})),a.on("destroy",a.destroy),"undefined"!=typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.removeEventListener){var c=function(){var e=void 0!==a.data.view_start;a.mux.WINDOW_HIDDEN="hidden"===document.visibilityState,e&&a.mux.WINDOW_HIDDEN&&(a.data.player_is_paused||a.emit("hb"))};window.addEventListener("visibilitychange",c,!1);var u=function(e){e.persisted||a.destroy()};window.addEventListener("pagehide",u,!1),a.on("destroy",(function(){window.removeEventListener("visibilitychange",c),window.removeEventListener("pagehide",u)}))}return a.on("playerready",(function(e,t){Object.assign(this.data,t)})),xe.forEach((function(e){a.on(e,(function(t,n){0!==e.indexOf("ad")&&this._updateStateData(),Object.assign(this.data,n),this._sanitizeData()})),a.on("after"+e,(function(){("error"!==e||this.errorTracker.viewErrored)&&this.send(e)}))})),a.on("viewend",(function(e,t){Object.assign(a.data,t)})),a.one("playerready",(function(e){var t=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time})),a.longResumeTracker=new Le(De(a)),a.errorTracker=new U(De(a)),new ee(De(a)),a.seekingTracker=new W(De(a)),a.playheadTime=new G(De(a)),a.playbackHeartbeat=new F(De(a)),new Y(De(a)),a.watchTimeTracker=new B(De(a)),new V(De(a)),a.adTracker=new Q(De(a)),new H(De(a)),new J(De(a)),new K(De(a)),new $(De(a)),new Re(De(a)),n.hlsjs&&a.addHLSJS(n),n.dashjs&&a.addDashJS(n),a.emit("viewinit",n.data),a}return t=i,n=[{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(e){if(this.data.view_id){var t=Object.assign({},this.data);if(void 0===t.video_source_is_live&&(t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1)),t.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach((function(e){t[e]=void 0})),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),2!==r.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return Ne(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(g(t.video_source_url)),o=n[0],i=n[1];t.video_source_domain=i,t.video_source_hostname=o}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat(),"viewend"===e&&(this.mux.log.warn("Ending view, any future events will be ignored unless a programchange or videochange occurs."),delete this.data.view_id)}}},{key:"_updateStateData",value:function(){Object.assign(this.data,this.getStateData()),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach((function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n})),["player_source_url","video_source_url"].forEach((function(t){if(e.data[t]){var n=e.data[t].toLowerCase();0!==n.indexOf("data:")&&0!==n.indexOf("blob:")||(e.data[t]="MSE style URL")}}))}},{key:"_resetVideoData",value:function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))}},{key:"_resetViewData",value:function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("view_")&&delete e.data[t]})),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(e,t){delete this.data.player_error_code,delete this.data.player_error_message}},{key:"_initializeViewData",value:function(){var e=this,t=this.data.view_id=r(),n=function(){t===e.data.view_id&&b(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()}},{key:"_restartHeartBeat",value:function(){var e=this;window.clearTimeout(this._heartBeatTimeout),this.errorTracker.viewErrored||(this._heartBeatTimeout=window.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4))}},{key:"addHLSJS",value:function(e){e.hlsjs?this.hlsjs?this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,function(e,t,n){var o=arguments.length>4?arguments[4]:void 0,i=e.log,r=e.utils.secondsToMs,a=function(e){var t,n=parseInt(o.version);return 1===n&&null!==e.programDateTime&&(t=e.programDateTime),0===n&&null!==e.pdt&&(t=e.pdt),t};if(v()){var s=function(n,o){return e.emit(t,n,o)},l=function(e,t){var n=t.levels,o=t.audioTracks,i=t.url,r=t.stats,a=t.networkDetails,l=t.sessionData,c={},u={};n.forEach((function(e,t){c[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),o.forEach((function(e,t){u[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var d=C(r),p=d.bytesLoaded,f=d.requestStart,h=d.responseStart,g=d.responseEnd;s("requestcompleted",P(P({},A(l)),{},{request_event_type:e,request_bytes_loaded:p,request_start:f,request_response_start:h,request_response_end:g,request_type:"manifest",request_hostname:m(i),request_response_headers:k(a),request_rendition_lists:{media:c,audio:u,video:{}}}))};n.on(o.Events.MANIFEST_LOADED,l);var c=function(e,t){var n=t.details,o=t.level,i=t.networkDetails,l=t.stats,c=C(l),u=c.bytesLoaded,d=c.requestStart,p=c.responseStart,f=c.responseEnd,h=n.fragments[n.fragments.length-1],g=a(h)+r(h.duration);s("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:p,request_response_end:f,request_current_level:o,request_type:"manifest",request_hostname:m(n.url),request_response_headers:k(i),video_holdback:n.holdBack&&r(n.holdBack),video_part_holdback:n.partHoldBack&&r(n.partHoldBack),video_part_target_duration:n.partTarget&&r(n.partTarget),video_target_duration:n.targetduration&&r(n.targetduration),video_source_is_live:n.live,player_manifest_newest_program_time:isNaN(g)?void 0:g})};n.on(o.Events.LEVEL_LOADED,c);var u=function(e,t){var n=t.details,o=t.networkDetails,i=t.stats,r=C(i),a=r.bytesLoaded,l=r.requestStart,c=r.responseStart,u=r.responseEnd;s("requestcompleted",{request_event_type:e,request_bytes_loaded:a,request_start:l,request_response_start:c,request_response_end:u,request_type:"manifest",request_hostname:m(n.url),request_response_headers:k(o)})};n.on(o.Events.AUDIO_TRACK_LOADED,u);var d=function(e,t){var o=t.stats,i=t.networkDetails,r=t.frag;o=o||r.stats;var a=C(o),l=a.bytesLoaded,c=a.requestStart,u=a.responseStart,d=a.responseEnd,p=k(i),f=null==p?void 0:p["x-request-id"],h={request_event_type:e,request_bytes_loaded:l,request_start:c,request_response_start:u,request_response_end:d,request_hostname:i?m(i.responseURL):void 0,request_id:f,request_response_headers:p,request_media_duration:r.duration,request_url:null==i?void 0:i.responseURL};"main"===r.type?(h.request_type="media",h.request_current_level=r.level,h.request_video_width=(n.levels[r.level]||{}).width,h.request_video_height=(n.levels[r.level]||{}).height,h.request_labeled_bitrate=(n.levels[r.level]||{}).bitrate):h.request_type=r.type,s("requestcompleted",h)};n.on(o.Events.FRAG_LOADED,d);var p=function(e,t){var n=t.frag,o=n.start,i={currentFragmentPDT:a(n),currentFragmentStart:r(o)};s("fragmentchange",i)};n.on(o.Events.FRAG_CHANGED,p);var f=function(e,t){var n=t.type,i=t.details,r=t.response,a=t.fatal,l=t.frag,c=(null==l?void 0:l.url)||t.url||"";if(i!==o.ErrorDetails.MANIFEST_LOAD_ERROR&&i!==o.ErrorDetails.MANIFEST_LOAD_TIMEOUT&&i!==o.ErrorDetails.FRAG_LOAD_ERROR&&i!==o.ErrorDetails.FRAG_LOAD_TIMEOUT&&i!==o.ErrorDetails.LEVEL_LOAD_ERROR&&i!==o.ErrorDetails.LEVEL_LOAD_TIMEOUT&&i!==o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&i!==o.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT&&i!==o.ErrorDetails.SUBTITLE_LOAD_ERROR&&i!==o.ErrorDetails.SUBTITLE_LOAD_TIMEOUT&&i!==o.ErrorDetails.KEY_LOAD_ERROR&&i!==o.ErrorDetails.KEY_LOAD_TIMEOUT||s("requestfailed",{request_error:i,request_url:c,request_hostname:m(c),request_type:i===o.ErrorDetails.FRAG_LOAD_ERROR||i===o.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":i===o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||i===o.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":i===o.ErrorDetails.SUBTITLE_LOAD_ERROR||i===o.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":i===o.ErrorDetails.KEY_LOAD_ERROR||i===o.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:null==r?void 0:r.code,request_error_text:null==r?void 0:r.text}),a){var u,d="".concat(c?"url: ".concat(c,"\n"):"")+"".concat(r&&(r.code||r.text)?"response: ".concat(r.code,", ").concat(r.text,"\n"):"")+"".concat(t.reason?"failure reason: ".concat(t.reason,"\n"):"")+"".concat(t.level?"level: ".concat(t.level,"\n"):"")+"".concat(t.parent?"parent stream controller: ".concat(t.parent,"\n"):"")+"".concat(t.buffer?"buffer length: ".concat(t.buffer,"\n"):"")+"".concat(t.error?"error: ".concat(t.error,"\n"):"")+"".concat(t.event?"event: ".concat(t.event,"\n"):"")+"".concat(t.err?"error message: ".concat(null===(u=t.err)||void 0===u?void 0:u.message,"\n"):"");s("error",{player_error_code:n,player_error_message:i,player_error_context:d})}};n.on(o.Events.ERROR,f);var h=function(e,t){var n=t.frag,o=n&&n._url||"";s("requestcanceled",{request_event_type:e,request_url:o,request_type:"media",request_hostname:m(o)})};n.on(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,h);var g=function(e,t){var o=t.level,r=n.levels[o];if(r&&r.attrs&&r.attrs.BANDWIDTH){var a,l=r.attrs.BANDWIDTH,c=parseFloat(r.attrs["FRAME-RATE"]);isNaN(c)||(a=c),l?s("renditionchange",{video_source_fps:a,video_source_bitrate:l,video_source_width:r.width,video_source_height:r.height,video_source_rendition_name:r.name,video_source_codec:null==r?void 0:r.videoCodec}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(o.Events.LEVEL_SWITCHED,g),n._stopMuxMonitor=function(){n.off(o.Events.MANIFEST_LOADED,l),n.off(o.Events.LEVEL_LOADED,c),n.off(o.Events.AUDIO_TRACK_LOADED,u),n.off(o.Events.FRAG_LOADED,d),n.off(o.Events.FRAG_CHANGED,p),n.off(o.Events.ERROR,f),n.off(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,h),n.off(o.Events.LEVEL_SWITCHED,g),n.off(o.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(o.Events.DESTROYING,n._stopMuxMonitor)}else i.warn("performance timing not supported. Not tracking HLS.js.")}(this.mux,this.id,e.hlsjs,{},e.Hls||window.Hls)):this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")}},{key:"removeHLSJS",value:function(){var e;this.hlsjs&&((e=this.hlsjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.hlsjs=void 0)}},{key:"addDashJS",value:function(e){e.dashjs?this.dashjs?this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,function(e,t,n){var o=e.log;if(n&&n.on){var i=function(n,o){return e.emit(t,n,o)},r=function(e){var t=e.type,n=(e.data||{}).url;i("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:m(n),request_url:n})};n.on("manifestLoaded",r);var a={},s=function(e){var t=e.type,o=e.fragmentModel,r=(e.chunk||{}).mediaInfo||{},s=r.type,l=r.bitrateList,c={};(l=l||[]).forEach((function(e,t){c[t]={},c[t].width=e.width,c[t].height=e.height,c[t].bitrate=e.bandwidth,c[t].attrs={}})),"video"===s?a.video=c:"audio"===s?a.audio=c:a.media=c;var u=N(o,n),d=u.requestStart,p=u.requestResponseStart,f=u.requestResponseEnd,h=u.requestResponseHeaders,m=u.requestMediaDuration,g=u.requestHostname,v=u.requestUrl;i("requestcompleted",{request_event_type:t,request_start:d,request_response_start:p,request_response_end:f,request_bytes_loaded:-1,request_type:s+"_init",request_response_headers:h,request_hostname:g,request_url:v,request_media_duration:m,request_rendition_lists:a})};n.on("initFragmentLoaded",s);var l=function(e){var t=e.type,o=e.fragmentModel,r=e.chunk||{},a=r.mediaInfo,s=r.start,l=(a||{}).type,c=N(o,n),u=c.requestStart,d=c.requestResponseStart,p=c.requestResponseEnd,f=c.requestBytesLoaded,h=c.requestResponseHeaders,m=c.requestMediaDuration,g=c.requestHostname,v=c.requestUrl,y=function(e,t){var n=t.getQualityFor(e),o=t.getCurrentTrackFor(e).bitrateList;return o?{currentLevel:n,renditionWidth:o[n].width||null,renditionHeight:o[n].height||null,renditionBitrate:o[n].bandwidth}:{}}(l,n),_=y.currentLevel,b=y.renditionWidth,S=y.renditionHeight,E=y.renditionBitrate;i("requestcompleted",{request_event_type:t,request_start:u,request_response_start:d,request_response_end:p,request_bytes_loaded:f,request_type:l,request_response_headers:h,request_hostname:g,request_url:v,request_media_start_time:s,request_media_duration:m,request_current_level:_,request_labeled_bitrate:E,request_video_width:b,request_video_height:S})};n.on("mediaFragmentLoaded",l);var c={video:void 0,audio:void 0,totalBitrate:void 0},u=function(e,t,r){if("number"==typeof e.newQuality){var a=e.mediaType;if("audio"===a||"video"===a){var s=n.getBitrateInfoListFor(a).find((function(t){return t.qualityIndex===e.newQuality}));if(s&&"number"==typeof s.bitrate){c[a]=L(L({},s),{},{codec:n.getCurrentTrackFor(a).codec});var l=function(){if(c.video&&"number"==typeof c.video.bitrate){if(c.video.width&&c.video.height){var e=c.video.bitrate;return c.audio&&"number"==typeof c.audio.bitrate&&(e+=c.audio.bitrate),e!==c.totalBitrate?(c.totalBitrate=e,{video_source_bitrate:e,video_source_height:c.video.height,video_source_width:c.video.width,video_source_codec:w(c.video.codec)}):void 0}o.warn("have bitrate info for video but missing width/height")}}();l&&i("renditionchange",l)}else o.warn("missing bitrate info for ".concat(a))}}else o.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",u);var d=function(e){var t=e.request,n=e.mediaType;i("requestcanceled",{request_event_type:(t=t||{}).type+"_"+t.action,request_url:t.url,request_type:n,request_hostname:m(t.url)})};n.on("fragmentLoadingAbandoned",d);var p=function(e){var t,n,o=e.error,r=(null==o||null===(t=o.data)||void 0===t?void 0:t.request)||{},a=(null==o||null===(n=o.data)||void 0===n?void 0:n.response)||{};27===(null==o?void 0:o.code)&&i("requestfailed",{request_error:r.type+"_"+r.action,request_url:r.url,request_hostname:m(r.url),request_type:r.mediaType,request_error_code:a.status,request_error_text:a.statusText});var s="".concat(null!=r&&r.url?"url: ".concat(r.url,"\n"):"")+"".concat(null!=a&&a.status||null!=a&&a.statusText?"response: ".concat(null==a?void 0:a.status,", ").concat(null==a?void 0:a.statusText,"\n"):"");i("error",{player_error_code:null==o?void 0:o.code,player_error_message:null==o?void 0:o.message,player_error_context:s})};n.on("error",p),n._stopMuxMonitor=function(){n.off("manifestLoaded",r),n.off("initFragmentLoaded",s),n.off("mediaFragmentLoaded",l),n.off("qualityChangeRendered",u),n.off("error",p),n.off("fragmentLoadingAbandoned",d),delete n._stopMuxMonitor}}else o.warn("Invalid dash.js player reference. Monitoring blocked.")}(this.mux,this.id,e.dashjs)):this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")}},{key:"removeDashJS",value:function(){var e;this.dashjs&&((e=this.dashjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.dashjs=void 0)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(x),Ue=Fe,Be=n(153),Ve=n.n(Be);function Ge(e){return Ge="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},Ge(e)}function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,t):void 0}}(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 je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var He,Ke=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],Ye={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"};i()&&i().WeakMap&&(He=new WeakMap);var We=function(e){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(e),this.manifest};We.prototype.process=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.processLine(this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},We.prototype.processLine=function(e){var t=e.indexOf(":"),n=et(e,t),o=n[0],i=2===n.length?Xe(n[1]):void 0;if("#"!==o[0])this.currentUri.uri=o,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(o){case"#EXT-X-TARGETDURATION":if(!isFinite(i)||i<0)return;this.manifest.targetDuration=i,this.setHoldBack();break;case"#EXT-X-PART-INF":ze(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case"#EXT-X-SERVER-CONTROL":ze(this.manifest,n),this.setHoldBack();break;case"#EXTINF":0===i?this.currentUri.duration=.01:i>0&&(this.currentUri.duration=i);break;case"#EXT-X-PROGRAM-DATE-TIME":var r=i,a=new Date(r);this.manifest.dateTimeString||(this.manifest.dateTimeString=r,this.manifest.dateTimeObject=a),this.currentUri.dateTimeString=r,this.currentUri.dateTimeObject=a;break;case"#EXT-X-VERSION":ze(this.manifest,n);break;case"#EXT-X-SESSION-DATA":var s=tt(n[1]),l=A(s);Object.assign(this.manifest.sessionData,l)}},We.prototype.setHoldBack=function(){var e=this.manifest,t=e.serverControl,n=e.targetDuration,o=e.partTargetDuration;if(t){var i="holdBack",r="partHoldBack",a=n&&3*n,s=o&&2*o;n&&!t.hasOwnProperty(i)&&(t[i]=a),a&&t[i]<a&&(t[i]=a),o&&!t.hasOwnProperty(r)&&(t[r]=3*o),o&&t[r]<s&&(t[r]=s)}};var ze=function(e,t){var n,o=qe(t[0].replace("#EXT-X-",""));$e(t[1])?(n={},n=Object.assign(Qe(t[1]),n)):n=Xe(t[1]),e[o]=n},qe=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},Xe=function(e){if("yes"===e.toLowerCase()||"no"===e.toLowerCase())return"yes"===e.toLowerCase();var t=-1!==e.indexOf(":")?e:parseFloat(e);return isNaN(t)?e:t},Ze=function(e){var t={},n=e.split("=");return n.length>1&&(t[qe(n[0])]=Xe(n[1])),t},Qe=function(e){for(var t=e.split(","),n={},o=0;t.length>o;o++){var i=t[o],r=Ze(i);n=Object.assign(r,n)}return n},$e=function(e){return e.indexOf("=")>-1},et=function(e,t){return-1===t?[e]:[e.substring(0,t),e.substring(t+1)]},tt=function(e){var t={};if(e){var n=e.search(",");return[e.slice(0,n),e.slice(n+1)].forEach((function(e,n){for(var o=e.replace(/['"]+/g,"").split("="),i=0;i<o.length;i++)"DATA-ID"===o[i]&&(t["DATA-ID"]=o[1-i]),"VALUE"===o[i]&&(t.VALUE=o[1-i])})),{data:t}}},nt=We,ot={safeCall:function(e,t,n,o){var i=o;if(e&&"function"==typeof e[t])try{i=e[t].apply(e,n)}catch(e){p.info("safeCall error",e)}return i},safeIncrement:b,getComputedStyle:function(e,t){var n;if(e&&t&&i()&&"function"==typeof i().getComputedStyle)return He&&He.has(e)&&(n=He.get(e)),n||(n=i().getComputedStyle(e,null),He&&He.set(e,n)),n.getPropertyValue(t)},secondsToMs:function(e){return Math.floor(1e3*e)},assign:Object.assign,headersStringToObject:E,extractHostnameAndDomain:g,extractHostname:m,manifestParser:nt,generateShortID:a,generateUUID:r,now:h.now};function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var rt={},at=function e(t){var n=arguments;"string"==typeof t?e.hasOwnProperty(t)?i().setTimeout((function(){n=Array.prototype.splice.call(n,1),e[t].apply(null,n)}),0):p.warn("`"+t+"` is an unknown task"):"function"==typeof t?i().setTimeout((function(){t(e)}),0):p.warn("`"+t+"` is invalid.")},st={loaded:h.now(),NAME:"mux-embed",VERSION:"4.22.0",API_VERSION:"2.1",PLAYER_TRACKED:!1,monitor:function(e,t){return function(e,t,n){var o=Je(l(t),3),i=o[0],r=o[1],a=o[2],s=e.log,c=e.utils.getComputedStyle,u=e.utils.secondsToMs;if(!i)return s.error("No element was found with the `"+r+"` query selector.");if("video"!==a&&"audio"!==a)return s.error("The element of `"+r+"` was not a media element.");i.mux&&(i.mux.destroy(),delete i.mux,s.warn("Already monitoring this video element, replacing existing event listeners")),(n=Object.assign({automaticErrorTracking:!0},n)).data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:e.VERSION},n.data),n.getPlayheadTime=function(){return u(i.currentTime)},n.getStateData=function(){var e,t,o=this.hlsjs&&this.hlsjs.url,r=this.dashjs&&Ge("function"===this.dashjs.getSource)&&this.dashjs.getSource(),a={player_is_paused:i.paused,player_playhead_time:u(i.currentTime),player_width:parseInt(c(i,"width")),player_height:parseInt(c(i,"height")),player_autoplay_on:i.autoplay,player_preload_on:i.preload,player_language_code:i.lang,player_is_fullscreen:Ve()&&!!(Ve().fullscreenElement||Ve().webkitFullscreenElement||Ve().mozFullScreenElement||Ve().msFullscreenElement),video_poster_url:i.poster,video_source_url:o||r||i.currentSrc,video_source_duration:u(i.duration),video_source_height:i.videoHeight,video_source_width:i.videoWidth,view_dropped_frame_count:null===(e=i)||void 0===e||null===(t=e.getVideoPlaybackQuality)||void 0===t?void 0:t.call(e).droppedVideoFrames},s=n.getPlayheadTime();if(i.getStartDate&&s>0){var l=i.getStartDate();if(l&&"function"==typeof l.getTime&&l.getTime()){var d=l.getTime();if(a.player_program_time=d+s,i.seekable.length>0){var p=d+i.seekable.end(i.seekable.length-1);a.player_live_edge_program_time=p}}}return a},i.mux=i.mux||{},i.mux.deleted=!1,i.mux.emit=function(t,n){e.emit(r,t,n)};var d=function(){s.error("The monitor for this video element has already been destroyed.")};i.mux.destroy=function(){Object.keys(i.mux.listeners).forEach((function(e){i.removeEventListener(e,i.mux.listeners[e],!1)})),delete i.mux.listeners,i.mux.destroy=d,i.mux.swapElement=d,i.mux.emit=d,i.mux.addHLSJS=d,i.mux.addDashJS=d,i.mux.removeHLSJS=d,i.mux.removeDashJS=d,i.mux.deleted=!0,e.emit(r,"destroy")},i.mux.swapElement=function(t){var n=Je(l(t),3),o=n[0],r=n[1],a=n[2];return o?"video"!==a&&"audio"!==a?e.log.error("The element of `"+r+"` was not a media element."):(o.muxId=i.muxId,delete i.muxId,o.mux=o.mux||{},o.mux.listeners=Object.assign({},i.mux.listeners),delete i.mux.listeners,Object.keys(o.mux.listeners).forEach((function(e){i.removeEventListener(e,o.mux.listeners[e],!1),o.addEventListener(e,o.mux.listeners[e],!1)})),o.mux.swapElement=i.mux.swapElement,o.mux.destroy=i.mux.destroy,delete i.mux,void(i=o)):e.log.error("No element was found with the `"+r+"` query selector.")},i.mux.addHLSJS=function(t){e.addHLSJS(r,t)},i.mux.addDashJS=function(t){e.addDashJS(r,t)},i.mux.removeHLSJS=function(){e.removeHLSJS(r)},i.mux.removeDashJS=function(){e.removeDashJS(r)},e.init(r,n),e.emit(r,"playerready"),i.paused||(e.emit(r,"play"),i.readyState>2&&e.emit(r,"playing")),i.mux.listeners={},Ke.forEach((function(t){("error"!==t||n.automaticErrorTracking)&&(i.mux.listeners[t]=function(){var n={};if("error"===t){if(!i.error)return;if(1===i.error.code)return;n.player_error_code=i.error.code,n.player_error_message=Ye[i.error.code]||i.error.message}e.emit(r,t,n)},i.addEventListener(t,i.mux.listeners[t],!1))}))}(at,e,t)},destroyMonitor:function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),1!==r.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l(e))[0];t&&t.mux&&"function"==typeof t.mux.destroy?t.mux.destroy():p.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(e,t){var n=s(e);rt[n]?rt[n].addHLSJS(t):p.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(e,t){var n=s(e);rt[n]?rt[n].addDashJS(t):p.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(e){var t=s(e);rt[t]?rt[t].removeHLSJS():p.error("A monitor for `"+t+"` has not been initialized.")},removeDashJS:function(e){var t=s(e);rt[t]?rt[t].removeDashJS():p.error("A monitor for `"+t+"` has not been initialized.")},init:function(e,t){f()&&t&&t.respectDoNotTrack&&p.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=s(e);rt[n]=new Ue(at,n,t)},emit:function(e,t,n){var o=s(e);rt[o]?(rt[o].emit(t,n),"destroy"===t&&delete rt[o]):p.error("A monitor for `"+o+"` has not been initialized.")},checkDoNotTrack:f,log:p,utils:ot,events:{PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled"},WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(at,st),void 0!==i()&&"function"==typeof i().addEventListener&&i().addEventListener("pagehide",(function(e){e.persisted||(at.WINDOW_UNLOADING=!0)}),!1);var lt=at},655:function(e,t,n){var o,i;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},r(e)}!function(a){var s=!1;if(void 0===(i="function"==typeof(o=a)?o.call(t,n,t,e):o)||(e.exports=i),s=!0,"object"===r(t)&&(e.exports=a(),s=!0),!s){var l=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=l,c}}}((function(){var e=function(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t};return function t(n){function o(t,i,r){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=e({path:"/"},o.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",i,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u<l.length;u++){var d=l[u].split("="),p=d.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var f=d[0].replace(c,decodeURIComponent);if(p=n.read?n.read(p,f):n(p,f)||p.replace(c,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(t===f){a=p;break}t||(a[f]=p)}catch(e){}}return a}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(t,n){o(t,"",e(n,{expires:-1}))},o.withConverter=t,o}((function(){}))}))},153:function(e,t,n){var o,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},r=n(558);"undefined"!=typeof document?o=document:(o=i["__GLOBAL_DOCUMENT_CACHE@4"])||(o=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=o},48:function(e,t,n){var o;o="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=o},640:function(e,t,n){var o,i;!function(r,a){"use strict";o=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function i(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(o){return"debug"===o&&(o="log"),typeof console!==t&&("trace"===o&&n?r:void 0!==console[o]?i(console,o):void 0!==console.log?i(console,"log"):e)}function s(t,n){for(var i=0;i<o.length;i++){var r=o[i];this[r]=i<t?e:this.methodFactory(r,t,n)}this.log=this.debug}function l(e,n,o){return function(){typeof console!==t&&(s.call(this,n,o),this[e].apply(this,arguments))}}function c(e,t,n){return a(e)||l.apply(this,arguments)}function u(e,n,i){var r,a=this;n=null==n?"WARN":n;var l="loglevel";function u(e){var n=(o[e]||"silent").toUpperCase();if(typeof window!==t&&l){try{return void(window.localStorage[l]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"="+n+";"}catch(e){}}}function d(){var e;if(typeof window!==t&&l){try{e=window.localStorage[l]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,o=n.indexOf(encodeURIComponent(l)+"=");-1!==o&&(e=/^([^;]+)/.exec(n.slice(o))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}"string"==typeof e?l+=":"+e:"symbol"==typeof e&&(l=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=i||c,a.getLevel=function(){return r},a.setLevel=function(n,o){if("string"==typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(r=n,!1!==o&&u(n),s.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){n=e,d()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(n,!1),function(){if(typeof window!==t&&l){try{return void window.localStorage.removeItem(l)}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var p=d();null==p&&(p=n),a.setLevel(p,!1)}var d=new u,p={};d.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=p[e];return t||(t=p[e]=new u(e,d.getLevel(),d.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return d.noConflict=function(){return typeof window!==t&&window.log===d&&(window.log=f),d},d.getLoggers=function(){return p},d.default=d,d},void 0===(i=o.call(t,n,t,e))||(e.exports=i)}()},375:function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function i(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var o,r,a=[];for(r in"string"!=typeof t&&(t="?"),e)if(n.call(e,r)){if((o=e[r])||null!=o&&!isNaN(o)||(o=""),r=i(r),o=i(o),null===r||null===o)continue;a.push(r+"="+o)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,i={};t=n.exec(e);){var r=o(t[1]),a=o(t[2]);null===r||null===a||r in i||(i[r]=a)}return i}},558:function(){}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(80)}()},e.exports=t()},558:function(){}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(254)}()},e.exports=t()},33976:(e,t,n)=>{"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>o})},87401:(e,t,n)=>{"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:()=>o})},11153:(e,t,n)=>{"use strict";n.d(t,{Re:()=>r,Zq:()=>a,kK:()=>i});var o=n(87401);function i(e){return e instanceof(0,o.Z)(e).Element||e instanceof Element}function r(e){return e instanceof(0,o.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},98566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(33976),i=n(11153);const r={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];(0,i.Re)(a)&&(0,o.Z)(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,i.Re)(r)&&(0,o.Z)(r)&&(Object.assign(r.style,s),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]}},75473:(e,t,n)=>{"use strict";function o(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}n.d(t,{fi:()=>_e});var i=n(87401);function r(e){var t=(0,i.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var a=n(11153);var s=n(33976);function l(e){return(((0,a.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return o(l(e)).left+r(e).scrollLeft}function u(e){return(0,i.Z)(e).getComputedStyle(e)}function d(e){var t=u(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function p(e,t,n){void 0===n&&(n=!1);var u=(0,a.Re)(t),p=(0,a.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),f=l(t),h=o(e,p),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(u||!u&&!n)&&(("body"!==(0,s.Z)(t)||d(f))&&(m=function(e){return e!==(0,i.Z)(e)&&(0,a.Re)(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:r(e);var t}(t)),(0,a.Re)(t)?((g=o(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):f&&(g.x=c(f))),{x:h.left+m.scrollLeft-g.x,y:h.top+m.scrollTop-g.y,width:h.width,height:h.height}}function f(e){var t=o(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function h(e){return"html"===(0,s.Z)(e)?e:e.assignedSlot||e.parentNode||((0,a.Zq)(e)?e.host:null)||l(e)}function m(e){return["html","body","#document"].indexOf((0,s.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&d(e)?e:m(h(e))}function g(e,t){var n;void 0===t&&(t=[]);var o=m(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=(0,i.Z)(o),s=r?[a].concat(a.visualViewport||[],d(o)?o:[]):o,l=t.concat(s);return r?l:l.concat(g(h(s)))}function v(e){return["table","td","th"].indexOf((0,s.Z)(e))>=0}function y(e){return(0,a.Re)(e)&&"fixed"!==u(e).position?e.offsetParent:null}function _(e){for(var t=(0,i.Z)(e),n=y(e);n&&v(n)&&"static"===u(n).position;)n=y(n);return n&&("html"===(0,s.Z)(n)||"body"===(0,s.Z)(n)&&"static"===u(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,a.Re)(e)&&"fixed"===u(e).position)return null;for(var n=h(e);(0,a.Re)(n)&&["html","body"].indexOf((0,s.Z)(n))<0;){var o=u(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var b="top",S="bottom",E="right",A="left",T="auto",P=[b,S,E,A],O="start",C="end",k="clippingParents",R="viewport",L="popper",I="reference",N=P.reduce((function(e,t){return e.concat([t+"-"+O,t+"-"+C])}),[]),w=[].concat(P,[T]).reduce((function(e,t){return e.concat([t,t+"-"+O,t+"-"+C])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function M(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),o}var x={placement:"bottom",modifiers:[],strategy:"absolute"};function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function U(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,i=t.defaultOptions,r=void 0===i?x:i;return function(e,t,n){void 0===n&&(n=r);var i,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},x,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(n){var i="function"==typeof n?n(l.options):n;h(),l.options=Object.assign({},r,l.options,i),l.scrollParents={reference:(0,a.kK)(e)?g(e):e.contextElement?g(e.contextElement):[],popper:g(t)};var s=function(e){var t=M(e);return D.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,l.options.modifiers)));return l.orderedModifiers=s.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var r=i({state:l,name:t,instance:d,options:o}),a=function(){};c.push(r||a)}})),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(F(t,n)){l.rects={reference:p(t,_(n),"fixed"===l.options.strategy),popper:f(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<l.orderedModifiers.length;o++)if(!0!==l.reset){var i=l.orderedModifiers[o],r=i.fn,a=i.options,s=void 0===a?{}:a,c=i.name;"function"==typeof r&&(l=r({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,o=-1}}},update:(i=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){h(),u=!0}};if(!F(e,t))return d;function h(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var B={passive:!0};const V={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,s=o.resize,l=void 0===s||s,c=(0,i.Z)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,B)})),l&&c.addEventListener("resize",n.update,B),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,B)})),l&&c.removeEventListener("resize",n.update,B)}},data:{}};function G(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function j(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function H(e){var t,n=e.reference,o=e.element,i=e.placement,r=i?G(i):null,a=i?J(i):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(r){case b:t={x:s,y:n.y-o.height};break;case S:t={x:s,y:n.y+n.height};break;case E:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?j(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case O:t[c]=t[c]-(n[u]/2-o[u]/2);break;case C:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}const K={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=H({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Y=Math.max,W=Math.min,z=Math.round,q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,h=!0===f?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:z(z(t*o)/o)||0,y:z(z(n*o)/o)||0}}(s):"function"==typeof f?f(s):s,m=h.x,g=void 0===m?0:m,v=h.y,y=void 0===v?0:v,T=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),O=A,k=b,R=window;if(p){var L=_(n),I="clientHeight",N="clientWidth";L===(0,i.Z)(n)&&"static"!==u(L=l(n)).position&&"absolute"===c&&(I="scrollHeight",N="scrollWidth"),r!==b&&(r!==A&&r!==E||a!==C)||(k=S,y-=L[I]-o.height,y*=d?1:-1),r!==A&&(r!==b&&r!==S||a!==C)||(O=E,g-=L[N]-o.width,g*=d?1:-1)}var w,D=Object.assign({position:c},p&&q);return d?Object.assign({},D,((w={})[k]=P?"0":"",w[O]=T?"0":"",w.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",w)):Object.assign({},D,((t={})[k]=P?y+"px":"",t[O]=T?g+"px":"",t.transform="",t))}const Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,i=void 0===o||o,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,c={placement:G(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Q=n(98566);const $={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,r=void 0===i?[0,0]:i,a=w.reduce((function(e,n){return e[n]=function(e,t,n){var o=G(e),i=[A,b].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[A,E].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,r),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function oe(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function ie(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Zq)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t){return t===R?re(function(e){var t=(0,i.Z)(e),n=l(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,u=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,u=o.offsetTop)),{width:r,height:a,x:s+c(e),y:u}}(e)):(0,a.Re)(t)?function(e){var t=o(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=l(e),o=r(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=Y(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Y(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-o.scrollLeft+c(e),p=-o.scrollTop;return"rtl"===u(i||n).direction&&(d+=Y(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:d,y:p}}(l(e)))}function se(e,t,n){var o="clippingParents"===t?function(e){var t=g(h(e)),n=["absolute","fixed"].indexOf(u(e).position)>=0&&(0,a.Re)(e)?_(e):e;return(0,a.kK)(n)?t.filter((function(e){return(0,a.kK)(e)&&ie(e,n)&&"body"!==(0,s.Z)(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),r=i[0],l=i.reduce((function(t,n){var o=ae(e,n);return t.top=Y(o.top,t.top),t.right=W(o.right,t.right),t.bottom=W(o.bottom,t.bottom),t.left=Y(o.left,t.left),t}),ae(e,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function le(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,s=n.boundary,c=void 0===s?k:s,u=n.rootBoundary,d=void 0===u?R:u,p=n.elementContext,f=void 0===p?L:p,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,v=void 0===g?0:g,y=le("number"!=typeof v?v:ce(v,P)),_=f===L?I:L,A=e.rects.popper,T=e.elements[m?_:f],O=se((0,a.kK)(T)?T:T.contextElement||l(e.elements.popper),c,d),C=o(e.elements.reference),N=H({reference:C,element:A,strategy:"absolute",placement:r}),w=re(Object.assign({},A,N)),D=f===L?w:C,M={top:O.top-D.top+y.top,bottom:D.bottom-O.bottom+y.bottom,left:O.left-D.left+y.left,right:D.right-O.right+y.right},x=e.modifiersData.offset;if(f===L&&x){var F=x[r];Object.keys(M).forEach((function(e){var t=[E,S].indexOf(e)>=0?1:-1,n=[b,S].indexOf(e)>=0?"y":"x";M[e]+=F[n]*t}))}return M}const de={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=G(g),y=l||(v===g||!h?[te(g)]:function(e){if(G(e)===T)return[];var t=te(e);return[oe(e),t,oe(t)]}(g)),_=[g].concat(y).reduce((function(e,n){return e.concat(G(n)===T?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?w:l,u=J(o),d=u?s?N:N.filter((function(e){return J(e)===u})):P,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=ue(e,{placement:n,boundary:i,rootBoundary:r,padding:a})[G(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,k=t.rects.popper,R=new Map,L=!0,I=_[0],D=0;D<_.length;D++){var M=_[D],x=G(M),F=J(M)===O,U=[b,S].indexOf(x)>=0,B=U?"width":"height",V=ue(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),j=U?F?E:A:F?S:b;C[B]>k[B]&&(j=te(j));var H=te(j),K=[];if(r&&K.push(V[x]<=0),s&&K.push(V[j]<=0,V[H]<=0),K.every((function(e){return e}))){I=M,L=!1;break}R.set(M,K)}if(L)for(var Y=function(e){var t=_.find((function(t){var n=R.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return I=t,"break"},W=h?3:1;W>0;W--){if("break"===Y(W))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return Y(e,W(t,n))}const fe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,v=ue(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=G(t.placement),T=J(t.placement),P=!T,C=j(y),k="x"===C?"y":"x",R=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,N="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,w={x:0,y:0};if(R){if(r||s){var D="y"===C?b:A,M="y"===C?S:E,x="y"===C?"height":"width",F=R[C],U=R[C]+v[D],B=R[C]-v[M],V=h?-I[x]/2:0,H=T===O?L[x]:I[x],K=T===O?-I[x]:-L[x],z=t.elements.arrow,q=h&&z?f(z):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=X[D],Q=X[M],$=pe(0,L[x],q[x]),ee=P?L[x]/2-V-$-Z-N:H-$-Z-N,te=P?-L[x]/2+V+$+Q+N:K+$+Q+N,ne=t.elements.arrow&&_(t.elements.arrow),oe=ne?"y"===C?ne.clientTop||0:ne.clientLeft||0:0,ie=t.modifiersData.offset?t.modifiersData.offset[t.placement][C]:0,re=R[C]+ee-ie-oe,ae=R[C]+te-ie;if(r){var se=pe(h?W(U,re):U,F,h?Y(B,ae):B);R[C]=se,w[C]=se-F}if(s){var le="x"===C?b:A,ce="x"===C?S:E,de=R[k],fe=de+v[le],he=de-v[ce],me=pe(h?W(fe,re):fe,de,h?Y(he,ae):he);R[k]=me,w[k]=me-de}}t.modifiersData[o]=w}},requiresIfExists:["offset"]};var he=function(e,t){return le("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,P))};const me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=G(n.placement),l=j(s),c=[A,E].indexOf(s)>=0?"height":"width";if(r&&a){var u=he(i.padding,n),d=f(r),p="y"===l?b:A,h="y"===l?S:E,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],v=_(r),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,T=m/2-g/2,P=u[p],O=y-d[c]-u[h],C=y/2-d[c]/2+T,k=pe(P,C,O),R=l;n.modifiersData[o]=((t={})[R]=k,t.centerOffset=k-C,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&ie(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ge(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ve(e){return[b,E,S,A].some((function(t){return e[t]>=0}))}const ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,a=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),l=ge(a,o),c=ge(s,i,r),u=ve(l),d=ve(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var _e=U({defaultModifiers:[V,K,Z,Q.Z,$,de,fe,me,ye]})},45317:e=>{"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),o=0,i=2,r=!0;for(;i<arguments.length;)n[o++]=arguments[i++];return new Promise((function(i,a){n[o]=function(e){if(r)if(r=!1,e)a(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}};try{e.apply(t||null,n)}catch(e){r&&(r=!1,a(e))}}))}},98660:(e,t)=>{"use strict";var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var o=new Array(64),i=new Array(123),r=0;r<64;)i[o[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(e,t,n){for(var i,r=null,a=[],s=0,l=0;t<n;){var c=e[t++];switch(l){case 0:a[s++]=o[c>>2],i=(3&c)<<4,l=1;break;case 1:a[s++]=o[i|c>>4],i=(15&c)<<2,l=2;break;case 2:a[s++]=o[i|c>>6],a[s++]=o[63&c],l=0}s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=o[i],a[s++]=61,1===l&&(a[s++]=61)),r?(s&&r.push(String.fromCharCode.apply(String,a.slice(0,s))),r.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var o,r=n,s=0,l=0;l<e.length;){var c=e.charCodeAt(l++);if(61===c&&s>1)break;if(void 0===(c=i[c]))throw Error(a);switch(s){case 0:o=c,s=1;break;case 1:t[n++]=o<<2|(48&c)>>4,o=c,s=2;break;case 2:t[n++]=(15&o)<<4|(60&c)>>2,o=c,s=3;break;case 3:t[n++]=(3&o)<<6|c,s=0}}if(1===s)throw Error(a);return n-r},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},23745:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],o=0;o<n.length;)n[o].fn===t?n.splice(o,1):++o;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],o=1;o<arguments.length;)n.push(arguments[o++]);for(o=0;o<t.length;)t[o].fn.apply(t[o++].ctx,n)}return this}},19059:e=>{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),o=128===n[3];function i(e,o,i){t[0]=e,o[i]=n[0],o[i+1]=n[1],o[i+2]=n[2],o[i+3]=n[3]}function r(e,o,i){t[0]=e,o[i]=n[3],o[i+1]=n[2],o[i+2]=n[1],o[i+3]=n[0]}function a(e,o){return n[0]=e[o],n[1]=e[o+1],n[2]=e[o+2],n[3]=e[o+3],t[0]}function s(e,o){return n[3]=e[o],n[2]=e[o+1],n[1]=e[o+2],n[0]=e[o+3],t[0]}e.writeFloatLE=o?i:r,e.writeFloatBE=o?r:i,e.readFloatLE=o?a:s,e.readFloatBE=o?s:a}():function(){function t(e,t,n,o){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,n,o);else if(isNaN(t))e(2143289344,n,o);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,o);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,o);else{var r=Math.floor(Math.log(t)/Math.LN2);e((i<<31|r+127<<23|8388607&Math.round(t*Math.pow(2,-r)*8388608))>>>0,n,o)}}function a(e,t,n){var o=e(t,n),i=2*(o>>31)+1,r=o>>>23&255,a=8388607&o;return 255===r?a?NaN:i*(1/0):0===r?1401298464324817e-60*i*a:i*Math.pow(2,r-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,o),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,r)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),o=128===n[7];function i(e,o,i){t[0]=e,o[i]=n[0],o[i+1]=n[1],o[i+2]=n[2],o[i+3]=n[3],o[i+4]=n[4],o[i+5]=n[5],o[i+6]=n[6],o[i+7]=n[7]}function r(e,o,i){t[0]=e,o[i]=n[7],o[i+1]=n[6],o[i+2]=n[5],o[i+3]=n[4],o[i+4]=n[3],o[i+5]=n[2],o[i+6]=n[1],o[i+7]=n[0]}function a(e,o){return n[0]=e[o],n[1]=e[o+1],n[2]=e[o+2],n[3]=e[o+3],n[4]=e[o+4],n[5]=e[o+5],n[6]=e[o+6],n[7]=e[o+7],t[0]}function s(e,o){return n[7]=e[o],n[6]=e[o+1],n[5]=e[o+2],n[4]=e[o+3],n[3]=e[o+4],n[2]=e[o+5],n[1]=e[o+6],n[0]=e[o+7],t[0]}e.writeDoubleLE=o?i:r,e.writeDoubleBE=o?r:i,e.readDoubleLE=o?a:s,e.readDoubleBE=o?s:a}():function(){function t(e,t,n,o,i,r){var a=o<0?1:0;if(a&&(o=-o),0===o)e(0,i,r+t),e(1/o>0?0:2147483648,i,r+n);else if(isNaN(o))e(0,i,r+t),e(2146959360,i,r+n);else if(o>17976931348623157e292)e(0,i,r+t),e((a<<31|2146435072)>>>0,i,r+n);else{var s;if(o<22250738585072014e-324)e((s=o/5e-324)>>>0,i,r+t),e((a<<31|s/4294967296)>>>0,i,r+n);else{var l=Math.floor(Math.log(o)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=o*Math.pow(2,-l))>>>0,i,r+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,i,r+n)}}}function a(e,t,n,o,i){var r=e(o,i+t),a=e(o,i+n),s=2*(a>>31)+1,l=a>>>20&2047,c=4294967296*(1048575&a)+r;return 2047===l?c?NaN:s*(1/0):0===l?5e-324*s*c:s*Math.pow(2,l-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,r,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function o(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function r(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},50491:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},18601:e=>{"use strict";e.exports=function(e,t,n){var o=n||8192,i=o>>>1,r=null,a=o;return function(n){if(n<1||n>i)return e(n);a+n>o&&(r=e(o),a=0);var s=t.call(r,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},68375:(e,t)=>{"use strict";var n=t;n.length=function(e){for(var t=0,n=0,o=0;o<e.length;++o)(n=e.charCodeAt(o))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(o+1))?(++o,t+=4):t+=3;return t},n.read=function(e,t,n){if(n-t<1)return"";for(var o,i=null,r=[],a=0;t<n;)(o=e[t++])<128?r[a++]=o:o>191&&o<224?r[a++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,r[a++]=55296+(o>>10),r[a++]=56320+(1023&o)):r[a++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,r)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,r.slice(0,a))),i.join("")):String.fromCharCode.apply(String,r.slice(0,a))},n.write=function(e,t,n){for(var o,i,r=n,a=0;a<e.length;++a)(o=e.charCodeAt(a))<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):55296==(64512&o)&&56320==(64512&(i=e.charCodeAt(a+1)))?(o=65536+((1023&o)<<10)+(1023&i),++a,t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128);return n-r}},92999:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}var i;n.d(t,{Ep:()=>s,Gn:()=>E,J0:()=>r,LX:()=>A,RQ:()=>R,WK:()=>D,Zn:()=>P,Zq:()=>C,aU:()=>i,cP:()=>l,fp:()=>u,pC:()=>k}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));function r(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(t+="#"===o.charAt(0)?o:"#"+o),t}function l(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}var c;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(c||(c={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function u(e,t,n){void 0===n&&(n="/");let o=P(("string"==typeof t?l(t):t).pathname||"/",n);if(null==o)return null;let i=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let r=null;for(let e=0;null==r&&e<i.length;++e)r=S(i[e],T(o));return r}function d(e,t,n,o){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o="");let i=(e,i,a)=>{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(r(s.relativePath.startsWith(o),'Absolute route path "'+s.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(o.length));let l=R([o,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(r(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),d(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:b(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of p(e.path))i(e,t,n);else i(e,t)})),t}function p(e){let t=e.split("/");if(0===t.length)return[];let[n,...o]=t,i=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===o.length)return i?[r,""]:[r];let a=p(o.join("/")),s=[];return s.push(...a.map((e=>""===e?r:[r,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const f=/^:\w+$/,h=3,m=2,g=1,v=10,y=-2,_=e=>"*"===e;function b(e,t){let n=e.split("/"),o=n.length;return n.some(_)&&(o+=y),t&&(o+=m),n.filter((e=>!_(e))).reduce(((e,t)=>e+(f.test(t)?h:""===t?g:v)),o)}function S(e,t){let{routesMeta:n}=e,o={},i="/",r=[];for(let e=0;e<n.length;++e){let a=n[e],s=e===n.length-1,l="/"===i?t:t.slice(i.length)||"/",c=A({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!c)return null;Object.assign(o,c.params);let u=a.route;r.push({params:o,pathname:R([i,c.pathname]),pathnameBase:L(R([i,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(i=R([i,c.pathnameBase]))}return r}function E(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(a(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));return(n.startsWith("/")?"/":"")+n.split(/\/+/).map(((e,n,o)=>{if(n===o.length-1&&"*"===e){return t["*"]}const i=e.match(/^:(\w+)(\??)$/);if(i){const[,e,n]=i;let o=t[e];return"?"===n?null==o?"":o:(null==o&&r(!1,'Missing ":'+e+'" param'),o)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function A(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);a("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(o.push(t),"/([^\\/]+)")));e.endsWith("*")?(o.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let r=new RegExp(i,t?void 0:"i");return[r,o]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:o.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";s=r.slice(0,r.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return a(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:r,pathnameBase:s,pattern:e}}function T(e){try{return decodeURI(e)}catch(t){return a(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&"/"!==o?null:e.slice(n)||"/"}function O(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function C(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function k(e,t,n,i){let a;void 0===i&&(i=!1),"string"==typeof e?a=l(e):(a=o({},e),r(!a.pathname||!a.pathname.includes("?"),O("?","pathname","search",a)),r(!a.pathname||!a.pathname.includes("#"),O("#","pathname","hash",a)),r(!a.search||!a.search.includes("#"),O("#","search","hash",a)));let s,c=""===e||""===a.pathname,u=c?"/":a.pathname;if(i||null==u)s=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:o="",hash:i=""}="string"==typeof e?l(e):e,r=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:r,search:I(o),hash:N(i)}}(a,s),p=u&&"/"!==u&&u.endsWith("/"),f=(c||"."===u)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}const R=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class w extends Error{}function D(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const M=["post","put","patch","delete"],x=(new Set(M),["get",...M]);new Set(x),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;Symbol("deferred")},71802:(e,t,n)=>{"use strict";n.d(t,{S1:()=>wt});var o=n(59958),i=n(18645),r=n(46341);const a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class s{static __initStatic(){this.id="InboundFilters"}__init(){this.name=s.id}constructor(e={}){this._options=e,s.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(s);if(t){const s=n.getClient(),c=s?s.getOptions():{},u=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...a],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,c);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Cannot extract message for event ${(0,i.jH)(e)}`),[]}return[]}(e).some((e=>(0,r.U0)(e,t)))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,r.U0)(n,t)}(e,t.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=l(e);return!!n&&(0,r.U0)(n,t)}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${l(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=l(e);return!n||(0,r.U0)(n,t)}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${l(e)}`),!0;return!1}(e,u)?null:e}}return e};n.id=this.name,e(n)}}function l(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Cannot extract url for event ${(0,i.jH)(e)}`),null}}s.__initStatic();var c=n(48017);let u;class d{constructor(){d.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=d.id}setupOnce(){u=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,c.HK)(this)||this;return u.apply(t,e)}}catch(e){}}}d.__initStatic();var p=n(95289),f=n(36606);const h=[];function m(e){const t=e.defaultIntegrations||[],n=e.integrations;let o;t.forEach((e=>{e.isDefaultInstance=!0})),o=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,i.lE)(n(t)):t;const r=function(e){const t={};return e.forEach((e=>{const{name:n}=e,o=t[n];o&&!o.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(o),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(r,(e=>"Debug"===e.name));if(-1!==a){const[e]=r.splice(a,1);r.push(e)}return r}function g(e,t){t[e.name]=e,-1===h.indexOf(e.name)&&(e.setupOnce(f.c,p.Gd),h.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Integration installed: ${e.name}`))}const v=50,y=/\(error: (.*)\)/;function _(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const o=[],i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024)continue;const r=y.test(n)?n.replace(y,"$1"):n;if(!r.match(/\S*Error: /)){for(const e of t){const t=e(r);if(t){o.push(t);break}}if(o.length>=v)break}}return function(e){if(!e.length)return[];const t=e.slice(0,v),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop();t.reverse();const o=t[t.length-1].function;o&&/captureMessage|captureException/.test(o)&&t.pop();return t.map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(o)}}const b="<anonymous>";function S(e){try{return e&&"function"==typeof e&&e.name||b}catch(e){return b}}var E=n(80250);const A=(0,E.Rf)();function T(){if(!("fetch"in A))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function P(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var O=n(47273);const C=(0,E.Rf)();const k=(0,E.Rf)(),R="__sentry_xhr_v2__",L={},I={};function N(e){if(!I[e])switch(I[e]=!0,e){case"console":!function(){if(!("console"in k))return;o.RU.forEach((function(e){e in k.console&&(0,c.hl)(k.console,e,(function(t){return function(...n){D("console",{args:n,level:e}),t&&t.apply(k.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in k))return;const e=D.bind(null,"dom"),t=G(e,!0);k.document.addEventListener("click",t,!1),k.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=k[t]&&k[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.hl)(n,"addEventListener",(function(t){return function(n,o,i){if("click"===n||"keypress"==n)try{const o=this,r=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){const o=G(e);a.handler=o,t.call(this,n,o,i)}a.refCount++}catch(e){}return t.call(this,n,o,i)}})),(0,c.hl)(n,"removeEventListener",(function(e){return function(t,n,o){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},r=i[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,o),r.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,o)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in k))return;const e=XMLHttpRequest.prototype;(0,c.hl)(e,"open",(function(e){return function(...t){const n=t[1],o=this[R]={method:(0,O.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};(0,O.HD)(n)&&"POST"===o.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const e=this[R];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}D("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,c.hl)(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),(0,c.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,o]=t,i=this[R];return i&&(i.request_headers[n.toLowerCase()]=o),e.apply(this,t)}})),e.apply(this,t)}})),(0,c.hl)(e,"send",(function(e){return function(...t){const n=this[R];return n&&void 0!==t[0]&&(n.body=t[0]),D("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!T())return!1;if(P(A.fetch))return!0;let e=!1;const t=A.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=P(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())return;(0,c.hl)(k,"fetch",(function(e){return function(...t){const{method:n,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:x(t),method:M(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:x(t),method:M(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:o},startTimestamp:Date.now()};return D("fetch",{...i}),e.apply(k,t).then((e=>(D("fetch",{...i,endTimestamp:Date.now(),response:e}),e)),(e=>{throw D("fetch",{...i,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!function(){const e=C.chrome,t=e&&e.app&&e.app.runtime,n="history"in C&&!!C.history.pushState&&!!C.history.replaceState;return!t&&n}())return;const e=k.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=F,t=String(n);F=t,D("history",{from:e,to:t})}return e.apply(this,t)}}k.onpopstate=function(...t){const n=k.location.href,o=F;if(F=n,D("history",{from:o,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,c.hl)(k.history,"pushState",t),(0,c.hl)(k.history,"replaceState",t)}();break;case"error":J=k.onerror,k.onerror=function(e,t,n,o,i){return D("error",{column:o,error:i,line:n,msg:e,url:t}),!(!J||J.__SENTRY_LOADER__)&&J.apply(this,arguments)},k.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":j=k.onunhandledrejection,k.onunhandledrejection=function(e){return D("unhandledrejection",e),!(j&&!j.__SENTRY_LOADER__)||j.apply(this,arguments)},k.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("unknown instrumentation type:",e))}}function w(e,t){L[e]=L[e]||[],L[e].push(t),N(e)}function D(e,t){if(e&&L[e])for(const n of L[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${S(n)}\nError:`,t)}}function M(e,t){return!!e&&"object"==typeof e&&!!e[t]}function x(e){return"string"==typeof e?e:e?M(e,"url")?e.url:e.toString?e.toString():"":""}let F;const U=1e3;let B,V;function G(e,t=!1){return n=>{if(!n||V===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const o="keypress"===n.type?"input":n.type;(void 0===B||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(V,n))&&(e({event:n,name:o,global:t}),V=n),clearTimeout(B),B=k.setTimeout((()=>{B=void 0}),U)}}let J=null;let j=null;class H extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const K=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Y(e,t=!1){const{host:n,path:o,pass:i,port:r,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${r?`:${r}`:""}/${o?`${o}/`:o}${a}`}function W(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function z(e){const t="string"==typeof e?function(e){const t=K.exec(e);if(!t)throw new H(`Invalid Sentry Dsn: ${e}`);const[n,o,i="",r,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return W({host:r,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:o})}(e):W(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:o}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new H(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new H(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(o))throw new H(`Invalid Sentry Dsn: Invalid protocol ${o}`);if(t&&isNaN(parseInt(t,10)))throw new H(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}var q=n(48217);function X(e,t=100,n=1/0){try{return Q("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Z(e,t=3,n=102400){const o=X(e,t);return i=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Z(e,t-1,n):o;var i}function Q(e,t,o=1/0,i=1/0,r=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=r;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,O.i2)(t))return t;const l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,O.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if(void 0===t)return"[undefined]";if("function"==typeof t)return`[Function: ${S(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const o=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(o)?`[HTMLElement: ${o}]`:`[object ${o}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const u="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:o;if(0===u)return l.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"==typeof d.toJSON)try{return Q("",d.toJSON(),u-1,i,r)}catch(e){}const p=Array.isArray(t)?[]:{};let f=0;const h=(0,c.Sh)(t);for(const e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(f>=i){p[e]="[MaxProperties ~]";break}const t=h[e];p[e]=Q(e,t,u-1,i,r),f++}return s(t),p}function $(e,t=[]){return[e,t]}function ee(e,t){const[n,o]=e;return[n,[...o,t]]}function te(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function ne(e,t){return(t||new TextEncoder).encode(e)}function oe(e,t){const[n,o]=e;let i=JSON.stringify(n);function r(e){"string"==typeof i?i="string"==typeof e?i+e:[ne(i,t),e]:i.push("string"==typeof e?ne(e,t):e)}for(const e of o){const[t,n]=e;if(r(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)r(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(X(n))}r(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let o=0;for(const t of e)n.set(t,o),o+=t.length;return n}(i)}function ie(e,t){const n="string"==typeof e.data?ne(e.data,t):e.data;return[(0,c.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const re={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function ae(e){return re[e]}function se(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const le="7";function ce(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ue(e,t={}){const n="string"==typeof t?t:t.tunnel,o="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${ce(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,c._j)({sentry_key:e.publicKey,sentry_version:le,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,o)}`}function de(e,t,n,o){const i=se(n),r=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,o){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Y(o)},...i&&{trace:(0,c.Jr)({...i})}}}(e,i,o,t);delete e.sdkProcessingMetadata;return $(a,[[{type:r},e]])}var pe=n(32169),fe=n(78461),he=n(42237);function me(e,t,n,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||(0,i.DM)(),timestamp:t.timestamp||(0,fe.yW)()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:o,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:he.J);void 0===e.release&&void 0!==o&&(e.release=o);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,r.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,r.$G)(s.value,a));const l=e.request;l&&l.url&&(l.url=(0,r.$G)(l.url,a))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),void 0===t.type&&function(e,t){const n=E.n2._sentryDebugIds;if(!n)return;let o;const i=ge.get(t);i?o=i:(o=new Map,ge.set(t,o));const r=Object.keys(n).reduce(((e,i)=>{let r;const a=o.get(i);a?r=a:(r=t(i),o.set(i,r));for(let t=r.length-1;t>=0;t--){const o=r[t];if(o.filename){e[o.filename]=n[i];break}}return e}),{}),a=new Set;try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&a.add(e.filename)}))}))}catch(e){}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const s=e.debug_meta.images;a.forEach((e=>{r[e]&&s.push({type:"sourcemap",code_file:e,debug_id:r[e]})}))}(l,e.stackParser);let u=o;n.captureContext&&(u=f.s.clone(u).update(n.captureContext));let d=(0,q.WD)(l);if(u){if(u.getAttachments){const e=[...n.attachments||[],...u.getAttachments()];e.length&&(n.attachments=e)}d=u.applyToEvent(l,n)}return d.then((e=>"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const o={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:X(e.data,t,n)}})))},...e.user&&{user:X(e.user,t,n)},...e.contexts&&{contexts:X(e.contexts,t,n)},...e.extra&&{extra:X(e.extra,t,n)}};e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=X(e.contexts.trace.data,t,n)));e.spans&&(o.spans=e.spans.map((e=>(e.data&&(e.data=X(e.data,t,n)),e))));return o}(e,a,s):e))}const ge=new WeakMap;const ve="Not capturing exception because it's already been captured.";class ye{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(ye.prototype.__init.call(this),ye.prototype.__init2.call(this),ye.prototype.__init3.call(this),ye.prototype.__init4.call(this),ye.prototype.__init5.call(this),this._options=e,e.dsn){this._dsn=z(e.dsn);const t=ue(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,i.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(ve));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,o){let i=n&&n.event_id;const r=(0,O.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(r.then((e=>this._captureEvent(e,n,o))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,i.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(ve));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,pe.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,q.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&g(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){g(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=de(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=ee(n,ie(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(n);o&&o.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,o){const i=se(n);return $({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!o&&{dsn:Y(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,o=!1;const i=t.exception&&t.exception.values;if(i){o=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const r="ok"===e.status;(r&&0===e.errors||r&&n)&&((0,pe.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new q.cW((t=>{let n=0;const o=setInterval((()=>{0==this._numProcessing?(clearInterval(o),t(!0)):(n+=1,e&&n>=e&&(clearInterval(o),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),me(o,e,t,n)}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?o.kg.log(t.message):o.kg.warn(t)}}))}_processEvent(e,t,n){const o=this.getOptions(),{sampleRate:i}=o;if(!this._isEnabled())return(0,q.$2)(new H("SDK not enabled, will not capture event.","log"));const r=be(e),a=_e(e),s=e.type||"error",l=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,q.$2)(new H(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new H("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:o,beforeSendTransaction:i}=e;if(_e(t)&&o)return o(t,n);if(be(t)&&i)return i(t,n);return t}(o,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,O.J8)(e))return e.then((e=>{if(!(0,O.PO)(e)&&null!==e)throw new H(n);return e}),(e=>{throw new H(`${t} rejected with ${e}`)}));if(!(0,O.PO)(e)&&null!==e)throw new H(n);return e}(i,l)})).then((o=>{if(null===o)throw this.recordDroppedEvent("before_send",c,e),new H(`${l} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!r&&i&&this._updateSessionFromEvent(i,o);const a=o.transaction_info;if(r&&a&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...a,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if(e instanceof H)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new H(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,o]=t.split(":");return{reason:n,category:o,quantity:e[t]}}))}}function _e(e){return void 0===e.type}function be(e){return"transaction"===e.type}const Se="7.50.0";var Ee=n(73268);function Ae(e,t){const n=Pe(e,t),o={type:t&&t.name,value:Ce(t)};return n.length&&(o.stacktrace={frames:n}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function Te(e,t){return{exception:{values:[Ae(e,t)]}}}function Pe(e,t){const n=t.stacktrace||t.stack||"",o=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Oe.test(e.message))return 1}return 0}(t);try{return e(n,o)}catch(e){}return[]}const Oe=/Minified React error #\d+;/i;function Ce(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ke(e,t,n,o,r){let a;if((0,O.VW)(t)&&t.error){return Te(e,t.error)}if((0,O.TX)(t)||(0,O.fm)(t)){const r=t;if("stack"in t)a=Te(e,t);else{const t=r.name||((0,O.TX)(r)?"DOMError":"DOMException"),s=r.message?`${t}: ${r.message}`:t;a=Re(e,s,n,o),(0,i.Db)(a,s)}return"code"in r&&(a.tags={...a.tags,"DOMException.code":`${r.code}`}),a}if((0,O.VZ)(t))return Te(e,t);if((0,O.PO)(t)||(0,O.cO)(t)){return a=function(e,t,n,o){const i=(0,p.Gd)().getClient(),r=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,O.cO)(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:`Non-Error ${o?"promise rejection":"exception"} captured with keys: ${(0,c.zf)(t)}`}]},extra:{__serialized__:Z(t,r)}};if(n){const t=Pe(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,r),(0,i.EG)(a,{synthetic:!0}),a}return a=Re(e,t,n,o),(0,i.Db)(a,`${t}`,void 0),(0,i.EG)(a,{synthetic:!0}),a}function Re(e,t,n,o){const i={message:t};if(o&&n){const o=Pe(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}var Le=n(8927);const Ie=E.n2;let Ne=0;function we(){return Ne>0}function De(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,c.HK)(e))return e}catch(t){return e}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=o.map((e=>De(e,t)));return e.apply(this,i)}catch(e){throw Ne++,setTimeout((()=>{Ne--})),(0,Le.$e)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,i.Db)(e,void 0,void 0),(0,i.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e))),(0,Le.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(e){}(0,c.$Q)(o,e),(0,c.xp)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}var Me=n(75175);const xe=["fatal","error","warning","log","info","debug"];function Fe(e){return"warn"===e?"warning":xe.includes(e)?e:"log"}function Ue(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:o,relative:t[5]+n+o}}const Be=1024,Ve="Breadcrumbs";class Ge{static __initStatic(){this.id=Ve}__init(){this.name=Ge.id}constructor(e){Ge.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&w("console",Je),this.options.dom&&w("dom",function(e){function t(t){let n,i="object"==typeof e?e.serializeAttribute:void 0,r="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;r&&r>Be&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`\`dom.maxStringLength\` cannot exceed ${Be}, but a value of ${r} was configured. Sentry will use ${Be} instead.`),r=Be),"string"==typeof i&&(i=[i]);try{const e=t.event;n=function(e){return e&&!!e.target}(e)?(0,Me.Rt)(e.target,{keyAttrs:i,maxStringLength:r}):(0,Me.Rt)(e,{keyAttrs:i,maxStringLength:r})}catch(e){n="<unknown>"}0!==n.length&&(0,p.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&w("xhr",je),this.options.fetch&&w("fetch",He),this.options.history&&w("history",Ke)}addSentryBreadcrumb(e){this.options.sentry&&(0,p.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,i.jH)(e)},{event:e})}}function Je(e){for(let t=0;t<e.args.length;t++)if("ref=Ref<"===e.args[t]){e.args[t+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:Fe(e.level),message:(0,r.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,r.nK)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,p.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function je(e){const{startTimestamp:t,endTimestamp:n}=e,o=e.xhr[R];if(!t||!n||!o)return;const{method:i,url:r,status_code:a,body:s}=o,l={method:i,url:r,status_code:a},c={xhr:e.xhr,input:s,startTimestamp:t,endTimestamp:n};(0,p.Gd)().addBreadcrumb({category:"xhr",data:l,type:"http"},c)}function He(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const o=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};(0,p.Gd)().addBreadcrumb({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};(0,p.Gd)().addBreadcrumb({category:"fetch",data:o,type:"http"},i)}}function Ke(e){let t=e.from,n=e.to;const o=Ue(Ie.location.href);let i=Ue(t);const r=Ue(n);i.path||(i=o),o.protocol===r.protocol&&o.host===r.host&&(n=r.relative),o.protocol===i.protocol&&o.host===i.host&&(t=i.relative),(0,p.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}Ge.__initStatic();class Ye extends ye{constructor(e){const t=Ie.SENTRY_SDK_SOURCE||(0,Ee.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:Se}],version:Se},super(e),e.sendClientReports&&Ie.document&&Ie.document.addEventListener("visibilitychange",(()=>{"hidden"===Ie.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,o){const r=ke(e,t,n&&n.syntheticException||void 0,o);return(0,i.EG)(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),(0,q.WD)(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",o,i){const r=Re(e,t,o&&o.syntheticException||void 0,i);return r.level=n,o&&o.event_id&&(r.event_id=o.event_id),(0,q.WD)(r)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(Ve);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,t)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:o}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:Y(o)}},r=function(e){return[{type:"user_report"},e]}(e);return $(i,[r])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Sending outcomes:",e);const t=(n=e,$((i=this._options.tunnel&&Y(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:r||(0,fe.yW)(),discarded_events:n}]]));var n,i,r;this._sendEnvelope(t)}}class We{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=We.id}__init2(){this._installFunc={onerror:ze,onunhandledrejection:qe}}constructor(e){We.prototype.__init.call(this),We.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const i=this._installFunc[n];i&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Global Handler attached: ${t}`),i(),this._installFunc[n]=void 0)}var t}}function ze(){w("error",(e=>{const[t,n,o]=Qe();if(!t.getIntegration(We))return;const{msg:i,url:r,line:a,column:s,error:l}=e;if(we()||l&&l.__sentry_own_request__)return;const c=void 0===l&&(0,O.HD)(i)?function(e,t,n,o){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let r=(0,O.VW)(e)?e.message:e,a="Error";const s=r.match(i);s&&(a=s[1],r=s[2]);const l={exception:{values:[{type:a,value:r}]}};return Xe(l,t,n,o)}(i,r,a,s):Xe(ke(n,l||i,void 0,o,!1),r,a,s);c.level="error",Ze(t,l,c,"onerror")}))}function qe(){w("unhandledrejection",(e=>{const[t,n,o]=Qe();if(!t.getIntegration(We))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(we()||i&&i.__sentry_own_request__)return!0;const r=(0,O.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ke(n,i,void 0,o,!0);r.level="error",Ze(t,i,r,"onunhandledrejection")}))}function Xe(e,t,n,o){const i=e.exception=e.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(o,10))?void 0:o,u=isNaN(parseInt(n,10))?void 0:n,d=(0,O.HD)(t)&&t.length>0?t:(0,Me.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Ze(e,t,n,o){(0,i.EG)(n,{handled:!1,type:o}),e.captureEvent(n,{originalException:t})}function Qe(){const e=(0,p.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}We.__initStatic();const $e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class et{static __initStatic(){this.id="TryCatch"}__init(){this.name=et.id}constructor(e){et.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,c.hl)(Ie,"setTimeout",tt),this._options.setInterval&&(0,c.hl)(Ie,"setInterval",tt),this._options.requestAnimationFrame&&(0,c.hl)(Ie,"requestAnimationFrame",nt),this._options.XMLHttpRequest&&"XMLHttpRequest"in Ie&&(0,c.hl)(XMLHttpRequest.prototype,"send",ot);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:$e).forEach(it)}}}function tt(e){return function(...t){const n=t[0];return t[0]=De(n,{mechanism:{data:{function:S(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function nt(e){return function(t){return e.apply(this,[De(t,{mechanism:{data:{function:"requestAnimationFrame",handler:S(e)},handled:!0,type:"instrument"}})])}}function ot(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,c.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:S(t)},handled:!0,type:"instrument"}},o=(0,c.HK)(t);return o&&(n.mechanism.data.handler=S(o)),De(t,n)}))})),e.apply(this,t)}}function it(e){const t=Ie,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.hl)(n,"addEventListener",(function(t){return function(n,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=De(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:S(o),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,De(o,{mechanism:{data:{function:"addEventListener",handler:S(o),target:e},handled:!0,type:"instrument"}}),i])}})),(0,c.hl)(n,"removeEventListener",(function(e){return function(t,n,o){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,o)}catch(e){}return e.call(this,t,i,o)}})))}et.__initStatic();class rt{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=rt.id}constructor(e={}){rt.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=(0,p.Gd)().getClient();e&&(0,f.c)(((t,n)=>{const o=(0,p.Gd)().getIntegration(rt);return o?function(e,t,n,o,i){if(!(o.exception&&o.exception.values&&i&&(0,O.V9)(i.originalException,Error)))return o;const r=at(e,n,i.originalException,t);return o.exception.values=[...r,...o.exception.values],o}(e.getOptions().stackParser,o._key,o._limit,t,n):t}))}}function at(e,t,n,o,i=[]){if(!(0,O.V9)(n[o],Error)||i.length+1>=t)return i;const r=Ae(e,n[o]);return at(e,t,n[o],o,[r,...i])}rt.__initStatic();class st{constructor(){st.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=st.id}setupOnce(){(0,f.c)((e=>{if((0,p.Gd)().getIntegration(st)){if(!Ie.navigator&&!Ie.location&&!Ie.document)return e;const t=e.request&&e.request.url||Ie.location&&Ie.location.href,{referrer:n}=Ie.document||{},{userAgent:o}=Ie.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},r={...e.request,...t&&{url:t},headers:i};return{...e,request:r}}return e}))}}st.__initStatic();class lt{constructor(){lt.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=lt.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(lt);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,o=t.message;if(!n&&!o)return!1;if(n&&!o||!n&&o)return!1;if(n!==o)return!1;if(!ut(e,t))return!1;if(!ct(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=dt(t),o=dt(e);if(!n||!o)return!1;if(n.type!==o.type||n.value!==o.value)return!1;if(!ut(e,t))return!1;if(!ct(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function ct(e,t){let n=pt(e),o=pt(t);if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;if(o.length!==n.length)return!1;for(let e=0;e<o.length;e++){const t=o[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function ut(e,t){let n=e.fingerprint,o=t.fingerprint;if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;try{return!(n.join("")!==o.join(""))}catch(e){return!1}}function dt(e){return e.exception&&e.exception.values&&e.exception.values[0]}function pt(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}lt.__initStatic();const ft="?";function ht(e,t,n,o){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==o&&(i.colno=o),i}const mt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gt=/\((\S*)(?::(\d+))(?::(\d+))\)/,vt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_t=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,bt=_(...[[30,e=>{const t=mt.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=gt.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=St(t[1]||ft,t[2]);return ht(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=vt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yt.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||ft;return[n,e]=St(n,e),ht(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=_t.exec(e);return t?ht(t[2],t[1]||ft,+t[3],t[4]?+t[4]:void 0):void 0}]]),St=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:ft,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Et(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,q.$2)(new H("Not adding Promise because buffer limit was reached."));const i=o();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new q.cW(((n,o)=>{let i=t.length;if(!i)return n(!0);const r=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,q.WD)(e).then((()=>{--i||(clearTimeout(r),n(!0))}),o)}))}))}}}const At=6e4;function Tt(e,{statusCode:t,headers:n},o=Date.now()){const i={...e},r=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(r)for(const e of r.trim().split(",")){const[t,n]=e.split(":",2),r=parseInt(t,10),a=1e3*(isNaN(r)?60:r);if(n)for(const e of n.split(";"))i[e]=o+a;else i.all=o+a}else a?i.all=o+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const o=Date.parse(`${e}`);return isNaN(o)?At:o-t}(a,o):429===t&&(i.all=o+6e4);return i}const Pt=30;function Ot(e,t,n=Et(e.bufferSize||Pt)){let i={};function r(r){const a=[];if(te(r,((t,n)=>{const o=ae(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,o)){const i=Ct(t,n);e.recordDroppedEvent("ratelimit_backoff",o,i)}else a.push(t)})),0===a.length)return(0,q.WD)();const s=$(r[0],a),l=t=>{te(s,((n,o)=>{const i=Ct(n,o);e.recordDroppedEvent(t,ae(o),i)}))};return n.add((()=>t({body:oe(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Tt(i,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof H)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,q.WD)();throw e}))}return r.__sentry__baseTransport__=!0,{send:r,flush:e=>n.drain(e)}}function Ct(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let kt;function Rt(e,t=function(){if(kt)return kt;if(P(Ie.fetch))return kt=Ie.fetch.bind(Ie);const e=Ie.document;let t=Ie.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const o=n.contentWindow;o&&o.fetch&&(t=o.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return kt=t.bind(Ie)}()){let n=0,i=0;return Ot(e,(function(o){const r=o.body.length;n+=r,i++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=r,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return kt=void 0,n-=r,i--,(0,q.$2)(e)}}))}const Lt=4;function It(e){return Ot(e,(function(t){return new q.cW(((n,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===Lt&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}const Nt=[new s,new d,new et,new Ge,new We,new rt,new lt,new st];function wt(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Nt),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Ie.SENTRY_RELEASE&&Ie.SENTRY_RELEASE.id&&(e.release=Ie.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||bt,Array.isArray(n)?_(...n):n),integrations:m(e),transport:e.transport||(T()?Rt:It)};var n;!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,p.Gd)();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}(Ye,t),e.autoSessionTracking&&function(){if(void 0===Ie.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=(0,p.Gd)();if(!e.captureSession)return;Dt(e),w("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&Dt((0,p.Gd)())}))}()}function Dt(e){e.startSession({ignoreDuration:!0}),e.captureSession()}},42237:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});const o="production"},8927:(e,t,n)=>{"use strict";n.d(t,{$e:()=>s,Tb:()=>i,e:()=>r,n_:()=>a});var o=n(95289);function i(e,t){return(0,o.Gd)().captureException(e,{captureContext:t})}function r(e){(0,o.Gd)().configureScope(e)}function a(e){(0,o.Gd)().addBreadcrumb(e)}function s(e){(0,o.Gd)().withScope(e)}},95289:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>m});var o=n(18645),i=n(78461),r=n(59958),a=n(80250),s=n(42237),l=n(36606),c=n(32169);const u=4,d=100;class p{constructor(e,t=new l.s,n=u){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){return;return;this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=l.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((o,r)=>{o.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},r)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,o.DM)(),r=new Error(e);return this._withClient(((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i},a)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,o.DM)();return e.type||(this._lastEventId=n),this._withClient(((o,i)=>{o.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=d}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const l={timestamp:(0,i.yW)(),...e},c=a?(0,r.Cf)((()=>a(l,t))):l;null!==c&&(o.emit&&o.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=h(this);try{e(this)}finally{h(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,c.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:o,environment:i=s.J}=n&&n.getOptions()||{},{userAgent:r}=a.n2.navigator||{},l=(0,c.Hv)({release:o,environment:i,user:t.getUser(),...r&&{userAgent:r},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,c.CT)(u,{status:"exited"}),this.endSession(),t.setSession(l),l}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=f().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function h(e){const t=f(),n=y(t);return _(t,e),n}function m(){const e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return g(e)}function g(e=f()){return v(e)&&!y(e).isOlderThan(u)||_(e,new p),y(e)}function v(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function y(e){return(0,a.YO)("hub",(()=>new p),e)}function _(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},36606:(e,t,n)=>{"use strict";n.d(t,{c:()=>p,s:()=>u});var o=n(47273),i=n(78461),r=n(48217),a=n(59958),s=n(18645),l=n(80250),c=n(32169);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,o.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const o={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,o].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new r.cW(((r,s)=>{const l=e[i];if(null===t||"function"!=typeof l)r(t);else{const c=l({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===c&&a.kg.log(`Event processor "${l.id}" dropped event`),(0,o.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,i+1).then(r))).then(null,s):this._notifyEventProcessors(e,c,n,i+1).then(r).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,l.YO)("globalEventProcessors",(()=>[]))}function p(e){d().push(e)}},32169:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>l});var o=n(78461),i=n(18645),r=n(48017);function a(e){const t=(0,o.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,r.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},84258:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});class o{constructor(){o.prototype.__init.call(this),o.prototype.__init2.call(this)}static __initStatic(){this.id="SessionTiming"}__init(){this.name=o.id}__init2(){this._startTime=Date.now()}setupOnce(e,t){e((e=>{const n=t().getIntegration(o);return n?n.process(e):e}))}process(e){const t=Date.now();return{...e,extra:{...e.extra,"session:start":this._startTime,"session:duration":t-this._startTime,"session:end":t}}}}o.__initStatic()},75175:(e,t,n)=>{"use strict";n.d(t,{Rt:()=>a,l4:()=>l});var o=n(47273);const i=(0,n(80250).Rf)(),r=80;function a(e,t={}){try{let n=e;const o=5,i=[];let a=0,l=0;const c=" > ",u=c.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||r;for(;n&&a++<o&&(d=s(n,p),!("html"===d||a>1&&l+i.length*u+d.length>=f));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(c)}catch(e){return"<unknown>"}}function s(e,t){const n=e,i=[];let r,a,s,l,c;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),r=n.className,r&&(0,o.HD)(r))for(a=r.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],l=n.getAttribute(s),l&&i.push(`[${s}="${l}"]`);return i.join("")}function l(){try{return i.document.location.href}catch(e){return""}}},73268:(e,t,n)=>{"use strict";function o(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:()=>i,n:()=>o})},47273:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>g,HD:()=>c,J8:()=>m,Kj:()=>h,PO:()=>d,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>p,fm:()=>l,i2:()=>v,kK:()=>f,pt:()=>u});const o=Object.prototype.toString;function i(e){switch(o.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function r(e,t){return o.call(e)===`[object ${t}]`}function a(e){return r(e,"ErrorEvent")}function s(e){return r(e,"DOMError")}function l(e){return r(e,"DOMException")}function c(e){return r(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return r(e,"Object")}function p(e){return"undefined"!=typeof Event&&y(e,Event)}function f(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return r(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},59958:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>a,RU:()=>r,kg:()=>l});var o=n(80250);const i="Sentry Logger ",r=["debug","info","warn","error","log","assert","trace"];function a(e){if(!("console"in o.n2))return e();const t=o.n2.console,n={};r.forEach((e=>{const o=t[e]&&t[e].__sentry_original__;e in t&&o&&(n[e]=t[e],t[e]=o)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function s(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?r.forEach((n=>{t[n]=(...t)=>{e&&a((()=>{o.n2.console[n](`${i}[${n}]:`,...t)}))}})):r.forEach((e=>{t[e]=()=>{}})),t}let l;l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,o.YO)("logger",s):s()},18645:(e,t,n)=>{"use strict";n.d(t,{DM:()=>r,Db:()=>l,EG:()=>c,YO:()=>u,jH:()=>s,lE:()=>d});var o=n(48017),i=n(80250);function r(){const e=i.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const o=a(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){const o=e.exception=e.exception||{},i=o.values=o.values||[],r=i[0]=i[0]||{};r.value||(r.value=t||""),r.type||(r.type=n||"Error")}function c(e,t){const n=a(e);if(!n)return;const o=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...o,...t},t&&"data"in t){const e={...o&&o.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,o.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},55850:(e,t,n)=>{"use strict";n.d(t,{KV:()=>r,l$:()=>a});var o=n(73268);e=n.hmd(e);var i=n(14224);function r(){return!(0,o.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(e,t){return e.require(t)}},48017:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>l,HK:()=>c,Jr:()=>m,Sh:()=>d,_j:()=>u,hl:()=>a,xp:()=>s,zf:()=>h});var o=n(75175),i=n(47273),r=n(46341);function a(e,t,n){if(!(t in e))return;const o=e[t],i=n(o);if("function"==typeof i)try{l(i,o)}catch(e){}e[t]=i}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function l(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function u(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function d(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if((0,i.cO)(e)){const t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function p(e){try{return(0,i.kK)(e)?(0,o.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function f(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){const n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,r.$G)(n[0],t);for(let e=n.length;e>0;e--){const o=n.slice(0,e).join(", ");if(!(o.length>t))return e===n.length?o:(0,r.$G)(o,t)}return""}function m(e){return g(e,new Map)}function g(e,t){if((0,i.PO)(e)){const n=t.get(e);if(void 0!==n)return n;const o={};t.set(e,o);for(const n of Object.keys(e))void 0!==e[n]&&(o[n]=g(e[n],t));return o}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const o=[];return t.set(e,o),e.forEach((e=>{o.push(g(e,t))})),o}return e}},46341:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,U0:()=>a,nK:()=>r});var o=n(47273);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function r(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const o=e[t];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!(0,o.HD)(e)&&((0,o.Kj)(t)?t.test(e):!!(0,o.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},48217:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>r,cW:()=>s});var o,i=n(47273);function r(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(o||(o={}));class s{__init(){this._state=o.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,o)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){o(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){o(e)}else o(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let o,i;return this.then((t=>{i=!1,o=t,e&&e()}),(t=>{i=!0,o=t,e&&e()})).then((()=>{i?n(o):t(o)}))}))}__init3(){this._resolve=e=>{this._setResult(o.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(o.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===o.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===o.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===o.RESOLVED&&e[1](this._value),this._state===o.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},78461:(e,t,n)=>{"use strict";n.d(t,{ph:()=>u,yW:()=>c});var o=n(55850),i=n(80250);e=n.hmd(e);const r=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=r;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=l.nowSeconds.bind(l);let d;(()=>{const{performance:e}=r;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=i<t,s=e.timing&&e.timing.navigationStart,l="number"==typeof s?Math.abs(s+n-o):t;a||l<t?i<=l?(d="timeOrigin",e.timeOrigin):d="navigationStart":d="dateNow"})()},80250:(e,t,n)=>{"use strict";function o(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:()=>r,YO:()=>a,n2:()=>i});const i="object"==typeof globalThis&&o(globalThis)||"object"==typeof window&&o(window)||"object"==typeof self&&o(self)||"object"==typeof n.g&&o(n.g)||function(){return this}()||{};function r(){return i}function a(e,t,n){const o=n||i,r=o.__SENTRY__=o.__SENTRY__||{};return r[e]||(r[e]=t())}},29049:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>me});var o=n(75473),i=n(98566),r="tippy-box",a="tippy-content",s="tippy-backdrop",l="tippy-arrow",c="tippy-svg-arrow",u={passive:!0,capture:!0},d=function(){return document.body};function p(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function f(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function h(e,t){return"function"==typeof e?e.apply(void 0,t):e}function m(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function g(e){return[].concat(e)}function v(e,t){-1===e.indexOf(t)&&e.push(t)}function y(e){return e.split("-")[0]}function _(e){return[].slice.call(e)}function b(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function S(){return document.createElement("div")}function E(e){return["Element","Fragment"].some((function(t){return f(e,t)}))}function A(e){return f(e,"MouseEvent")}function T(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function P(e){return E(e)?[e]:function(e){return f(e,"NodeList")}(e)?_(e):Array.isArray(e)?e:_(document.querySelectorAll(e))}function O(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function C(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function k(e){var t,n=g(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function R(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function L(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var I={isTouch:!1},N=0;function w(){I.isTouch||(I.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var e=performance.now();e-N<20&&(I.isTouch=!1,document.removeEventListener("mousemove",D)),N=e}function M(){var e=document.activeElement;if(T(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var x=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var F={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},U=Object.assign({appendTo:d,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},F,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),B=Object.keys(U);function V(e){var t=(e.plugins||[]).reduce((function(t,n){var o,i=n.name,r=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=U[i])?o:r);return t}),{});return Object.assign({},e,t)}function G(e,t){var n=Object.assign({},t,{content:h(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(V(Object.assign({},U,{plugins:t}))):B).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},U.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var J=function(){return"innerHTML"};function j(e,t){e[J()]=t}function H(e){var t=S();return!0===e?t.className=l:(t.className=c,E(e)?t.appendChild(e):j(t,e)),t}function K(e,t){E(t.content)?(j(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?j(e,t.content):e.textContent=t.content)}function Y(e){var t=e.firstElementChild,n=_(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(a)})),arrow:n.find((function(e){return e.classList.contains(l)||e.classList.contains(c)})),backdrop:n.find((function(e){return e.classList.contains(s)}))}}function W(e){var t=S(),n=S();n.className=r,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=S();function i(n,o){var i=Y(t),r=i.box,a=i.content,s=i.arrow;o.theme?r.setAttribute("data-theme",o.theme):r.removeAttribute("data-theme"),"string"==typeof o.animation?r.setAttribute("data-animation",o.animation):r.removeAttribute("data-animation"),o.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?r.setAttribute("role",o.role):r.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||K(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(r.removeChild(s),r.appendChild(H(o.arrow))):r.appendChild(H(o.arrow)):s&&r.removeChild(s)}return o.className=a,o.setAttribute("data-state","hidden"),K(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}W.$$tippy=!0;var z=1,q=[],X=[];function Z(e,t){var n,i,r,a,s,l,c,f,E=G(e,Object.assign({},U,V(b(t)))),T=!1,P=!1,N=!1,w=!1,D=[],M=m(be,E.interactiveDebounce),F=z++,B=(f=E.plugins).filter((function(e,t){return f.indexOf(e)===t})),J={id:F,reference:e,popper:S(),popperInstance:null,props:E,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:B,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(J.state.isDestroyed)return;ae("onBeforeUpdate",[J,t]),ye();var n=J.props,o=G(e,Object.assign({},n,b(t),{ignoreAttributes:!0}));J.props=o,ve(),n.interactiveDebounce!==o.interactiveDebounce&&(ce(),M=m(be,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?g(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");le(),re(),K&&K(n,o);J.popperInstance&&(Te(),Oe().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[J,t])},setContent:function(e){J.setProps({content:e})},show:function(){0;var e=J.state.isVisible,t=J.state.isDestroyed,n=!J.state.isEnabled,o=I.isTouch&&!J.props.touch,i=p(J.props.duration,0,U.duration);if(e||t||n||o)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[J],!1),!1===J.props.onShow(J))return;J.state.isVisible=!0,ee()&&(H.style.visibility="visible");re(),fe(),J.state.isMounted||(H.style.transition="none");if(ee()){var r=oe();O([r.box,r.content],0)}l=function(){var e;if(J.state.isVisible&&!w){if(w=!0,H.offsetHeight,H.style.transition=J.props.moveTransition,ee()&&J.props.animation){var t=oe(),n=t.box,o=t.content;O([n,o],i),C([n,o],"visible")}se(),le(),v(X,J),null==(e=J.popperInstance)||e.forceUpdate(),ae("onMount",[J]);
if (J.popper?.firstChild?.id === "context-menu") {
const container = J.popper.firstChild;
if (!container.children.length) {
const observer = new MutationObserver(() => {
Spicetify.ContextMenu._addItems(J.popper);
observer.disconnect();
});
observer.observe(container, { childList: true });
} else if (container.firstChild.classList.contains("main-userWidget-dropDownMenu")) {
Spicetify.Menu._addItems(J.popper);
} else {
Spicetify.ContextMenu._addItems(J.popper);
}
};0,J.props.animation&&ee()&&function(e,t){me(e,t)}(i,(function(){J.state.isShown=!0,ae("onShown",[J])}))}},function(){var e,t=J.props.appendTo,n=te();e=J.props.interactive&&t===d||"parent"===t?n.parentNode:h(t,[n]);e.contains(H)||e.appendChild(H);J.state.isMounted=!0,Te(),!1}()},hide:function(){0;var e=!J.state.isVisible,t=J.state.isDestroyed,n=!J.state.isEnabled,o=p(J.props.duration,1,U.duration);if(e||t||n)return;if(ae("onHide",[J],!1),!1===J.props.onHide(J))return;J.state.isVisible=!1,J.state.isShown=!1,w=!1,T=!1,ee()&&(H.style.visibility="hidden");if(ce(),he(),re(!0),ee()){var i=oe(),r=i.box,a=i.content;J.props.animation&&(O([r,a],o),C([r,a],"hidden"))}se(),le(),J.props.animation?ee()&&function(e,t){me(e,(function(){!J.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&t()}))}(o,J.unmount):J.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",M),v(q,M),M(e)},enable:function(){J.state.isEnabled=!0},disable:function(){J.hide(),J.state.isEnabled=!1},unmount:function(){0;J.state.isVisible&&J.hide();if(!J.state.isMounted)return;Pe(),Oe().forEach((function(e){e._tippy.unmount()})),H.parentNode&&H.parentNode.removeChild(H);X=X.filter((function(e){return e!==J})),J.state.isMounted=!1,ae("onHidden",[J])},destroy:function(){0;if(J.state.isDestroyed)return;J.clearDelayTimeouts(),J.unmount(),ye(),delete e._tippy,J.state.isDestroyed=!0,ae("onDestroy",[J])}};if(!E.render)return J;var j=E.render(J),H=j.popper,K=j.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+J.id,J.popper=H,e._tippy=J,H._tippy=J;var W=B.map((function(e){return e.fn(J)})),Z=e.hasAttribute("aria-expanded");return ve(),le(),re(),ae("onCreate",[J]),E.showOnCreate&&Ce(),H.addEventListener("mouseenter",(function(){J.props.interactive&&J.state.isVisible&&J.clearDelayTimeouts()})),H.addEventListener("mouseleave",(function(){J.props.interactive&&J.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",M)})),J;function Q(){var e=J.props.touch;return Array.isArray(e)?e:[e,0]}function $(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=J.props.render)||!e.$$tippy)}function te(){return c||e}function ne(){var e=te().parentNode;return e?k(e):document}function oe(){return Y(H)}function ie(e){return J.state.isMounted&&!J.state.isVisible||I.isTouch||a&&"focus"===a.type?0:p(J.props.delay,e?0:1,U.delay)}function re(e){void 0===e&&(e=!1),H.style.pointerEvents=J.props.interactive&&!e?"":"none",H.style.zIndex=""+J.props.zIndex}function ae(e,t,n){var o;(void 0===n&&(n=!0),W.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=J.props)[e].apply(o,t)}function se(){var t=J.props.aria;if(t.content){var n="aria-"+t.content,o=H.id;g(J.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(J.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function le(){!Z&&J.props.aria.expanded&&g(J.props.triggerTarget||e).forEach((function(e){J.props.interactive?e.setAttribute("aria-expanded",J.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",M),q=q.filter((function(e){return e!==M}))}function ue(t){if(!I.isTouch||!N&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!J.props.interactive||!L(H,n)){if(g(J.props.triggerTarget||e).some((function(e){return L(e,n)}))){if(I.isTouch)return;if(J.state.isVisible&&J.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[J,t]);!0===J.props.hideOnClick&&(J.clearDelayTimeouts(),J.hide(),P=!0,setTimeout((function(){P=!1})),J.state.isMounted||he())}}}function de(){N=!0}function pe(){N=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,u),e.addEventListener("touchstart",pe,u),e.addEventListener("touchmove",de,u)}function he(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,u),e.removeEventListener("touchstart",pe,u),e.removeEventListener("touchmove",de,u)}function me(e,t){var n=oe().box;function o(e){e.target===n&&(R(n,"remove",o),t())}if(0===e)return t();R(n,"remove",s),R(n,"add",o),s=o}function ge(t,n,o){void 0===o&&(o=!1),g(J.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),D.push({node:e,eventType:t,handler:n,options:o})}))}function ve(){var e;$()&&(ge("touchstart",_e,{passive:!0}),ge("touchend",Se,{passive:!0})),(e=J.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,_e),e){case"mouseenter":ge("mouseleave",Se);break;case"focus":ge(x?"focusout":"blur",Ee);break;case"focusin":ge("focusout",Ee)}}))}function ye(){D.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)})),D=[]}function _e(e){var t,n=!1;if(J.state.isEnabled&&!Ae(e)&&!P){var o="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,le(),!J.state.isVisible&&A(e)&&q.forEach((function(t){return t(e)})),"click"===e.type&&(J.props.trigger.indexOf("mouseenter")<0||T)&&!1!==J.props.hideOnClick&&J.state.isVisible?n=!0:Ce(e),"click"===e.type&&(T=!n),n&&!o&&ke(e)}}function be(e){var t=e.target,n=te().contains(t)||H.contains(t);if("mousemove"!==e.type||!n){var o=Oe().concat(H).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:E}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,r=e.props.interactiveBorder,a=y(i.placement),s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-o+l>r,f=o-t.bottom-c>r,h=t.left-n+u>r,m=n-t.right-d>r;return p||f||h||m}))})(o,e)&&(ce(),ke(e))}}function Se(e){Ae(e)||J.props.trigger.indexOf("click")>=0&&T||(J.props.interactive?J.hideWithInteractivity(e):ke(e))}function Ee(e){J.props.trigger.indexOf("focusin")<0&&e.target!==te()||J.props.interactive&&e.relatedTarget&&H.contains(e.relatedTarget)||ke(e)}function Ae(e){return!!I.isTouch&&$()!==e.type.indexOf("touch")>=0}function Te(){Pe();var t=J.props,n=t.popperOptions,i=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,c=ee()?Y(H).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=oe().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},d];ee()&&c&&p.push({name:"arrow",options:{element:c,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),J.popperInstance=(0,o.fi)(u,H,Object.assign({},n,{placement:i,onFirstUpdate:l,modifiers:p}))}function Pe(){J.popperInstance&&(J.popperInstance.destroy(),J.popperInstance=null)}function Oe(){return _(H.querySelectorAll("[data-tippy-root]"))}function Ce(e){J.clearDelayTimeouts(),e&&ae("onTrigger",[J,e]),fe();var t=ie(!0),o=Q(),i=o[0],r=o[1];I.isTouch&&"hold"===i&&r&&(t=r),t?n=setTimeout((function(){J.show()}),t):J.show()}function ke(e){if(J.clearDelayTimeouts(),ae("onUntrigger",[J,e]),J.state.isVisible){if(!(J.props.trigger.indexOf("mouseenter")>=0&&J.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=ie(!1);t?i=setTimeout((function(){J.state.isVisible&&J.hide()}),t):r=requestAnimationFrame((function(){J.hide()}))}}else he()}}function Q(e,t){void 0===t&&(t={});var n=U.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",w,u),window.addEventListener("blur",M);var o=Object.assign({},t,{plugins:n}),i=P(e).reduce((function(e,t){var n=t&&Z(t,o);return n&&e.push(n),e}),[]);return E(e)?i[0]:i}Q.defaultProps=U,Spicetify.Tippy=Q;Q.setDefaultProps=function(e){Object.keys(e).forEach((function(t){U[t]=e[t]}))},Q.currentInput=I;Object.assign({},i.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Q.setDefaultProps({render:W});const $=Q;var ee=n(59496),te=n(87995);function ne(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var oe="undefined"!=typeof window&&"undefined"!=typeof document;function ie(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function re(){return oe&&document.createElement("div")}function ae(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!ae(e[n],t[n]))return!1}return!0}return!1}function se(e){var t=[];return e.forEach((function(e){t.find((function(t){return ae(e,t)}))||t.push(e)})),t}function le(e,t){var n,o;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:se([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(o=t.popperOptions)?void 0:o.modifiers)||[]))})})}var ce=oe?ee.useLayoutEffect:ee.useEffect;function ue(e){var t=(0,ee.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function de(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var pe={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function o(){e.props.className&&!n()||de(t,"add",e.props.className)}return{onCreate:o,onBeforeUpdate:function(){n()&&de(t,"remove",e.props.className)},onAfterUpdate:o}}};function fe(e){return function(t){var n=t.children,o=t.content,i=t.visible,r=t.singleton,a=t.render,s=t.reference,l=t.disabled,c=void 0!==l&&l,u=t.ignoreAttributes,d=void 0===u||u,p=(t.__source,t.__self,ne(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==i,h=void 0!==r,m=(0,ee.useState)(!1),g=m[0],v=m[1],y=(0,ee.useState)({}),_=y[0],b=y[1],S=(0,ee.useState)(),E=S[0],A=S[1],T=ue((function(){return{container:re(),renders:1}})),P=Object.assign({ignoreAttributes:d},p,{content:T.container});f&&(P.trigger="manual",P.hideOnClick=!1),h&&(c=!0);var O=P,C=P.plugins||[];a&&(O=Object.assign({},P,{plugins:h&&null!=r.data?[].concat(C,[{fn:function(){return{onTrigger:function(e,t){var n=r.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):C,render:function(){return{popper:T.container}}}));var k=[s].concat(n?[n.type]:[]);return ce((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||T.ref||re(),Object.assign({},O,{plugins:[pe].concat(P.plugins||[])}));return T.instance=n,c&&n.disable(),i&&n.show(),h&&r.hook({instance:n,content:o,props:O,setSingletonContent:A}),v(!0),function(){n.destroy(),null==r||r.cleanup(n)}}),k),ce((function(){var e;if(1!==T.renders){var t=T.instance;t.setProps(le(t.props,O)),null==(e=t.popperInstance)||e.forceUpdate(),c?t.disable():t.enable(),f&&(i?t.show():t.hide()),h&&r.hook({instance:t,content:o,props:O,setSingletonContent:A})}else T.renders++})),ce((function(){var e;if(a){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,o=null==(t=n.modifiersData)?void 0:t.hide;_.placement===n.placement&&_.referenceHidden===(null==o?void 0:o.isReferenceHidden)&&_.escaped===(null==o?void 0:o.hasPopperEscaped)||b({placement:n.placement,referenceHidden:null==o?void 0:o.isReferenceHidden,escaped:null==o?void 0:o.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[_.placement,_.referenceHidden,_.escaped].concat(k)),ee.createElement(ee.Fragment,null,n?(0,ee.cloneElement)(n,{ref:function(e){T.ref=e,ie(n.ref,e)}}):null,g&&(0,te.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(_),E,T.instance):o,T.container))}}var he=function(e,t){return(0,ee.forwardRef)((function(n,o){var i=n.children,r=ne(n,["children"]);return ee.createElement(e,Object.assign({},t,r),i?(0,ee.cloneElement)(i,{ref:function(e){ie(o,e),ie(i.ref,e)}}):null)}))};const me=he(fe($))},31217:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>ce});var o=n(75473),i=n(98566),r="tippy-content",a="tippy-backdrop",s="tippy-arrow",l="tippy-svg-arrow",c={passive:!0,capture:!0},u=function(){return document.body};function d(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function p(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function m(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function v(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function _(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function b(){return document.createElement("div")}function S(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function E(e){return p(e,"MouseEvent")}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function T(e){return S(e)?[e]:function(e){return p(e,"NodeList")}(e)?y(e):Array.isArray(e)?e:y(document.querySelectorAll(e))}function P(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function O(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function C(e){var t,n=m(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function k(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function R(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var L={isTouch:!1},I=0;function N(){L.isTouch||(L.isTouch=!0,window.performance&&document.addEventListener("mousemove",w))}function w(){var e=performance.now();e-I<20&&(L.isTouch=!1,document.removeEventListener("mousemove",w)),I=e}function D(){var e=document.activeElement;if(A(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var M=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var x={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},F=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},x,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),U=Object.keys(F);function B(e){var t=(e.plugins||[]).reduce((function(t,n){var o,i=n.name,r=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=F[i])?o:r);return t}),{});return Object.assign({},e,t)}function V(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(B(Object.assign({},F,{plugins:t}))):U).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},F.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function G(e){var t=e.firstElementChild,n=y(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(r)})),arrow:n.find((function(e){return e.classList.contains(s)||e.classList.contains(l)})),backdrop:n.find((function(e){return e.classList.contains(a)}))}}var J=1,j=[],H=[];function K(e,t){var n,i,r,a,s,l,p,S,A=V(e,Object.assign({},F,B(_(t)))),T=!1,I=!1,N=!1,w=!1,D=[],x=h(be,A.interactiveDebounce),U=J++,K=(S=A.plugins).filter((function(e,t){return S.indexOf(e)===t})),Y={id:U,reference:e,popper:b(),popperInstance:null,props:A,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:K,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(Y.state.isDestroyed)return;ae("onBeforeUpdate",[Y,t]),ye();var n=Y.props,o=V(e,Object.assign({},n,_(t),{ignoreAttributes:!0}));Y.props=o,ve(),n.interactiveDebounce!==o.interactiveDebounce&&(ce(),x=h(be,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");le(),re(),q&&q(n,o);Y.popperInstance&&(Te(),Oe().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[Y,t])},setContent:function(e){Y.setProps({content:e})},show:function(){0;var e=Y.state.isVisible,t=Y.state.isDestroyed,n=!Y.state.isEnabled,o=L.isTouch&&!Y.props.touch,i=d(Y.props.duration,0,F.duration);if(e||t||n||o)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,ee()&&(z.style.visibility="visible");re(),fe(),Y.state.isMounted||(z.style.transition="none");if(ee()){var r=oe();P([r.box,r.content],0)}l=function(){var e;if(Y.state.isVisible&&!w){if(w=!0,z.offsetHeight,z.style.transition=Y.props.moveTransition,ee()&&Y.props.animation){var t=oe(),n=t.box,o=t.content;P([n,o],i),O([n,o],"visible")}se(),le(),g(H,Y),null==(e=Y.popperInstance)||e.forceUpdate(),ae("onMount",[Y]);
if (Y.popper?.firstChild?.id === "context-menu") {
const container = Y.popper.firstChild;
if (!container.children.length) {
const observer = new MutationObserver(() => {
Spicetify.ContextMenu._addItems(Y.popper);
observer.disconnect();
});
observer.observe(container, { childList: true });
} else if (container.firstChild.classList.contains("main-userWidget-dropDownMenu")) {
Spicetify.Menu._addItems(Y.popper);
} else {
Spicetify.ContextMenu._addItems(Y.popper);
}
};0,Y.props.animation&&ee()&&function(e,t){me(e,t)}(i,(function(){Y.state.isShown=!0,ae("onShown",[Y])}))}},function(){var e,t=Y.props.appendTo,n=te();e=Y.props.interactive&&t===u||"parent"===t?n.parentNode:f(t,[n]);e.contains(z)||e.appendChild(z);Y.state.isMounted=!0,Te(),!1}()},hide:function(){0;var e=!Y.state.isVisible,t=Y.state.isDestroyed,n=!Y.state.isEnabled,o=d(Y.props.duration,1,F.duration);if(e||t||n)return;if(ae("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,w=!1,T=!1,ee()&&(z.style.visibility="hidden");if(ce(),he(),re(!0),ee()){var i=oe(),r=i.box,a=i.content;Y.props.animation&&(P([r,a],o),O([r,a],"hidden"))}se(),le(),Y.props.animation?ee()&&function(e,t){me(e,(function(){!Y.state.isVisible&&z.parentNode&&z.parentNode.contains(z)&&t()}))}(o,Y.unmount):Y.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",x),g(j,x),x(e)},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){0;Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Pe(),Oe().forEach((function(e){e._tippy.unmount()})),z.parentNode&&z.parentNode.removeChild(z);H=H.filter((function(e){return e!==Y})),Y.state.isMounted=!1,ae("onHidden",[Y])},destroy:function(){0;if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),ye(),delete e._tippy,Y.state.isDestroyed=!0,ae("onDestroy",[Y])}};if(!A.render)return Y;var W=A.render(Y),z=W.popper,q=W.onUpdate;z.setAttribute("data-tippy-root",""),z.id="tippy-"+Y.id,Y.popper=z,e._tippy=Y,z._tippy=Y;var X=K.map((function(e){return e.fn(Y)})),Z=e.hasAttribute("aria-expanded");return ve(),le(),re(),ae("onCreate",[Y]),A.showOnCreate&&Ce(),z.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),z.addEventListener("mouseleave",(function(){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",x)})),Y;function Q(){var e=Y.props.touch;return Array.isArray(e)?e:[e,0]}function $(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=Y.props.render)||!e.$$tippy)}function te(){return p||e}function ne(){var e=te().parentNode;return e?C(e):document}function oe(){return G(z)}function ie(e){return Y.state.isMounted&&!Y.state.isVisible||L.isTouch||a&&"focus"===a.type?0:d(Y.props.delay,e?0:1,F.delay)}function re(e){void 0===e&&(e=!1),z.style.pointerEvents=Y.props.interactive&&!e?"":"none",z.style.zIndex=""+Y.props.zIndex}function ae(e,t,n){var o;(void 0===n&&(n=!0),X.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=Y.props)[e].apply(o,t)}function se(){var t=Y.props.aria;if(t.content){var n="aria-"+t.content,o=z.id;m(Y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(Y.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function le(){!Z&&Y.props.aria.expanded&&m(Y.props.triggerTarget||e).forEach((function(e){Y.props.interactive?e.setAttribute("aria-expanded",Y.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",x),j=j.filter((function(e){return e!==x}))}function ue(t){if(!L.isTouch||!N&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!Y.props.interactive||!R(z,n)){if(m(Y.props.triggerTarget||e).some((function(e){return R(e,n)}))){if(L.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[Y,t]);!0===Y.props.hideOnClick&&(Y.clearDelayTimeouts(),Y.hide(),I=!0,setTimeout((function(){I=!1})),Y.state.isMounted||he())}}}function de(){N=!0}function pe(){N=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,c),e.addEventListener("touchstart",pe,c),e.addEventListener("touchmove",de,c)}function he(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,c),e.removeEventListener("touchstart",pe,c),e.removeEventListener("touchmove",de,c)}function me(e,t){var n=oe().box;function o(e){e.target===n&&(k(n,"remove",o),t())}if(0===e)return t();k(n,"remove",s),k(n,"add",o),s=o}function ge(t,n,o){void 0===o&&(o=!1),m(Y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),D.push({node:e,eventType:t,handler:n,options:o})}))}function ve(){var e;$()&&(ge("touchstart",_e,{passive:!0}),ge("touchend",Se,{passive:!0})),(e=Y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,_e),e){case"mouseenter":ge("mouseleave",Se);break;case"focus":ge(M?"focusout":"blur",Ee);break;case"focusin":ge("focusout",Ee)}}))}function ye(){D.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)})),D=[]}function _e(e){var t,n=!1;if(Y.state.isEnabled&&!Ae(e)&&!I){var o="focus"===(null==(t=a)?void 0:t.type);a=e,p=e.currentTarget,le(),!Y.state.isVisible&&E(e)&&j.forEach((function(t){return t(e)})),"click"===e.type&&(Y.props.trigger.indexOf("mouseenter")<0||T)&&!1!==Y.props.hideOnClick&&Y.state.isVisible?n=!0:Ce(e),"click"===e.type&&(T=!n),n&&!o&&ke(e)}}function be(e){var t=e.target,n=te().contains(t)||z.contains(t);if("mousemove"!==e.type||!n){var o=Oe().concat(z).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:A}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,r=e.props.interactiveBorder,a=v(i.placement),s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-o+l>r,f=o-t.bottom-c>r,h=t.left-n+u>r,m=n-t.right-d>r;return p||f||h||m}))})(o,e)&&(ce(),ke(e))}}function Se(e){Ae(e)||Y.props.trigger.indexOf("click")>=0&&T||(Y.props.interactive?Y.hideWithInteractivity(e):ke(e))}function Ee(e){Y.props.trigger.indexOf("focusin")<0&&e.target!==te()||Y.props.interactive&&e.relatedTarget&&z.contains(e.relatedTarget)||ke(e)}function Ae(e){return!!L.isTouch&&$()!==e.type.indexOf("touch")>=0}function Te(){Pe();var t=Y.props,n=t.popperOptions,i=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,c=ee()?G(z).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=oe().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},d];ee()&&c&&p.push({name:"arrow",options:{element:c,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),Y.popperInstance=(0,o.fi)(u,z,Object.assign({},n,{placement:i,onFirstUpdate:l,modifiers:p}))}function Pe(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function Oe(){return y(z.querySelectorAll("[data-tippy-root]"))}function Ce(e){Y.clearDelayTimeouts(),e&&ae("onTrigger",[Y,e]),fe();var t=ie(!0),o=Q(),i=o[0],r=o[1];L.isTouch&&"hold"===i&&r&&(t=r),t?n=setTimeout((function(){Y.show()}),t):Y.show()}function ke(e){if(Y.clearDelayTimeouts(),ae("onUntrigger",[Y,e]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=ie(!1);t?i=setTimeout((function(){Y.state.isVisible&&Y.hide()}),t):r=requestAnimationFrame((function(){Y.hide()}))}}else he()}}function Y(e,t){void 0===t&&(t={});var n=F.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",N,c),window.addEventListener("blur",D);var o=Object.assign({},t,{plugins:n}),i=T(e).reduce((function(e,t){var n=t&&K(t,o);return n&&e.push(n),e}),[]);return S(e)?i[0]:i}Y.defaultProps=F,Spicetify.Tippy=Y;Y.setDefaultProps=function(e){Object.keys(e).forEach((function(t){F[t]=e[t]}))},Y.currentInput=L;Object.assign({},i.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Y.setDefaultProps({animation:!1});const W=Y;var z=n(59496),q=n(87995);function X(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Z="undefined"!=typeof window&&"undefined"!=typeof document;function Q(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function $(){return Z&&document.createElement("div")}function ee(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!ee(e[n],t[n]))return!1}return!0}return!1}function te(e){var t=[];return e.forEach((function(e){t.find((function(t){return ee(e,t)}))||t.push(e)})),t}function ne(e,t){var n,o;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:te([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(o=t.popperOptions)?void 0:o.modifiers)||[]))})})}var oe=Z?z.useLayoutEffect:z.useEffect;function ie(e){var t=(0,z.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function re(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var ae={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function o(){e.props.className&&!n()||re(t,"add",e.props.className)}return{onCreate:o,onBeforeUpdate:function(){n()&&re(t,"remove",e.props.className)},onAfterUpdate:o}}};function se(e){return function(t){var n=t.children,o=t.content,i=t.visible,r=t.singleton,a=t.render,s=t.reference,l=t.disabled,c=void 0!==l&&l,u=t.ignoreAttributes,d=void 0===u||u,p=(t.__source,t.__self,X(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==i,h=void 0!==r,m=(0,z.useState)(!1),g=m[0],v=m[1],y=(0,z.useState)({}),_=y[0],b=y[1],S=(0,z.useState)(),E=S[0],A=S[1],T=ie((function(){return{container:$(),renders:1}})),P=Object.assign({ignoreAttributes:d},p,{content:T.container});f&&(P.trigger="manual",P.hideOnClick=!1),h&&(c=!0);var O=P,C=P.plugins||[];a&&(O=Object.assign({},P,{plugins:h&&null!=r.data?[].concat(C,[{fn:function(){return{onTrigger:function(e,t){var n=r.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):C,render:function(){return{popper:T.container}}}));var k=[s].concat(n?[n.type]:[]);return oe((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||T.ref||$(),Object.assign({},O,{plugins:[ae].concat(P.plugins||[])}));return T.instance=n,c&&n.disable(),i&&n.show(),h&&r.hook({instance:n,content:o,props:O,setSingletonContent:A}),v(!0),function(){n.destroy(),null==r||r.cleanup(n)}}),k),oe((function(){var e;if(1!==T.renders){var t=T.instance;t.setProps(ne(t.props,O)),null==(e=t.popperInstance)||e.forceUpdate(),c?t.disable():t.enable(),f&&(i?t.show():t.hide()),h&&r.hook({instance:t,content:o,props:O,setSingletonContent:A})}else T.renders++})),oe((function(){var e;if(a){var t=T.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,o=null==(t=n.modifiersData)?void 0:t.hide;_.placement===n.placement&&_.referenceHidden===(null==o?void 0:o.isReferenceHidden)&&_.escaped===(null==o?void 0:o.hasPopperEscaped)||b({placement:n.placement,referenceHidden:null==o?void 0:o.isReferenceHidden,escaped:null==o?void 0:o.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[_.placement,_.referenceHidden,_.escaped].concat(k)),z.createElement(z.Fragment,null,n?(0,z.cloneElement)(n,{ref:function(e){T.ref=e,Q(n.ref,e)}}):null,g&&(0,q.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(_),E,T.instance):o,T.container))}}var le=function(e,t){return(0,z.forwardRef)((function(n,o){var i=n.children,r=X(n,["children"]);return z.createElement(e,Object.assign({},t,r),i?(0,z.cloneElement)(i,{ref:function(e){Q(o,e),Q(i.ref,e)}}):null)}))};const ce=le(se(W),{render:function(){return""}})},21366:e=>{"use strict";const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},71785:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const o=200,i=0,r="linear",a=!0;class s{constructor(e={}){this._curve=e.curve||r,this._baseTime=e.baseTime||o,this._ceiling=e.ceiling||i,this._jitter="jitter"in e?!!e.jitter:a}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;default:t=e+1}let n=Math.min(4294967296,Math.floor(t*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(e){const t=e/5;return Math.floor(e-t/2+Math.random()*t)}(n):n}}},19713:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var o=n(96583);var i=n(71785);const r={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class a{constructor(e,t){this._resolver=function(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},r),t),{backoffInitial:a,maxDuration:s,maxRetries:l,maxTime:c,retryPredicate:u}=n,d=(0,o.__rest)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=a,this._maxDuration=s,this._maxRetries=l,this._maxTime=c,this._retryPredicate=u,this._backoffInitial=a,this._counter=new i.A(d),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new a(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)if(e&&"retryAfter"in e)this._retryAfter(e);else{const t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e.retryAfter)}_success(...e){this._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCount<this._maxRetries&&e<this._maxTime&&n<this._maxDuration&&this._retryPredicate(t)}_tick(){this._fn().then(((...e)=>this._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise)}stop(){clearTimeout(this._tickInterval),this._destroy()}getRetryCount(){return this._callCount}}},77321:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var o,i={};n.r(i),n.d(i,{disable:()=>v,disableAll:()=>b,enable:()=>g,enableAll:()=>_,forTag:()=>S,intercept:()=>f,list:()=>m,remove:()=>E,setLevel:()=>y,unintercept:()=>h}),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(o||(o={}));var r=n(14224);const a=void 0!==r&&"true"==={}.DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=o.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=n,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,n){if(!(this._enabled||this._level&t))return;const o={args:n,type:e,tag:this.tag};this._predicate(o)||console[e](this._tagText,...n)}matchesTag(e){const t=Array.isArray(e)?e:e.split("."),n=this._tagParts;if(t.length>n.length)return!1;for(let e=0,o=t.length;e<o;e++)if(("*"!==t[e]||!n[e])&&t[e]!==n[e])return!1;return!0}setLevel(e){let t=0;switch(e){case"error":t=o.ERROR;break;case"warn":t=o.WARN|o.ERROR;break;case"info":t=o.INFO|o.WARN|o.ERROR;break;case"debug":t=o.DEBUG|o.INFO|o.WARN|o.ERROR;break;default:t=o.LOG|o.DEBUG|o.INFO|o.WARN|o.ERROR}this._level=t}enable(){this._enabled=!0}disable(){this._enabled=!1}log(...e){this._print("log",o.LOG,e)}debug(...e){this._print("debug",o.DEBUG,e)}info(...e){this._print("info",o.INFO,e)}warn(...e){this._print("warn",o.WARN,e)}error(...e){this._print("error",o.ERROR,e)}}:class{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}},s="__dbgLoggerRegistry";let l=n.g[s];l||(l={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,s,{value:l}):n.g[s]=l);const c=l.map,u=l.list;function d(e){return!(!l.loggingPredicate||!l.loggingPredicate(e))}let p="log";function f(e){if("function"!=typeof e)throw new TypeError("Logging.intercept requires a function predicate.");l.loggingPredicate=e}function h(){l.loggingPredicate=()=>{}}function m(e){const t=Object.keys(c).filter((e=>c[e])).sort();return e?t.map((e=>({tag:e,description:c[e].description||"No description."}))):t.reduce(((e,t)=>(e[t]=c[t].description||"No description",e)),{})}function g(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.disable()}}}function y(e){p=e;let t=u.length;for(;t--;){const n=u[t];n&&n.setLevel(e)}}function _(){let e=u.length;for(;e--;)u[e]&&u[e].enable()}function b(){let e=u.length;for(;e--;)u[e]&&u[e].disable()}function S(e,t){let n,o;if("string"==typeof e?(n=e.toLowerCase(),o=t):(n=e.tag,o=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const i=new a(n,o,d);return i.setLevel(p),c[n]=i,u.push(i),i}function E(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const o=u.indexOf(n);-1!==o&&u.splice(o,1)}},60220:(e,t,n)=>{"use strict";function o(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}n.d(t,{$:()=>o})},46506:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var o,i={};n.r(i),n.d(i,{disable:()=>v,disableAll:()=>b,enable:()=>g,enableAll:()=>_,forTag:()=>S,intercept:()=>f,list:()=>m,remove:()=>E,setLevel:()=>y,unintercept:()=>h}),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(o||(o={}));class r{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=o.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=n,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,n){if(!(this._enabled||this._level&t))return;const o={args:n,type:e,tag:this.tag};this._predicate(o)||console[e](this._tagText,...n)}matchesTag(e){const t=Array.isArray(e)?e:e.split("."),n=this._tagParts;if(t.length>n.length)return!1;for(let e=0,o=t.length;e<o;e++)if(("*"!==t[e]||!n[e])&&t[e]!==n[e])return!1;return!0}setLevel(e){let t=0;switch(e){case"error":t=o.ERROR;break;case"warn":t=o.WARN|o.ERROR;break;case"info":t=o.INFO|o.WARN|o.ERROR;break;case"debug":t=o.DEBUG|o.INFO|o.WARN|o.ERROR;break;default:t=o.LOG|o.DEBUG|o.INFO|o.WARN|o.ERROR}this._level=t}enable(){this._enabled=!0}disable(){this._enabled=!1}log(...e){this._print("log",o.LOG,e)}debug(...e){this._print("debug",o.DEBUG,e)}info(...e){this._print("info",o.INFO,e)}warn(...e){this._print("warn",o.WARN,e)}error(...e){this._print("error",o.ERROR,e)}}let a=class{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}};try{"true"==={}.DEBUG&&(a=r)}catch(e){}const s="__dbgLoggerRegistry";let l=n.g[s];l||(l={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,s,{value:l}):n.g[s]=l);const c=l.map,u=l.list;function d(e){return!(!l.loggingPredicate||!l.loggingPredicate(e))}let p="log";function f(e){if("function"!=typeof e)throw new TypeError("Logging.intercept requires a function predicate.");l.loggingPredicate=e}function h(){l.loggingPredicate=()=>{}}function m(e){const t=Object.keys(c).filter((e=>c[e])).sort();return e?t.map((e=>({tag:e,description:c[e].description||"No description."}))):t.reduce(((e,t)=>(e[t]=c[t].description||"No description",e)),{})}function g(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.disable()}}}function y(e){p=e;let t=u.length;for(;t--;){const n=u[t];n&&n.setLevel(e)}}function _(){let e=u.length;for(;e--;)u[e]&&u[e].enable()}function b(){let e=u.length;for(;e--;)u[e]&&u[e].disable()}function S(e,t){let n,o;if("string"==typeof e?(n=e.toLowerCase(),o=t):(n=e.tag,o=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const i=new a(n,o,d);return i.setLevel(p),c[n]=i,u.push(i),i}function E(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const o=u.indexOf(n);-1!==o&&u.splice(o,1)}},68035:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var o={};n.r(o),n.d(o,{decode:()=>d,encode:()=>u});const i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r={},a={};!function(){for(let e=0,t=i.length;e<t;++e)a[i[e]]=e;for(let e=0;e<16;++e)r["0123456789abcdef"[e]]=e;for(let e=0;e<16;++e)r["0123456789ABCDEF"[e]]=e}();n(20464);const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=4096,c=(()=>{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t<s.length;++t)e[s.charCodeAt(t)]=t;return String.fromCharCode(...e)})();let u=function(e){const t=String(e),n=[],o=t.length;let i=0;for(;i<o;){const e=255&t.charCodeAt(i++);if(i===o){n.push(s.charAt(e>>2),s.charAt((3&e)<<4),"==");break}const r=t.charCodeAt(i++);if(i===o){n.push(s.charAt(e>>2),s.charAt((3&e)<<4|(240&r)>>4),s.charAt((15&r)<<2),"=");break}const a=t.charCodeAt(i++);n.push(s.charAt(e>>2),s.charAt((3&e)<<4|(240&r)>>4),s.charAt((15&r)<<2|(192&a)>>6),s.charAt(63&a))}return n.join("")},d=function(e){const t=String(e),n=[],o=t.length;let i,r,a=0;for(;;){do{i=c.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a<o);do{r=c.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<o);if(255===r)break;n.push(255&(i<<2|r>>4));do{i=c.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a<o);if(255===i)break;n.push(255&(r<<4|i>>2));do{r=c.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<o);if(255===r)break;n.push(255&(i<<6|r))}return function(e){if(e.length<l)return String.fromCharCode(...e);let t=0;const n=[];do{n.push(String.fromCharCode(...e.slice(t,t+l))),t+=l}while(t<e.length);return n.join("")}(n)};"undefined"!=typeof window&&window.btoa&&window.atob&&(u=e=>window.btoa(e),d=e=>window.atob(e))},39222:(e,t,n)=>{"use strict";function o(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}n.d(t,{$:()=>o})},86338:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var o={};n.r(o),n.d(o,{disable:()=>v,disableAll:()=>b,enable:()=>g,enableAll:()=>_,forTag:()=>S,intercept:()=>f,list:()=>m,remove:()=>E,setLevel:()=>y,unintercept:()=>h});var i;n(14224);!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(i||(i={}));var r=n(14224);const a=void 0!==r&&"true"==={}.DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=i.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=n,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,n){if(!(this._enabled||this._level&t))return;const o={args:n,type:e,tag:this.tag};this._predicate(o)||console[e](this._tagText,...n)}matchesTag(e){const t=Array.isArray(e)?e:e.split("."),n=this._tagParts;if(t.length>n.length)return!1;for(let e=0,o=t.length;e<o;e++)if(("*"!==t[e]||!n[e])&&t[e]!==n[e])return!1;return!0}setLevel(e){let t=0;switch(e){case"error":t=i.ERROR;break;case"warn":t=i.WARN|i.ERROR;break;case"info":t=i.INFO|i.WARN|i.ERROR;break;case"debug":t=i.DEBUG|i.INFO|i.WARN|i.ERROR;break;default:t=i.LOG|i.DEBUG|i.INFO|i.WARN|i.ERROR}this._level=t}enable(){this._enabled=!0}disable(){this._enabled=!1}log(...e){this._print("log",i.LOG,e)}debug(...e){this._print("debug",i.DEBUG,e)}info(...e){this._print("info",i.INFO,e)}warn(...e){this._print("warn",i.WARN,e)}error(...e){this._print("error",i.ERROR,e)}}:class{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}},s="__dbgLoggerRegistry";let l=n.g[s];l||(l={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,s,{value:l}):n.g[s]=l);const c=l.map,u=l.list;function d(e){return!(!l.loggingPredicate||!l.loggingPredicate(e))}let p="log";function f(e){if("function"!=typeof e)throw new TypeError("Logging.intercept requires a function predicate.");l.loggingPredicate=e}function h(){l.loggingPredicate=()=>{}}function m(e){const t=Object.keys(c).filter((e=>c[e])).sort();return e?t.map((e=>({tag:e,description:c[e].description||"No description."}))):t.reduce(((e,t)=>(e[t]=c[t].description||"No description",e)),{})}function g(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.disable()}}}function y(e){p=e;let t=u.length;for(;t--;){const n=u[t];n&&n.setLevel(e)}}function _(){let e=u.length;for(;e--;)u[e]&&u[e].enable()}function b(){let e=u.length;for(;e--;)u[e]&&u[e].disable()}function S(e,t){let n,o;if("string"==typeof e?(n=e.toLowerCase(),o=t):(n=e.tag,o=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const i=new a(n,o,d);return i.setLevel(p),c[n]=i,u.push(i),i}function E(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const o=u.indexOf(n);-1!==o&&u.splice(o,1)}},47739:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Base62:()=>o,Base64:()=>i});var o={};n.r(o),n.d(o,{fromBytes:()=>f,fromHex:()=>g,toBytes:()=>h,toHex:()=>m});var i={};n.r(i),n.d(i,{decode:()=>S,encode:()=>b});const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a={},s={};function l(e,t,n){let o=0;for(let i=0;i<e.length;++i){const r=e[i]*t+o;e[i]=r%n,o=~~(r/n)}for(;o;)e.push(o%n),o=~~(o/n)}function c(e,t,n,o){let i,r,a=0;for(r=0;r<t.length;++r)i=~~e[r]+t[r]*n+a,e[r]=i%o,a=~~(i/o);for(;a;)i=~~e[r]+a,e[r]=i%o,a=~~(i/o),++r}function u(e,t,n){const o=[0],i=[1];for(const r of e)c(o,i,r,n),l(i,t,n);return o}function d(e,t){const n=[];for(const o of e)n.push(t[o]);return n.reverse()}function p(e,t=0){for(;e.length<t;)e.push(0);return e}function f(e,t){return d(p(u(e.slice(0).reverse(),256,62),t),r).join("")}function h(e,t){return p(u(d(e.split(""),s),62,256),t).reverse()}function m(e,t){const n=u(d(e.split(""),s),62,16);return d(p(n,t),r).join("")}function g(e,t){const n=u(d(e.split(""),a),16,62);return d(p(n,t),r).join("")}!function(){for(let e=0,t=r.length;e<t;++e)s[r[e]]=e;for(let e=0;e<16;++e)a["0123456789abcdef"[e]]=e;for(let e=0;e<16;++e)a["0123456789ABCDEF"[e]]=e}();n(20464);const v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=4096,_=(()=>{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t<v.length;++t)e[v.charCodeAt(t)]=t;return String.fromCharCode(...e)})();let b=function(e){const t=String(e),n=[],o=t.length;let i=0;for(;i<o;){const e=255&t.charCodeAt(i++);if(i===o){n.push(v.charAt(e>>2),v.charAt((3&e)<<4),"==");break}const r=t.charCodeAt(i++);if(i===o){n.push(v.charAt(e>>2),v.charAt((3&e)<<4|(240&r)>>4),v.charAt((15&r)<<2),"=");break}const a=t.charCodeAt(i++);n.push(v.charAt(e>>2),v.charAt((3&e)<<4|(240&r)>>4),v.charAt((15&r)<<2|(192&a)>>6),v.charAt(63&a))}return n.join("")},S=function(e){const t=String(e),n=[],o=t.length;let i,r,a=0;for(;;){do{i=_.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a<o);do{r=_.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<o);if(255===r)break;n.push(255&(i<<2|r>>4));do{i=_.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a<o);if(255===i)break;n.push(255&(r<<4|i>>2));do{r=_.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&a<o);if(255===r)break;n.push(255&(i<<6|r))}return function(e){if(e.length<y)return String.fromCharCode(...e);let t=0;const n=[];do{n.push(String.fromCharCode(...e.slice(t,t+y))),t+=y}while(t<e.length);return n.join("")}(n)};"undefined"!=typeof window&&window.btoa&&window.atob&&(b=e=>window.btoa(e),S=e=>window.atob(e))},6768:(e,t,n)=>{"use strict";n.d(t,{eV:()=>r,Hx:()=>c});const o="undefined"!=typeof globalThis&&"function"==typeof globalThis.queueMicrotask?globalThis.queueMicrotask.bind(globalThis):function(){if("undefined"==typeof Promise)return e=>setTimeout(e,0);const e=Promise.resolve();return t=>{e.then(t).catch((e=>setTimeout((()=>{throw e}),0)))}}();var i;!function(e){e.INVALID_IDENT_DATA="INVALID_IDENT_DATA",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED"}(i||(i={}));const r={UNKNOWN:"unknown",EMPTY:"",ZERO:0,EMPTY_VERSION:"0.0.0"};class a extends Error{constructor(e,t,n){super(t),this.name="LoggingError",this.code=e,this.status=n||0}}function s(e,t){const n=e.indexOf(t);return-1===n?[e,""]:[e.slice(0,n),e.slice(n+t.length)]}const l=202;class c{constructor(e){this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/melody",this._batchQueue=[],this._identData=Promise.all([e.sdkId,e.platform,e.clientVersion]).then((([e,t,n])=>({sdk_id:e||r.EMPTY,platform:t||r.EMPTY,client_version:n||r.EMPTY_VERSION})))}_assertValidIdentData(e){if(!e.sdk_id)throw new a(i.INVALID_IDENT_DATA,"sdkId must be a non-empty string.",0)}_sendBatchedLogs(){return this._identData.then((e=>{this._assertValidIdentData(e);const t=this._batchQueue.splice(0,this._batchQueue.length);if(t.length){const o=(n="endpoint",t.reduce((function(e,t){var o;const i=t[n];return void 0===i||(e[i]=null!==(o=e[i])&&void 0!==o?o:[],e[i].push(t)),e}),{})),r=Object.keys(o).map((t=>{var n;const r=null===(n=o[t])||void 0===n?void 0:n.map((({payload:e})=>e));return(null==r?void 0:r.length)?this._transport.request(`${this._endpoint}${t}`,{method:"POST",payload:JSON.stringify(Object.assign({messages:r},e)),retry:{maxRetries:5,condition:e=>e.status!==l}}).then((({status:e})=>e===l||Promise.reject(new a(i.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e)))):Promise.resolve(!0)}));return Promise.all(r).then((()=>!0))}var n;return Promise.resolve(!0)}))}_sendLog(e,t){return this.sendLog(e,t)}sendLog(e,t,n){const r=null==n?void 0:n.forget;if(null==n?void 0:n.batch){if(r)throw new Error("'forget' cannot be used together with 'batch'.");return new Promise((n=>{this._batchQueue.push({endpoint:e,payload:t}),o((()=>{this._sendBatchedLogs().then(n)}))}))}return this._identData.then((n=>{this._assertValidIdentData(n);let o=this._endpoint+e;const i=r?this._transport.getLastToken():null;return i&&(o=function(e,t,n){const[o,i]=s(e,"#"),[r,a]=s(o,"?"),l=i?`#${i}`:"";let c=`${t}=${encodeURIComponent(n)}`;const u=a.split("&");for(const e of u)e.length>0&&s(e,"=")[0]!==t&&(c+=`&${e}`);return`${r}?${c}${l}`}(o,"access_token",i)),this._transport.request(o,{method:"POST",payload:JSON.stringify(Object.assign(Object.assign({},t),n)),forget:r,retry:{maxRetries:5,condition:e=>e.status!==l}})})).then((({status:e})=>!(!r&&e!==l)||Promise.reject(new a(i.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e))))}}},26336:e=>{"undefined"!=typeof self&&self,e.exports=function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=18)}([function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n(6))},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function o(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function i(e,t){var n=w(e)||f(e)?o(e.length,String):[],i=n.length,r=!!i;for(var a in e)!t&&!C.call(e,a)||r&&("length"==a||c(a,i))||n.push(a);return n}function r(e,t,n){var o=e[t];C.call(e,t)&&p(o,n)&&(void 0!==n||t in e)||(e[t]=n)}function a(e){if(!d(e))return L(e);var t=[];for(var n in Object(e))C.call(e,n)&&"constructor"!=n&&t.push(n);return t}function s(e,t){return t=I(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,r=I(o.length-t,0),a=Array(r);++i<r;)a[i]=o[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=o[i];return s[t]=a,n(e,this,s)}}function l(e,t,n,o){n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(n[s],e[s],s,n,e):void 0;r(n,s,void 0===l?e[s]:l)}return n}function c(e,t){return!!(t=null==t?S:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function u(e,t,n){if(!y(n))return!1;var o=typeof t;return!!("number"==o?h(n)&&c(t,n.length):"string"==o&&t in n)&&p(n[t],e)}function d(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}function p(e,t){return e===t||e!=e&&t!=t}function f(e){return m(e)&&C.call(e,"callee")&&(!R.call(e,"callee")||k.call(e)==E)}function h(e){return null!=e&&v(e.length)&&!g(e)}function m(e){return _(e)&&h(e)}function g(e){var t=y(e)?k.call(e):"";return t==A||t==T}function v(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=S}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){return!!e&&"object"==typeof e}function b(e){return h(e)?i(e):a(e)}var S=9007199254740991,E="[object Arguments]",A="[object Function]",T="[object GeneratorFunction]",P=/^(?:0|[1-9]\d*)$/,O=Object.prototype,C=O.hasOwnProperty,k=O.toString,R=O.propertyIsEnumerable,L=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),I=Math.max,N=!R.call({valueOf:1},"valueOf"),w=Array.isArray,D=function(e){return s((function(t,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(i--,r):void 0,a&&u(n[0],n[1],a)&&(r=i<3?void 0:r,i=1),t=Object(t);++o<i;){var s=n[o];s&&e(t,s,o,r)}return t}))}((function(e,t){if(N||d(t)||h(t))l(t,b(t),e);else for(var n in t)C.call(t,n)&&r(e,n,t[n])}));e.exports=D},function(e,t,n){"use strict";function o(e,t,n){n=void 0===n?1:n,e[t]=e[t]||0,e[t]+=n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i={now:function(){var e=o.default.performance,t=e&&e.timing;return t&&"number"==typeof t.navigationStart&&"function"==typeof e.now?t.navigationStart+e.now():Date.now()}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(20)),i=o.default.methodFactory;o.default.methodFactory=function(e,t,n){var o=i(e,t,n);return function(){for(var e=["[mux]"],t=0;t<arguments.length;t++)e.push(arguments[t]);o.apply(void 0,e)}},o.default.setLevel(o.default.getLevel()),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return r(e)[0]},i=function(e){return r(e)[1]},r=function(e){if("string"!=typeof e||""===e)return["localhost"];var t=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,n=(e.match(t)||[])[4],o=void 0;return n&&(o=(n.match(/[^\.]+\.[^\.]+$/)||[])[0]),[n,o]};t.extractHostnameAndDomain=r,t.extractHostname=o,t.extractDomain=i},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},i=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)};t.generateUUID=o,t.generateShortID=i},function(e,t,n){"use strict";function o(e){var t={};return(e=e||"").trim().split(/[\r\n]+/).forEach((function(e){if(e){var n=e.split(": "),o=n.shift();o&&i.indexOf(o.toLowerCase())>=0&&(t[o]=n.join(": "))}})),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=["x-cdn","content-type"]},function(e,t,n){"use strict";var o=SyntaxError,i=Function,r=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var l=function(){throw new r},c=s?function(){try{return l}catch(e){try{return s(arguments,"callee").get}catch(e){return l}}}():l,u=n(46)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?void 0:d(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":r,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return h[t]=n,n},g={"%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"]},v=n(10),y=n(49),_=v.call(Function.call,Array.prototype.concat),b=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,P=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var i=[];return S(e,A,(function(e,t,n,o){i[i.length]=n?S(o,T,"$1"):t||e})),i},O=function(e,t){var n,i=e;if(y(g,i)&&(i="%"+(n=g[i])[0]+"%"),y(h,i)){var a=h[i];if(a===p&&(a=m(i)),void 0===a&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new r('"allowMissing" argument must be a boolean');var n=P(e),i=n.length>0?n[0]:"",a=O("%"+i+"%",t),l=a.name,c=a.value,u=!1,d=a.alias;d&&(i=d[0],b(n,_([0,1],d)));for(var p=1,f=!0;p<n.length;p+=1){var m=n[p],g=E(m,0,1),v=E(m,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),y(h,l="%"+(i+="."+m)+"%"))c=h[l];else if(null!=c){if(!(m in c)){if(!t)throw new r("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&p+1>=n.length){var S=s(c,m);c=(f=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:c[m]}else f=y(c,m),c=c[m];f&&!u&&(h[l]=c)}}return c}},function(e,t,n){"use strict";var o=n(48);e.exports=Function.prototype.bind||o},function(e,t,n){"use strict";var o=String.prototype.replace,i=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return o.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findMediaElement=t.getMuxPlayerId=void 0;var o=n(7),i=function(e){return e&&void 0!==e.nodeName?(e.muxId||(e.muxId=e.id||(0,o.generateShortID)()),e.muxId):e},r=function(e){var t=void 0;return e&&void 0!==e.nodeName?e=i(t=e):t=document.querySelector(e),[t,e,t&&t.nodeName?t.nodeName.toLowerCase():""]};t.getMuxPlayerId=i,t.findMediaElement=r},function(e,t,n){"use strict";function o(){return"1"===(i.default.doNotTrack||i.default.navigator&&(i.default.navigator.doNotTrack||i.default.navigator.msDoNotTrack))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i={exists:function(){var e=o.default.performance;return void 0!==(e&&e.timing)},domContentLoadedEventEnd:function(){var e=o.default.performance,t=e&&e.timing;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=o.default.performance,t=e&&e.timing;return t&&t.navigationStart}};t.default=i},function(e,t,n){"use strict";var o=n(44),i=n(54),r=n(11);e.exports={formats:r,parse:i,stringify:o}},function(e,t,n){"use strict";var o=n(11),i=Object.prototype.hasOwnProperty,r=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){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},c=function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(r(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return r(t)&&!r(n)&&(a=l(t,o)),r(t)&&r(n)?(n.forEach((function(n,r){if(i.call(t,r)){var a=t[r];a&&"object"==typeof a&&n&&"object"==typeof n?t[r]=e(a,n,o):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return i.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t}),a)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},d=function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},p=function(e,t,n,i,r){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||r===o.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],r=i.obj[i.prop],a=Object.keys(r),l=0;l<a.length;++l){var c=a[l],u=r[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:r,prop:c}),n.push(u))}return s(t),e},h=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},g=function(e,t){return[].concat(e,t)},v=function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)};e.exports={arrayToObject:l,assign:u,combine:g,compact:f,decode:d,encode:p,isBuffer:m,isRegExp:h,maybeMap:v,merge:c}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function r(e){var t={},n={};return Object.keys(e).forEach((function(o){var i=!1;if(e.hasOwnProperty(o)&&void 0!==e[o]){var r=o.split("_"),s=r[0],u=l[s];u||(a.default.info("Data key word `"+r[0]+"` not expected in "+o),u=s+"_"),r.splice(1).forEach((function(e){"url"===e&&(i=!0),c[e]?u+=c[e]:Number(e)&&Math.floor(Number(e))===Number(e)?u+=e:(a.default.info("Data key word `"+e+"` not expected in "+o),u+="_"+e+"_")})),i?n[u]=e[o]:t[u]=e[o]}})),(0,s.default)(t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=o(n(4)),s=o(n(1)),l=i({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),c=i({ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",ca:"cached",cb:"cancel",cd:"code",cg:"category",ch:"changed",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"connection",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",du:"duration",dv:"device",ec:"encoding",en:"end",eg:"engine",em:"embed",er:"error",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",fi:"first",fm:"family",ft:"format",fq:"frequency",fr:"frame",fs:"fullscreen",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",ta:"tag",tc:"tech",te:"text",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"})},function(e,t,n){"use strict";e.exports=n(19).default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=o(n(0)),a=n(12),s=o(n(4)),l=o(n(13)),c=o(n(3)),u=o(n(21)),d=o(n(61)),p=o(n(62)),f={},h=function e(t){var n=arguments;"string"==typeof t?e.hasOwnProperty(t)?r.default.setTimeout((function(){n=Array.prototype.splice.call(n,1),e[t].apply(null,n)}),0):s.default.warn("`"+t+"` is an unknown task"):"function"==typeof t?r.default.setTimeout((function(){t(e)}),0):s.default.warn("`"+t+"` is invalid.")};h.loaded=c.default.now(),h.NAME="mux-embed",h.VERSION="4.2.3",h.API_VERSION="2.1",h.PLAYER_TRACKED=!1,h.monitor=function(e,t){return(0,d.default)(h,e,t)},h.destroyMonitor=function(e){var t=(0,a.findMediaElement)(e),n=i(t,1)[0];n&&n.mux&&"function"==typeof n.mux.destroy?n.mux.destroy():s.default.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},h.addHLSJS=function(e,t){var n=(0,a.getMuxPlayerId)(e);f[n]?f[n].addHLSJS(t):s.default.error("A monitor for `"+n+"` has not been initialized.")},h.addDashJS=function(e,t){var n=(0,a.getMuxPlayerId)(e);f[n]?f[n].addDashJS(t):s.default.error("A monitor for `"+n+"` has not been initialized.")},h.removeHLSJS=function(e){var t=(0,a.getMuxPlayerId)(e);f[t]?f[t].removeHLSJS():s.default.error("A monitor for `"+t+"` has not been initialized.")},h.removeDashJS=function(e){var t=(0,a.getMuxPlayerId)(e);f[t]?f[t].removeDashJS():s.default.error("A monitor for `"+t+"` has not been initialized.")},h.init=function(e,t){(0,l.default)()&&t&&t.respectDoNotTrack&&s.default.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=(0,a.getMuxPlayerId)(e);f[n]=new u.default(h,n,t)},h.emit=function(e,t,n){var o=(0,a.getMuxPlayerId)(e);f[o]?(f[o].emit(t,n),"destroy"===t&&delete f[o]):s.default.error("A monitor for `"+o+"` has not been initialized.")},void 0!==r.default&&"function"==typeof r.default.addEventListener&&r.default.addEventListener("unload",(function(){h.WINDOW_UNLOADING=!0}),!1),h.checkDoNotTrack=l.default,h.log=s.default,h.utils=p.default,t.default=h},function(e,t,n){var o,i;!function(r,a){"use strict";void 0!==(i="function"==typeof(o=a)?o.call(t,n,t,e):o)&&(e.exports=i)}(0,(function(){"use strict";function e(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function t(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function n(n){return"debug"===n&&(n="log"),typeof console!==l&&("trace"===n&&c?t:void 0!==console[n]?e(console,n):void 0!==console.log?e(console,"log"):s)}function o(e,t){for(var n=0;n<u.length;n++){var o=u[n];this[o]=n<e?s:this.methodFactory(o,e,t)}this.log=this.debug}function i(e,t,n){return function(){typeof console!==l&&(o.call(this,t,n),this[e].apply(this,arguments))}}function r(e,t,o){return n(e)||i.apply(this,arguments)}function a(e,t,n){function i(e){var t=(u[e]||"silent").toUpperCase();if(typeof window!==l&&d){try{return void(window.localStorage[d]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+t+";"}catch(e){}}}function a(){var e;if(typeof window!==l&&d){try{e=window.localStorage[d]}catch(e){}if(typeof e===l)try{var t=window.document.cookie,n=t.indexOf(encodeURIComponent(d)+"=");-1!==n&&(e=/^([^;]+)/.exec(t.slice(n))[1])}catch(e){}return void 0===c.levels[e]&&(e=void 0),e}}var s,c=this,d="loglevel";"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=n||r,c.getLevel=function(){return s},c.setLevel=function(t,n){if("string"==typeof t&&void 0!==c.levels[t.toUpperCase()]&&(t=c.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(s=t,!1!==n&&i(t),o.call(c,t,e),typeof console===l&&t<c.levels.SILENT)return"No console available for logging"},c.setDefaultLevel=function(e){a()||c.setLevel(e,!1)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)};var p=a();null==p&&(p=null==t?"WARN":t),c.setLevel(p,!1)}var s=function(){},l="undefined",c=typeof window!==l&&typeof window.navigator!==l&&/Trident\/|MSIE /.test(window.navigator.userAgent),u=["trace","debug","info","warn","error"],d=new a,p={};d.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=p[e];return t||(t=p[e]=new a(e,d.getLevel(),d.methodFactory)),t};var f=typeof window!==l?window.log:void 0;return d.noConflict=function(){return typeof window!==l&&window.log===d&&(window.log=f),d},d.getLoggers=function(){return p},d.default=d,d}))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=o(n(4)),a=o(n(1)),s=n(7),l=n(5),c=o(n(0)),u=o(n(14)),d=o(n(2)),p=o(n(22)),f=n(27),h=n(28),m=o(n(29)),g=o(n(30)),v=o(n(31)),y=o(n(32)),_=o(n(33)),b=o(n(34)),S=o(n(35)),E=o(n(36)),A=o(n(37)),T=o(n(38)),P=o(n(39)),O=o(n(40)),C=o(n(41)),k=o(n(42)),R=o(n(60)),L=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],I=function(e,t,n){var o=this;this.DOM_CONTENT_LOADED_EVENT_END=u.default.domContentLoadedEventEnd(),this.NAVIGATION_START=u.default.navigationStart();var i={debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,errorTranslator:function(e){return e}};this.mux=e,this.id=t,(n=(0,a.default)(i,n)).data=n.data||{},n.data.property_key&&(n.data.env_key=n.data.property_key,delete n.data.property_key),r.default.setLevel(n.debug?"debug":"warn"),this.getPlayheadTime=n.getPlayheadTime,this.getStateData=n.getStateData||function(){},this.getAdData=n.getAdData||function(){},this.minimumRebufferDuration=n.minimumRebufferDuration,this.sustainedRebufferThreshold=n.sustainedRebufferThreshold,this.playbackHeartbeatTime=n.playbackHeartbeatTime,this.disableRebufferTracking=n.disableRebufferTracking,this.disableRebufferTracking&&this.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),this.errorTranslator=n.errorTranslator,this.playbackEventDispatcher=new k.default(e,n.data.env_key,n),this.data={player_instance_id:(0,s.generateUUID)(),mux_sample_rate:n.sampleRate,beacon_domain:n.beaconDomain},this.data.view_sequence_number=1,this.data.player_sequence_number=1,this.oldEmit=this.emit,this.emit=function(e,t){t=(0,a.default)({viewer_time:this.mux.utils.now()},t),this.oldEmit(e,t)};var l=function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}.bind(this);this.on("viewinit",(function(e,t){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),(0,a.default)(this.data,t),this._initializeViewData(),this.one("play",l),this.one("adbreakstart",l)}));var d=function(e){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",e)}.bind(this);this.on("videochange",(function(e,t){d(t)})),this.on("programchange",(function(e,t){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),d((0,a.default)(t,{view_program_changed:!0})),l(),this.emit("play"),this.emit("playing")})),this.on("destroy",this.destroy);var p=this.destroy.bind(this);void 0!==c.default&&"function"==typeof c.default.addEventListener&&c.default.addEventListener("unload",p,!1),this.on("destroy",(function(){void 0!==c.default&&"function"==typeof c.default.removeEventListener&&c.default.removeEventListener("unload",p)})),this.on("playerready",(function(e,t){(0,a.default)(this.data,t)})),L.forEach((function(e){o.on(e,(function(t,n){0!==e.indexOf("ad")&&this._updateStateData(),(0,a.default)(this.data,n),this._sanitizeData()})),o.on("after"+e,(function(){("error"!==e||this.viewErrored)&&this.send(e)}))})),this.on("viewend",(function(e,t){(0,a.default)(o.data,t)}));var f=function(e){var t=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time};this.one("playerready",f),v.default.apply(this),C.default.apply(this),T.default.apply(this),b.default.apply(this),g.default.apply(this),A.default.apply(this),y.default.apply(this),_.default.apply(this),P.default.apply(this),S.default.apply(this),E.default.apply(this),O.default.apply(this),R.default.apply(this),n.hlsjs&&this.addHLSJS(n),n.dashjs&&this.addDashJS(n),this.emit("viewinit",n.data)};(0,a.default)(I.prototype,m.default.prototype),(0,a.default)(I.prototype,b.default.prototype),(0,a.default)(I.prototype,T.default.prototype),(0,a.default)(I.prototype,g.default.prototype),(0,a.default)(I.prototype,y.default.prototype),(0,a.default)(I.prototype,_.default.prototype),(0,a.default)(I.prototype,P.default.prototype),(0,a.default)(I.prototype,S.default.prototype),(0,a.default)(I.prototype,E.default.prototype),I.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),c.default.clearTimeout(this._heartBeatTimeout))},I.prototype.send=function(e){var t=(0,a.default)({},this.data);if(1===t.player_error_code&&(delete t.player_error_code,delete t.player_error_message),t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=(0,l.extractHostnameAndDomain)(t.video_source_url),o=i(n,2),r=o[0],s=o[1];t.video_source_domain=s,t.video_source_hostname=r}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat()},I.prototype._updateStateData=function(){(0,a.default)(this.data,this.getStateData()),this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime()),this._sanitizeData()},I.prototype._sanitizeData=function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach((function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n})),["player_source_url","video_source_url"].forEach((function(t){if(e.data[t]){var n=e.data[t].toLowerCase();0!==n.indexOf("data:")&&0!==n.indexOf("blob:")||(e.data[t]="MSE style URL")}}))},I.prototype._resetVideoData=function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))},I.prototype._resetViewData=function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("view_")&&delete e.data[t]})),this.data.view_sequence_number=1},I.prototype._resetErrorData=function(e,t){delete this.data.player_error_code,delete this.data.player_error_message},I.prototype._initializeViewData=function(){var e=this,t=this.data.view_id=(0,s.generateUUID)();this.data.video_id||(this.data.video_id=(0,p.default)(this.data.player_source_url));var n=function(){t===e.data.view_id&&(0,d.default)(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()},I.prototype._restartHeartBeat=function(){var e=this;c.default.clearTimeout(this._heartBeatTimeout),this.viewErrored||(this._heartBeatTimeout=c.default.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4))},I.prototype.addHLSJS=function(e){return e.hlsjs?this.hlsjs?void this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,void(0,f.monitorHlsJs)(this.mux,this.id,e.hlsjs,{},e.Hls||c.default.Hls)):void this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")},I.prototype.removeHLSJS=function(){this.hlsjs&&((0,f.stopMonitoringHlsJs)(this.hlsjs),this.hlsjs=void 0)},I.prototype.addDashJS=function(e){return e.dashjs?this.dashjs?void this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,void(0,h.monitorDashJS)(this.mux,this.id,e.dashjs)):void this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")},I.prototype.removeDashJS=function(){this.dashjs&&((0,h.stopMonitoringDashJS)(this.dashjs),this.dashjs=void 0)},t.default=I},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=r.default.createElement("a");t.href=e;var n=t.pathname.replace(/\.[^/.]+$/,"");return a.default.encode(t.host+n).split("=")[0]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(n(23)),a=o(n(25))},function(e,t,n){(function(t){var o,i=void 0!==t?t:"undefined"!=typeof window?window:{},r=n(24);"undefined"!=typeof document?o=document:(o=i["__GLOBAL_DOCUMENT_CACHE@4"])||(o=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=o}).call(t,n(6))},function(e,t){},function(e,t,n){(function(e,o){var i;!function(o){"object"==typeof e&&e&&e.exports;var r=function(e){this.message=e};r.prototype=new Error,r.prototype.name="InvalidCharacterError";var a=function(e){throw new r(e)},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c=function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var n,o,i=0,r="",c=-1;++c<t;)o=s.indexOf(e.charAt(c)),n=i%4?64*n+o:o,i++%4&&(r+=String.fromCharCode(255&n>>(-2*i&6)));return r},u=function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n=e.length%3,o="",i=-1,r=e.length-n;++i<r;)t=(e.charCodeAt(i)<<16)+(e.charCodeAt(++i)<<8)+e.charCodeAt(++i),o+=s.charAt(t>>18&63)+s.charAt(t>>12&63)+s.charAt(t>>6&63)+s.charAt(63&t);return 2==n?(t=(e.charCodeAt(i)<<8)+e.charCodeAt(++i),o+=s.charAt(t>>10)+s.charAt(t>>4&63)+s.charAt(t<<2&63)+"="):1==n&&(t=e.charCodeAt(i),o+=s.charAt(t>>2)+s.charAt(t<<4&63)+"=="),o},d={encode:u,decode:c,version:"0.1.0"};void 0!==(i=function(){return d}.call(t,n,t,e))&&(e.exports=i)}()}).call(t,n(26)(e),n(6))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringHlsJs=t.monitorHlsJs=void 0;var i=o(n(8)),r=o(n(14)),a=n(5),s=function(e){if(!e)return{};var t=r.default.navigationStart(),n=e.loading,o=n?n.start:e.trequest,i=n?n.first:e.tfirst,a=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+o),responseStart:Math.round(t+i),responseEnd:Math.round(t+a)}},l=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return(0,i.default)(e.getAllResponseHeaders())},c=function(e,t,n){var o=arguments[4],i=e.log;if(r.default.exists()){var c=function(n,o){return e.emit(t,n,o)},u=function(e,t){var n=t.levels,o=t.audioTracks,i=t.url,r=t.stats,u=t.networkDetails,d={},p={};n.forEach((function(e,t){d[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),o.forEach((function(e,t){p[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var f=s(r),h=f.bytesLoaded,m=f.requestStart,g=f.responseStart,v=f.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:h,request_start:m,request_response_start:g,request_response_end:v,request_type:"manifest",request_hostname:(0,a.extractHostname)(i),request_response_headers:l(u),request_rendition_lists:{media:d,audio:p,video:{}}})};n.on(o.Events.MANIFEST_LOADED,u);var d=function(e,t){var n=t.details,o=t.level,i=t.networkDetails,r=t.stats,u=s(r),d=u.bytesLoaded,p=u.requestStart,f=u.responseStart,h=u.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:d,request_start:p,request_response_start:f,request_response_end:h,request_current_level:o,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:l(i)})};n.on(o.Events.LEVEL_LOADED,d);var p=function(e,t){var n=t.details,o=t.networkDetails,i=t.stats,r=s(i),u=r.bytesLoaded,d=r.requestStart,p=r.responseStart,f=r.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:p,request_response_end:f,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:l(o)})};n.on(o.Events.AUDIO_TRACK_LOADED,p);var f=function(e,t){var o=t.stats,i=t.networkDetails,r=t.frag,u=s(o),d={request_event_type:e,request_bytes_loaded:u.bytesLoaded,request_start:u.requestStart,request_response_start:u.responseStart,request_response_end:u.responseEnd,request_hostname:i?(0,a.extractHostname)(i.responseURL):void 0,request_response_headers:l(i),request_media_duration:r.duration};"main"===r.type?(d.request_type="media",d.request_current_level=r.level,d.request_video_width=(n.levels[r.level]||{}).width,d.request_video_height=(n.levels[r.level]||{}).height):d.request_type=r.type,c("requestcompleted",d)};n.on(o.Events.FRAG_LOADED,f);var h=function(e,t){var n=t.details,i=t.response,r=t.context,s=t.frag;if(n===o.ErrorDetails.MANIFEST_LOAD_ERROR||n===o.ErrorDetails.MANIFEST_LOAD_TIMEOUT||n===o.ErrorDetails.FRAG_LOAD_ERROR||n===o.ErrorDetails.FRAG_LOAD_TIMEOUT||n===o.ErrorDetails.LEVEL_LOAD_ERROR||n===o.ErrorDetails.LEVEL_LOAD_TIMEOUT){var l=s&&s.url||r&&r.url||"";c("requestfailed",{request_error:n,request_url:l,request_hostname:(0,a.extractHostname)(l),request_type:n===o.ErrorDetails.FRAG_LOAD_ERROR||n===o.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":"manifest",request_error_code:i&&i.code,request_error_text:i&&i.text})}};n.on(o.Events.ERROR,h);var m=function(e,t){var n=t.frag,o=n&&n._url||"";c("requestcanceled",{request_cancel:e,request_url:o,request_type:"media",request_hostname:(0,a.extractHostname)(o)})};n.on(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,m);var g=function(e,t){var o=t.level,r=n.levels[o];if(r&&r.attrs&&r.attrs.BANDWIDTH){var a=r.attrs.BANDWIDTH;a?c("renditionchange",{video_source_bitrate:a,video_source_width:r.width,video_source_height:r.height}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(o.Events.LEVEL_SWITCHED,g),n._stopMuxMonitor=function(){n.off(o.Events.MANIFEST_LOADED,u),n.off(o.Events.LEVEL_LOADED,d),n.off(o.Events.AUDIO_TRACK_LOADED,p),n.off(o.Events.FRAG_LOADED,f),n.off(o.Events.ERROR,h),n.off(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,m),n.off(o.Events.LEVEL_SWITCHED,g),n.off(o.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(o.Events.DESTROYING,n._stopMuxMonitor)}else i.warn("performance timing not supported. Not tracking HLS.js.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorHlsJs=c,t.stopMonitoringHlsJs=u},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringDashJS=t.monitorDashJS=void 0;var i=o(n(0)),r=o(n(8)),a=n(5),s=function(e,t){if(!e||"function"!=typeof e.getRequests)return{};var n=e.getRequests({state:"executed"});if(0===n.length)return{};var o=n[n.length-1],i=(0,a.extractHostname)(o.url),s=o.bytesLoaded,l=new Date(o.requestStartDate).getTime(),c=new Date(o.firstByteDate).getTime(),u=new Date(o.requestEndDate).getTime(),d=isNaN(o.duration)?0:o.duration,p="function"==typeof t.getMetricsFor?t.getMetricsFor(o.mediaType).HttpList:t.getDashMetrics().getHttpRequests(o.mediaType),f=void 0;return p.length>0&&(f=(0,r.default)(p[p.length-1]._responseHeaders||"")),{requestStart:l,requestResponseStart:c,requestResponseEnd:u,requestBytesLoaded:s,requestResponseHeaders:f,requestMediaDuration:d,requestHostname:i}},l=function(e,t){var n=t.getQualityFor(e),o=t.getCurrentTrackFor(e).bitrateList;return o?{currentLevel:n,renditionWidth:o[n].width||null,renditionHeight:o[n].height||null,renditionBitrate:o[n].bandwidth}:{}},c=function(e,t,n){var o=e.log;if(n&&n.on){var r=function(n,o){return e.emit(t,n,o)},c=function(e){var t=e.type,n=(e.data||{}).url;r("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:(0,a.extractHostname)(n)})};n.on("manifestLoaded",c);var u={},d=function(e){var t=e.type,o=e.fragmentModel,i=(e.chunk||{}).mediaInfo||{},a=i.type,l=i.bitrateList,c={};(l=l||[]).forEach((function(e,t){c[t]={},c[t].width=e.width,c[t].height=e.height,c[t].bitrate=e.bandwidth,c[t].attrs={}})),"video"===a?u.video=c:"audio"===a?u.audio=c:u.media=c;var d=s(o,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,m=d.requestResponseHeaders,g=d.requestMediaDuration,v=d.requestHostname;r("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:-1,request_type:a+"_init",request_response_headers:m,request_hostname:v,request_media_duration:g,request_rendition_lists:u})};n.on("initFragmentLoaded",d);var p=function(e){var t=e.type,o=e.fragmentModel,i=e.chunk||{},a=i.mediaInfo,c=i.start,u=(a||{}).type,d=s(o,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,m=d.requestBytesLoaded,g=d.requestResponseHeaders,v=d.requestMediaDuration,y=d.requestHostname,_=l(u,n),b=_.currentLevel,S=_.renditionWidth,E=_.renditionHeight,A=_.renditionBitrate;r("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:m,request_type:u,request_response_headers:g,request_hostname:y,request_media_start_time:c,request_media_duration:v,request_current_level:b,request_labeled_bitrate:A,request_video_width:S,request_video_height:E})};n.on("mediaFragmentLoaded",p);var f={video:void 0,audio:void 0,totalBitrate:void 0},h=function(){if(f.video&&"number"==typeof f.video.bitrate){if(!f.video.width||!f.video.height)return void o.warn("have bitrate info for video but missing width/height");var e=f.video.bitrate;return f.audio&&"number"==typeof f.audio.bitrate&&(e+=f.audio.bitrate),e!==f.totalBitrate?(f.totalBitrate=e,{video_source_bitrate:e,video_source_height:f.video.height,video_source_width:f.video.width}):void 0}},m=function(e,t,i){if("number"==typeof e.newQuality){var a=e.mediaType;if("audio"===a||"video"===a){var s=n.getBitrateInfoListFor(a).find((function(t){return t.qualityIndex===e.newQuality}));if(!s||"number"!=typeof s.bitrate)return void o.warn("missing bitrate info for "+a);f[a]=s;var l=h();l&&r("renditionchange",l)}}else o.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",m);var g=function(e){var t=e.error,n=e.event,o=(n=n||{}).request||{},s=i.default.event&&i.default.event.currentTarget||{};r("requestfailed",{request_error:t+"_"+n.id+"_"+o.type,request_url:n.url,request_hostname:(0,a.extractHostname)(n.url),request_type:o.mediaType,request_error_code:s.status,request_error_type:s.statusText})};n.on("error",g),n._stopMuxMonitor=function(){n.off("manifestLoaded",c),n.off("initFragmentLoaded",d),n.off("mediaFragmentLoaded",p),n.off("qualityChangeRendered",m),n.off("error",g),delete n._stopMuxMonitor}}else o.warn("Invalid dash.js player reference. Monitoring blocked.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorDashJS=c,t.stopMonitoringDashJS=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){},i=0;o.prototype.on=function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++i,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t},o.prototype.off=function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,o){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(o,1)}))},o.prototype.one=function(e,t,n){var o=this;t._eventEmitterGuid=t._eventEmitterGuid||++i;var r=function i(){o.off(e,i),t.apply(n||this,arguments)};r._eventEmitterGuid=t._eventEmitterGuid,this.on(e,r)},o.prototype.emit=function(e,t){var n=this;if(this._listeners){t=t||{};var o=this._listeners["before*"]||[],i=this._listeners[e]||[],r=this._listeners["after"+e]||[],a=function(t,o){(t=t.slice()).forEach((function(t){t.call(n,{type:e},o)}))};a(o,t),a(i,t),a(r,t)}},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=function(){this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,this.on("playing",(function(){this._playheadShouldBeProgressing=!0})),this.on("play",this._startPlaybackHeartbeatInterval),this.on("playing",this._startPlaybackHeartbeatInterval),this.on("adbreakstart",this._startPlaybackHeartbeatInterval),this.on("adplay",this._startPlaybackHeartbeatInterval),this.on("adplaying",this._startPlaybackHeartbeatInterval),this.on("seeking",this._startPlaybackHeartbeatInterval),this.on("devicewake",this._startPlaybackHeartbeatInterval),this.on("viewstart",this._startPlaybackHeartbeatInterval),this.on("pause",this._stopPlaybackHeartbeatInterval),this.on("ended",this._stopPlaybackHeartbeatInterval),this.on("viewend",this._stopPlaybackHeartbeatInterval),this.on("error",this._stopPlaybackHeartbeatInterval),this.on("aderror",this._stopPlaybackHeartbeatInterval),this.on("adpause",this._stopPlaybackHeartbeatInterval),this.on("adended",this._stopPlaybackHeartbeatInterval),this.on("adbreakend",this._stopPlaybackHeartbeatInterval),this.on("seeked",(function(){this.data.player_is_paused?this._stopPlaybackHeartbeatInterval():this._startPlaybackHeartbeatInterval()})),this.on("timeupdate",(function(){null!==this._playbackHeartbeatInterval&&this.emit("playbackheartbeat")})),this.on("devicesleep",(function(e,t){null!==this._playbackHeartbeatInterval&&(o.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend",{viewer_time:t.viewer_time}),this._playbackHeartbeatInterval=null)}))};i.prototype._startPlaybackHeartbeatInterval=function(){var e=this;null===this._playbackHeartbeatInterval&&(this.emit("playbackheartbeat"),this._playbackHeartbeatInterval=o.default.setInterval((function(){e.emit("playbackheartbeat")}),this.playbackHeartbeatTime))},i.prototype._stopPlaybackHeartbeatInterval=function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(o.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)},t.default=i},function(e,t,n){"use strict";function o(){var e=this;this.on("viewinit",(function(){e.viewErrored=!1})),this.on("error",(function(){try{var t=e.errorTranslator({player_error_code:e.data.player_error_code,player_error_message:e.data.player_error_message});t?(e.data.player_error_code=t.player_error_code,e.data.player_error_message=t.player_error_message,e.viewErrored=!0):(delete e.data.player_error_code,delete e.data.player_error_message)}catch(t){e.mux.log.warn("Exception in error translator callback.",t),e.viewErrored=!0}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=function(){this._watchTimeTrackerLastCheckedTime=null,this.on("playbackheartbeat",this._updateWatchTime),this.on("playbackheartbeatend",this._clearWatchTimeState)};i.prototype._updateWatchTime=function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),(0,o.default)(this.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n},i.prototype._clearWatchTimeState=function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=function(){this._playbackTimeTrackerLastPlayheadPosition=-1,this.on("playbackheartbeat",this._updatePlaybackTime),this.on("playbackheartbeatend",this._clearPlaybackTimeState),this.on("seeking",this._clearPlaybackTimeState)};i.prototype._updatePlaybackTime=function(){var e=this.data.player_playhead_time;if(this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&(0,o.default)(this.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e},i.prototype._clearPlaybackTimeState=function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){this.on("playbackheartbeat",this._updatePlayheadTime),this.on("playbackheartbeatend",this._updatePlayheadTime),this.on("timeupdate",this._updatePlayheadTime),this.on("destroy",(function(){this.off("timeupdate",this._updatePlayheadTime)}))};o.prototype._updateMaxPlayheadPosition=function(){this.data.view_max_playhead_position=void 0===this.data.view_max_playhead_position?this.data.player_playhead_time:Math.max(this.data.view_max_playhead_position,this.data.player_playhead_time)},o.prototype._updatePlayheadTime=function(e,t){if(t.player_playhead_time)this.data.player_playhead_time=t.player_playhead_time,this._updateMaxPlayheadPosition();else if(this.getPlayheadTime){var n=this.getPlayheadTime();void 0!==n&&(this.data.player_playhead_time=n,this._updateMaxPlayheadPosition())}},t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(3)),r=o(n(2)),a=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,this.on("playbackheartbeat",this._checkIfRebuffering),this.on("playbackheartbeatend",this._cleanupRebufferTracker),this.on("seeking",(function(){this._cleanupRebufferTracker(null,{viewer_time:i.default.now()})}))};a.prototype._checkIfRebuffering=function(e,t){if(!this.disableRebufferTracking){if(this.isSeeking||this.isAdBreak||!this._playheadShouldBeProgressing)return void this._cleanupRebufferTracker(e,t);if(null===this._lastCheckedTime)return this._prepareRebufferTrackerState(t.viewer_time),void this._updateRebufferMetrics();if(this._lastPlayheadTime!==this.data.player_playhead_time)return void this._cleanupRebufferTracker(e,t,!0);var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;n>=this.sustainedRebufferThreshold&&(this._rebuffering?this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime):(this._rebuffering=!0,(0,r.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(n),this.emit("rebufferstart"))),this._lastCheckedTime=t.viewer_time}},a.prototype._clearRebufferTrackerState=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null},a.prototype._prepareRebufferTrackerState=function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e},a.prototype._cleanupRebufferTracker=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.disableRebufferTracking){if(this._rebuffering)this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return void this._updateRebufferMetrics();var o=this.data.player_playhead_time-this._lastPlayheadTime,i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;o>0&&i-o>this.minimumRebufferDuration?((0,r.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(i-o),this.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+i-o})):this._updateRebufferMetrics()}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}},a.prototype._updateRebufferMetrics=function(e){e>0&&(0,r.default)(this.data,"view_rebuffer_duration",e),this.data.view_watch_time>=0&&this.data.view_rebuffer_count>0&&(this.data.view_rebuffer_frequency=this.data.view_rebuffer_count/this.data.view_watch_time,this.data.view_rebuffer_percentage=this.data.view_rebuffer_duration/this.data.view_watch_time)},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(3)),i=function(){this.on("viewinit",(function(){var e=this.data,t=e.view_id;if(!e.view_program_changed){var n=function(e,n){var i=n.viewer_time;"playing"===e.type&&void 0===this.data.view_time_to_first_frame?this.calculateTimeToFirstFrame(i||o.default.now(),t):"adplaying"!==e.type||void 0!==this.data.view_time_to_first_frame&&!this.inPrerollPosition()||this.calculateTimeToFirstFrame(i||o.default.now(),t)};this.one("playing",n),this.one("adplaying",n),this.one("viewend",(function(){this.off("playing",n),this.off("adplaying",n)}))}}))};i.prototype.calculateTimeToFirstFrame=function(e,t){t===this.data.view_id&&(this._updateWatchTime(null,{viewer_time:e}),this.data.view_time_to_first_frame=this.data.view_watch_time,(this.data.player_autoplay_on||this.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.data.view_aggregate_startup_time=this.data.view_start+this.data.view_watch_time-this.NAVIGATION_START))},t.default=i},function(e,t,n){"use strict";function o(){var e=this;this.on("viewinit",(function(){this._lastPlayheadPosition=-1}));var t=["playing","hb"];["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach((function(t){e.on(t,(function(){if(this._lastPlayheadPosition>=0&&this.data.player_playhead_time>=0&&this._lastPlayerWidth>=0&&this._lastSourceWidth>0&&this._lastPlayerHeight>=0&&this._lastSourceHeight>0){var e=this.data.player_playhead_time-this._lastPlayheadPosition;if(e<0)return void(this._lastPlayheadPosition=-1);var t=Math.min(this._lastPlayerWidth/this._lastSourceWidth,this._lastPlayerHeight/this._lastSourceHeight),n=Math.max(0,t-1),o=Math.max(0,1-t);this.data.view_max_upscale_percentage=Math.max(this.data.view_max_upscale_percentage||0,n),this.data.view_max_downscale_percentage=Math.max(this.data.view_max_downscale_percentage||0,o),(0,i.default)(this.data,"view_total_content_playback_time",e),(0,i.default)(this.data,"view_total_upscaling",n*e),(0,i.default)(this.data,"view_total_downscaling",o*e)}this._lastPlayheadPosition=-1}))})),t.forEach((function(t){e.on(t,(function(){this._lastPlayheadPosition=this.data.player_playhead_time,this._lastPlayerWidth=this.data.player_width,this._lastPlayerHeight=this.data.player_height,this._lastSourceWidth=this.data.video_source_width,this._lastSourceHeight=this.data.video_source_height}))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(){this.isSeeking=!1,this.on("seeking",(function(e,t){(0,s.default)(this.data,t),this._lastSeekingTime=r.default.now(),!1===this.isSeeking&&(this.isSeeking=!0,this.send("seeking"))})),this.on("seeked",(function(){this.isSeeking=!1;var e=this._lastSeekingTime||r.default.now(),t=r.default.now()-e;(0,a.default)(this.data,"view_seek_count",1),(0,a.default)(this.data,"view_seek_duration",t);var n=this.data.view_max_seek_time||0;this.data.view_max_seek_time=Math.max(n,t)})),this.on("viewend",(function(){this.isSeeking=!1}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(n(3)),a=o(n(2)),s=o(n(1))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=o(n(2)),a=n(5),s=o(n(1)),l=function(e,t){e.push(t),e.sort((function(e,t){return e.viewer_time-t.viewer_time}))},c=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror"],u=function(){var e=this;this.on("viewinit",(function(){this.isAdBreak=!1,this._currentAdRequestNumber=0,this._currentAdResponseNumber=0,this._adRequests=[],this._adResponses=[],this._adHasPlayed=!1,this._wouldBeNewAdPlay=!0,this._prerollPlayTime=void 0})),c.forEach((function(t){return e.on(t,e._updateAdData)}));var t=function(){e.isAdBreak=!1};this.on("adbreakstart",(function(){this.isAdBreak=!0})),this.on("play",t),this.on("playing",t),this.on("viewend",t),this.on("adrequest",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdRequestNumber++},t),l(this._adRequests,t),(0,r.default)(this.data,"view_ad_request_count"),this.inPrerollPosition()&&(this.data.view_preroll_requested=!0,this._adHasPlayed||(0,r.default)(this.data,"view_preroll_request_count"))})),this.on("adresponse",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdResponseNumber++},t),l(this._adResponses,t);var n=this.findAdRequest(t.ad_request_id);n&&(0,r.default)(this.data,"view_ad_request_time",Math.max(0,t.viewer_time-n.viewer_time))})),this.on("adplay",(function(e,t){this._adHasPlayed=!0,this._wouldBeNewAdPlay&&(this._wouldBeNewAdPlay=!1,(0,r.default)(this.data,"view_ad_played_count")),this.inPrerollPosition()&&!this.data.view_preroll_played&&(this.data.view_preroll_played=!0,this._adRequests.length>0&&(this.data.view_preroll_request_time=Math.max(0,t.viewer_time-this._adRequests[0].viewer_time)),this.data.view_start&&(this.data.view_startup_preroll_request_time=Math.max(0,t.viewer_time-this.data.view_start)),this._prerollPlayTime=t.viewer_time)})),this.on("adplaying",(function(e,t){this.inPrerollPosition()&&void 0===this.data.view_preroll_load_time&&void 0!==this._prerollPlayTime&&(this.data.view_preroll_load_time=t.viewer_time-this._prerollPlayTime,this.data.view_startup_preroll_load_time=t.viewer_time-this._prerollPlayTime)})),this.on("adended",(function(){this._wouldBeNewAdPlay=!0})),this.on("aderror",(function(){this._wouldBeNewAdPlay=!0}))};u.prototype.inPrerollPosition=function(){return void 0===this.data.view_content_playback_time||this.data.view_content_playback_time<=1e3},u.prototype.findAdRequest=function(e){for(var t=0;t<this._adRequests.length;t++)if(this._adRequests[t].ad_request_id===e)return this._adRequests[t]},u.prototype._updateAdData=function(e,t){if(this.inPrerollPosition()){if(!this.data.view_preroll_ad_tag_hostname&&t.ad_tag_url){var n=(0,a.extractHostnameAndDomain)(t.ad_tag_url),o=i(n,2),r=o[0],s=o[1];this.data.view_preroll_ad_tag_domain=s,this.data.view_preroll_ad_tag_hostname=r}if(!this.data.view_preroll_ad_asset_hostname&&t.ad_asset_url){var l=(0,a.extractHostnameAndDomain)(t.ad_asset_url),c=i(l,2),u=c[0],d=c[1];this.data.view_preroll_ad_asset_domain=d,this.data.view_preroll_ad_asset_hostname=u}}},t.default=u},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(){var e=this,t=void 0,n=void 0,o=function(){e.disableRebufferTracking||((0,a.default)(e.data,"view_waiting_rebuffer_count",1),t=r.default.now(),n=window.setInterval((function(){if(t){var n=r.default.now();(0,a.default)(e.data,"view_waiting_rebuffer_duration",n-t),t=n}}),250))},i=function(){e.disableRebufferTracking||t&&((0,a.default)(e.data,"view_waiting_rebuffer_duration",r.default.now()-t),t=!1,window.clearInterval(n))},s=!1,l=function(){s=!0},c=function(){s=!1,i()};this.on("waiting",(function(){s&&o()})),this.on("playing",(function(){i(),l()})),this.on("pause",c),this.on("seeking",c)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(n(3)),a=o(n(2))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(){var e=this;this.one("playbackheartbeat",s),this.on("playbackheartbeatend",(function(){e.off("before*",l),e.one("playbackheartbeat",s)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=o(n(1)),a=o(n(3)),s=function(){this.lastWallClockTime=a.default.now(),this.on("before*",l)},l=function(e){var t=a.default.now(),n=this.lastWallClockTime;this.lastWallClockTime=t,t-n>3e4&&(this.emit("devicesleep",{viewer_time:n}),(0,r.default)(this.data,{viewer_time:n}),this.send("devicesleep"),this.emit("devicewake",{viewer_time:t}),(0,r.default)(this.data,{viewer_time:t}),this.send("devicewake"))}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var 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},r=o(n(0)),a=n(43),s=o(n(4)),l=o(n(56)),c=o(n(13)),u=o(n(57)),d=o(n(17)),p=o(n(58)),f=o(n(1)),h=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id"],m=["viewstart","error","ended","viewend"],g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.mux=e,this.envKey=t,this.eventQueue=new p.default((0,l.default)(t,n.beaconDomain)),this.previousBeaconData=null,this.lastEventTime=null,this.sampleRate=n.sampleRate,this.disableCookies=n.disableCookies,this.respectDoNotTrack=n.respectDoNotTrack;var o=n.platform||{};this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:o.name,viewer_application_version:o.version,viewer_application_engine:o.layout,viewer_device_name:o.product,viewer_device_category:"",viewer_device_manufacturer:o.manufacturer,viewer_os_family:o.os&&o.os.family,viewer_os_architecture:o.os&&o.os.architecture,viewer_os_version:o.os&&o.os.version};var i=(0,u.default)();i&&(this.pageLevelData=(0,f.default)(this.pageLevelData,{viewer_connection_type:i})),void 0!==r.default&&r.default.location&&r.default.location.href&&(this.pageLevelData.page_url=r.default.location.href),this.viewerData=this.disableCookies?{}:(0,a.getAndUpdateViewerData)()};g.prototype.send=function(e,t){if(e){if(this.respectDoNotTrack&&(0,c.default)())return s.default.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!==(void 0===t?"undefined":i(t)))return s.default.error("A data object was expected in send() but was not provided");var n=this.disableCookies?{}:(0,a.getAndUpdateSessionData)(),o={};(0,f.default)(o,this.pageLevelData),(0,f.default)(o,t),(0,f.default)(o,n),(0,f.default)(o,this.viewerData),o.event=e,o.env_key=this.envKey,o.user_id&&(o.viewer_user_id=o.user_id,delete o.user_id);var r=o.mux_sample_number>=this.sampleRate,l=this._deduplicateBeaconData(e,o),u=(0,d.default)(l);if(this.lastEventTime=this.mux.utils.now(),r)return s.default.info("Not sending event due to sample rate restriction",e,o,u);if(!this.envKey)return s.default.info("Not sending event due to missing environment key",e,o,u);if(!this.rateLimited)if(s.default.info("Sending event",e,o,u),this.rateLimited=!this.eventQueue.queueEvent(e,u),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(m.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return o.event="eventrateexceeded",u=(0,d.default)(o),this.eventQueue.queueEvent(o.event,u),s.default.error("Beaconing disabled due to rate limit.")}},g.prototype.destroy=function(){this.eventQueue.destroy(!1)};var v=function(e,t,n,o){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===(void 0===n?"undefined":i(n))&&"object"===(void 0===o?"undefined":i(o))&&Object.keys(n||{}).length===Object.keys(o||{}).length)},y=function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")};g.prototype._deduplicateBeaconData=function(e,t){var n=this,o={},i=t.view_id;if(!i||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)o=(0,f.default)({},t),i&&(this.previousBeaconData=o),i&&"viewend"===e&&(this.previousBeaconData=null);else{var r=0===e.indexOf("request");Object.keys(t).forEach((function(i){var a=t[i];(a!==n.previousBeaconData[i]||h.indexOf(i)>-1||v(r,i,a,n.previousBeaconData[i])||y(e,i))&&(o[i]=a,n.previousBeaconData[i]=a)}))}return o},t.default=g},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAndUpdateSessionData=t.getAndUpdateViewerData=void 0;var i=o(n(15)),r=o(n(55)),a=n(7),s=o(n(3)),l=function(){var e=void 0;try{e=i.default.parse(r.default.get("muxData")||"")}catch(t){e={}}return e},c=function(e){try{r.default.set("muxData",i.default.stringify(e),{expires:7300})}catch(e){}},u=function(){var e=l();return e.mux_viewer_id=e.mux_viewer_id||(0,a.generateUUID)(),e.msn=e.msn||Math.random(),c(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},d=function(){var e=l(),t=s.default.now();return e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex<t)&&(e.sid=(0,a.generateUUID)(),e.sst=t),e.sex=t+15e5,c(e),{session_id:e.sid,session_start:e.sst,session_expires:e.sex}};t.getAndUpdateViewerData=u,t.getAndUpdateSessionData=d},function(e,t,n){"use strict";var o=n(45),i=n(16),r=n(11),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=r.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:r.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},m=function e(t,n,r,a,s,c,d,p,m,g,v,y,_,b,S){var E=t;if(S.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?E=d(n,E):E instanceof Date?E=g(E):"comma"===r&&l(E)&&(E=i.maybeMap(E,(function(e){return e instanceof Date?g(e):e}))),null===E){if(a)return c&&!_?c(n,f.encoder,b,"key",v):n;E=""}if(h(E)||i.isBuffer(E))return c?[y(_?n:c(n,f.encoder,b,"key",v))+"="+y(c(E,f.encoder,b,"value",v))]:[y(n)+"="+y(String(E))];var A,T=[];if(void 0===E)return T;if("comma"===r&&l(E))A=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(d))A=d;else{var P=Object.keys(E);A=p?P.sort(p):P}for(var O=0;O<A.length;++O){var C=A[O],k="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!s||null!==k){var R=l(E)?"function"==typeof r?r(n,C):n:n+(m?"."+C:"["+C+"]");S.set(t,!0);var L=o();u(T,e(k,R,r,a,s,c,d,p,m,g,v,y,_,b,L))}}return T},g=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;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 n=r.default;if(void 0!==e.format){if(!a.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=r.formatters[n],i=f.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,i=e,r=g(t);"function"==typeof r.filter?i=(0,r.filter)("",i):l(r.filter)&&(n=r.filter);var a,c=[];if("object"!=typeof i||null===i)return"";a=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=s[a];n||(n=Object.keys(i)),r.sort&&n.sort(r.sort);for(var p=o(),f=0;f<n.length;++f){var h=n[f];r.skipNulls&&null===i[h]||u(c,m(i[h],h,d,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,p))}var v=c.join(r.delimiter),y=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""}},function(e,t,n){"use strict";var o=n(9),i=n(50),r=n(52),a=o("%TypeError%"),s=o("%WeakMap%",!0),l=o("%Map%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),p=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),m=function(e,t){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===t)return o.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},v=function(e,t,n){var o=m(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+r(e))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return c(e,o)}else if(l){if(t)return p(t,o)}else if(n)return g(n,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return d(e,o)}else if(l){if(t)return h(t,o)}else if(n)return y(n,o);return!1},set:function(o,i){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),u(e,o,i)):l?(t||(t=new l),f(t,o,i)):(n||(n={key:{},next:null}),v(n,o,i))}};return o}},function(e,t,n){"use strict";var o="undefined"!=typeof Symbol&&Symbol,i=n(47);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&i()}},function(e,t,n){"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"),n=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(n))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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var o=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=o.call(arguments,1),a=function(){if(this instanceof n){var i=t.apply(this,r.concat(o.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(o.call(arguments)))},s=Math.max(0,t.length-r.length),l=[],c=0;c<s;c++)l.push("$"+c);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n}},function(e,t,n){"use strict";var o=n(10);e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var o=n(9),i=n(51),r=i(o("String.prototype.indexOf"));e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&r(e,".prototype.")>-1?i(n):n}},function(e,t,n){"use strict";var o=n(10),i=n(9),r=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||o.call(a,r),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(o,a,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return s(o,r,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){function o(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function i(e){return String(e).replace(/"/g,"&quot;")}function r(e){return!("[object Array]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function a(e){return!("[object Date]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function s(e){return!("[object RegExp]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function l(e){return!("[object Error]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function c(e){return!("[object String]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function u(e){return!("[object Number]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function d(e){return!("[object Boolean]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function p(e){if(Z)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!X)return!1;try{return X.call(e),!0}catch(e){}return!1}function f(e){if(!e||"object"!=typeof e||!z)return!1;try{return z.call(e),!0}catch(e){}return!1}function h(e,t){return oe.call(e,t)}function m(e){return K.call(e)}function g(e){if(e.name)return e.name;var t=W.call(Y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function v(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function y(e){if(!M||!e||"object"!=typeof e)return!1;try{M.call(e);try{B.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}function _(e){if(!G||!e||"object"!=typeof e)return!1;try{G.call(e,G);try{J.call(e,J)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}function b(e){if(!j||!e||"object"!=typeof e)return!1;try{return j.call(e),!0}catch(e){}return!1}function S(e){if(!B||!e||"object"!=typeof e)return!1;try{B.call(e);try{M.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}function E(e){if(!J||!e||"object"!=typeof e)return!1;try{J.call(e,J);try{G.call(e,G)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}function A(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}function T(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return T(e.slice(0,t.maxStringLength),t)+i}return o(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,P),"single",t)}function P(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function O(e){return"Object("+e+")"}function C(e){return e+" { ? }"}function k(e,t,n,o){return e+" ("+t+") {"+(o?I(n,o):n.join(", "))+"}"}function R(e){for(var t=0;t<e.length;t++)if(v(e[t],"\n")>=0)return!1;return!0}function L(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}function I(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function N(e,t){var n=r(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=h(e,i)?t(e[i],e):""}var a,s="function"==typeof q?q(e):[];if(Z){a={};for(var l=0;l<s.length;l++)a["$"+s[l]]=s[l]}for(var c in e)h(e,c)&&(n&&String(Number(c))===c&&c<e.length||Z&&a["$"+c]instanceof Symbol||(/[^\w$]/.test(c)?o.push(t(c,e)+": "+t(e[c],e)):o.push(c+": "+t(e[c],e))));if("function"==typeof q)for(var u=0;u<s.length;u++)Q.call(e,s[u])&&o.push("["+t(s[u])+"]: "+t(e[s[u]],e));return o}var w="function"==typeof Map&&Map.prototype,D=Object.getOwnPropertyDescriptor&&w?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,M=w&&D&&"function"==typeof D.get?D.get:null,x=w&&Map.prototype.forEach,F="function"==typeof Set&&Set.prototype,U=Object.getOwnPropertyDescriptor&&F?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,B=F&&U&&"function"==typeof U.get?U.get:null,V=F&&Set.prototype.forEach,G="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,J="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,j="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,H=Boolean.prototype.valueOf,K=Object.prototype.toString,Y=Function.prototype.toString,W=String.prototype.match,z="function"==typeof BigInt?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Z="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Q=Object.prototype.propertyIsEnumerable,$=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),ee=n(53).custom,te=ee&&p(ee)?ee:null,ne="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;e.exports=function e(t,n,P,w){function D(t,n,o){if(n&&(w=w.slice()).push(n),o){var i={depth:F.depth};return h(F,"quoteStyle")&&(i.quoteStyle=F.quoteStyle),e(t,i,P+1,w)}return e(t,F,P+1,w)}var F=n||{};if(h(F,"quoteStyle")&&"single"!==F.quoteStyle&&"double"!==F.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(h(F,"maxStringLength")&&("number"==typeof F.maxStringLength?F.maxStringLength<0&&F.maxStringLength!==1/0:null!==F.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var U=!h(F,"customInspect")||F.customInspect;if("boolean"!=typeof U&&"symbol"!==U)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(h(F,"indent")&&null!==F.indent&&"\t"!==F.indent&&!(parseInt(F.indent,10)===F.indent&&F.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return T(t,F);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var G=void 0===F.depth?5:F.depth;if(void 0===P&&(P=0),P>=G&&G>0&&"object"==typeof t)return r(t)?"[Array]":"[Object]";var J=L(F,P);if(void 0===w)w=[];else if(v(w,t)>=0)return"[Circular]";if("function"==typeof t){var j=g(t),K=N(t,D);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(K.length>0?" { "+K.join(", ")+" }":"")}if(p(t)){var Y=Z?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(t);return"object"!=typeof t||Z?Y:O(Y)}if(A(t)){for(var W="<"+String(t.nodeName).toLowerCase(),q=t.attributes||[],Q=0;Q<q.length;Q++)W+=" "+q[Q].name+"="+o(i(q[Q].value),"double",F);return W+=">",t.childNodes&&t.childNodes.length&&(W+="..."),W+"</"+String(t.nodeName).toLowerCase()+">"}if(r(t)){if(0===t.length)return"[]";var ee=N(t,D);return J&&!R(ee)?"["+I(ee,J)+"]":"[ "+ee.join(", ")+" ]"}if(l(t)){var oe=N(t,D);return 0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+oe.join(", ")+" }"}if("object"==typeof t&&U){if(te&&"function"==typeof t[te])return t[te]();if("symbol"!==U&&"function"==typeof t.inspect)return t.inspect()}if(y(t)){var ie=[];return x.call(t,(function(e,n){ie.push(D(n,t,!0)+" => "+D(e,t))})),k("Map",M.call(t),ie,J)}if(S(t)){var re=[];return V.call(t,(function(e){re.push(D(e,t))})),k("Set",B.call(t),re,J)}if(_(t))return C("WeakMap");if(E(t))return C("WeakSet");if(b(t))return C("WeakRef");if(u(t))return O(D(Number(t)));if(f(t))return O(D(z.call(t)));if(d(t))return O(H.call(t));if(c(t))return O(D(String(t)));if(!a(t)&&!s(t)){var ae=N(t,D),se=$?$(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",ce=!se&&ne&&Object(t)===t&&ne in t?m(t).slice(8,-1):le?"Object":"",ue=(se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ce||le?"["+[].concat(ce||[],le||[]).join(": ")+"] ":"");return 0===ae.length?ue+"{}":J?ue+"{"+I(ae,J)+"}":ue+"{ "+ae.join(", ")+" }"}return String(t)};var oe=Object.prototype.hasOwnProperty||function(e){return e in this}},function(e,t){},function(e,t,n){"use strict";var o=n(16),i=Object.prototype.hasOwnProperty,r=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,d),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?h="utf-8":"utf8=%26%2310003%3B"===p[n]&&(h="iso-8859-1"),f=n,n=p.length);for(n=0;n<p.length;++n)if(n!==f){var m,g,v=p[n],y=v.indexOf("]="),_=-1===y?v.indexOf("="):y+1;-1===_?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,_),a.decoder,h,"key"),g=o.maybeMap(l(v.slice(_+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=r(g)?[g]:g),i.call(c,m)?c[m]=o.combine(c[m],g):c[m]=g}return c},u=function(e,t,n,o){for(var i=o?t:l(t,n),r=e.length-1;r>=0;--r){var a,s=e[r];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[c]=i:a={0:i}}i=a}return i},d=function(e,t,n,o){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(r),c=l?r.slice(0,l.index):r,d=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;d.push(c)}for(var p=0;n.depth>0&&null!==(l=s.exec(r))&&p<n.depth;){if(p+=1,!n.plainObjects&&i.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(l[1])}return l&&d.push("["+r.slice(l.index)+"]"),u(d,t,n,o)}},p=function(e){if(!e)return a;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;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,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,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,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,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var i="string"==typeof e?c(e,n):e,r=n.plainObjects?Object.create(null):{},a=Object.keys(i),s=0;s<a.length;++s){var l=a[s],u=d(l,i[l],n,"string"==typeof e);r=o.merge(r,u,n)}return!0===n.allowSparse?r:o.compact(r)}},function(e,t,n){"use strict";var o,i,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};!function(a){var s=!1;if(void 0!==(i="function"==typeof(o=a)?o.call(t,n,t,e):o)&&(e.exports=i),s=!0,"object"===r(t)&&(e.exports=a(),s=!0),!s){var l=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=l,c}}}((function(){function e(n){function o(e,i,r){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=t({path:"/"},o.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",i,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u<l.length;u++){var d=l[u].split("="),p=d.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var f=d[0].replace(c,decodeURIComponent);if(p=n.read?n.read(p,f):n(p,f)||p.replace(c,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(e===f){a=p;break}e||(a[f]=p)}catch(e){}}return a}}return o.set=o,o.get=function(e){return o.call(o,e)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(e,n){o(e,"",t(n,{expires:-1}))},o.withConverter=e,o}var t=function(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t};return e((function(){}))}))},function(e,t,n){"use strict";function o(e,t){return t=t||"litix.io",(e=e||"").match(/^[a-z0-9]+$/)?"https://"+e+"."+t:"https://img.litix.io/a.gif"}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=function(){var e=void 0;switch(r()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},r=function(){var e=o.default.navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};t.default=i},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(0)),r=o(n(4)),a=o(n(59)),s=o(n(1)),l=o(n(17)),c=!!i.default.XMLHttpRequest&&"withCredentials"in new i.default.XMLHttpRequest,u={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:5e3},d=function(e,t){this._beaconUrl=e||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=(0,s.default)({},u,t)};d.prototype.queueEvent=function(e,t){var n=(0,s.default)({},t);return c?(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength):(a.default.send(this._beaconUrl,n),!0)},d.prototype.flushEvents=function(){c&&(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},d.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),i.default.clearTimeout(this._sendTimeout)},d.prototype._clearBeaconQueue=function(){var e=i.default.navigator,t=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,n=this._eventQueue.slice(t);if(t>0&&(0,s.default)(n[n.length-1],(0,l.default)({mux_view_message:"event queue truncated"})),e.sendBeacon)e.sendBeacon(this._beaconUrl,JSON.stringify({events:n}));else if(i.default.XMLHttpRequest){var o=new i.default.XMLHttpRequest;o.open("POST",this._beaconUrl),o.setRequestHeader("Content-Type","application/json"),o.send(JSON.stringify({events:n}))}else a.default.send(this._beaconUrl,n[n.length-1])},d.prototype._sendBeaconQueue=function(){var e=this;if(i.default.XMLHttpRequest&&!this._postInFlight){var t=new i.default.XMLHttpRequest,n=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0,t.onreadystatechange=function(){4===t.readyState&&(200!==t.status?(e._eventQueue=n.concat(e._eventQueue),e._failureCount+=1,r.default.info("Error sending beacon: "+t.status),r.default.info(t.responseText)):e._failureCount=0,e._postInFlight=!1)},t.open("POST",this._beaconUrl),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify({events:n}))}},d.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},d.prototype._startBeaconSending=function(){var e=this;i.default.clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=i.default.setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},t.default=d},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(15)),r=o(n(0)),a={send:function(e,t){function n(){o.src=s+(a?"&rc="+a:"")}var o=new Image,a=0,s=e+"?"+i.default.stringify(t);return o.addEventListener("error",(function(){a>3||r.default.setTimeout((function(){a++,n()}),5e3*a)})),n(),o}};t.default=a},function(e,t,n){"use strict";function o(){function e(e,t){var n=t.request_start,l=t.request_response_start,c=t.request_response_end,u=t.request_bytes_loaded;a++;var d=void 0,p=void 0;if(l?(d=l-n,p=c-l):p=c-n,p>0&&u>0){var f=u/p*8e3;s++,i+=u,r+=p,this.data.view_min_request_throughput=Math.min(this.data.view_min_request_throughput||1/0,f),this.data.view_average_request_throughput=i/r*8e3,this.data.view_request_count=a,d>0&&(o+=d,this.data.view_max_request_latency=Math.max(this.data.view_max_request_latency||0,d),this.data.view_average_request_latency=o/s)}}function t(e,t){a++,l++,this.data.view_request_count=a,this.data.view_request_failed_count=l}function n(e,t){a++,c++,this.data.view_request_count=a,this.data.view_request_canceled_count=c}var o=0,i=0,r=0,a=0,s=0,l=0,c=0;this.on("requestcompleted",e),this.on("requestfailed",t),this.on("requestcanceled",n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t,n){"use strict";function o(e,t,n){var o=(0,s.findMediaElement)(t),u=r(o,3),d=u[0],p=u[1],f=u[2],h=e.log,m=e.utils.getComputedStyle,g=e.utils.secondsToMs,v={automaticErrorTracking:!0};if(!d)return h.error("No element was found with the `"+p+"` query selector.");if("video"!==f&&"audio"!==f)return h.error("The element of `"+p+"` was not a media element.");(n=(0,a.default)(v,n)).data=(0,a.default)({player_software:"HTML5 Video Element",player_software_version:"No Versions",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:"4.2.3"},n.data),n.getPlayheadTime=function(){return g(d.currentTime)},n.getStateData=function(){var e=this.hlsjs&&this.hlsjs.url,t=this.dashjs&&i("function"===this.dashjs.getSource)&&this.dashjs.getSource();return{player_is_paused:d.paused,player_playhead_time:g(d.currentTime),player_width:parseInt(m(d,"width")),player_height:parseInt(m(d,"height")),player_autoplay_on:d.autoplay,player_preload_on:d.preload,video_poster_url:d.poster,video_source_url:e||t||d.currentSrc,video_source_duration:g(d.duration),video_source_height:d.videoHeight,video_source_width:d.videoWidth}},d.mux=d.mux||{},d.mux.deleted=!1,d.mux.emit=function(t,n){e.emit(p,t,n)};var y=function(){h.error("The monitor for this video element has already been destroyed.")};d.mux.destroy=function(){Object.keys(d.mux.listeners).forEach((function(e){d.removeEventListener(e,d.mux.listeners[e],!1)})),delete d.mux.listeners,d.mux.destroy=y,d.mux.swapElement=y,d.mux.emit=y,d.mux.addHLSJS=y,d.mux.addDashJS=y,d.mux.removeHLSJS=y,d.mux.removeDashJS=y,d.mux.deleted=!0,e.emit(p,"destroy")},d.mux.swapElement=function(t){var n=(0,s.findMediaElement)(t),o=r(n,3),i=o[0],l=o[1],c=o[2];return i?"video"!==c&&"audio"!==c?e.log.error("The element of `"+l+"` was not a media element."):(i.muxId=d.muxId,delete d.muxId,i.mux=i.mux||{},i.mux.listeners=(0,a.default)({},d.mux.listeners),delete d.mux.listeners,Object.keys(i.mux.listeners).forEach((function(e){d.removeEventListener(e,i.mux.listeners[e],!1),i.addEventListener(e,i.mux.listeners[e],!1)})),i.mux.swapElement=d.mux.swapElement,i.mux.destroy=d.mux.destroy,delete d.mux,void(d=i)):e.log.error("No element was found with the `"+l+"` query selector.")},d.mux.addHLSJS=function(t){e.addHLSJS(p,t)},d.mux.addDashJS=function(t){e.addDashJS(p,t)},d.mux.removeHLSJS=function(){e.removeHLSJS(p)},d.mux.removeDashJS=function(){e.removeDashJS(p)},e.init(p,n),e.emit(p,"playerready"),d.paused||(e.emit(p,"play"),d.readyState>2&&e.emit(p,"playing")),d.mux.listeners={},l.forEach((function(t){("error"!==t||n.automaticErrorTracking)&&(d.mux.listeners[t]=function(){var n={};if("error"===t){if(!d.error)return;n.player_error_code=d.error.code,n.player_error_message=c[d.error.code]||d.error.message}e.emit(p,t,n)},d.addEventListener(t,d.mux.listeners[t],!1))}))}Object.defineProperty(t,"__esModule",{value:!0});var 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},r=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=o;var a=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),s=n(12),l=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],c={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(63)),r=o(n(2)),a=o(n(64)),s=o(n(65)),l=o(n(1)),c=o(n(8)),u=n(5),d=o(n(3)),p={};p.safeCall=i.default,p.safeIncrement=r.default,p.getComputedStyle=a.default,p.secondsToMs=s.default,p.assign=l.default,p.headersStringToObject=c.default,p.extractHostnameAndDomain=u.extractHostnameAndDomain,p.extractHostname=u.extractHostname,p.now=d.default.now,t.default=p},function(e,t,n){"use strict";function o(e,t,n,o){var r=o;if(e&&"function"==typeof e[t])try{r=e[t].apply(e,n)}catch(e){i.default.info("safeCall error",e)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(4))},function(e,t,n){"use strict";function o(e,t){if(e&&t&&i.default&&"function"==typeof i.default.getComputedStyle){var n=void 0;return r&&r.has(e)&&(n=r.get(e)),n||(n=i.default.getComputedStyle(e,null),r&&r.set(e,n)),n.getPropertyValue(t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),r=void 0;i.default&&i.default.WeakMap&&(r=new WeakMap)},function(e,t,n){"use strict";function o(e){return Math.floor(1e3*e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}])},72260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyzerServiceClient=void 0;const o=n(33892),i=n(87873),r=n(89730);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subLoudness(e,t){const n="spotify.analyzer_esperanto.proto.AnalyzerService",a="SubLoudness",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.LoudnessResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}static SERVICE_ID="spotify.analyzer_esperanto.proto.AnalyzerService";static DECODERS={SubLoudness:{request:i.Empty.decode,response:r.LoudnessResponse.decode}}}t.AnalyzerServiceClient=a},37834:(e,t,n)=>{"use strict";t.Fo=void 0;var o=n(72260);Object.defineProperty(t,"Fo",{enumerable:!0,get:function(){return o.AnalyzerServiceClient}});var i=n(89730)},87873:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},89730:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoudnessResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.analyzer_esperanto.proto",t.LoudnessResponse={encode(e,t=r.default.Writer.create()){t.uint32(10).fork();for(const n of e.loudness)t.int32(n);return t.ldelim(),""!==e.playbackId&&t.uint32(18).string(e.playbackId),"0"!==e.position&&t.uint32(24).uint64(e.position),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={loudness:[],playbackId:"",position:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.loudness.push(n.int32())}else i.loudness.push(n.int32());break;case 2:i.playbackId=n.string();break;case 3:i.position=n.uint64().toString();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({loudness:Array.isArray(e?.loudness)?e.loudness.map((e=>Number(e))):[],playbackId:a(e.playbackId)?String(e.playbackId):"",position:a(e.position)?String(e.position):"0"}),toJSON(e){const t={};return e.loudness?t.loudness=e.loudness.map((e=>Math.round(e))):t.loudness=[],void 0!==e.playbackId&&(t.playbackId=e.playbackId),void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t={loudness:[],playbackId:"",position:"0"};return t.loudness=e.loudness?.map((e=>e))||[],t.playbackId=e.playbackId??"",t.position=e.position??"0",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},19312:(e,t,n)=>{"use strict";n.d(t,{ArtistNpv:()=>Ot});var o=n(59496);function i(e){return o.createElement("div",{className:`npv-video-overlay npv-video-overlay--${e.mediaType} ${e.isActive&&"npv-video-overlay--active"} ${e.trackMetadataVisible&&"npv-video-overlay--visible"}`},o.createElement("div",{className:`npv-video-overlay-top ${e.contextMetadataVisible&&"npv-video-overlay-top--active"}`}))}const r=o.createContext((()=>0)),a=o.createContext(0);function s(){const e=(0,o.useContext)(r);return(0,o.useMemo)(e,[e])}function l(){return(0,o.useContext)(a)}function c(e=0,t){const n=36e5,o=Math.floor(e/1e3),i=Math.floor(o/60),r=u(i%60),a=u(o%60);if(void 0===t?e>=n:t>=n){return`${u(Math.floor(i/60))}:${r}:${a}`}return`${r}:${a}`}function u(e){return e<10?`0${e}`:`${e}`}var d=n(49823);const p=({visible:e,children:t,disableAnimationsAndTransitions:n=!1,classNames:i="fade-in-and-out-transition",timeout:r=500,onEnter:a,onEntered:s,onExit:l,onExited:c})=>t?n?e?o.createElement(o.Fragment,null,t):null:o.createElement(d.Z,{in:e,appear:!0,mountOnEnter:!0,unmountOnExit:!0,classNames:i,timeout:r,onEnter:a,onEntered:s,onExit:l,onExited:c},t):null;function f(e){const t={animation:function(e,t=1){const n=s(),[i,r]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const e=setTimeout((()=>r(!1)),100);return r(!0),()=>clearTimeout(e)}),[n,e]),function(e,o){return void 0===e?"":`${"spotifyinternal-artistnpv-"+(i?"progress-reset":"progress")} ${e/t}ms linear -${n}ms ${o?"paused":"running"}`}}(e.duration,e.playbackSpeed)(e.duration,e.isPaused)};return o.createElement(p,{visible:e.progressBarVisible,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,classNames:`npv-progress-bar-transition--${e.mediaType}`},o.createElement("div",{className:"npv-progress-bar"},o.createElement("div",{className:"npv-progress-bar__bar"},o.createElement("div",{className:"npv-progress-bar__rail"}),o.createElement("div",{className:"npv-progress-bar__mark",style:t})),o.createElement("div",{className:"npv-progress-bar__timestamp"},o.createElement("time",{className:"npv-progress-bar__time npv-progress-bar__position"},o.createElement(h,{duration:e.duration})),o.createElement("time",{className:"npv-progress-bar__time npv-progress-bar__duration"},c(e.duration)))))}function h({duration:e}){const t=l();return o.createElement(o.Fragment,null,c(t,e))}const m=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z"}),o.createElement("path",{d:"M7.25 9V4h1.5v5h-1.5zm0 3.026v-1.5h1.5v1.5h-1.5z"})),g=(0,o.memo)(m),v=e=>{var t;return o.createElement(o.Fragment,null,o.createElement(g,{className:"npv-modal__icon"}),o.createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title),e.errorDetails&&o.createElement("p",{className:"npv-modal__text npv-modal__details"},e.errorDetails))},y=({indicatorSize:e="md",className:t})=>o.createElement("div",{className:`${t} npv-loading-indicator`},o.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),o.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),o.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`})),_=()=>o.createElement(y,null),b=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M1.665 15.226a.67.67 0 0 0 .915-.245l7.675-13.292a.67.67 0 1 0-1.161-.67L7.95 3H5a5 5 0 0 0-2.453 9.358L1.42 14.31a.67.67 0 0 0 .245.915zm1.632-4.167A3.5 3.5 0 0 1 5 4.5h2.084l-3.787 6.559zm2.368 4.167a.67.67 0 0 0 .915-.245L7.724 13H11a5 5 0 0 0 2.203-9.49l1.052-1.82a.67.67 0 1 0-1.161-.671L5.42 14.311a.67.67 0 0 0 .245.915zM12.45 4.814A3.501 3.501 0 0 1 11 11.5H8.59l3.86-6.686z"})),S=(0,o.memo)(b),E=e=>{var t;return o.createElement(o.Fragment,null,o.createElement(S,{className:"npv-modal__icon"}),o.createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title))},A={ar:JSON.parse('{"ERROR_GENERIC":"حدث خطأ ما","PLAYING_FROM_X":"أنت تستمع إلى الأغاني من {CONTEXT}","CONTEXT_ALBUM":"ألبوم","CONTEXT_SEARCH":"بحث","CONTEXT_TRACK":"مقطع صوتي","CONTEXT_PLAYLIST":"قائمة الأغاني","CONTEXT_COLLECTION":"مجموعة","CONTEXT_RADIO":"راديو","CONTEXT_STATION":"راديو","CONTEXT_EPISODE":"بودكاست","CONTEXT_SHOW":"عرض","CONTEXT_ARTIST":"فنان","CONTEXT_AUDIOBOOK":"كتاب صوتي","NOTIFICATION_UP_NEXT":"التالي","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"يبدو أنه ليس لدينا كلمات لهذه الأغنية.","NO_LYRICS_MSG_2":"عذراً، ما زلنا نحاول الحصول على الكلمات.","NO_LYRICS_MSG_3":"نحن لا نعرف كلمات هذه الأغنية.","NO_LYRICS_MSG_4":"للأسف، عليك تخمين الكلمات بنفسك.","LYRICS_CREDITS":"مُرخّصة ومزوّدة من قِبل {PROVIDER}","LYRICS_UNSYNCED":"لم تتم مزامنة هذه الكلمات مع الأغنية حتى الآن.","LYRICS_ERROR_MESSAGE":"تعذَّر تحميل كلمات هذه الأغنية. يرجى إعادة المحاولة لاحقاً."}'),cs:JSON.parse('{"ERROR_GENERIC":"Něco se pokazilo.","PLAYING_FROM_X":"Zdroj pro přehrávání: {CONTEXT}","CONTEXT_ALBUM":"Album","CONTEXT_SEARCH":"hledání","CONTEXT_TRACK":"nahrávka","CONTEXT_PLAYLIST":"Playlist","CONTEXT_COLLECTION":"sbírka","CONTEXT_RADIO":"rádio","CONTEXT_STATION":"rádio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"pořad","CONTEXT_ARTIST":"umělec","CONTEXT_AUDIOBOOK":"audioknihy","NOTIFICATION_UP_NEXT":"Následuje","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Vypadá to, že text téhle skladby nemáme.","NO_LYRICS_MSG_2":"Teď jsi nás načapal/a, stále se snažíme získat text.","NO_LYRICS_MSG_3":"Hmm. K tomu text neznáme.","NO_LYRICS_MSG_4":"Promiň, ale text si budeš muset domyslet.","LYRICS_CREDITS":"Licencuje a poskytuje: {PROVIDER}","LYRICS_UNSYNCED":"Tenhle text ještě není synchronizovaný se skladbou.","LYRICS_ERROR_MESSAGE":"Text skladby se nepodařilo načíst. Zkus to prosím později."}'),de:JSON.parse('{"ERROR_GENERIC":"Irgendwas ist schiefgelaufen.","PLAYING_FROM_X":"Wiedergabe von {CONTEXT}","CONTEXT_ALBUM":"Album","CONTEXT_SEARCH":"Suche","CONTEXT_TRACK":"Titel","CONTEXT_PLAYLIST":"Playlist","CONTEXT_COLLECTION":"Sammlung","CONTEXT_RADIO":"Radio","CONTEXT_STATION":"Radio","CONTEXT_EPISODE":"Podcast","CONTEXT_SHOW":"Show","CONTEXT_ARTIST":"Künstler*in","CONTEXT_AUDIOBOOK":"Hörbuch","NOTIFICATION_UP_NEXT":"Als Nächstes","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Leider haben wir den Text zu diesem Song nicht.","NO_LYRICS_MSG_2":"Jetzt hast du uns erwischt, wir arbeiten noch am Songtext.","NO_LYRICS_MSG_3":"Hmm. Wir kennen den Text zu diesem Song leider nicht.","NO_LYRICS_MSG_4":"Tut uns leid, bei diesem Song musst du beim Text improvisieren.","LYRICS_CREDITS":"Lizenzierung und Bereitstellung durch {PROVIDER}","LYRICS_UNSYNCED":"Dieser Songtext ist noch nicht auf den Song abgestimmt.","LYRICS_ERROR_MESSAGE":"Der Text zu diesem Song konnte nicht geladen werden. Versuchs später nochmal."}'),el:JSON.parse('{"ERROR_GENERIC":"Κάτι δεν πήγε καλά","PLAYING_FROM_X":"Αναπαραγωγή από {CONTEXT}","CONTEXT_ALBUM":"άλμπουμ","CONTEXT_SEARCH":"αναζήτηση","CONTEXT_TRACK":"κομμάτι","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"συλλογή","CONTEXT_RADIO":"ραδιόφωνο","CONTEXT_STATION":"ραδιόφωνο","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"εκπομπή","CONTEXT_ARTIST":"καλλιτέχνης","CONTEXT_AUDIOBOOK":"Ηχητικό βιβλίο","NOTIFICATION_UP_NEXT":"ΕΠΟΜΕΝΟ","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Φαίνεται ότι δεν έχουμε τους στίχους αυτού του τραγουδιού.","NO_LYRICS_MSG_2":"Μας τσάκωσες, ακόμα προσπαθούμε να βρούμε τους στίχους.","NO_LYRICS_MSG_3":"Χμ... Δεν ξέρουμε τους στίχους του.","NO_LYRICS_MSG_4":"Συγγνώμη. Θα πρέπει να μαντέψεις τους στίχους.","LYRICS_CREDITS":"Οι στίχοι παρέχονται κατόπιν άδειας από την {PROVIDER}","LYRICS_UNSYNCED":"Αυτοί οι στίχοι δεν είναι ακόμα συγχρονισμένοι με το τραγούδι.","LYRICS_ERROR_MESSAGE":"Δεν ήταν δυνατή η φόρτωση των στίχων γι\' αυτό το τραγούδι. Δοκίμασε ξανά αργότερα."}'),en:JSON.parse('{"ERROR_GENERIC":"Something went wrong","PLAYING_FROM_X":"Playing from {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"search","CONTEXT_TRACK":"track","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artist","CONTEXT_AUDIOBOOK":"audiobook","NOTIFICATION_UP_NEXT":"Up Next","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Looks like we don\'t have the lyrics to this song.","NO_LYRICS_MSG_2":"You caught us, we\'re still working on getting lyrics.","NO_LYRICS_MSG_3":"Hmm. We don\'t know the lyrics for this one.","NO_LYRICS_MSG_4":"Sorry, you\'ll have to guess the lyrics.","LYRICS_CREDITS":"Licensed & Provided by {PROVIDER}","LYRICS_UNSYNCED":"These lyrics arent synced to the song yet.","LYRICS_ERROR_MESSAGE":"Couldnt load the lyrics for this song. Try again later."}'),"es-419":JSON.parse('{"ERROR_GENERIC":"Algo salió mal","PLAYING_FROM_X":"Reproduciendo desde {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"canción","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"colección","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolibro","NOTIFICATION_UP_NEXT":"Siguiente","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Parece que no tenemos la letra de esta canción.","NO_LYRICS_MSG_2":"Nos descubriste, todavía estamos trabajando para conseguir la letra.","NO_LYRICS_MSG_3":"Mmm… No nos sabemos esta letra.","NO_LYRICS_MSG_4":"Lo sentimos, tendrás que adivinar la letra esta vez.","LYRICS_CREDITS":"Licencias y distribución por {PROVIDER}","LYRICS_UNSYNCED":"La letra todavía no está sincronizada con la canción.","LYRICS_ERROR_MESSAGE":"No se pudo cargar la letra de esta canción. Inténtalo de nuevo más tarde."}'),es:JSON.parse('{"ERROR_GENERIC":"Algo no ha ido como debía","PLAYING_FROM_X":"Reproduciendo desde {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"canción","CONTEXT_PLAYLIST":"lista","CONTEXT_COLLECTION":"colección","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"pódcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolibro","NOTIFICATION_UP_NEXT":"A continuación","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Parece que no tenemos la letra de esta canción.","NO_LYRICS_MSG_2":"¡Nos has pillado! Aún estamos aprendiéndonos la letra de esta.","NO_LYRICS_MSG_3":"Vaya. La verdad es que no nos sabemos la letra de esta.","NO_LYRICS_MSG_4":"Lo sentimos, pero la letra de esta la vas a tener que sacar tú.","LYRICS_CREDITS":"Letra licenciada y proporcionada por {PROVIDER}","LYRICS_UNSYNCED":"Esta letra aún no está sincronizada con la canción.","LYRICS_ERROR_MESSAGE":"No se ha podido cargar la letra de esta canción. Inténtalo de nuevo más tarde."}'),fi:JSON.parse('{"ERROR_GENERIC":"Jotain meni vikaan","PLAYING_FROM_X":"Toistetaan täältä: {CONTEXT}","CONTEXT_ALBUM":"albumi","CONTEXT_SEARCH":"haku","CONTEXT_TRACK":"kappale","CONTEXT_PLAYLIST":"soittolista","CONTEXT_COLLECTION":"kokoelma","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"ohjelma","CONTEXT_ARTIST":"artisti","CONTEXT_AUDIOBOOK":"äänikirja","NOTIFICATION_UP_NEXT":"Seuraavana vuorossa","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Vaikuttaa siltä, että meillä ei ole tämän kappaleen sanoja.","NO_LYRICS_MSG_2":"Kiinni jäimme. Sanat ovat vielä työn alla.","NO_LYRICS_MSG_3":"Hmm. Emme tiedä tämän sanoja.","NO_LYRICS_MSG_4":"Pahoittelut, sinun täytyy toistaiseksi yrittää kuunnella sanoja itse.","LYRICS_CREDITS":"Lisenssin haltija ja tarjoaja: {PROVIDER}","LYRICS_UNSYNCED":"Näitä sanoja ei ole vielä synkronoitu kappaleeseen.","LYRICS_ERROR_MESSAGE":"Tämän kappaleen sanoja ei voitu ladata. Yritä myöhemmin uudelleen."}'),"fr-CA":JSON.parse('{"ERROR_GENERIC":"Une erreur s\'est produite","PLAYING_FROM_X":"Lecture à partir de {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"rechercher","CONTEXT_TRACK":"titre","CONTEXT_PLAYLIST":"liste de lecture","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"balado","CONTEXT_SHOW":"émission","CONTEXT_ARTIST":"artiste","CONTEXT_AUDIOBOOK":"Livre audio","NOTIFICATION_UP_NEXT":"Prochains titres","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"On dirait que nous n\'avons pas les paroles de cette chanson.","NO_LYRICS_MSG_2":"Vous avez été trop rapide pour nous, nous tentons d\'obtenir les paroles.","NO_LYRICS_MSG_3":"Hum. Nous ne connaissons pas les paroles de cette chanson.","NO_LYRICS_MSG_4":"Nous sommes désolés! Vous devrez deviner les paroles.","LYRICS_CREDITS":"Autorisées et fournies par {PROVIDER}","LYRICS_UNSYNCED":"Ces paroles ne sont pas encore synchronisées avec la chanson.","LYRICS_ERROR_MESSAGE":"Impossible de charger les paroles de cette chanson. Réessayez plus tard."}'),fr:JSON.parse('{"ERROR_GENERIC":"Une erreur s\'est produite.","PLAYING_FROM_X":"Lecture à partir de {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"rechercher","CONTEXT_TRACK":"titre","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"émission","CONTEXT_ARTIST":"artiste","CONTEXT_AUDIOBOOK":"livre audio","NOTIFICATION_UP_NEXT":"Prochains titres","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Il semble que nous ne disposions pas des paroles de ce titre.","NO_LYRICS_MSG_2":"Vous nous avez pris de court, nous essayons encore d\'obtenir les paroles.","NO_LYRICS_MSG_3":"Hum, nous ne connaissons pas les paroles de ce titre.","NO_LYRICS_MSG_4":"Désolés, vous allez devoir deviner les paroles.","LYRICS_CREDITS":"Autorisées sous licence et fournies par {PROVIDER}","LYRICS_UNSYNCED":"Ces paroles n\'ont pas encore été synchronisées avec le titre.","LYRICS_ERROR_MESSAGE":"Impossible de charger les paroles de ce titre. Veuillez réessayer plus tard."}'),hu:JSON.parse('{"ERROR_GENERIC":"Valami hiba történt","PLAYING_FROM_X":"Lejátszás: {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"keresés","CONTEXT_TRACK":"szám","CONTEXT_PLAYLIST":"műsorlista","CONTEXT_COLLECTION":"gyűjtemény","CONTEXT_RADIO":"rádió","CONTEXT_STATION":"rádió","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"műsor","CONTEXT_ARTIST":"előadó","CONTEXT_AUDIOBOOK":"hangoskönyv","NOTIFICATION_UP_NEXT":"Program","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Úgy tűnik, nincs meg nekünk a dal szövege.","NO_LYRICS_MSG_2":"Most lebuktunk, még dolgozunk ennek a dalszövegnek a megszerzésén.","NO_LYRICS_MSG_3":"Hmm. Ennek a dalnak nem tudjuk a szövegét.","NO_LYRICS_MSG_4":"Bocsi, de muszáj lesz egyedül kitalálnod a dalszöveget.","LYRICS_CREDITS":"Tulajdonos és szolgáltató: {PROVIDER}","LYRICS_UNSYNCED":"Ezt a dalszöveget még nem szinkronizáltuk a dallal.","LYRICS_ERROR_MESSAGE":"Nem sikerült betölteni a dalszöveget ehhez a dalhoz. Próbálkozz újra később."}'),id:JSON.parse('{"ERROR_GENERIC":"Ada yang salah","PLAYING_FROM_X":"Memutar dari {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"cari","CONTEXT_TRACK":"track","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"koleksi","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"acara","CONTEXT_ARTIST":"artis","CONTEXT_AUDIOBOOK":"buku audio","NOTIFICATION_UP_NEXT":"Berikutnya","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Tampaknya kami tidak punya lirik lagu ini.","NO_LYRICS_MSG_2":"Ups, kami masih terus berusaha mengumpulkan lirik.","NO_LYRICS_MSG_3":"Hmm. Kami juga tidak tahu lirik lagu ini.","NO_LYRICS_MSG_4":"Maaf, kamu harus menebak liriknya.","LYRICS_CREDITS":"Berlisensi & Disediakan oleh {PROVIDER}","LYRICS_UNSYNCED":"Lirik ini belum disinkronkan ke lagu.","LYRICS_ERROR_MESSAGE":"Tidak bisa memuat lirik untuk lagu ini. Coba lagi nanti."}'),it:JSON.parse('{"ERROR_GENERIC":"Si è verificato un problema","PLAYING_FROM_X":"Riproduzione da {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"ricerca","CONTEXT_TRACK":"brano","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"libreria","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolibro","NOTIFICATION_UP_NEXT":"In coda","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Il testo di questo brano non è disponibile.","NO_LYRICS_MSG_2":"Ci hai beccato: stiamo ancora lavorando per rendere disponibile il testo di questo brano.","NO_LYRICS_MSG_3":"Uhm. Non conosciamo il testo di questo brano.","NO_LYRICS_MSG_4":"Siamo spiacenti! Dovrai scoprire tu il testo di questo brano.","LYRICS_CREDITS":"Testo fornito in licenza da {PROVIDER}","LYRICS_UNSYNCED":"Questo testo non è ancora sincronizzato con il brano.","LYRICS_ERROR_MESSAGE":"Impossibile caricare il testo di questo brano. Riprova più tardi."}'),ja:JSON.parse('{"ERROR_GENERIC":"エラーが発生したようです","PLAYING_FROM_X":"{CONTEXT} から再生中","CONTEXT_ALBUM":"アルバム","CONTEXT_SEARCH":"検索","CONTEXT_TRACK":"曲","CONTEXT_PLAYLIST":"プレイリスト","CONTEXT_COLLECTION":"コレクション","CONTEXT_RADIO":"ラジオ","CONTEXT_STATION":"ラジオ","CONTEXT_EPISODE":"ポッドキャスト","CONTEXT_SHOW":"ショー","CONTEXT_ARTIST":"アーティスト","CONTEXT_AUDIOBOOK":"オーディオブック","NOTIFICATION_UP_NEXT":"次はこちら","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"この曲の歌詞情報がありません。","NO_LYRICS_MSG_2":"歌詞情報は現在収集中です。","NO_LYRICS_MSG_3":"申し訳ありません。この曲の歌詞情報がありません。","NO_LYRICS_MSG_4":"申し訳ありません。歌詞情報は準備できていません。","LYRICS_CREDITS":"ライセンス&歌詞提供:{PROVIDER}","LYRICS_UNSYNCED":"この歌詞はまだ曲と同期されていません。","LYRICS_ERROR_MESSAGE":"この楽曲の歌詞を読み込めませんでした。しばらくしてから、再度お試しください。"}'),ko:JSON.parse('{"ERROR_GENERIC":"문제가 발생했습니다","PLAYING_FROM_X":"{CONTEXT}에서 재생","CONTEXT_ALBUM":"앨범","CONTEXT_SEARCH":"검색하기","CONTEXT_TRACK":"트랙","CONTEXT_PLAYLIST":"플레이리스트","CONTEXT_COLLECTION":"컬렉션","CONTEXT_RADIO":"라디오","CONTEXT_STATION":"라디오","CONTEXT_EPISODE":"팟캐스트","CONTEXT_SHOW":"Show","CONTEXT_ARTIST":"아티스트","CONTEXT_AUDIOBOOK":"오디오북","NOTIFICATION_UP_NEXT":"다음 순서","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"이 곡은 아직 가사가 없는 것 같습니다.","NO_LYRICS_MSG_2":"죄송합니다. 가사를 아직 준비 중입니다.","NO_LYRICS_MSG_3":"죄송합니다. 가사를 찾을 수 없습니다.","NO_LYRICS_MSG_4":"죄송합니다. 가사가 제공되지 않습니다.","LYRICS_CREDITS":"라이선스 소유 및 가사 제공: {PROVIDER}","LYRICS_UNSYNCED":"가사가 아직 동기화되지 않았습니다.","LYRICS_ERROR_MESSAGE":"이 곡의 가사를 로드할 수 없습니다. 나중에 다시 시도하세요."}'),ms:JSON.parse('{"ERROR_GENERIC":"Sesuatu kesilapan berlaku","PLAYING_FROM_X":"Memainkan dari {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"cari","CONTEXT_TRACK":"lagu","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"koleksi","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"rancangan","CONTEXT_ARTIST":"artis","CONTEXT_AUDIOBOOK":"buku audio","NOTIFICATION_UP_NEXT":"Seterusnya","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Nampaknya kami tiada lirik untuk lagu ini.","NO_LYRICS_MSG_2":"Kami mengaku, kami masih berusaha mendapatkan lirik ini.","NO_LYRICS_MSG_3":"Hmm. Kami tidak tahu lirik untuk lagu ini.","NO_LYRICS_MSG_4":"Maaf, anda perlu meneka lirik ini sendiri.","LYRICS_CREDITS":"Dilesenkan & Disediakan oleh {PROVIDER}","LYRICS_UNSYNCED":"Lirik ini belum disegerakkan dengan lagu tersebut.","LYRICS_ERROR_MESSAGE":"Tidak dapat memuatkan lirik untuk lagu ini. Cuba lagi kemudian."}'),nl:JSON.parse('{"ERROR_GENERIC":"Er is iets fout gegaan.","PLAYING_FROM_X":"Afspelen vanaf {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"zoeken","CONTEXT_TRACK":"nummer","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"verzameling","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artiest","CONTEXT_AUDIOBOOK":"luisterboek","NOTIFICATION_UP_NEXT":"Wachtrij","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Voor dit nummer hebben we geen songtekst.","NO_LYRICS_MSG_2":"Je hebt ons betrapt, we zijn nog steeds bezig met de songtekst.","NO_LYRICS_MSG_3":"Hmm. Hier kennen we de songtekst niet van.","NO_LYRICS_MSG_4":"Helaas! Je zal goed moeten luisteren wat de songtekst is.","LYRICS_CREDITS":"Aangeboden door en onder licentie van {PROVIDER}","LYRICS_UNSYNCED":"Deze songtekst is nog niet gesynchroniseerd met het nummer.","LYRICS_ERROR_MESSAGE":"Kan de songtekst van dit nummer niet laden. Probeer het later opnieuw."}'),pl:JSON.parse('{"ERROR_GENERIC":"Coś się nie udało","PLAYING_FROM_X":"Odtwarzanie z {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"wyszukaj","CONTEXT_TRACK":"utwór","CONTEXT_PLAYLIST":"playlista","CONTEXT_COLLECTION":"kolekcja","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"artysta","CONTEXT_AUDIOBOOK":"audiobooka","NOTIFICATION_UP_NEXT":"Następne","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Chyba nie mamy tekstu tego utworu.","NO_LYRICS_MSG_2":"I tu nas masz. Ciągle staramy się zdobyć tekst tej piosenki.","NO_LYRICS_MSG_3":"Hmmm. My też nie znamy tekstu.","NO_LYRICS_MSG_4":"Przykro nam, musisz improwizować bez tekstu.","LYRICS_CREDITS":"Licencja i udostępnienie: {PROVIDER}","LYRICS_UNSYNCED":"Ten tekst nie jest jeszcze zsynchronizowany czasowo z utworem.","LYRICS_ERROR_MESSAGE":"Nie udało się pobrać tekstu utworu. Spróbuj ponownie później."}'),"pt-BR":JSON.parse('{"ERROR_GENERIC":"Algo deu errado","PLAYING_FROM_X":"Tocando de {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"faixa","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"coleção","CONTEXT_RADIO":"rádio","CONTEXT_STATION":"rádio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","CONTEXT_AUDIOBOOK":"audiolivro","NOTIFICATION_UP_NEXT":"Próxima","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Parece que nós não temos a letra desta música.","NO_LYRICS_MSG_2":"Ih, foi mal! Ainda estamos aprendendo a cantar esta.","NO_LYRICS_MSG_3":"Hmm. Parece que ainda não aprendemos esta letra.","NO_LYRICS_MSG_4":"Eita! Essa letra você vai ter que inventar.","LYRICS_CREDITS":"Licenciada e oferecida por {PROVIDER}","LYRICS_UNSYNCED":"A letra ainda não foi sincronizada com a música.","LYRICS_ERROR_MESSAGE":"Não foi possível carregar a letra desta música. Tente de novo mais tarde."}'),ru:JSON.parse('{"ERROR_GENERIC":"Что-то пошло не так","PLAYING_FROM_X":"Источник: {CONTEXT}","CONTEXT_ALBUM":"альбом","CONTEXT_SEARCH":"поиск","CONTEXT_TRACK":"трек","CONTEXT_PLAYLIST":"плейлист","CONTEXT_COLLECTION":"коллекция","CONTEXT_RADIO":"радио","CONTEXT_STATION":"радио","CONTEXT_EPISODE":"подкаст","CONTEXT_SHOW":"шоу","CONTEXT_ARTIST":"исполнитель","CONTEXT_AUDIOBOOK":"аудиокнига","NOTIFICATION_UP_NEXT":"Далее","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Похоже, у нас нет текста этой песни.","NO_LYRICS_MSG_2":"Увы! Этого текста у нас пока нет.","NO_LYRICS_MSG_3":"Вот так да! Мы не знаем текста этой песни.","NO_LYRICS_MSG_4":"Текста пока нет, придется фантазировать.","LYRICS_CREDITS":"Лицензиар и источник: {PROVIDER}.","LYRICS_UNSYNCED":"Текст этой песни пока не синхронизирован.","LYRICS_ERROR_MESSAGE":"Не удалось загрузить текст песни. Попробуй позже."}'),sv:JSON.parse('{"ERROR_GENERIC":"Något blev fel","PLAYING_FROM_X":"Spelar upp från {CONTEXT}","CONTEXT_ALBUM":"Det här albumet","CONTEXT_SEARCH":"sök","CONTEXT_TRACK":"spår","CONTEXT_PLAYLIST":"Den här spellistan","CONTEXT_COLLECTION":"samling","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podd","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"artist","CONTEXT_AUDIOBOOK":"ljudbok","NOTIFICATION_UP_NEXT":"Nästa","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Vi verkar inte ha texten till den här låten.","NO_LYRICS_MSG_2":"Du kom på oss, vi jobbar fortfarande på att hitta låttexten.","NO_LYRICS_MSG_3":"Hmm. Vi kan inte den här låttexten.","NO_LYRICS_MSG_4":"Vi ber om ursäkt! Du får försöka gissa låttexten.","LYRICS_CREDITS":"Licensierad och tillhandahållen av {PROVIDER}","LYRICS_UNSYNCED":"Den här låttexten är inte synkroniserad med låten än.","LYRICS_ERROR_MESSAGE":"Det gick inte att läsa in låttexten till den här låten. Försök igen senare."}'),th:JSON.parse('{"ERROR_GENERIC":"เกิดข้อผิดพลาด","PLAYING_FROM_X":"กำลังเล่นจาก {CONTEXT}","CONTEXT_ALBUM":"อัลบั้ม","CONTEXT_SEARCH":"ค้นหา","CONTEXT_TRACK":"แทร็ก","CONTEXT_PLAYLIST":"เพลย์ลิสต์","CONTEXT_COLLECTION":"คอลเลกชัน","CONTEXT_RADIO":"วิทยุ","CONTEXT_STATION":"วิทยุ","CONTEXT_EPISODE":"พอดแคสต์","CONTEXT_SHOW":"รายการโชว์","CONTEXT_ARTIST":"ศิลปิน","CONTEXT_AUDIOBOOK":"หนังสือเสียง","NOTIFICATION_UP_NEXT":"ถัดไป","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"ดูเหมือนเราจะไม่มีเนื้อเพลงของเพลงนี้","NO_LYRICS_MSG_2":"โดนจับได้ซะแล้ว เรากำลังหาเนื้อเพลงอยู่","NO_LYRICS_MSG_3":"อืมม เราไม่รู้เนื้อเพลงของเพลงนี้","NO_LYRICS_MSG_4":"ขออภัย คุณคงต้องเดาเนื้อเพลงนี้ไปก่อน","LYRICS_CREDITS":"ได้รับอนุญาตและให้บริการโดย {PROVIDER}","LYRICS_UNSYNCED":"เนื้อเพลงเหล่านี้ยังไม่ได้ซิงค์กับเพลง","LYRICS_ERROR_MESSAGE":"ไม่สามารถโหลดเนื้อเพลงสำหรับเพลงนี้ได้ โปรดลองอีกครั้งในภายหลัง"}'),tr:JSON.parse('{"ERROR_GENERIC":"Bir şeyler ters gitti","PLAYING_FROM_X":"{CONTEXT}\'den çalınıyor","CONTEXT_ALBUM":"albüm","CONTEXT_SEARCH":"ara","CONTEXT_TRACK":"parça","CONTEXT_PLAYLIST":"çalma listesi","CONTEXT_COLLECTION":"koleksiyon","CONTEXT_RADIO":"radyo","CONTEXT_STATION":"radyo","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"sanatçı","CONTEXT_AUDIOBOOK":"sesli kitap","NOTIFICATION_UP_NEXT":"Sıradaki","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Bu şarkının sözlerini şu anda gösteremiyoruz.","NO_LYRICS_MSG_2":"Şarkının sözleri üzerinde çalışıyoruz.","NO_LYRICS_MSG_3":"Hımm. Bu şarkının sözlerini bilmiyoruz.","NO_LYRICS_MSG_4":"Maalesef şarkının sözlerini kendin çıkarman gerekecek.","LYRICS_CREDITS":"Lisans Sahibi ve Sağlayan: {PROVIDER}","LYRICS_UNSYNCED":"Bu şarkı sözleri henüz şarkı ile senkronize değil.","LYRICS_ERROR_MESSAGE":"Bu şarkının sözleri yüklenemedi. Lütfen daha sonra tekrar dene."}'),vi:JSON.parse('{"ERROR_GENERIC":"Đã có sự cố xảy ra","PLAYING_FROM_X":"Phát từ {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"tìm kiếm","CONTEXT_TRACK":"bản nhạc","CONTEXT_PLAYLIST":"danh sách phát","CONTEXT_COLLECTION":"bộ sưu tập","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"chương trình","CONTEXT_ARTIST":"nghệ sĩ","CONTEXT_AUDIOBOOK":"sách nói","NOTIFICATION_UP_NEXT":"Phát tiếp theo","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"Có vẻ như chúng tôi chưa có lời cho bài hát này.","NO_LYRICS_MSG_2":"Bạn thấy đấy, chúng tôi vẫn đang tìm lời cho bài hát này.","NO_LYRICS_MSG_3":"Rất tiếc. Chúng tôi vẫn chưa có lời bài hát này.","NO_LYRICS_MSG_4":"Chúng tôi rất tiếc, bạn sẽ phải đoán lời bài hát này thôi.","LYRICS_CREDITS":"Do {PROVIDER} cấp phép và cung cấp","LYRICS_UNSYNCED":"Lời bài hát này chưa được đồng bộ hóa với bài hát.","LYRICS_ERROR_MESSAGE":"Không tải được lời cho bài hát này. Hãy thử lại sau."}'),"zh-Hant":JSON.parse('{"ERROR_GENERIC":"發生錯誤","PLAYING_FROM_X":"從 {CONTEXT} 播放","CONTEXT_ALBUM":"專輯","CONTEXT_SEARCH":"搜尋","CONTEXT_TRACK":"歌曲","CONTEXT_PLAYLIST":"播放清單","CONTEXT_COLLECTION":"收藏","CONTEXT_RADIO":"電台","CONTEXT_STATION":"電台","CONTEXT_EPISODE":"Podcast","CONTEXT_SHOW":"節目","CONTEXT_ARTIST":"藝人","CONTEXT_AUDIOBOOK":"有聲書","NOTIFICATION_UP_NEXT":"即將播放","OFFLINE":"Youre offline","NO_LYRICS_MSG_1":"我們好像沒有這首歌曲的歌詞。","NO_LYRICS_MSG_2":"被你發現了,我們還在努力找出歌詞。","NO_LYRICS_MSG_3":"嗯,我們也不知道這首歌曲的歌詞。","NO_LYRICS_MSG_4":"非常抱歉,你必須自己猜歌詞了。","LYRICS_CREDITS":"由「{PROVIDER}」授權及提供","LYRICS_UNSYNCED":"這些歌詞尚未與歌曲同步。","LYRICS_ERROR_MESSAGE":"無法載入這首歌曲的歌詞。請稍後再試。"}')},T=A.en;let P="en",O=T;const C={},k=e=>{if(e===P)return;const t=e.replace("_","-");O=A[t]||T,P=e},R=(e,t)=>(e.match(/\{[A-Z_]+\}/g)||[]).map((e=>e.replace(/[\{\}]/g,""))).reduce(((e,n)=>{let o=null;return o="number"==typeof t[n]?(e=>{try{return e.toLocaleString(P)}catch(t){return e.toString()}})(t[n]):t[n]||O[n]||n,e.replace(`{${n}}`,o)}),e),L=(e,t={})=>{if(!e)return"???";let n=O[e]||T[e]||e;if("string"!=typeof n&&void 0!==t.N){const e=((e,t)=>{try{return(C[e]||(C[e]=new Intl.PluralRules(e))).select(t)}catch(e){return"other"}})(P,parseInt(t.N,10));n[e]?n=n[e]:n.other&&(n=n.other)}return R(n,t)};function I(e){const t=function(e){return e.hasError?{className:"npv-modal__error",component:v,props:{errorDetails:e.errorDetails,l10n:{title:L("ERROR_GENERIC")}}}:function(e){const{playbackIsBuffering:t,currentTrack:n}=e,o=(null==n?void 0:n.mediaType)&&n.mediaType.toLowerCase();return!!t&&"video"===o}(e)?{className:"npv-modal__loading",component:_}:e.isOffline?{className:"npv-modal__offline",component:E,props:{l10n:{title:L("OFFLINE")}}}:{hidden:!0}}(e),n=null==t?void 0:t.component,i=e.disableAnimationsAndTransitions?0:1e3;return o.createElement(d.Z,{in:!t.hidden,classNames:"npv-modal",timeout:i,mountOnEnter:!0,unmountOnExit:!0},o.createElement("div",{className:`npv-modal ${null==t?void 0:t.className}`},o.createElement("div",{className:"npv-modal__content"},n&&o.createElement(n,Object.assign({},t.props)))))}var N=n(87995);const w=()=>{const e=(0,o.useRef)();(0,o.useEffect)((()=>(e.current=(()=>{var e,t;let n=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0];if(!n){const e=null===(t=document.getElementsByTagName("html"))||void 0===t?void 0:t[0];if(!e)return void console.error("Cannot create head element since no html element found");n=document.createElement("head"),e.appendChild(n)}const o=document.createElement("style");return o.setAttribute("type","text/css"),n.appendChild(o),o})(),()=>{var t;null===(t=e.current)||void 0===t||t.remove()})),[]);return t=>{e.current&&(e.current.textContent=t)}},D=({children:e,className:t})=>{const n=(0,o.useRef)(null),i=(0,o.useRef)(null);return((e,t,n)=>{const i=w();(0,o.useEffect)((()=>{var e,o;if(!t.current||!n.current)return;const r=1-(null!==(e=t.current.getBoundingClientRect().width)&&void 0!==e?e:1)/(null!==(o=n.current.getBoundingClientRect().width)&&void 0!==o?o:1);if(r<0)return void(n.current.style.animation="unset");const a=-100*r,s=Math.max(10*r,1.6),l=Math.min(Math.round(40/s),40),c=`marquee-${String(r).replace(/[^0-9]+/g,"")}`;n.current.style.animation=`${c} ${s}s linear infinite alternate`,i(`\n @-webkit-keyframes ${c} {\n 0%, ${l}% {\n -webkit-transform: translate3d(0, 0, 0);\n }\n ${100-l}%, 100% {\n -webkit-transform: translate3d(${a}%, 0, 0);\n }\n }\n\n @keyframes ${c} {\n 0%, ${l}% {\n transform: translate3d(0, 0, 0);\n -webkit-transform: translate3d(0, 0, 0);\n }\n ${100-l}%, 100% {\n transform: translate3d(${a}%, 0, 0);\n -webkit-transform: translate3d(${a}%, 0, 0);\n }\n }\n `)}),[n,t,e,i])})(e,n,i),o.createElement("p",{className:`${t} marquee`,ref:n},o.createElement("span",{className:"marquee__text",ref:i,"data-testid":"marquee-text"},e))},M=o.memo(D);function x(e){return o.createElement("div",{className:"npv-up-next"},o.createElement("img",{src:e.coverArtImageUrl,className:"npv-up-next__image",alt:"up next image"}),o.createElement("div",{className:"npv-up-next__info"},o.createElement("div",{className:"npv-up-next__text"},e.l10n.upNext),e.disableAnimationsAndTransitions?o.createElement("span",{className:"npv-up-next__metadata npv-up-next__metadata--static"},e.metadata):o.createElement(M,{className:"npv-up-next__metadata"},e.metadata)))}function F(e){const t=function(e){const t=l();return!!e&&e-t<=3e4}(e.duration),[n,i]=(0,o.useState)(null);(0,o.useEffect)((()=>{var n;null===(n=e.onVisibilityChanged)||void 0===n||n.call(e,t)}),[t]),(0,o.useEffect)((()=>{t&&i(e)}),[e,t]);const r=(0,o.useCallback)((()=>{i(null)}),[i]);if(!e.canRender)return null;const a=o.createElement(p,{visible:t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,onExited:r},o.createElement(x,Object.assign({},n||e)));return e.portal&&e.portal.current?N.createPortal(a,e.portal.current):a}const U=1e3;function B({position:e,timestamp:t,isPaused:n,isBuffering:i,playbackSpeed:s=1,children:l}){const[,c]=(0,o.useState)(0),u=!n&&!i;(0,o.useEffect)((()=>{if(!u)return;const e=setInterval((()=>{c((e=>e+1))}),U/s);return()=>{clearInterval(e)}}),[u,s]);const d=(0,o.useCallback)((()=>function(e,t,n,o){return e+(o?Date.now()-t:0)*n}(e,t,s,u)),[e,t,s,u]);return o.createElement(r.Provider,{value:d},o.createElement(a.Provider,{value:d()},l))}var V=n(50346);const G=V.JM,J=[G.ALBUM,G.SEARCH,G.TRACK,G.PLAYLIST,G.PLAYLIST_V2,G.COLLECTION,G.RADIO,G.STATION,G.EPISODE,G.SHOW,G.ARTIST,"audiobook"];function j(e){return J.includes(e)}function H(e,t){const n={contextName:e.contextName,isGuestMode:e.isGuestMode,guestName:e.guestName,guestAvatarImage:e.guestAvatarImage,l10n:{playingFromContextType:""},contextMetadataVisible:!!e.contextMetadataVisible,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,mediaType:t},{contextType:o,contextUri:i}=e,r=o?function(e){return j(e)?`CONTEXT_${e.replace(/\-.*/,"").toUpperCase()}`:(console.warn(`Context type not allowed: ${e}`),"")}(o):function(e){if(!e)return"";const t=(0,V.EC)(e);return t?j(t.type)?`CONTEXT_${t.type.replace(/\-.*/,"").toUpperCase()}`:(console.warn(`Context type not allowed: ${null==t?void 0:t.type}`),""):(console.warn("Invalid URI value for trackUri"),"")}(i);return r?(n.l10n.playingFromContextType=L("PLAYING_FROM_X",{CONTEXT:L(r)}),n):n}function K(e,t){var n;return!(!e.backgroundImageUrl&&!t)||"video"===(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)}const Y=e=>{const t=["spotifyinternal-artistnpv"];e.progressBarVisible&&t.push("npv-has-progress-bar");const n=e.disableAnimationsAndTransitions?"npv-has-no-animations-and-transitions":"npv-has-animations-and-transitions";return t.push(n),t.join(" ")};n(56708);const W={isAnimating:!1,isAnimationDone:!1},z={isAnimating:!0,isAnimationDone:!1},q={isAnimating:!1,isAnimationDone:!0};function X(e,t=0){let n;return function(...o){const i=this;clearTimeout(n),n=setTimeout((()=>e.apply(i,o)),t)}}const Z=o.memo((e=>{const t=(0,o.useRef)(),[n,i]=(0,o.useState)(W),[r,a]=(0,o.useState)({current:e.src}),s=(0,o.useCallback)((()=>{a({previous:t.current,current:e.src}),i(W),t.current=e.src}),[e.src]),l=(0,o.useCallback)(X((()=>{i(z)})),[]),c=(0,o.useCallback)(X((()=>{i(q)})),[]);(0,o.useEffect)((()=>{const t=new Image,n=()=>l(),o=setImmediate((()=>{e.src&&(t.src=e.src,t.addEventListener("load",n))}));return s(),()=>{clearImmediate(o),t.removeEventListener("load",n)}}),[e.src]);const{isAnimating:u,isAnimationDone:d}=n;return o.createElement("div",{className:`npv-cross-fade-container ${e.className}`},r.previous&&!d&&o.createElement("img",{className:"npv-cross-fade-image npv-cross-fade-image--previous "+(u||d?"npv-cross-fade-image--fade-out":""),onAnimationEnd:c,onLoad:l,src:r.previous,alt:e.alt}),r.current&&(u||d)&&o.createElement("img",{className:"npv-cross-fade-image npv-cross-fade--next "+(u?"npv-cross-fade-image--fade-in":""),onAnimationEnd:c,src:r.current,alt:e.alt}))}));function Q(e){return o.createElement("div",{className:`npv-background-image ${e.showBackgroundImage&&"npv-background-image--active"}`},o.createElement(Z,{src:e.backgroundImageUrl}),o.createElement("div",{className:"npv-background-image__overlay"}))}function $(e){const t=function(e,t){const n=[e];return"gradient"===t.modifier&&n.push(`${e}--gradient`),t.animated&&n.push(`${e}--animated`),n.join(" ")}("npv-background-color",e);return o.createElement("div",{className:t,style:{backgroundColor:e.backgroundColor,backgroundImage:"noise"===e.modifier?`linear-gradient(to bottom, ${e.backgroundColor}, ${e.backgroundColor})`:void 0}})}function ee(e){const t=["npv-playback-controls__action"];return e.className&&t.push(e.className),e.isActive&&t.push("npv-playback-controls__action--active"),t.join(" ")}const te=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M13.151.922a.75.75 0 1 0-1.06 1.06L13.109 3H11.16a3.75 3.75 0 0 0-2.873 1.34l-6.173 7.356A2.25 2.25 0 0 1 .39 12.5H0V14h.391a3.75 3.75 0 0 0 2.873-1.34l6.173-7.356a2.25 2.25 0 0 1 1.724-.804h1.947l-1.017 1.018a.75.75 0 0 0 1.06 1.06L15.98 3.75 13.15.922zM.391 3.5H0V2h.391c1.109 0 2.16.49 2.873 1.34L4.89 5.277l-.979 1.167-1.796-2.14A2.25 2.25 0 0 0 .39 3.5z"}),o.createElement("path",{d:"m7.5 10.723.98-1.167.957 1.14a2.25 2.25 0 0 0 1.724.804h1.947l-1.017-1.018a.75.75 0 1 1 1.06-1.06l2.829 2.828-2.829 2.828a.75.75 0 1 1-1.06-1.06L13.109 13H11.16a3.75 3.75 0 0 1-2.873-1.34l-.787-.938z"})),ne=(0,o.memo)(te);function oe(e){return o.createElement("div",{className:ee(e)},e.children,!e.hideDot&&o.createElement("div",{className:"npv-playback-controls__dot"}))}function ie(e){return o.createElement(oe,{className:"npv-playback-controls__shuffle",isActive:e.isActive},o.createElement(ne,{className:"npv-playback-controls__icon"}))}const re=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M0 4.75A3.75 3.75 0 0 1 3.75 1h8.5A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25h-8.5A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5z"})),ae=(0,o.memo)(re),se=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M0 4.75A3.75 3.75 0 0 1 3.75 1h.75v1.5h-.75A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5zM12.25 2.5h-.75V1h.75A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25z"}),o.createElement("path",{d:"M9.12 8V1H7.787c-.128.72-.76 1.293-1.787 1.313V3.36h1.57V8h1.55z"})),le=(0,o.memo)(se);function ce(e){return o.createElement(oe,{className:"npv-playback-controls__repeat",isActive:!!e.mode&&"off"!==e.mode},function(e){switch(e){case"all":return o.createElement(ae,{className:"npv-playback-controls__icon"});case"one":return o.createElement(le,{className:"npv-playback-controls__icon"});default:return null}}(e.mode))}const ue=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M15.724 4.22A4.313 4.313 0 0 0 12.192.814a4.269 4.269 0 0 0-3.622 1.13.837.837 0 0 1-1.14 0 4.272 4.272 0 0 0-6.21 5.855l5.916 7.05a1.128 1.128 0 0 0 1.727 0l5.916-7.05a4.228 4.228 0 0 0 .945-3.577z"})),de=(0,o.memo)(ue);function pe(e){return o.createElement(oe,{className:"npv-playback-controls__heart",isActive:e.isActive,hideDot:!0},o.createElement(de,{className:"npv-playback-controls__icon"}))}const fe=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M3 1.713a.7.7 0 0 1 1.05-.607l10.89 6.288a.7.7 0 0 1 0 1.212L4.05 14.894A.7.7 0 0 1 3 14.288V1.713z"})),he=(0,o.memo)(fe);function me(e){const t=e.isPaused?"":"npv-playback-controls__play-pause--playing";return o.createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},o.createElement(he,{className:"npv-playback-controls__icon"}))}const ge=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M2.7 1a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7H2.7zm8 0a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7h-2.6z"})),ve=(0,o.memo)(ge);function ye(e){const t=e.isPaused?"npv-playback-controls__play-pause--paused":"";return o.createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},o.createElement(ve,{className:"npv-playback-controls__icon"}))}function _e(e){return o.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H106C108.209 0 110 1.79086 110 4V44C110 46.2091 108.209 48 106 48H4C1.79086 48 0 46.2091 0 44V4Z",fill:"black",fillOpacity:"0.5"}),o.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z",fill:"white"}),o.createElement("path",{d:"M43.9931 32V21.2383H40.6005V32H43.9931ZM40.3104 17.9271C40.3104 18.9882 41.2031 19.8543 42.2745 19.8543C43.3905 19.8543 44.2832 18.9882 44.2832 17.9271C44.2832 16.8661 43.3905 16 42.2745 16C41.2031 16 40.3104 16.8661 40.3104 17.9271Z",fill:"white"}),o.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z",fill:"white"}),o.createElement("path",{d:"M63.0432 32V21.2383H59.6506V32H63.0432ZM59.3604 17.9271C59.3604 18.9882 60.2532 19.8543 61.3246 19.8543C62.4406 19.8543 63.3333 18.9882 63.3333 17.9271C63.3333 16.8661 62.4406 16 61.3246 16C60.2532 16 59.3604 16.8661 59.3604 17.9271Z",fill:"white"}),o.createElement("circle",{cx:"78",cy:"24",r:"7",stroke:"white",strokeOpacity:"0.3",strokeWidth:"2"}))}function be(e){return o.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),o.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H106C108.209 0 110 1.79086 110 4V44C110 46.2091 108.209 48 106 48H4C1.79086 48 0 46.2091 0 44V4Z",fill:"black",fillOpacity:"0.5"}),o.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z"}),o.createElement("path",{d:"M43.9931 32V21.2383H40.6005V32H43.9931ZM40.3104 17.9271C40.3104 18.9882 41.2031 19.8543 42.2745 19.8543C43.3905 19.8543 44.2832 18.9882 44.2832 17.9271C44.2832 16.8661 43.3905 16 42.2745 16C41.2031 16 40.3104 16.8661 40.3104 17.9271Z"}),o.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z"}),o.createElement("path",{d:"M63.0432 32V21.2383H59.6506V32H63.0432ZM59.3605 17.9271C59.3605 18.9882 60.2532 19.8543 61.3246 19.8543C62.4406 19.8543 63.3333 18.9882 63.3333 17.9271C63.3333 16.8661 62.4406 16 61.3246 16C60.2532 16 59.3605 16.8661 59.3605 17.9271Z"}),o.createElement("circle",{cx:"80.2222",cy:"24",r:"8"}))}const Se=o.memo(_e),Ee=o.memo(be);function Ae(e){return!0===e.status?o.createElement(Ee,{className:"npv-playback-controls__hifi--on"}):o.createElement(Se,{className:"npv-playback-controls__hifi--off"})}function Te(e){return void 0===e.playbackHiFiStatus?null:o.createElement("div",{className:"npv-playback-controls__action npv-playback-controls__action--active npv-playback-controls__hifi"},o.createElement(Ae,{status:e.playbackHiFiStatus}))}function Pe(e){return o.createElement(p,{visible:e.isActive,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},o.createElement("div",{className:"npv-playback-controls"},o.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--left"},o.createElement(Te,{playbackHiFiStatus:e.playbackHiFiStatus}),o.createElement(pe,{isActive:null==e?void 0:e.isTrackLiked}),o.createElement(ie,{isActive:null==e?void 0:e.playbackIsShuffled}),o.createElement(ce,{mode:null==e?void 0:e.playbackRepeatMode})),o.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--center"}),o.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--right"},o.createElement(me,{isPaused:null==e?void 0:e.isPaused}),o.createElement(ye,{isPaused:null==e?void 0:e.isPaused}))))}function Oe(e){var t;return null!==(t=e.CustomPlaybackControls)&&void 0!==t?t:o.createElement(Pe,Object.assign({},function(e){var t;const{playbackRepeatMode:n,playbackIsShuffled:o,playbackHiFiStatus:i,disableAnimationsAndTransitions:r}=e;return{playbackIsShuffled:o,playbackRepeatMode:n,isTrackLiked:null===(t=e.currentTrack)||void 0===t?void 0:t.isLiked,isPaused:e.playbackIsPaused||e.playbackIsBuffering,playbackHiFiStatus:i,isActive:!!e.controlsVisible,disableAnimationsAndTransitions:r}}(e)))}function Ce(e){var t,n,o;return{name:null===(t=e.currentTrack)||void 0===t?void 0:t.name,creatorName:null===(n=e.currentTrack)||void 0===n?void 0:n.creatorName,coverArtImageUrl:null===(o=e.currentTrack)||void 0===o?void 0:o.coverArtImageUrl,hidden:!e.trackMetadataVisible}}var ke=n(2489),Re=n.n(ke);const Le={UNKNOWN:"UNKNOWN",UNSYNCED:"UNSYNCED",LINE_SYNCED:"LINE_SYNCED",SYLLABLE_SYNCED:"SYLLABLE_SYNCED"};function Ie(e,t,n){const o=n/t,i=Math.floor(e.length*o);return Math.max(Math.min(i,e.length-4),0)}function Ne(e){if(!e)return;const{provider:t,lines:n,syncType:o}=e;return n&&t&&o&&Object.values(Le).includes(o)&&function(e){return e.every((e=>void 0!==e.text&&void 0!==e.timestamp))&&!!e.length}(n)?{provider:t,lines:n,syncType:o}:void 0}const we=(e,t)=>{var n,o;const[i,r,a]=null!==(o=null===(n=Re().get(e))||void 0===n?void 0:n.value)&&void 0!==o?o:[0,0,0];return`rgba(${i}, ${r}, ${a}, ${t})`},De=140;function Me(e){return e.reduce(((e,t)=>e+t),0)}function xe(e,t,n,i){const r=(0,o.useRef)([]);return(0,o.useEffect)((()=>{r.current=[]}),[e]),(0,o.useCallback)((o=>{Me(r.current)>=De||(o.forEach((e=>{r.current[e.index]=e.text.length})),Me(r.current)>=De&&i(e,t,n))}),[i,e,t,n])}function Fe(e,t){const[n,i]=(0,o.useState)();return(0,o.useEffect)((()=>{var n,o;const r=Array.prototype.slice.call(null!==(o=null===(n=e.current)||void 0===n?void 0:n.querySelectorAll("[data-lyrics-line]"))&&void 0!==o?o:[]);i({key:t,value:r.map(((e,n)=>{const o=t[n];if(void 0!==o)return{element:e,text:o.text,index:n}})).filter((e=>void 0!==e))})}),[t]),(null==n?void 0:n.key)===t?n.value:[]}function Ue(e){const t=l(),n=(0,o.useMemo)((()=>function(e,t){for(let n=0;n<e.length;n++)if(e[n].timestamp>t)return Math.max(0,n-1);return e.length-1}(e,t)),[t,e]);return{firstVisibleIndex:Math.max(n-1,0),currentIndex:n}}function Be(e,t,n,i){const r=function(e){var t;const[n,i]=(0,o.useState)(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().height);return(0,o.useEffect)((()=>{const t=setInterval((()=>{var t;i(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().height)}),1e3);return()=>{clearInterval(t)}}),[]),n}(e);(0,o.useEffect)((()=>{if(!n.length||!r)return;const e=function(e,t,n){var o;const i=null===(o=e[t])||void 0===o?void 0:o.element.offsetTop;return e.filter((e=>e.element.offsetTop>=i&&e.element.offsetTop<i+n))}(n,i,r);t(e)}),[t,n,i,r])}const Ve=(e,t)=>{const n=l();return(0,o.useMemo)((()=>{const o=Ie(e,t,n);return e.slice(o)}),[e,t,n])};const Ge=e=>{var t;const n=(()=>{var e,t;let n=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0];if(!n){const e=null===(t=document.getElementsByTagName("html"))||void 0===t?void 0:t[0];if(!e)return void console.error("Cannot creat head element since no html element found");n=document.createElement("head"),e.appendChild(n)}return n})();return n?N.createPortal(o.createElement("style",{type:null!==(t=e.type)&&void 0!==t?t:"text/css"},e.styles.map((e=>(({styles:e,selector:t})=>{if(0===e.length||0===t.length)return"";let n=`${t} {`;for(const t of e)for(const[e,o]of Object.entries(t))n+=`\n ${e}: ${o};`;return`${n}\n}`})(e)))),n):null},Je=o.memo(Ge),je=e=>{const{showGradient:t,currentColor:n}=function(e){const[t,n]=(0,o.useState)(e),[i,r]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{n(e),r(!1);const t=setTimeout((()=>{r(!0)}),100);return()=>clearTimeout(t)}),[e]),{showGradient:i,currentColor:t}}(e.backgroundColor||""),i="npv-lyrics__gradient-background",r=we(n,0),a=we(n,.6),s=[{selector:`.${i}`,styles:[{background:`-webkit-gradient(linear, left top, left bottom, from(${r}), color-stop(30%, ${a}), color-stop(60%, ${n}))`},{background:`-webkit-linear-gradient(top, ${r} 0%, ${a} 30%, ${n} 60%)`},{background:`linear-gradient(to bottom, ${r} 0%, ${a} 30%, ${n} 60%)`}]}],l=`npv-lyrics__gradient ${i}\n ${t&&"npv-lyrics__gradient--shown"}\n ${e.fullScreen&&"npv-lyrics__gradient--full-screen"}\n `;return o.createElement(o.Fragment,null,o.createElement(Je,{styles:s}),o.createElement("div",{className:l}))},He=(0,o.memo)(je);function Ke(e){return o.createElement("div",{className:"npv-lyrics__sentences",style:{transform:`translateY(${-e.offsetTop}px)`},dir:"auto"},e.lyrics.lines.map(((t,n,i)=>{const r=function(e,t,n,o){return[n===t&&"npv-lyrics__text-wrapper--current",n>t&&"npv-lyrics__text-wrapper--next",n<t&&"npv-lyrics__text-wrapper--previous",n<e&&"npv-lyrics__text-wrapper--hidden",n===o-1&&"npv-lyrics__text-wrapper--last"].filter((e=>!1!==e)).join(" ")}(e.firstVisibleIndex,e.currentIndex,n,i.length);return o.createElement("div",{className:`npv-lyrics__text-wrapper ${r}`,key:n},o.createElement("p",{"data-lyrics-line":!0,className:"npv-lyrics__text"},t.text||" "))})),o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},L("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}const Ye=e=>{var t;const{firstVisibleIndex:n,currentIndex:i}=Ue(e.lyrics.lines),r=Fe(e.containerRef,e.lyrics.lines),a=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);Be(e.containerRef,a,r,n);const s=null===(t=r[n])||void 0===t?void 0:t.element,l=(0,o.useMemo)((()=>{var e;return null!==(e=null==s?void 0:s.offsetTop)&&void 0!==e?e:0}),[s]);return o.createElement(o.Fragment,null,o.createElement(Ke,{firstVisibleIndex:n,currentIndex:i,offsetTop:l,lyrics:e.lyrics}),o.createElement(He,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))},We=100;function ze(e,t,n){const o=t.syllables||[],i=o[n];if(void 0!==i.duration)return i.duration;if(o.length>n+1){return o[n+1].timestamp-i.timestamp}return e.lines.length>t.index+1?e.lines[t.index+1].timestamp-i.timestamp:We}function qe(e){const t=(0,o.useRef)(null),n=(0,o.useRef)(null),i=(0,o.useRef)({index:e.line.index,text:e.line.text}),[,r]=(0,o.useReducer)((e=>e+1),0),[a,s]=(0,o.useState)(0),[l,c]=(0,o.useState)(0),[u,d]=(0,o.useState)("");return(0,o.useEffect)((()=>{function o(){null!==n.current&&(clearTimeout(n.current),n.current=null)}if(i.current.index!==e.line.index||i.current.text!==e.line.text)c(0),s(0),d(""),o(),n.current=setTimeout((()=>{r()}),0),i.current={index:e.line.index,text:e.line.text};else{const{alreadyShownSyllablesLength:n,currentSyllableDurationMs:o}=function(e,t,n){const o=t.syllables||[];let i=null,r=0;for(let e=0;e<o.length;++e){const t=o[e];if(t.timestamp>n)break;i=t,r+=t.length}return null===i?{alreadyShownSyllablesLength:0,currentSyllableDurationMs:0}:{alreadyShownSyllablesLength:r,currentSyllableDurationMs:ze(e,t,i.index)}}(e.lyrics,e.line,e.songProgressMs),i=e.line.text.slice(0,n);c(function(e,t,n){if(!e||!t||!t.current)return 0;const o=window.getComputedStyle(t.current);return e.style.position="absolute",e.style.visibility="hidden",e.style.fontFamily=o.fontFamily,e.style.fontSize=o.fontSize,e.style.fontWeight=o.fontWeight,e.innerText=n,e.getBoundingClientRect().width}(e.textMeasurer,t,i)),s(o),d(i)}return()=>{o()}}),[e.lyrics,e.songProgressMs,e.line.index,e.line.text,c,s,d,r]),o.createElement(o.Fragment,null,o.createElement("span",{ref:t,className:"syllable-synced-animated-lyrics__full-text"},e.line.text),o.createElement("span",{className:"syllable-synced-animated-lyrics__progressing-text",style:{width:`${l}px`,transitionDuration:""+(u?`${a}ms`:"0ms")}},u))}function Xe(e){const t=(0,o.useRef)(null),[n,i]=(0,o.useState)(null),[r,a]=(0,o.useState)(null),[s,l]=(0,o.useState)(null),[c,u]=(0,o.useState)(null),[d,p]=(0,o.useState)(!1),f=(0,o.useCallback)((()=>{p(!1)}),[p]),h=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return(0,o.useEffect)((()=>(t.current=function(){const e=document.createElement("span");return document.body.appendChild(e),e}(),()=>{var e;t.current&&(null===(e=t.current.parentNode)||void 0===e||e.removeChild(t.current))})),[t]),(0,o.useEffect)((()=>{const{currentLine:t,nextLine:n,lineAfterTheNext:o}=function(e,t){const n=e.lines,o=n.length;let i=-1;if(o>0&&t<n[0].timestamp)i=0;else for(let e=0;e<o&&!(n[e].timestamp>t);++e)i=e;if(-1===i)return{currentLine:null,nextLine:null,lineAfterTheNext:null};const r=n[i+1],a=n[i+2];return{currentLine:Object.assign({index:i},n[i]),nextLine:r?Object.assign({index:i+1},r):null,lineAfterTheNext:a?Object.assign({index:i+2},a):null}}(e.lyrics,e.songProgressMs);(null==r?void 0:r.index)===(null==t?void 0:t.index)&&(null==r?void 0:r.text)===(null==t?void 0:t.text)||(i(r),a(t),l(n),u(o),r&&p(!0))}),[e.lyrics,e.songProgressMs,r,i,a,l,u,p]),function(e,t,n,i,r){const a=(0,o.useRef)(null),s=(0,o.useRef)(null);(0,o.useEffect)((()=>{a.current=new Set,s.current=[]}),[e]),(0,o.useEffect)((()=>{a.current&&s.current&&(void 0===n||a.current.has(n)||(a.current.add(n),s.current.push({index:n,text:t[n].text})),void 0===i||a.current.has(i)||(a.current.add(i),s.current.push({index:i,text:t[i].text})),r(s.current))}),[r,n,i])}(e.trackUri,e.lyrics.lines,null==r?void 0:r.index,null==s?void 0:s.index,h),o.createElement(o.Fragment,null,o.createElement("div",{className:"syllable-synced-lyrics__container",onTransitionEnd:f},o.createElement("div",{className:"syllable-synced-lyrics-scroller "+(d?"syllable-synced-lyrics-scroller-animation":"")},d&&n&&o.createElement("span",{className:"syllable-synced-lyrics__static-line"},n.text),o.createElement("div",{className:"syllable-synced-animated-lyrics"},r&&t.current&&o.createElement(qe,{textMeasurer:t.current,lyrics:e.lyrics,line:r,songProgressMs:e.songProgressMs})),s&&o.createElement("span",{className:"syllable-synced-lyrics__static-line"},s.text),c&&o.createElement("span",{className:"syllable-synced-lyrics__static-line"},c.text))),o.createElement(He,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))}function Ze(e){return o.createElement("div",{className:"npv-track-metadata","aria-hidden":e.hidden},o.createElement("div",{className:"npv-track-metadata__content-wrapper"},e.coverArtImageUrl&&o.createElement(Z,{className:"npv-track-metadata__cover-art",src:e.coverArtImageUrl,alt:""}),(e.name||e.creatorName)&&o.createElement("div",{className:"npv-track-metadata__text-wrapper"},e.name&&o.createElement("div",{className:"npv-track-metadata__name"},e.name),e.creatorName&&o.createElement("div",{className:"npv-track-metadata__creator-name"},e.creatorName))))}function Qe(e){return o.createElement("div",{className:"npv-lyrics__sentences",style:e.style,dir:"auto"},e.lyrics.lines.map(((e,t)=>o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--unsynced","data-lyrics-line":!0,key:t},e.text))),o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},L("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}function $e(e){const t=s(),n=function(e,t){const[n,i]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const e=setTimeout((()=>i(!1)),100);return i(!0),()=>clearTimeout(e)}),[t]),(t,o,i)=>`${e}${n?"-reset":""} ${o}ms linear -${t}ms ${i?"paused":"running"}`}("slide-up",t),i=n(t,e.duration,e.isPaused),r={WebkitAnimation:i,animation:i};return o.createElement(Qe,Object.assign({},e,{style:r}))}function et(e){const t=Object.assign(Object.assign({},e.lyrics),{lines:Ve(e.lyrics.lines,e.duration)});return o.createElement(Qe,Object.assign({},e,{lyrics:t}))}const tt=e=>{const t=e.disableAnimationsAndTransitions?et:$e,n=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return function(e,t,n,i){const r=Fe(e,n),a=l();Be(e,t,r,(0,o.useMemo)((()=>Ie(n,i,a)),[n,i,a]))}(e.containerRef,n,e.lyrics.lines,e.duration),o.createElement(o.Fragment,null,o.createElement("p",{className:"npv-lyrics__text--unsynced-warning"},L("LYRICS_UNSYNCED")),o.createElement("div",{className:"npv-lyrics__container--unsynced"},o.createElement(t,{duration:e.duration,isPaused:e.isPaused,lyrics:e.lyrics})),o.createElement(He,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))},nt=e=>o.createElement("div",{className:"npv-lyrics__message"},o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--message"},e.children)),ot=e=>{const[t,n]=(0,o.useState)("");return(0,o.useEffect)((()=>{const e=function(e){const t=["NO_LYRICS_MSG_1","NO_LYRICS_MSG_2","NO_LYRICS_MSG_3","NO_LYRICS_MSG_4"].filter((t=>t!==e));return t[Math.floor(Math.random()*(t.length-1))]}(t);n(e)}),[e.trackUri]),o.createElement(nt,null,t?L(t):"")},it=e=>{const t=(0,o.useRef)(null);return o.createElement("div",{className:`npv-lyrics ${e.className}`},o.createElement($,{backgroundColor:e.backgroundColor,modifier:"noise"}),o.createElement(Ze,Object.assign({},e.trackMetadataProps)),o.createElement("div",{ref:t,className:`npv-lyrics__content ${e.fullScreen&&"npv-lyrics__content--full-screen"} ${e.lyricsContainerCustomClasses?e.lyricsContainerCustomClasses:""}`},!e.content&&"success"===e.status&&o.createElement(ot,{trackUri:e.trackUri}),!e.content&&"error"===e.status&&o.createElement(nt,null,L("LYRICS_ERROR_MESSAGE")),e.trackUri&&e.content&&e.content.syncType===Le.LINE_SYNCED&&o.createElement(Ye,{lyrics:e.content,backgroundColor:e.backgroundColor,containerRef:t,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen}),e.trackUri&&e.content&&e.content.syncType===Le.UNSYNCED&&o.createElement(tt,{lyrics:e.content,backgroundColor:e.backgroundColor,duration:e.duration,isPaused:e.isPaused,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,containerRef:t,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen}),e.trackUri&&e.content&&e.content.syncType===Le.SYLLABLE_SYNCED&&o.createElement(Xe,{lyrics:e.content,backgroundColor:e.backgroundColor,songProgressMs:e.position||0,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen})))};function rt(e){return o.createElement("div",{className:`npv-cover-art npv-cover-art--${e.mediaType}\n ${e.hasNoExpandedCover&&"npv-cover-art--not-expanded"}\n ${e.trackMetadataVisible&&"npv-cover-art--visible"}`},o.createElement(Z,{src:e.coverArtImageUrl,alt:"Cover Art"}))}function at(e){return o.createElement("div",{className:`npv-track npv-track--${e.mediaType} ${e.hasNoExpandedCover&&"npv-track--not-expanded"} ${e.trackMetadataVisible&&"npv-track--visible"}`},o.createElement("div",{className:"npv-track__name"},e.trackName),o.createElement("div",{className:"npv-track__creator-name"},e.trackCreatorName))}const st=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.createElement("path",{d:"M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.669 11.539a.498.498 0 0 1-.686.166c-1.878-1.148-4.243-1.408-7.028-.772a.499.499 0 0 1-.222-.972c3.048-.696 5.662-.396 7.77.892a.5.5 0 0 1 .166.686zm.979-2.178a.624.624 0 0 1-.858.205c-2.15-1.322-5.428-1.705-7.972-.932a.624.624 0 1 1-.362-1.194c2.905-.882 6.517-.455 8.987 1.063a.624.624 0 0 1 .205.858zm.084-2.269C10.153 5.561 5.9 5.42 3.438 6.167a.748.748 0 1 1-.434-1.432c2.826-.857 7.523-.692 10.492 1.07a.748.748 0 0 1-.764 1.287z"})),lt=(0,o.memo)(st),ct=({src:e,className:t,focused:n})=>o.createElement("div",{className:`npv-avatar ${t}}`},e&&o.createElement("div",{className:"npv-avatar__image "+(n?"npv-avatar__image--focused":""),style:{backgroundImage:`url(${e})`}}));function ut({name:e,avatarImage:t}){return o.createElement("div",{className:"npv-guest"},o.createElement("p",{className:"npv-guest__name"},e),o.createElement(ct,{className:"npv-guest__avatar",src:t}))}function dt(e){var t;return o.createElement(p,{visible:null!==(t=e.contextMetadataVisible)&&void 0!==t&&t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},o.createElement("div",{className:`npv-header npv-header--${e.mediaType}`},o.createElement(lt,{className:"npv-header__logo"}),o.createElement("div",{className:"npv-header__metadata placeholder"},e.l10n.playingFromContextType&&o.createElement("div",{className:"npv-header__context-type"},e.l10n.playingFromContextType),o.createElement("div",{className:"npv-header__context-name"},e.contextName)),e.isGuestMode&&o.createElement(ut,{name:e.guestName,avatarImage:e.guestAvatarImage})))}function pt(e){return o.createElement("div",{className:`npv-what-is-playing ${e.className}`},o.createElement(dt,Object.assign({},e.headerProps)),o.createElement("div",{className:`npv-what-is-playing__metadata ${e.progressBarVisible&&"npv-what-is-playing__metadata--docked"} npv-what-is-playing__metadata--${e.mediaType}`},o.createElement(rt,Object.assign({},e)),o.createElement(at,Object.assign({},e))))}var ft,ht,mt=n(95502),gt=n(82961),vt=n(26799);var yt="out-in",_t="in-out",bt=function(e,t,n){return function(){var o;e.props[t]&&(o=e.props)[t].apply(o,arguments),n()}},St=((ft={})[yt]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:bt(t,"onExited",(function(){n(gt.d0,null)}))})},ft[_t]=function(e){var t=e.current,n=e.changeState,i=e.children;return[t,o.cloneElement(i,{in:!0,onEntered:bt(i,"onEntered",(function(){n(gt.d0)}))})]},ft),Et=((ht={})[yt]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:bt(t,"onEntered",(function(){n(gt.cn,o.cloneElement(t,{in:!0}))}))})},ht[_t]=function(e){var t=e.current,n=e.children,i=e.changeState;return[o.cloneElement(t,{in:!1,onExited:bt(t,"onExited",(function(){i(gt.cn,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},ht),At=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).state={status:gt.cn,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}(0,mt.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===gt.d0&&e.mode===_t?{status:gt.d0}:!t.current||(n=t.current,i=e.children,n===i||o.isValidElement(n)&&o.isValidElement(i)&&null!=n.key&&n.key===i.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:gt.Ix};var n,i},n.render=function(){var e,t=this.props,n=t.children,i=t.mode,r=this.state,a=r.status,s=r.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case gt.d0:e=Et[i](l);break;case gt.Ix:e=St[i](l);break;case gt.cn:e=s}return o.createElement(vt.Z.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);At.propTypes={},At.defaultProps={mode:yt};const Tt=At,Pt=e=>{const t=e.lyricsProps?"lyrics":"what-is-playing",n=e.disableAnimationsAndTransitions?0:500;return o.createElement(Tt,null,o.createElement(d.Z,{key:t,classNames:"npv-main-container__visibility-transition",timeout:n},e.lyricsProps?o.createElement(it,Object.assign({},e.lyricsProps,{className:"npv-main-container__lyrics"})):o.createElement(pt,Object.assign({},e.whatIsPlayingProps,{className:"npv-main-container__what-is-playing"}))))};function Ot(e){var t,n;n=e.locale,k(n||navigator.language);const r=function(e){var t,n,o;if(e.lyrics&&e.onLyricsReport)return{trackUri:null===(t=e.currentTrack)||void 0===t?void 0:t.uri,content:"success"===e.lyrics.status?Ne(e.lyrics.content):void 0,status:e.lyrics.status,onLyricsReport:e.onLyricsReport,position:e.position,trackMetadataProps:Ce(e),backgroundColor:"error"!==e.lyrics.status?e.backgroundColor:"#7F7F7F",duration:(null===(n=e.currentTrack)||void 0===n?void 0:n.duration)||0,isPaused:e.playbackIsPaused||!1,disableAnimationsAndTransitions:null!==(o=e.disableAnimationsAndTransitions)&&void 0!==o&&o,fullScreen:!e.controlsVisible,lyricsContainerCustomClasses:e.lyricsContainerCustomClasses}}(e),a=void 0!==r,s="video"===(null===(t=e.currentTrack)||void 0===t?void 0:t.mediaType),l=function(e){var t;return"video"===(null===(t=e.currentTrack)||void 0===t?void 0:t.mediaType)?{backgroundColor:"#000",animated:!1}:{backgroundColor:e.backgroundColor,modifier:"gradient",animated:!0}}(e),c=function(e,t){const{backgroundImageUrl:n}=e;return{backgroundImageUrl:n,showBackgroundImage:!t&&!!e.backgroundImageUrl}}(e,a),u=function(e){var t,n,o,i,r,a,s;return{canRender:!!((null===(t=e.nextTrack)||void 0===t?void 0:t.coverArtImageUrl)&&(null===(n=e.nextTrack)||void 0===n?void 0:n.name)&&(null===(o=e.nextTrack)||void 0===o?void 0:o.creatorName)),coverArtImageUrl:null===(i=e.nextTrack)||void 0===i?void 0:i.coverArtImageUrl,metadata:`${null===(r=e.nextTrack)||void 0===r?void 0:r.name} • ${null===(a=e.nextTrack)||void 0===a?void 0:a.creatorName}`,l10n:{upNext:L("NOTIFICATION_UP_NEXT")},disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,duration:null===(s=e.currentTrack)||void 0===s?void 0:s.duration,portal:e.upNextNotificationPortal,onVisibilityChanged:e.onUpNextVisibilityChanged}}(e),d=function(e,t){var n,o,i,r,a;const s=(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)||"audio";return{coverArtImageUrl:null===(o=e.currentTrack)||void 0===o?void 0:o.coverArtImageUrl,trackName:null===(i=e.currentTrack)||void 0===i?void 0:i.name,trackCreatorName:null===(r=e.currentTrack)||void 0===r?void 0:r.creatorName,trackUri:null===(a=e.currentTrack)||void 0===a?void 0:a.uri,headerProps:H(e,s),hasNoExpandedCover:K(e,t),progressBarVisible:!!e.progressBarVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:s}}(e,a),p=function(e,t){var n;return{duration:null===(n=e.currentTrack)||void 0===n?void 0:n.duration,isPaused:e.playbackIsPaused,isBuffering:e.playbackIsBuffering,playbackSpeed:e.playbackSpeed,progressBarVisible:!!e.progressBarVisible&&!e.CustomPlaybackControls,disableAnimationsAndTransitions:!!e.disableAnimationsAndTransitions,mediaType:t}}(e,d.mediaType),h=function(e){return{position:e.position,timestamp:e.timestamp,isPaused:e.playbackIsPaused,isBuffering:e.playbackIsBuffering,playbackSpeed:e.playbackSpeed}}(e),m=function(e,t){return{contextMetadataVisible:!!e.contextMetadataVisible,isActive:!!e.controlsVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:t}}(e,d.mediaType),g=function(e,t){const n={};return t&&(n.backgroundColor=e.backgroundColor),n}(e,a),v=Y(e);return o.createElement("div",{className:v},o.createElement(B,Object.assign({},h),o.createElement($,Object.assign({},l)),s?o.createElement(i,Object.assign({},m)):o.createElement(Q,Object.assign({},c)),o.createElement("div",{className:"npv-main-container",style:g},o.createElement(Pt,{disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,lyricsProps:r,whatIsPlayingProps:d}),o.createElement(F,Object.assign({},u)),o.createElement(f,Object.assign({},p)),o.createElement(Oe,Object.assign({},e))),o.createElement(I,Object.assign({},e))))}Ot.defaultProps={contextMetadataVisible:!0,controlsVisible:!0,trackMetadataVisible:!0,progressBarVisible:!0}},78476:(e,t,n)=>{"use strict";n.d(t,{xc:()=>mn,UR:()=>hn,KH:()=>Qe,xu:()=>Le,Xs:()=>Nn,ET:()=>fn,lA:()=>x,ON:()=>cn,H6:()=>ln,Tc:()=>xn,OK:()=>Dn,lB:()=>Mn});var o=n(22947),i=n.n(o);var r,a,s;!function(e){e[e.EMPTY=0]="EMPTY",e[e.TRACK=1]="TRACK",e[e.EPISODE=2]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.MISSING=1]="MISSING",e[e.COMPLETE=2]="COMPLETE",e[e.NOT_APPLICABLE=3]="NOT_APPLICABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a||(a={})),function(e){e[e.OK=0]="OK",e[e.TEMPORARY_ERROR=1]="TEMPORARY_ERROR",e[e.PERMANENT_ERROR=2]="PERMANENT_ERROR",e[e.DISK_FULL=3]="DISK_FULL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s||(s={}));var l;!function(e){e[e.OTHER=0]="OTHER",e[e.AUDIO=1]="AUDIO",e[e.DRM=2]="DRM",e[e.IMAGE=3]="IMAGE",e[e.VIDEO=4]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l||(l={}));var c=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};function u(e,t){null==e||e.registerRequestFilter(function(e){return(t,n)=>c(this,void 0,void 0,(function*(){if((t===i().net.NetworkingEngine.RequestType.LICENSE||t===i().net.NetworkingEngine.RequestType.MANIFEST)&&(e.getAuthorizationHeader&&(n.headers.Authorization=yield e.getAuthorizationHeader()),t===i().net.NetworkingEngine.RequestType.MANIFEST&&e.getWebgateHeaders)){const t=e.getWebgateHeaders().reduce(((e,t)=>(e[t[0]]=t[1],e)),{});n.headers=Object.assign(Object.assign({},n.headers),t)}}))}(t))}function d(e){for(const[t,n]of Object.entries(i().util.Error.Code))if(n===e)return t;return"unknown"}function p(e){for(const[t,n]of Object.entries(i().util.Error.Category))if(n===e)return t;return"unknown"}function f(e){switch(e){case i().util.Error.Severity.CRITICAL:return"fatal";case i().util.Error.Severity.RECOVERABLE:return"recoverable";default:return"unknown"}}const h=(e,t)=>t.filter((e=>"variant"===e.type)).sort(((t,n)=>{const o=Math.abs(e-t.bandwidth);return Math.abs(e-n.bandwidth)-o})).pop();var m=n(37705);const g=()=>(0,m.Z)().replace(new RegExp("-","g"),"");function v(e,t){var n;return null===(n=null==t?void 0:t.find((t=>t.isPlayable(e))))||void 0===n?void 0:n.getMediaUrl(e)}const y=()=>{};function _(e){return null!==e&&"object"==typeof e&&"category"in e&&"code"in e&&"severity"in e&&"handled"in e}var b=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const S=12e5;class E{constructor(e){var t,n,o,r,a,s,l;if(this.config=e,this.offlineBitrateTarget=S,this.shakaStorage=new(i().offline.Storage),this.ongoingDownloads=new Map,this.offlineBitrateTarget=(null===(n=null===(t=null==e?void 0:e.playerConfiguration)||void 0===t?void 0:t.offline)||void 0===n?void 0:n.targetBitrate)||S,this.shakaStorage.configure({offline:{trackSelectionCallback:this.selectTracks.bind(this),progressCallback:this.notifyDownloadProgress.bind(this)},drm:{servers:null===(r=null===(o=null==e?void 0:e.playerConfiguration)||void 0===o?void 0:o.drm)||void 0===r?void 0:r.servers,advanced:null===(s=null===(a=null==e?void 0:e.playerConfiguration)||void 0===a?void 0:a.drm)||void 0===s?void 0:s.advanced}}),null===(l=this.config)||void 0===l?void 0:l.networkConfiguration){u(this.shakaStorage.getNetworkingEngine(),this.config.networkConfiguration)}}release(){this.ongoingDownloads=new Map}download(e,t){var n,o,i,r,a,s,l;return b(this,void 0,void 0,(function*(){if(this.ongoingDownloads.has(e)){const t={reason:"Download already started",error_extra1:e};return Promise.reject(t)}const c=null!==(o=v(e,null===(n=this.config)||void 0===n?void 0:n.mediaExtensions))&&void 0!==o?o:e;let u={offlineUrl:null,mediaUri:e,originalUrl:c,duration:0,size:0};const f={partialAsset:u,observers:null!==(l=null===(s=null===(a=null===(r=null===(i=this.config)||void 0===i?void 0:i.playerConfiguration)||void 0===r?void 0:r.offline)||void 0===a?void 0:a.downloadObserverFactories)||void 0===s?void 0:s.map((e=>e())))&&void 0!==l?l:[]};if(this.ongoingDownloads.set(e,f),this.notifyObservers(f,{name:"created",mediaUri:e}),yield this.isAssetOffline(e)){const e={reason:"Already downloaded"};return this.notifyObservers(f,{name:"error",partialAsset:u,error:e}),Promise.reject(e)}const h={mediaUri:e,downloadSessionId:g(),downloadDate:new Date,consumerMetadata:t},m=this.shakaStorage.store(c,h);let y;f.shakaOperation=m,this.ongoingDownloads.set(e,f);try{if(y=yield m.promise,!this.isFullyDownloaded(y)){const t={reason:"Download completed but unavailable"};return this.ongoingDownloads.delete(e),this.notifyObservers(f,{name:"error",partialAsset:u,error:t}),yield Promise.reject(t)}return u=this.shakaStoredContentToOfflineAsset(y),this.ongoingDownloads.delete(e),this.notifyObservers(f,{name:"completed",offlineAsset:u}),u}catch(n){if(_(n)){const o=function(e,t){return{reason:d(e.code),code:e.code,category:p(e.category),error_extra1:JSON.stringify(e.data),error_extra2:JSON.stringify(t)}}(n,t);return this.ongoingDownloads.delete(e),this.notifyObservers(f,{name:"error",partialAsset:u,error:o}),Promise.reject(o)}return Promise.reject(n)}}))}getOfflineAsset(e){return b(this,void 0,void 0,(function*(){return(yield this.getOfflineAssets()).find((t=>t.mediaUri===e))}))}getOngoingDownloads(){const e=[];return this.ongoingDownloads.forEach(((t,n)=>{e.push(n)})),e}isAssetOffline(e){return b(this,void 0,void 0,(function*(){return void 0!==(yield this.getOfflineAsset(e))}))}getPlayableOfflineUrl(e){var t;return b(this,void 0,void 0,(function*(){const n=yield this.getOfflineAsset(e);return null!==(t=null==n?void 0:n.offlineUrl)&&void 0!==t?t:null}))}getOfflineAssets(){return b(this,void 0,void 0,(function*(){return(yield this.shakaStorage.list()).filter(this.isFullyDownloaded).map(this.shakaStoredContentToOfflineAsset)}))}delete(e){var t;return b(this,void 0,void 0,(function*(){const n=this.ongoingDownloads.get(e);if(n){const o=n.partialAsset;return yield null===(t=n.shakaOperation)||void 0===t?void 0:t.abort(),this.ongoingDownloads.delete(e),this.notifyObservers(n,{name:"cancelled",partialAsset:o}),!0}const o=yield this.getOfflineAsset(e);return!!(null==o?void 0:o.offlineUrl)&&(yield this.shakaStorage.remove(o.offlineUrl),!0)}))}deleteAll(){return b(this,void 0,void 0,(function*(){yield i().offline.Storage.deleteAll()}))}notifyObservers(e,t){e.observers.forEach((e=>e.onDownloadEvent(t)))}notifyDownloadProgress(e,t){const n=e.appMetadata,o=null==n?void 0:n.mediaUri,i=this.shakaStoredContentToOfflineAsset(e),r=this.ongoingDownloads.get(o);r&&(r.partialAsset=i,this.notifyObservers(r,{name:"progress",partialAsset:i,progress:t}))}selectTracks(e){return[h(this.offlineBitrateTarget,e)]}isFullyDownloaded(e){return null!==e.offlineUri}shakaStoredContentToOfflineAsset(e){var t;const n=isFinite(e.expiration)?new Date(e.expiration):void 0,o=e.appMetadata;return{mediaUri:o.mediaUri,originalUrl:e.originalManifestUri,offlineUrl:null!==(t=e.offlineUri)&&void 0!==t?t:null,duration:e.duration,size:e.size,expirationDate:n,downloadSessionId:o.downloadSessionId,downloadDate:o.downloadDate,metadata:o.consumerMetadata}}}const A=e=>{(null===performance||void 0===performance?void 0:performance.mark)&&(null===performance||void 0===performance||performance.mark(e))};class T{constructor(){this.curId_=0,this.config_=null,this.data=null,this.profileInitSegmentReferences=new Map,this.UNSUPPORTED_MIME_TYPES=["video/mp2t"],this.PROFILE_ID_PLACEHOLDER="{{profile_id}}",this.FILE_TYPE_PLACEHOLDER="{{file_type}}",this.SEGMENT_TIMESTAMP_PLACEHOLDER="{{segment_timestamp}}",this.LANGUAGE_CODE_PLACEHOLDER="{{language_code}}",this.stop=()=>Promise.resolve(),this.loadData_=e=>{let t=null;if(e instanceof ArrayBuffer){const n=i().util.StringUtils.fromUTF8(e);try{t=JSON.parse(n)}catch(e){const t=e;throw new(i().util.Error)(i().util.Error.Severity.CRITICAL,i().util.Error.Category.MANIFEST,i().util.Error.Code.MISSING_TEXT_PLUGIN,`Exception parsing the Json manifest: ${t.message}`)}}else t=e;if(!t)throw new(i().util.Error)(i().util.Error.Severity.CRITICAL,i().util.Error.Category.MANIFEST,i().util.Error.Code.MISSING_TEXT_PLUGIN,"Invalid JSON");return t},this.groupProfiles_=e=>{const t=[],n=[];if(e.forEach((e=>{const o=e.mime_type.split("/")[0];"video"===o?t.push(e):"audio"===o&&n.push(e)})),!t.length&&!n.length)return[];if(t.length&&!n.length)return t.map((e=>({video:e,audio:null})));if(!t.length&&n.length)return n.map((e=>({video:null,audio:e})));const o=[];return t.forEach((e=>{n.forEach((t=>{o.push({video:e,audio:t})}))})),o}}configure(e){this.config_=e}start(e,t){if(A("betamax::manifestparser_start"),!this.config_)throw new Error("Must call configure() before start()");const n=i().net.NetworkingEngine.RequestType.MANIFEST,o={uris:[e],method:"GET",retryParameters:this.config_.retryParameters,allowCrossSiteCredentials:!1,headers:{},body:null,drmInfo:null,initData:null,initDataType:null,licenseRequestType:null,sessionId:null,streamDataCallback:null};return t.networkingEngine.request(n,o).promise.then((e=>this.loadManifest_(e.data)))}onExpirationUpdated(){}update(){}loadManifest_(e){A("betamax::manifestparser_loadManifestStart"),this.data=this.loadData_(e);const t=new(i().media.PresentationTimeline)(null,0);t.setDuration(this.data.end_time_millis/1e3);const n=this.data.contents[0];this.profileInitSegmentReferences=new Map;const o=this.filterProfiles_(n.profiles),r={presentationTimeline:t,minBufferTime:0,offlineSessionIds:[],variants:this.groupProfiles_(o).map((e=>this.loadVariant_(n,e))),textStreams:this.loadTextStreams_(n),imageStreams:[],sequenceMode:!1};return A("betamax::manifestparser_loadManifest_end"),r}filterProfiles_(e){return e.filter((e=>!this.UNSUPPORTED_MIME_TYPES.includes(e.mime_type)))}loadVariant_(e,t){const n=e.encryption_infos&&e.encryption_infos.length>0,o=(t.video?t.video.video_bitrate:0)+(t.audio?t.audio.audio_bitrate:0);return{id:this.curId_++,language:"und",primary:!1,audio:t.audio?this.loadStream_(e,t.audio,"audio",n):null,video:t.video?this.loadStream_(e,t.video,"video",n):null,bandwidth:o,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[],disabledUntilTime:0}}loadTextStreams_(e){var t,n;let o=[];return(null===(n=null===(t=this.data)||void 0===t?void 0:t.subtitle_language_codes)||void 0===n?void 0:n.length)&&(o=this.data.subtitle_language_codes.map((e=>({id:this.curId_++,mime_type:"text/vtt",file_type:"vtt",language:e})))),o.map((t=>this.loadStream_(e,t,"text",!1)))}loadStream_(e,t,n,o){const i=this.getSegmentIndex_(e,t,n);let r="";"video"===n&&(r=t.video_codec),"audio"===n&&(r=t.audio_codec);const a={keySystem:"com.widevine.alpha",licenseServerUri:"",audioRobustness:"",videoRobustness:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!0,initData:[],keyIds:new Set,serverCertificateUri:"",serverCertificate:null,sessionType:"temporary"},s=o?[a]:[];return{id:this.curId_++,createSegmentIndex:()=>Promise.resolve(),segmentIndex:i,mimeType:t.mime_type,codecs:r,bandwidth:t.max_bitrate,width:"video"===n?t.video_width:void 0,height:"video"===n?t.video_height:void 0,kind:"text"===n?"subtitles":void 0,encrypted:o,keyIds:new Set,language:"text"===n?t.language:"und",type:n,primary:!1,roles:[],drmInfos:s,closedCaptions:new Map,spatialAudio:!1,trickModeVideo:null,audioSamplingRate:null,forced:!1,channelsCount:null,label:null,emsgSchemeIdUris:null,originalId:null}}getInitSegmentReference_(e){if(this.profileInitSegmentReferences.has(e))return this.profileInitSegmentReferences.get(e);const t=new(i().media.InitSegmentReference)((()=>{var t,n;return null!==(n=null===(t=this.data)||void 0===t?void 0:t.base_urls.map((t=>{var n,o;return(t+(null!==(o=null===(n=this.data)||void 0===n?void 0:n.initialization_template)&&void 0!==o?o:"")).replace(this.PROFILE_ID_PLACEHOLDER,`${e.id}`).replace(this.FILE_TYPE_PLACEHOLDER,e.file_type)})))&&void 0!==n?n:[]}),0,null);return this.profileInitSegmentReferences.set(e,t),t}getSegmentIndex_(e,t,n){let o=[];const r=e.start_time_millis/1e3,a=e.end_time_millis/1e3;if("text"===n){const e=t,n=()=>{var t;return(null===(t=this.data)||void 0===t?void 0:t.subtitle_base_urls)?this.data.subtitle_base_urls.map((t=>{var n,o;return(t+(null!==(o=null===(n=this.data)||void 0===n?void 0:n.subtitle_template)&&void 0!==o?o:"")).replace(this.LANGUAGE_CODE_PLACEHOLDER,e.language)})):[]};o=[new(i().media.SegmentReference)(r,a,n,0,null,null,r,r,1/0)]}else{const n=e.segment_length;let i=r;for(;i<a;){const e=this.loadReference_(t,i,i+n,r);o.push(e),i+=n}}return new(i().media.SegmentIndex)(o)}loadReference_(e,t,n,o){const r=this.getInitSegmentReference_(e);return new(i().media.SegmentReference)(t,n,(()=>{var n,o;return null!==(o=null===(n=this.data)||void 0===n?void 0:n.base_urls.map((n=>{var o,i;return(n+(null!==(i=null===(o=this.data)||void 0===o?void 0:o.segment_template)&&void 0!==i?i:"")).replace(this.PROFILE_ID_PLACEHOLDER,`${e.id}`).replace(this.FILE_TYPE_PLACEHOLDER,e.file_type).replace(this.SEGMENT_TIMESTAMP_PLACEHOLDER,`${t}`)})))&&void 0!==o?o:[]}),0,null,r,o,o,1/0)}}const P="spotify-video://";class O{static create(e){return`${P}${e}`}}class C{constructor(e){this.manifestTemplate=e;const t=()=>new T;i().media.ManifestParser.registerParserByExtension("json",t),i().media.ManifestParser.registerParserByMime("application/json",t)}isPlayable(e){return e.startsWith(P)}getMediaUrl(e){const t=e.replace(P,"");return function(e,t,n){return e.replace(/\{type\}/i,t).replace(/\{source_id\}/i,encodeURIComponent(n))}(this.manifestTemplate,"json",t)}}var k=n(79221);const R="betamax-offline",L=e=>{var t,n;return null!==(n=null===(t=e.metadata)||void 0===t?void 0:t.episodeUri)&&void 0!==n?n:""},I=({partialAsset:e,progress:t})=>{const n=L(e),o=e.size,i=t>0?Math.round(o/t):-1;return{id:R,download:{link:n,complete:!1,fileSize:i,bytesDownloaded:o,error:s.OK},identify:void 0,remove:void 0,stopDownload:void 0}},N=({offlineAsset:e})=>({id:R,download:{link:L(e),complete:!0,fileSize:e.size,bytesDownloaded:e.size,error:s.OK},identify:void 0,remove:void 0,stopDownload:void 0}),w=({partialAsset:e,error:t})=>{const n=D(t),o=L(e);return{id:R,download:{link:o,complete:!1,fileSize:e.size,bytesDownloaded:e.size,error:n},identify:void 0,remove:void 0,stopDownload:void 0}},D=e=>e.code===i().util.Error.Code.QUOTA_EXCEEDED_ERROR?s.DISK_FULL:s.PERMANENT_ERROR;var M=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};class x{constructor(e){this.configuration=e,this.offlineCosmosEndpoint="sp://offline/v2/plugin",this.betamaxPluginId="betamax-offline",this.pluginHeaders={"content-type":"application/json",accept:"application/json"},this.show_service=e.show_service}initialize(){var e,t,n,o,i,r;if(!0!==(null===(t=null===(e=this.configuration.playerConfiguration)||void 0===e?void 0:e.offline)||void 0===t?void 0:t.enabled))return;const a=this.configuration.productState["widevine-license-url"];this.configuration.playerConfiguration.drm={servers:Object.assign(Object.assign({},null===(n=this.configuration.playerConfiguration.drm)||void 0===n?void 0:n.servers),{"com.widevine.alpha":a}),advanced:{"com.widevine.alpha":Object.assign(Object.assign({},null===(o=this.configuration.playerConfiguration.drm)||void 0===o?void 0:o.advanced),{videoRobustness:"SW_SECURE_DECODE"})}},null!==(i=(r=this.configuration.playerConfiguration.offline).downloadObserverFactories)&&void 0!==i||(r.downloadObserverFactories=[]),this.configuration.playerConfiguration.offline.downloadObserverFactories.push((()=>({onDownloadEvent:e=>this.onDownloadEvent(e)})));const s=new C(this.configuration.productState["video-manifest-url"]);this.offlineManager=new E({networkConfiguration:this.configuration.networkConfiguration,playerConfiguration:this.configuration.playerConfiguration,mediaExtensions:[s]});const l={id:this.betamaxPluginId};this.pluginCosmosSubscription=this.configuration.cosmos.sub(this.offlineCosmosEndpoint,this.onCommandReceived.bind(this),y,l,this.pluginHeaders)}release(){this.offlineManager&&(this.offlineManager.release(),this.offlineManager=void 0),this.pluginCosmosSubscription&&(this.pluginCosmosSubscription.cancel(),this.pluginCosmosSubscription=void 0)}onDownloadEvent(e){return M(this,void 0,void 0,(function*(){const t=(e=>"progress"===e.name?I(e):"completed"===e.name?N(e):"error"===e.name?w(e):void 0)(e);t&&(yield this.configuration.cosmos.post(this.offlineCosmosEndpoint,t,this.pluginHeaders))}))}onCommandReceived(e){return M(this,void 0,void 0,(function*(){if(!this.offlineManager)return Promise.reject("not initialized");if(!e.download&&!e.identify&&!e.remove)return Promise.reject("unknown command");let t;e.download&&(t=yield this.onDownloadCommand(e.download)),e.identify&&(t=yield this.onIdentifyCommand(e.identify)),e.remove&&(yield this.onRemoveCommand(e.remove)),t&&(yield this.configuration.cosmos.post(this.offlineCosmosEndpoint,t,this.pluginHeaders))}))}onDownloadCommand(e){var t;return M(this,void 0,void 0,(function*(){const n={id:this.betamaxPluginId,download:{link:"",complete:!1,fileSize:0,bytesDownloaded:0,error:0},identify:void 0,remove:void 0,stopDownload:void 0},o=e.link,{mediaUri:i,mediaType:r}=yield this.getEpisodeMetadata(o).catch((()=>({mediaUri:void 0,mediaType:void 0})));return void 0===i||void 0===r?(n.download&&(n.download.error=s.TEMPORARY_ERROR),n):this.isVideo(r)?void(yield null===(t=this.offlineManager)||void 0===t?void 0:t.download(i,{episodeUri:o})):(n.download&&(n.download.error=s.PERMANENT_ERROR),n)}))}onIdentifyCommand(e){var t,n;return M(this,void 0,void 0,(function*(){const o={};for(const{link:i}of e.query){const e={status:a.UNRECOGNIZED,estimatedFileSize:0},{mediaUri:r,mediaType:s}=yield this.getEpisodeMetadata(i).catch((()=>({mediaUri:void 0,mediaType:void 0})));if(void 0!==r&&void 0!==s&&this.isVideo(s)){const o=yield null===(t=this.offlineManager)||void 0===t?void 0:t.getOfflineAsset(r);e.status=void 0===o?a.MISSING:a.COMPLETE,e.estimatedFileSize=null!==(n=null==o?void 0:o.size)&&void 0!==n?n:0}else e.status=a.NOT_APPLICABLE;o[i]=e}const i={id:this.betamaxPluginId,download:void 0,identify:{results:o},remove:void 0,stopDownload:void 0};return Promise.resolve(i)}))}onRemoveCommand(e){var t;return M(this,void 0,void 0,(function*(){for(const{link:n}of e.query){const{mediaUri:e,mediaType:o}=yield this.getEpisodeMetadata(n);void 0!==o&&void 0!==e&&this.isVideo(o)&&(yield null===(t=this.offlineManager)||void 0===t?void 0:t.delete(e))}}))}getEpisodeMetadata(e){var t,n,o,i;return M(this,void 0,void 0,(function*(){if(void 0===e.split(":").pop())return Promise.reject(`unexpected uri ${e}`);if(void 0===this.show_service)return Promise.reject("show service is not initialized");const r=yield this.show_service.getDecorate(k.GetDecorateRequest.fromPartial({item:[e]})),a=null===(n=null===(t=r.response)||void 0===t?void 0:t.episode[0].episodeMetadata)||void 0===n?void 0:n.mediaTypeEnum,s=null===(i=null===(o=r.response)||void 0===o?void 0:o.episode[0].episodeMetadata)||void 0===i?void 0:i.manifestId;let l;return s&&(l=O.create(s)),{mediaUri:l,mediaType:a}}))}isVideo(e){return 0===e||2===e}}class F{constructor(e){this.cosmos=e}getStopPosition(){return this.stopPosition}setMediaDuration(e){this.mediaDuration!==e&&(this.mediaDuration=e,this.tryScheduleInterruption())}setTimeObservable(e){this.timeObservable!==e&&(this.timeObservable=e,this.tryScheduleInterruption())}registerInterruptorWhenReadyAtPosition(e){this.stopPosition!==e&&(this.stopPosition=e,this.tryScheduleInterruption())}unregister(){void 0!==this.interruptToken&&void 0!==this.timeObservable&&this.timeObservable.removePositionObserver(this.interruptToken),this.stopPosition=void 0,this.interruptToken=void 0}tryScheduleInterruption(){if(void 0===this.mediaDuration||this.mediaDuration<0||void 0===this.stopPosition||this.stopPosition<0||void 0===this.timeObservable)return;const e=this.stopPosition/this.mediaDuration;void 0!==this.interruptToken&&this.timeObservable.removePositionObserver(this.interruptToken),this.interruptToken=this.timeObservable.addObserverForMediaPositions([e],(()=>{this.cosmos.post("sp://videoplayer/v1/advance",{reason:"finished"}),this.unregister()}))}}const U="cc",B={languageTag:""};function V(e){const t=e.languageTag.split("-"),n=[];for(const e of t){if(1===e.length)break;n.push(e)}return n.join("-")}function G(e){return e.languageTag.split("-")[0]}var J=n(77539),j=n.n(J);class H{constructor(){this.hasInitialized=!1,this.pendingMessages=[],this.muxMetadata={}}newSession(e){this.shakaPlayerMux=void 0,this.hasInitialized=!1,this.muxMetadata=e,this.muxMetadata.video_content_type=function(e){if("context-player-vodcast"===e)return"Video Podcast";return"Other"}(this.muxMetadata.video_content_type),this.pendingMessages=[]}isVodcast(){return"Video Podcast"===this.muxMetadata.video_content_type}init(e,t){var n,o,i,r,a,s;this.isVodcast()&&(this.shakaPlayerMux=j()(e,{debug:!1,data:Object.assign({env_key:null===(o=null===(n=null==t?void 0:t.analytics)||void 0===n?void 0:n.mux)||void 0===o?void 0:o.token,player_name:null===(r=null===(i=null==t?void 0:t.analytics)||void 0===i?void 0:i.mux)||void 0===r?void 0:r.playerName,player_version:Mn,player_init_time:Date.now(),viewer_application_name:null===(s=null===(a=null==t?void 0:t.analytics)||void 0===a?void 0:a.mux)||void 0===s?void 0:s.appName},this.muxMetadata)}),this.hasInitialized=!0,this.emitPendingHeartBeats())}loadErrorHandler(e){var t;null===(t=this.shakaPlayerMux)||void 0===t||t.loadErrorHandler(e)}queueHeartBeat(e){this.pendingMessages.push(e),this.emitPendingHeartBeats()}emitPendingHeartBeats(){var e;if(this.hasInitialized){let t;for(t of this.pendingMessages)null===(e=this.shakaPlayerMux)||void 0===e||e.emit("hb",t);this.pendingMessages=[]}}}let K;function Y(){return void 0===K&&(K=new H),K}var W,z;!function(e){e.SESSION_ID="session_id",e.MEDIA_URL="media_url",e.MS_START_POSITION="ms_start_position",e.MS_DURATION="ms_duration",e.MS_START_TIME="ms_start_time",e.MS_MANIFEST_LOAD_TIME="ms_manifest_load_time",e.MS_ENCRYPTION_LOAD_TIME="ms_encryption_load_time",e.MS_INITIAL_BUFFERING="ms_initial_buffering",e.MS_PLAYED="ms_played",e.MS_PLAYED_NOMINAL="ms_played_nominal",e.MS_PLAYED_SUBTITLES="ms_played_subtitles",e.MS_PLAYED_FULLSCREEN="ms_played_fullscreen",e.MS_PLAYED_PER_SURFACE="ms_played_per_surface",e.MS_PLAYED_VIDEO_DISABLED="ms_played_video_disabled",e.ENCRYPTION_TYPE="encryption_type",e.EXIT_REASON="exit_reason",e.LAST_USED_SUBTITLE="last_used_subtitle",e.N_STALLS="n_stalls",e.MS_BUFFERING_STALL="ms_buffering_stall",e.MS_BUFFERING_STALL_LONGEST="ms_buffering_stall_longest",e.N_SEEKBACK="n_seekback",e.N_SEEKFORWARD="n_seekforward",e.MS_BUFFERING_SEEK="ms_buffering_seek",e.MS_BUFFERING_SEEK_LONGEST="ms_buffering_seek_longest",e.KBPS_AVERAGE_BANDWIDTH="kbps_average_bandwidth",e.KBYTES_DOWNLOADED="kbytes_downloaded",e.N_DROPPED_FRAMES="n_dropped_frames",e.ASPECT_RATIO="aspect_ratio",e.FEATURE_IDENTIFIER="feature_identifier",e.START_BITRATE="start_bitrate",e.MS_PLAYED_BACKGROUND="ms_played_background",e.CONNECTION_TYPE_START="connection_type_start",e.CONNECTION_TYPE_END="connection_type_end",e.N_VIEW_TRANSITIONS="n_view_transitions",e.AVERAGE_DEVICE_ORIENTATION="average_device_orientation",e.KBYTES_PLAYED="kbytes_played",e.IS_ROYALTY_MEDIA="is_royalty_media",e.STREAMING_TYPE="streaming_type",e.DESKTOP_UI="desktop_ui"}(W||(W={})),function(e){e.PLAY_CONTEXT="play_context",e.REFERRER_VENDOR="referrer_vendor",e.PLAYBACK_ID="playback_id",e.MS_TOTAL_EST="ms_total_est",e.AUDIOCODEC="audiocodec",e.N_SEEKFWD="n_seekfwd",e.PREFETCHED_BYTES_LOADED="prefetched_bytes_loaded",e.TOTAL_BYTES="total_bytes",e.FEATURE_IDENTIFIER="feature_identifier",e.VIEW_URI="view_uri",e.START_BITRATE="start_bitrate",e.KEY_SYSTEM="key_system",e.CONNECTION_TYPE_END="connection_type_end",e.VIDEO_SESSION_ID="video_session_id",e.LOCAL_TIME_MS="local_time_ms",e.TIME_WEIGHTED_BITRATE="time_weighted_bitrate",e.MS_LATENCY="ms_latency",e.CONNECTION_TYPE_START="connection_type_start",e.MS_PLAYED_BACKGROUND="ms_played_background",e.FILE_ID="file_id",e.MS_SEEKFWD="ms_seekfwd",e.UI_LATENCY="ui_latency",e.REFERRER_VERSION="referrer_version",e.REASON_START="reason_start",e.N_STALLS="n_stalls",e.VIDEOCODEC="videocodec",e.FEATURE_VERSION="feature_version",e.N_SEEKBACK="n_seekback",e.MAX_MS_SEEK_REBUFFERING="max_ms_seek_rebuffering",e.INCOGNITO_MODE="incognito_mode",e.MAX_MS_STALLED="max_ms_stalled",e.MS_MANIFEST_LATENCY="ms_manifest_latency",e.PROVIDER="provider",e.SEQUENCE_ID="sequence_id",e.PLAY_TRACK="play_track",e.MS_STALLED="ms_stalled",e.LIVE="live",e.START_OFFSET_MS="start_offset_ms",e.MS_SEEK_REBUFFERING="ms_seek_rebuffering",e.GAIA_DEV_ID="gaia_dev_id",e.PREFETCHED_BYTES="prefetched_bytes",e.MS_KEY_LATENCY="ms_key_latency",e.MS_INITIAL_BUFFERING="ms_initial_buffering",e.SEQUENCE_NUMBER="sequence_number",e.REFERRER="referrer",e.MS_SEEKBACK="ms_seekback",e.UNION_PLAYED="union_played",e.STREAMING_RULE="streaming_rule",e.MS_PLAYED="ms_played",e.MS_PLAYED_VIDEO="ms_played_video",e.MS_NOMINAL_PLAYED="ms_nominal_played",e.REASON_END="reason_end",e.MAX_CONTINOUS="max_continous",e.SHUFFLE="shuffle",e.FULL_SCREEN="full_screen",e.PAGE_INSTANCE_ID="page_instance_id",e.INTERACTION_ID="interaction_id"}(z||(z={}));var q=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const X="playback_id",Z="reason_start",Q="feature_identifier",$="desktop_ui",ee="referrer_version",te="feature_version",ne="gaia_dev_id",oe="view_uri",ie="play_context",re="file_id",ae="referrer",se="shuffle",le="play_track",ce="provider",ue="command_initiated_time_ms",de="client_offline",pe=[X,Z,Q,te,ee,re,ne,oe,ie,ae,se,le,ce,ue,de],fe="endvideo_";function he(e){var t,n,o,i,r,a,s,l,c,u;const d=null!==(o=null===(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.track)||void 0===n?void 0:n.metadata)&&void 0!==o?o:{},p=function(e){var t,n,o,i,r,a,s,l,c,u,d,p,f,h,m,g,v,y,_,b,S,E,A,T,P,O,C,k,R,L,I,N,w,D,M;const x=null!==(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.playback_id)&&void 0!==n?n:"",F=null!==(a=null===(r=null===(i=null===(o=null==e?void 0:e.track)||void 0===o?void 0:o.track)||void 0===i?void 0:i.metadata)||void 0===r?void 0:r["media.manifest_id"])&&void 0!==a?a:"",U=null!==(c=null===(l=null===(s=null==e?void 0:e.track)||void 0===s?void 0:s.play_origin)||void 0===l?void 0:l.feature_identifier)&&void 0!==c?c:"",B=null!==(p=null===(d=null===(u=null==e?void 0:e.track)||void 0===u?void 0:u.play_origin)||void 0===d?void 0:d.feature_version)&&void 0!==p?p:"",V=null!==(m=null===(h=null===(f=null==e?void 0:e.track)||void 0===f?void 0:f.play_origin)||void 0===h?void 0:h.view_uri)&&void 0!==m?m:"",G=null!==(y=null===(v=null===(g=null==e?void 0:e.track)||void 0===g?void 0:g.play_origin)||void 0===v?void 0:v.referrer_identifier)&&void 0!==y?y:"",J=null!==(S=null===(b=null===(_=null==e?void 0:e.track)||void 0===_?void 0:_.play_origin)||void 0===b?void 0:b.device_identifier)&&void 0!==S?S:"",j=null!==(A=null===(E=null==e?void 0:e.player_options_override)||void 0===E?void 0:E.shuffling_context)&&void 0!==A&&A,H=null!==(O=null===(P=null===(T=null==e?void 0:e.track)||void 0===T?void 0:T.track)||void 0===P?void 0:P.provider)&&void 0!==O?O:"",K=null!==(C=null==e?void 0:e.start_reason)&&void 0!==C?C:"unknown",Y=null!==(R=null===(k=null==e?void 0:e.track)||void 0===k?void 0:k.context_uri)&&void 0!==R?R:"",W=null!==(N=null===(I=null===(L=null==e?void 0:e.track)||void 0===L?void 0:L.track)||void 0===I?void 0:I.uri)&&void 0!==N?N:"",z=null!==(D=null===(w=null==e?void 0:e.logging_params)||void 0===w?void 0:w.command_initiated_time)&&void 0!==D?D:-1,q=null!==(M=null==e?void 0:e.client_offline)&&void 0!==M&&M,$={[X]:x,[Q]:U,[ee]:B,[te]:B,[oe]:V,[ae]:G,[ne]:J,[ce]:H,[Z]:K,[ie]:Y,[se]:j?"true":"false",[le]:W,[ue]:z,[re]:F,[de]:q?"true":"false"},he=me(pe);return he(fe)($)}(e),f=null===(a=null===(r=null===(i=null==e?void 0:e.track)||void 0===i?void 0:i.track)||void 0===r?void 0:r.metadata)||void 0===a?void 0:a.interaction_id;f&&(d[z.INTERACTION_ID]=f);const h=null===(c=null===(l=null===(s=null==e?void 0:e.track)||void 0===s?void 0:s.track)||void 0===l?void 0:l.metadata)||void 0===c?void 0:c.page_instance_id;return h&&(d[z.PAGE_INSTANCE_ID]=h),d.feature_identifier=function(e){let t,n="context-player";const o="mixed"===e.track.track.metadata["media.type"];if(o)t="vodcast";else{const n=e.track.track.uri.split(":"),o=n.length>=2&&"spotify"===n[0]&&n[1]?n[1]:void 0;o&&(t=o)}if(t)return n=`${n}-${t}`,n;return n}(e),d.playback_id=e.track.playback_id,d[Z]=null!==(u=null==e?void 0:e.start_reason)&&void 0!==u?u:"unknown",Object.assign(Object.assign({},d),p)}const me=e=>t=>n=>Object.entries(n).reduce(((n,[o,i])=>{const r=e.includes(o)?`${t}${o}`:o;return Object.assign(Object.assign({},n),{[r]:i})}),{});function ge(e){const t=e["video.subtitles"],n=e["video.subtitles_cc"];return""===t?B:function(e,t){return e?{languageTag:t?`${e}-x-${U}`:e}:B}(t,n)}function ve(e){return e["audio.episode.speed"]}const ye=e=>{function t(t){return q(this,void 0,void 0,(function*(){const n=yield e();return yield n.send(t)}))}return{playbackSessionLogger:{log:e=>t({name:"BetamaxPlaybackSession",environments:["device","desktop"],data:e})},playbackErrorLogger:{log:e=>t({name:"BetamaxPlaybackErrorDevice",environments:["device","desktop"],data:e})},downloadSessionLogger:{log:e=>t({name:"BetamaxDownloadSession",environments:["device","desktop"],data:e})},downloadErrorLogger:{log:e=>t({name:"BetamaxDownloadError",environments:["device","desktop"],data:e})}}};var _e=n(99810),be=n(65875);class Se{constructor(e,t){this.productStateService=e,this.scrobbleService=t,this.rules="",this.productStateService.subValues(be.SubValuesRequest.fromPartial({}),(e=>{e.pairs["streaming-rules"]&&(this.rules=e.pairs["streaming-rules"])})),this.scrobbleService.subIncognitoMode(_e.SubIncognitoModeRequest.fromPartial({}),(e=>{this.incognito=e.incognitoMode}))}streamingRules(){return this.rules}}var Ee=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};class Ae{constructor(e,t){this.mainPlayer=e,this.adPlayer=t}get muted(){return this.mainPlayer.muted}get volume(){return this.mainPlayer.volume}get started(){return this.mainPlayer.started}get ended(){return this.mainPlayer.ended}playerByPlaybackId(e){var t,n,o,i,r;return(null===(n=null===(t=this.mainPlayer.getPlaybackRequest())||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.playback_id)===e?this.mainPlayer:(null===(r=null===(i=null===(o=this.adPlayer)||void 0===o?void 0:o.getPlaybackRequest())||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.playback_id)===e?this.adPlayer:void 0}getNonMatchingPlayerByPlaybackId(e){var t,n,o,i,r;return(null===(n=null===(t=this.mainPlayer.getPlaybackRequest())||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.playback_id)===e?this.adPlayer:(null===(r=null===(i=null===(o=this.adPlayer)||void 0===o?void 0:o.getPlaybackRequest())||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.playback_id)===e?this.mainPlayer:void 0}hasPlaybackId(e){return!!this.playerByPlaybackId(e)}switchPlayer(e){return Ee(this,void 0,void 0,(function*(){const t=this.playerByPlaybackId(e);if(!t)return;t.reattach(),t.showNode();const n=this.getNonMatchingPlayerByPlaybackId(e);null==n||n.hideNode(),n===this.adPlayer&&(yield null==n?void 0:n.stop())}))}getPlaybackRequest(){return this.mainPlayer.getPlaybackRequest()}play(e,t){var n,o,i,r,a;return Ee(this,void 0,void 0,(function*(){return this.adPlayer?this.isAd(e)?(null===(n=this.mainPlayer)||void 0===n||n.pause(),null===(o=this.mainPlayer)||void 0===o||o.hideNode(),null===(i=this.adPlayer)||void 0===i||i.showNode(),this.adPlayer.play(e,t)):(yield null===(r=this.adPlayer)||void 0===r?void 0:r.stop(),null===(a=this.mainPlayer)||void 0===a||a.showNode(),this.mainPlayer.play(e,t)):this.mainPlayer.play(e,t)}))}resume(e){var t;return null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.resume()}pause(e){var t;return null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.pause()}setPreferredSubtitle(e){var t;return null===(t=this.adPlayer)||void 0===t||t.setPreferredSubtitle(e),this.mainPlayer.setPreferredSubtitle(e)}setPlaybackSpeed(e){var t;null===(t=this.adPlayer)||void 0===t||t.setPlaybackSpeed(e),this.mainPlayer.setPlaybackSpeed(e)}seekTo(e,t){var n;return null===(n=this.playerByPlaybackId(e))||void 0===n?void 0:n.seekTo(t)}setVolume(e){var t;return null===(t=this.adPlayer)||void 0===t||t.setVolume(e),this.mainPlayer.setVolume(e)}setMinimizeBitrate(e){this.mainPlayer.setMinimizeBitrate(e)}setWindow(e){this.mainPlayer.setWindow(e)}setFullscreen(e){var t;null===(t=this.adPlayer)||void 0===t||t.setFullscreen(e),this.mainPlayer.setFullscreen(e)}setPip(e){var t;return Ee(this,void 0,void 0,(function*(){return null===(t=this.adPlayer)||void 0===t||t.setPip(e),this.mainPlayer.setPip(e)}))}setSurface(e){this.mainPlayer.setSurface(e)}getNode(){return this.mainPlayer.getNode()}stop(e){var t;return Ee(this,void 0,void 0,(function*(){yield null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.stop()}))}stopAll(){var e;return Ee(this,void 0,void 0,(function*(){yield Promise.all([this.mainPlayer.stop(),null===(e=this.adPlayer)||void 0===e?void 0:e.stop()])}))}getSessionState(e){var t,n;return null!==(n=null===(t=e?this.playerByPlaybackId(e):this.mainPlayer)||void 0===t?void 0:t.getSessionState())&&void 0!==n?n:null}isAd(e){var t;return"true"===(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.is_advertisement)}}var Te=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const Pe="https://spclient.wg.spotify.com/widevine-license/v1/application-certificate";function Oe(e){return Te(this,void 0,void 0,(function*(){const t=yield function(e,t,n={headers:new Headers}){return Te(this,void 0,void 0,(function*(){const{accessToken:o,tokenType:i}=yield e(),r=`${i} ${o}`;return n.headers.append("Authorization",r),fetch(t,n)}))}(e,Pe);if(t.ok){const e=yield t.arrayBuffer();return new Uint8Array(e)}throw new Error("Network response was not ok.")}))}class Ce{constructor(e){this.factories=e,this.observers=[]}initiateObservers(e,t){this.observers=this.factories.map((n=>n(e,t))).filter((e=>!!e))}removeObservers(){this.observers=[]}onPlaybackCreated(e){A("betamax::on_playback_created"),this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackCreated)||void 0===n?void 0:n.call(t,e,Date.now())})),A("betamax::on_playback_created_end")}onPlaybackEnded(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackEnded)||void 0===n?void 0:n.call(t,e,Date.now())})),this.removeObservers()}onEndingPlayback(e){this.observers.forEach((t=>{var n;return null===(n=t.onEndingPlayback)||void 0===n?void 0:n.call(t,e,Date.now())}))}onVolumeChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onVolumeChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onResumed(e){this.observers.forEach((t=>{var n;return null===(n=t.onResumed)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSeeking(e){this.observers.forEach((t=>{var n;return null===(n=t.onSeeking)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSeeked(e){this.observers.forEach((t=>{var n;return null===(n=t.onSeeked)||void 0===n?void 0:n.call(t,e,Date.now())}))}onPaused(e){this.observers.forEach((t=>{var n;return null===(n=t.onPaused)||void 0===n?void 0:n.call(t,e,Date.now())}))}onReady(e){A("betamax::on_ready"),this.observers.forEach((t=>{var n;return null===(n=t.onReady)||void 0===n?void 0:n.call(t,e,Date.now())}))}onManifestLoaded(e){this.observers.forEach((t=>{var n;return null===(n=t.onManifestLoaded)||void 0===n?void 0:n.call(t,e,Date.now())}))}onManifestLoading(){A("betamax::onManifestLoading"),this.observers.forEach((e=>{var t;return null===(t=e.onManifestLoading)||void 0===t?void 0:t.call(e,Date.now())})),A("betamax::onManifestLoading_end")}onPlaybackError(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackError)||void 0===n?void 0:n.call(t,e,Date.now())}))}onAudioFormatChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onAudioFormatChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onVideoFormatChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onVideoFormatChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onBuffering(e){this.observers.forEach((t=>{var n;return null===(n=t.onBuffering)||void 0===n?void 0:n.call(t,e,Date.now())}))}onDroppedVideoFrames(e){this.observers.forEach((t=>{var n;return null===(n=t.onDroppedVideoFrames)||void 0===n?void 0:n.call(t,e,Date.now())}))}onEncryptionKeyLoaded(e){this.observers.forEach((t=>{var n;return null===(n=t.onEncryptionKeyLoaded)||void 0===n?void 0:n.call(t,e,Date.now())}))}onEncryptionKeyLoading(){this.observers.forEach((e=>{var t;return null===(t=e.onEncryptionKeyLoading)||void 0===t?void 0:t.call(e,Date.now())}))}onBytesTransferred(e){this.observers.forEach((t=>{var n;return null===(n=t.onBytesTransferred)||void 0===n?void 0:n.call(t,e,Date.now())}))}onDurationChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onDurationChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSubtitleChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onSubtitleChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onFullscreenChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onFullscreenChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onPictureInPictureChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onPictureInPictureChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSurfaceChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onSurfaceChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onMinimizeBitrateChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onMinimizeBitrateChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onPlaybackSpeedChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackSpeedChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}}class ke{constructor(){this.tokenCounter=1,this.handleTimeUpdate=e=>{this.processPeriodicObserverEvents(e),this.processPositionObserverEvents(e)},this.positionObservers=[],this.periodicObservers=[]}removePositionObserver(e){this.positionObservers=this.positionObservers.filter((t=>t.token!==e))}removePeriodicObserver(e){this.periodicObservers=this.periodicObservers.filter((t=>t.token!==e))}addObserverForMediaPositions(e,t){const n=this.nextToken();for(const o of e)this.positionObservers.push({callback:t,token:n,position:o});return n}addObserverForPeriodicEvents(e,t){const n=this.nextToken();return this.periodicObservers.push({callback:t,intervalInSeconds:e,lastReportedPosition:0,token:n}),n}nextToken(){return this.tokenCounter++,this.tokenCounter}getProgress(e){const t=e.target.currentTime,n=e.target.duration;return Math.min(Math.max(t/n,0),1)}processPositionObserverEvents(e){const t=this.getProgress(e);if(void 0!==this.lastProgress){for(const e of this.positionObservers){e.position>=this.lastProgress&&e.position<t&&(e.callback(t),this.removePositionObserverByReference(e))}this.lastProgress=t}else this.lastProgress=t}processPeriodicObserverEvents(e){for(const t of this.periodicObservers){const n=e.target.currentTime;Math.abs(t.lastReportedPosition-n)>=t.intervalInSeconds&&(t.callback(n),t.lastReportedPosition=Math.floor(n))}}removePositionObserverByReference(e){this.positionObservers=this.positionObservers.filter((t=>t!==e))}}var Re,Le,Ie;!function(e){e.INITIAL="initial",e.SEEK="seek",e.STALL="stall"}(Re||(Re={})),function(e){e.PLAYED_TO_END="played-to-end",e.FATAL_ERROR="error",e.REQUESTED="requested-end",e.SHUTDOWN="shutdown",e.NETWORK_ERROR="network-error"}(Le||(Le={})),function(e){e.CREATED="created",e.MANIFEST_LOADING="manifestLoading",e.MANIFEST_LOADED="manifestLoaded",e.ENCRYPTION_KEY_LOADING="encryptionKeyLoading",e.ENCRYPTION_KEY_LOADED="encryptionKeyLoaded",e.BUFFERING="buffering",e.DROPPED_FRAMES="droppedFrames",e.READY="ready",e.STARTED="started",e.PAUSED="paused",e.RESUMED="resumed",e.SEEKING="seeking",e.SEEKED="seeked",e.ENDED="ended",e.ERROR="error",e.BYTES_TRANSFERRED="bytesTransferred",e.SUBTITLE_CHANGED="subtitleChanged",e.VIDEO_FORMAT_CHANGED="videoFormatChanged",e.AUDIO_FORMAT_CHANGED="audioFormatChanged",e.FULLSCREEN_CHANGED="fullscreenChanged",e.SURFACE_CHANGED="surfaceChanged",e.MINIMIZE_BITRATE_CHANGED="minimizeBitrateChanged",e.VOLUME_CHANGED="volumeChanged",e.PROGRESS="progress",e.POSITION_UPDATE="positionUpdate",e.DURATION_CHANGED="durationChanged",e.NEW_SESSION_LOADED="newSessionLoaded",e.PLAYBACK_SPEED_CHANGED="playbackSpeedChanged"}(Ie||(Ie={}));class Ne extends i().abr.SimpleAbrManager{constructor(){super(...arguments),this.surfaceBasedBitrateCap=!1,this.resizeObserverTimer=new(i().util.Timer)((()=>{this.handleResizing()}))}configure(e){var t,n;e.restrictToElementSize&&(e.restrictToElementSize=!1,this.surfaceBasedBitrateCap=!0,this.externalMaxHeightRestriction=null!==(t=e.restrictions.maxHeight)&&void 0!==t?t:1/0,this.externalMaxWidthRestriction=null!==(n=e.restrictions.maxWidth)&&void 0!==n?n:1/0),this.config=e,super.configure(e)}init(e){super.init(e),this.switchCallback=e}setMediaElement(e){super.setMediaElement(e),this.mediaElement=null!=e?e:void 0,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.mediaElement&&"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver((()=>{this.resizeObserverTimer.tickAfter(1)})),this.resizeObserver.observe(this.mediaElement))}setVariants(e){super.setVariants(e),this.variants=e,this.surfaceBasedBitrateCap&&this.applyElementBasedSizeRestrictions()}chooseVariant(){return super.chooseVariant()}stop(){super.stop(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.resizeObserverTimer.stop()}handleResizing(){if(!this.surfaceBasedBitrateCap)return;this.applyElementBasedSizeRestrictions();const e=this.chooseVariant();e&&this.switchCallback&&this.switchCallback(e)}applyElementBasedSizeRestrictions(){var e,t,n,o,i,r,a;if(!this.variants||!this.mediaElement||!this.config)return;const s=(null===(e=this.config)||void 0===e?void 0:e.ignoreDevicePixelRatio)?1:window.devicePixelRatio,l=null!==(t=this.mediaElement.clientHeight*s)&&void 0!==t?t:1/0,c=null!==(n=this.mediaElement.clientWidth*s)&&void 0!==n?n:1/0;let u=this.variants;u=u.sort(((e,t)=>e.bandwidth-t.bandwidth));const d=u.map((e=>e.video)).find((e=>(null==e?void 0:e.height)&&e.width&&e.height>=l&&e.width>=c));this.config.restrictions.maxHeight=Math.min(null!==(o=null==d?void 0:d.height)&&void 0!==o?o:1/0,null!==(i=this.externalMaxHeightRestriction)&&void 0!==i?i:1/0),this.config.restrictions.maxWidth=Math.min(null!==(r=null==d?void 0:d.width)&&void 0!==r?r:1/0,null!==(a=this.externalMaxWidthRestriction)&&void 0!==a?a:1/0),super.configure(this.config)}}let we;var De=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};class Me{constructor(e,t){var n,o,r;this.playerConfiguration=t,this.player=new(i().Player)(e),window.shaka=i(),(null===(r=null===(o=null===(n=this.playerConfiguration)||void 0===n?void 0:n.analytics)||void 0===o?void 0:o.mux)||void 0===r?void 0:r.enabled)&&Y().init(this.player,this.playerConfiguration)}configure(e){return this.player.configure(e)}getNetworkingEngine(){return this.player.getNetworkingEngine()}getManifest(){return this.player.getManifest()}load(e,t,n){return De(this,void 0,void 0,(function*(){yield this.player.load(e,t,n).catch((e=>{throw Y().loadErrorHandler(e),e}))}))}unload(){var e;return De(this,void 0,void 0,(function*(){null===(e=this.player.mux)||void 0===e||e.destroy(),yield this.player.unload()}))}keySystem(){return this.player.keySystem()}getTextTracks(){return this.player.getTextTracks()}getVariantTracks(){return this.player.getVariantTracks()}getStats(){return this.player.getStats()}addEventListener(e,t,n){this.player.addEventListener(e,t,n)}removeEventListener(e,t,n){this.player.removeEventListener(e,t,n)}selectTextLanguage(e,t){this.player.selectTextLanguage(e,t)}setTextTrackVisibility(e){this.player.setTextTrackVisibility(e)}isTextTrackVisible(){return this.player.isTextTrackVisible()}selectVariantTrack(e,t,n){this.player.selectVariantTrack(e,t,n)}setPreferredVideoCodecs(e){this.player.configure({preferredVideoCodecs:e})}setPreferredAudioCodecs(e){this.player.configure({preferredAudioCodecs:e})}isLive(){return this.player.isLive()}getConfiguration(){return this.player.getConfiguration()}}var xe=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};class Fe{constructor(e,t){var n,o;this.playerConfiguration=e,this.playbackSessionConfiguration=t,this.pipWindow=null,this.segmentsRetryCounter=0,this.subtitleUris=[],this.internalObserver=this.playbackSessionConfiguration.initiateInternalPlaybackObserver(),this.playbackTimeObservable=new ke,this.state=this.getInitialState(),e.window&&(this.window=e.window),(null===(o=null===(n=this.playerConfiguration)||void 0===n?void 0:n.offline)||void 0===o?void 0:o.enabled)&&(this.offlineManager=new E({playerConfiguration:e})),e.containerElement&&(this.containerElement=e.containerElement),e.containerElementClass&&(this.containerElementClass=e.containerElementClass),this.checkContainerElementByClass=()=>{if(this.containerElementClass){const e=this.getDocument().getElementsByClassName(this.containerElementClass)[0];e&&(e.appendChild(this.node),this.containerElementMutationObserver.disconnect())}},this.containerElementMutationObserver=new MutationObserver(this.checkContainerElementByClass);this.videoElementConfig=Object.assign(Object.assign({},{controls:!1,loop:!1,style:"",width:640}),e.videoElementConfig),this.abrManager=(void 0===we&&(we=new Ne),we),this.videoElementEventHandlers=[{event:"ended",handler:this.handleEnded},{event:"durationchange",handler:this.handleDurationchange},{event:"timeupdate",handler:this.handleTimeUpdate},{event:"volumechange",handler:this.handleVolumechange},{event:"playing",handler:this.handlePlaying},{event:"pause",handler:this.handlePause},{event:"seeking",handler:this.handleSeeking},{event:"seeked",handler:this.handleSeeked},{event:"loadeddata",handler:this.handleLoadeddata},{event:"ratechange",handler:this.handleRateChange},{event:"enterpictureinpicture",handler:this.handleEnterPip},{event:"leavepictureinpicture",handler:this.handleLeavePip}],this.shakaPlayerEventHandlers=[{event:"error",handler:this.handleShakaError},{event:"adaptation",handler:this.handleAdaptation},{event:"variantchanged",handler:this.handleAdaptation},{event:"buffering",handler:this.onBufferingStateChange},{event:"drmsessionupdate",handler:this.onEncryptionKeyLoaded},{event:"manifestparsed",handler:this.handleManifestParsed}],this.networkEngineEventHandlers=[{event:"retry",handler:this.handleRequestRetry}],this.maxRequestRetries=4}get muted(){return this.state.isMuted}get volume(){return this.state.volume}get started(){return this.state.isStarted}get duration(){return this.state.duration}get ended(){var e;return null===(e=this.state)||void 0===e?void 0:e.isEnded}static isBrowserSupported(){return i().Player.isBrowserSupported()}static probeSupport(){return i().Player.probeSupport()}getWindow(){return this.window?this.window:window}getDocument(){return this.getWindow().document}resume(){return this.setPaused(!1)}pause(){return this.setPaused(!0)}seekTo(e){let t=e;e<.1&&(t=.1);const n=this.node.duration||0;return e>n&&(t=n),this.lastSeekTime=t,this.state.currentTime=this.node.currentTime,this.state.isSeeking=!0,this.state.seekingFrom=this.node.currentTime,this.state.currentTime=t,this.state.hasInitiallySeeked=!0,this.node.currentTime=t,this}setVolume(e){this.node&&(this.node.volume=Math.pow(e,3))}setAudioDisabled(e){this.node&&(this.node.muted=e)}setPlaybackSpeed(e){void 0!==this.node&&e>0&&(this.node.defaultPlaybackRate=e,this.node.playbackRate=e)}reattach(){this.containerElementMutationObserver=new MutationObserver(this.checkContainerElementByClass),this.containerElement?this.containerElement.appendChild(this.node):this.containerElementClass&&(this.containerElementMutationObserver.observe(this.getDocument().documentElement,{childList:!0,subtree:!0}),this.checkContainerElementByClass())}play(e,t){return xe(this,void 0,void 0,(function*(){yield this.initSession(e,t);try{return yield this.loadSession()}catch(e){if(this.sessionPromise=void 0,null!==(n=e)&&"object"==typeof n&&"category"in n&&"code"in n&&"severity"in n&&this.errorMayRecoverOnReload(e)){this.errorMayRecoverOnDrmConfigRemoval(e)&&(this.initialInternalPlayerConfiguration.drm=void 0);try{return this.state.attemptingErrorRecovery=!0,yield this.reloadSession()}catch(t){return e.severity="fatal",yield this.handlePlaybackError(e,!1),yield Promise.reject(e)}finally{this.state.attemptingErrorRecovery=!1}}return yield Promise.reject(e)}var n}))}setPreferredSubtitle(e){if(e.languageTag===B.languageTag)return void this.removeSubtitle();const t=function(e,t){if(e.languageTag===B.languageTag)return;const n=t.find((t=>t.languageTag===e.languageTag));if(n)return n;const o=t.find((t=>V(t)===V(e)));if(o)return o;const i=t.find((t=>G(t)===G(e)));return i||void 0}(e,this.internalPlayer.getTextTracks().map((e=>({languageTag:e.language}))));if(void 0===t)return void this.removeSubtitle();const n=this.getSubtitleLanguageTag();t.languageTag!==n&&this.setSubtitle(t)}newSessionLoaded(e){this.state.isEnded||this.internalObserver.onEndingPlayback({playbackRequest:e})}getBandwidthEstimate(){var e;const t=this.getStats();return null!==(e=null==t?void 0:t.estimatedBandwidth)&&void 0!==e?e:void 0}stop(e){return this.unloadSession(e)}emitForPercentages(e){this.state.progressPercentages=[...Array.from(new Set([...this.state.progressPercentages,...e]))].sort()}clearEmittedPercentages(){this.state.progressPercentages=[]}getPlaybackId(e){var t;return(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.endvideo_playback_id)||""}getNode(){return this.node}hideNode(){this.node.style.display&&(this.storedDisplayStyle=this.node.style.display),this.node.style.display="none"}showNode(){this.storedDisplayStyle?this.node.style.display=this.storedDisplayStyle:this.node.style.display="inline"}getPlaybackStats(){return this.getStats()}setMinimizeBitrate(e){this.state.minimizeBitrate!==e&&(this.state.minimizeBitrate=e,this.internalPlayer&&(e?this.enableMinimizeBitrate():this.disableMinimizeBitrate()))}setWindow(e){this.window=e}setFullscreen(e){this.state.fullscreen!==e&&(this.state.fullscreen=e,this.internalPlayer&&this.internalObserver.onFullscreenChanged({position:this.getCurrentPosition(),fullscreen:e}))}setPip(e){return xe(this,void 0,void 0,(function*(){return this.isPictureInPicture()===e?this.pipWindow:e?(this.pipWindow=yield this.node.requestPictureInPicture(),this.pipWindow):(yield this.getDocument().exitPictureInPicture(),null)}))}setSurface(e){this.internalObserver.onSurfaceChanged({surface:e,position:this.getCurrentPosition()})}isLive(){return this.internalPlayer.isLive()}setPreferredVideoCodecs(e){this.internalPlayer.setPreferredVideoCodecs(e)}setPreferredAudioCodecs(e){this.internalPlayer.setPreferredAudioCodecs(e)}validatePlaybackRequest(e,t){var n,o;const i=null!==(o=null===(n=null==e?void 0:e.metadata)||void 0===n?void 0:n.playback_id)&&void 0!==o?o:"";if(!this.validPlaybackId(i)){const e={category:"misconfigured-betamax-sdk-error",code:-1,severity:"fatal"};if(this.handlePlaybackError(e,!1),t)throw new Error("playback_id must be valid")}if(!e.mediaUrl)throw new Error("mediaUrl must be set");return e}initSession(e,t){var n,o,i,r,a,s,l,c,u,d,p,f,h,m,y,_,b,S,E,A,T,P,O,C;return xe(this,void 0,void 0,(function*(){const k=this.validatePlaybackRequest(e,!1),R=this.validatePlayOptions(t),L=k.mediaUrl,I=(yield null===(n=this.offlineManager)||void 0===n?void 0:n.isAssetOffline(L))?"offline":"on_demand";if(this.session=Object.assign(Object.assign({sessionId:g(),streamingType:I},k),R),this.manifestUri=null!==(o=v(L,this.playbackSessionConfiguration.mediaExtensions))&&void 0!==o?o:L,"offline"===I){const e=yield null===(i=this.offlineManager)||void 0===i?void 0:i.getPlayableOfflineUrl(L);e&&(this.manifestUri=e)}this.internalObserver.initiateObservers(this.session,this.playbackSessionConfiguration),this.internalObserver.onPlaybackCreated({playbackIdentity:Object.assign({},this.session),initialConfiguration:{position:this.session.initialPosition,volume:this.session.volume,playbackSpeed:this.session.playbackSpeed,preferredSubtitle:this.session.preferredSubtitle,minimizeBitrate:this.session.minimizeBitrate,fullscreen:this.session.fullscreen,surface:this.session.surface},timeObservable:this.playbackTimeObservable}),this.playerBufferInterval=0,this.playerTimeUpdateInterval=0,this.latencyStartTimes={},this.state.playWhenReady=this.session.playWhenReady,this.state.currentTime=this.session.initialPosition,this.state.playbackSpeed=this.session.playbackSpeed,this.state.volume=this.session.volume,this.state.isMuted=0===this.session.volume,this.session.minimizeBitrate&&(this.state.minimizeBitrate=this.session.minimizeBitrate),(null===(s=null===(a=null===(r=this.playerConfiguration)||void 0===r?void 0:r.analytics)||void 0===a?void 0:a.mux)||void 0===s?void 0:s.enabled)&&Y().newSession({view_session_id:this.session.sessionId,video_title:null===(l=this.session.metadata)||void 0===l?void 0:l.album_title,video_id:null===(c=this.session.metadata)||void 0===c?void 0:c["media.manifest_id"],video_stream_type:I,video_source_url:L,video_content_type:null===(u=this.session.metadata)||void 0===u?void 0:u.feature_identifier});const N=null!==(f=null===(p=null===(d=this.playerConfiguration)||void 0===d?void 0:d.streaming)||void 0===p?void 0:p.rebufferingGoal)&&void 0!==f?f:2;this.maxRequestRetries=null!==(y=null===(m=null===(h=this.playerConfiguration)||void 0===h?void 0:h.retry)||void 0===m?void 0:m.attempts)&&void 0!==y?y:4,this.initialInternalPlayerConfiguration={manifest:{retryParameters:{maxAttempts:this.maxRequestRetries}},abr:{defaultBandwidthEstimate:t.bandwidthEstimate,restrictToElementSize:null!==(S=null===(b=null===(_=this.playerConfiguration)||void 0===_?void 0:_.adaptiveBitrate)||void 0===b?void 0:b.surfaceBasedResolutionCap)&&void 0!==S&&S,restrictions:{maxBandwidth:null===(A=null===(E=this.playerConfiguration)||void 0===E?void 0:E.adaptiveBitrate)||void 0===A?void 0:A.maxBitrate}},abrFactory:()=>this.abrManager,drm:{servers:null===(P=null===(T=this.playerConfiguration)||void 0===T?void 0:T.drm)||void 0===P?void 0:P.servers,advanced:null===(C=null===(O=this.playerConfiguration)||void 0===O?void 0:O.drm)||void 0===C?void 0:C.advanced,retryParameters:{maxAttempts:this.maxRequestRetries}},streaming:{rebufferingGoal:N,retryParameters:{maxAttempts:this.maxRequestRetries}}}}))}loadSession(){return this.sessionPromise=new Promise(((e,t)=>xe(this,void 0,void 0,(function*(){var n,o,i,r,a,s,l,c,u,d,p,f,h;this.playerConfiguration.videoElement?this.node=this.playerConfiguration.videoElement:this.node=this.getDocument().createElement("video"),void 0!==this.videoElementConfig.controls&&(this.node.controls=this.videoElementConfig.controls),void 0!==this.videoElementConfig.loop&&(this.node.loop=this.videoElementConfig.loop),void 0!==this.videoElementConfig.style&&(this.node.style.cssText=this.videoElementConfig.style),void 0!==this.videoElementConfig.width&&(this.node.width=this.videoElementConfig.width),void 0!==this.videoElementConfig.height&&(this.node.height=this.videoElementConfig.height),this.containerElement?this.containerElement.appendChild(this.node):this.containerElementClass&&(this.containerElementMutationObserver.observe(this.getDocument().documentElement,{childList:!0,subtree:!0}),this.checkContainerElementByClass()),this.node.setAttribute("preload","auto"),this.node.setAttribute("data-sessionId",this.session.sessionId),this.setVolume(null!==(n=this.session.volume)&&void 0!==n?n:this.state.volume),this.setPlaybackSpeed(null!==(o=this.session.playbackSpeed)&&void 0!==o?o:this.state.playbackSpeed),this.internalPlayer=new Me(this.node,this.playerConfiguration),this.internalPlayer.configure(this.initialInternalPlayerConfiguration),(null===(r=null===(i=this.playerConfiguration)||void 0===i?void 0:i.adaptiveBitrate)||void 0===r?void 0:r.initialLowBitrate)&&this.internalPlayer.configure({abr:{defaultBandwidthEstimate:1e6,restrictions:{maxPixels:1}}}),this.session.minimizeBitrate&&this.enableMinimizeBitrate();const m=this.internalPlayer.getNetworkingEngine();this.configureNetworkingEngine(m),this.startListeningForEvents(),(null===(s=null===(a=this.playerConfiguration)||void 0===a?void 0:a.streaming)||void 0===s?void 0:s.autoplayVideoOnLoad)||(this.node.autoplay=this.session.playWhenReady,this.setPaused(!this.session.playWhenReady));try{yield this.internalPlayer.load(this.manifestUri,this.session.initialPosition)}catch(e){if(_(e)){if(!this.state.isEnded){const n=yield this.getPlaybackError(e);yield this.handlePlaybackError(n),t(n)}}else{const n=yield this.getPlaybackError(e,"unknown-error-while-loading");yield this.handlePlaybackError(n),t(n)}}(null===(c=null===(l=this.playerConfiguration)||void 0===l?void 0:l.adaptiveBitrate)||void 0===c?void 0:c.initialLowBitrate)&&this.internalPlayer.configure({abr:{defaultBandwidthEstimate:null===(u=this.initialInternalPlayerConfiguration.abr)||void 0===u?void 0:u.defaultBandwidthEstimate,restrictions:{maxPixels:void 0}}}),this.state.keySystem=this.internalPlayer.keySystem(),(null===(p=null===(d=this.playerConfiguration)||void 0===d?void 0:d.subtitles)||void 0===p?void 0:p.enabled)&&void 0!==this.session.preferredSubtitle&&this.setPreferredSubtitle(this.session.preferredSubtitle),(null===(h=null===(f=this.playerConfiguration)||void 0===f?void 0:f.streaming)||void 0===h?void 0:h.autoplayVideoOnLoad)&&this.setPaused(!this.session.playWhenReady),this.state.isLoaded=!0,e(this)})))),this.sessionPromise}unloadSession(e,t=!0){var n,o;return xe(this,void 0,void 0,(function*(){if(this.state.isLoaded||(yield this.sessionPromise),this.disablePlayTimers(),t){if(!this.state.isEnded){const e=this.getCurrentPosition();this.emitEndedEvent(Le.REQUESTED,e),this.state.isEnded=!0}this.state.endReason=e}if(this.stopListeningForEvents(),void 0!==this.internalPlayer){try{yield this.internalPlayer.unload()}catch(e){if(!_(e)){const t=yield this.getPlaybackError(e,"unknown-error-while-stopping");yield this.handlePlaybackError(t)}}const e=this.internalPlayer.getNetworkingEngine();e&&(e.clearAllRequestFilters(),e.clearAllResponseFilters()),this.containerElementMutationObserver.disconnect()}null===(o=null===(n=this.node)||void 0===n?void 0:n.parentNode)||void 0===o||o.removeChild(this.node)}))}reloadSession(){return xe(this,void 0,void 0,(function*(){return yield this.unloadSession(void 0,!1),this.loadSession()}))}validPlaybackId(e){return 0!==e.length&&!!/^[A-Za-z0-9]*$/.test(e)}validatePlayOptions(e){return e.initialPosition<0&&(e.initialPosition=0),e}configureNetworkingEngine(e){this.playerConfiguration.networkConfiguration&&u(e,this.playerConfiguration.networkConfiguration),e&&(e.registerRequestFilter(this.networkRequestFilter.bind(this)),e.registerResponseFilter(this.networkResponseFilter.bind(this)))}startListeningForEvents(){if(this.videoElementEventHandlers.forEach((e=>{this.node.addEventListener(e.event,e.handler.bind(this))})),this.internalPlayer){this.shakaPlayerEventHandlers.forEach((e=>{this.internalPlayer.addEventListener(e.event,e.handler.bind(this))}));const e=this.internalPlayer.getNetworkingEngine();e&&this.networkEngineEventHandlers.forEach((t=>{e.addEventListener(t.event,t.handler.bind(this))}))}}stopListeningForEvents(){if(this.videoElementEventHandlers.forEach((e=>{var t;null===(t=this.node)||void 0===t||t.removeEventListener(e.event,e.handler)})),this.internalPlayer){this.shakaPlayerEventHandlers.forEach((e=>{this.internalPlayer.removeEventListener(e.event,e.handler)}));const e=this.internalPlayer.getNetworkingEngine();e&&this.networkEngineEventHandlers.forEach((t=>{e.removeEventListener(t.event,t.handler)}))}}getInitialState(){return{time:(new Date).getTime(),playWhenReady:!1,isStarted:!1,isPlaying:!1,isPaused:!1,isEnded:!1,isError:!1,isBuffering:!1,isLoaded:!1,isSeeking:!1,seekingFrom:0,firstUnhandledSeek:null,timeBuffering:0,readyTimeBuffering:0,isMuted:!1,duration:-1,currentTime:0,progress:0,volume:1,bitrate:0,currentAudioFormat:void 0,currentVideoFormat:void 0,endReason:void 0,hasInitiallySeeked:!1,hasInitiallyReadied:!1,currentVariantId:null,progressPercentages:[],playbackSpeed:1,preferredSubtitle:B,minimizeBitrate:!1,fullscreen:!1,bufferType:Re.INITIAL,lastBufferStart:0,timeUpdate:!1,attemptingErrorRecovery:!1,unableToFetchLastSegments:!1,failedSegmentRetryError:void 0}}getCurrentPosition(){var e;return(null===(e=this.node)||void 0===e?void 0:e.currentTime)?this.node.currentTime:this.state.currentTime}isSubtitleUri(e){return!!e&&this.subtitleUris.some((t=>e.includes(t)))}networkRequestFilter(e,t){e!==i().net.NetworkingEngine.RequestType.LICENSE&&e!==i().net.NetworkingEngine.RequestType.MANIFEST||"HEAD"!==t.method&&(this.latencyStartTimes[e]=Date.now(),e===i().net.NetworkingEngine.RequestType.MANIFEST&&this.internalObserver.onManifestLoading(),e===i().net.NetworkingEngine.RequestType.LICENSE&&this.internalObserver.onEncryptionKeyLoading())}networkResponseFilter(e,t){var n;(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.byteLength)&&t.timeMs&&this.internalObserver.onBytesTransferred({bytes:t.data.byteLength,timeMs:t.timeMs,uri:t.uri,requestType:e})}emitEndedEvent(e,t){var n;const o=this.getStats(),i=o?o.droppedFrames:0;i>0&&this.internalObserver.onDroppedVideoFrames({droppedFrames:i});const r={playTime:1e3*(null!==(n=null==o?void 0:o.playTime)&&void 0!==n?n:0)};this.internalObserver.onPlaybackEnded({position:t,reason:e,playbackStats:r})}handleEnded(){A("video::ended"),this.disablePlayTimers(),this.state.isEnded||this.emitEndedEvent(Le.PLAYED_TO_END,this.getCurrentPosition()),this.state.isEnded=!0,this.state.endReason=Le.PLAYED_TO_END,A("video::ended_end")}handleDurationchange(){var e;A("video::durationchange");const t=this.node.duration;if(-1===t&&(null===(e=this.playerConfiguration.experimental)||void 0===e?void 0:e.filterNegativeDuration))return;const n=this.getCurrentPosition();this.state.duration=t,this.state.progress=this.calculateProgress(n,t),this.internalObserver.onDurationChanged({duration:t}),A("video::durationchange_end")}handleManifestParsed(){A("shaka::manifestParsed");const e=this.internalPlayer.getManifest();if(null===e)return;this.subtitleUris=function(e){var t;return(null!==(t=e.textStreams)&&void 0!==t?t:[]).flatMap((e=>{var t,n,o;return null!==(o=null===(n=null===(t=e.segmentIndex)||void 0===t?void 0:t.get(0))||void 0===n?void 0:n.getUris())&&void 0!==o?o:[]})).filter((e=>e))}(e);const t=this.internalPlayer.getTextTracks().map((e=>({languageTag:e.language})));this.internalObserver.onManifestLoaded({availableSubtitles:t}),A("shaka::manifestParsed_end")}handleRateChange(){const e=this.node.playbackRate;e!==this.state.playbackSpeed&&0!==e&&(this.state.playbackSpeed=e,this.internalObserver.onPlaybackSpeedChanged({position:this.getCurrentPosition(),speed:e}))}isPictureInPicture(){return this.getDocument().pictureInPictureElement===this.node}handleTimeUpdate(e){if(!this.state.isLoaded||!this.state.isStarted)return;const t=this.lastSeekTime||this.node.currentTime||0;this.state.currentTime=t,this.state.progress=this.calculateProgress(t,this.node.duration),this.playbackTimeObservable.handleTimeUpdate(e)}handleEnterPip(){this.internalObserver.onPictureInPictureChanged({position:this.getCurrentPosition(),pictureInPicture:!0})}handleLeavePip(){this.internalObserver.onPictureInPictureChanged({position:this.getCurrentPosition(),pictureInPicture:!1})}calculateProgress(e,t){let n=null;return t>0&&e>=0&&(n=e/t,n=Math.min(Math.max(n,0),1)),n}handleLoadeddata(){A("video::loadeddata"),this.state.hasInitiallyReadied||(this.state.hasInitiallyReadied=!0),this.internalObserver.onReady({position:this.getCurrentPosition(),playWhenReady:!this.state.isPaused,streamingType:this.session.streamingType,isPictureInPicture:this.isPictureInPicture()})}handlePlaying(){A("video::playing"),this.state.isPlaying=!0,this.state.isStarted=!0,this.state.isEnded=!1,this.state.isBuffering=!1,this.internalObserver.onResumed({position:this.getCurrentPosition()})}handlePause(){this.state.isPlaying=!1;const e=this.node.currentTime;this.node.duration&&e===this.node.duration||this.internalObserver.onPaused({position:e})}handleVolumechange(){this.state.volume=this.node.muted?0:this.node.volume,this.state.isMuted=this.node.muted||0===this.node.volume,this.internalObserver.onVolumeChanged({position:this.getCurrentPosition(),volume:this.state.volume})}getSupportedMedia(e,t){return Object.entries(e).filter((([e,n])=>!0===n&&e.startsWith(t))).map((([e])=>e))}handleRequestRetry(e){return xe(this,void 0,void 0,(function*(){if(null===e.error)return;const t=yield this.getPlaybackError(e.error),n=this.isFailedSegmentRequest(e);n&&(this.segmentsRetryCounter++,this.segmentsRetryCounter>=this.maxRequestRetries?(this.state.unableToFetchLastSegments=!0,this.state.failedSegmentRetryError=e.error,this.state.bufferType!=Re.SEEK&&this.state.bufferType!=Re.STALL||(t.severity="fatal",yield this.handlePlaybackError(t,!1),yield this.stop(Le.FATAL_ERROR),this.state.unableToFetchLastSegments=!1)):yield this.handlePlaybackError(t));const o=e.error.data,r=this.isSubtitleUri(o[0]);if(n&&(r||(e.error.severity=i().util.Error.Severity.CRITICAL)),!n){const t=yield this.getPlaybackError(e.error);yield this.handlePlaybackError(t)}n&&r&&this.removeSubtitle()}))}isFailedSegmentRequest(e){var t;return(null===(t=e.error)||void 0===t?void 0:t.category)===i().util.Error.Category.NETWORK}handleShakaError(e){return xe(this,void 0,void 0,(function*(){const t=yield this.getPlaybackError(e);yield this.handlePlaybackError(t)}))}handlePlaybackError(e,t=!0){return xe(this,void 0,void 0,(function*(){if(void 0!==e.clientContext&&void 0!==e.sessionContext||(e=yield this.hydrateErrorWithContext(e)),t&&(this.errorWillRecoverAutomatically(e)&&(e.severity="recoverable"),(this.errorMayRecoverOnReload(e)||"fatal"===e.severity&&this.state.attemptingErrorRecovery)&&(e.severity="unknown")),this.internalObserver.onPlaybackError({error:e,position:this.getCurrentPosition()}),"fatal"===e.severity){this.state.isError=!0;const t=function(e){switch(e.code){case i().util.Error.Code.TIMEOUT:case i().util.Error.Code.HTTP_ERROR:return!0}return!1}(e)?Le.NETWORK_ERROR:Le.FATAL_ERROR;this.state.isEnded||this.emitEndedEvent(t,this.getCurrentPosition()),this.state.isEnded=!0,this.state.endReason=t}}))}errorWillRecoverAutomatically(e){var t;return"NETWORK"===e.category&&"fatal"===e.severity&&this.isSubtitleUri(null===(t=e.network)||void 0===t?void 0:t.uri)}errorMayRecoverOnReload(e){return!this.state.attemptingErrorRecovery&&this.errorMayRecoverOnDrmConfigRemoval(e)}errorMayRecoverOnDrmConfigRemoval(e){return e.code===i().util.Error.Code.CONTENT_UNSUPPORTED_BY_BROWSER}getPlaybackError(e,t="unknown",n="unknown"){return xe(this,void 0,void 0,(function*(){let o={category:t,code:0,severity:n};return o=function(e){return null!==e&&"object"==typeof e&&"type"in e&&"detail"in e&&"error"===e.type}(e)?this.hydrateErrorWithShakaError(o,e.detail):_(e)?this.hydrateErrorWithShakaError(o,e):this.hydrateErrorWithEventInfo(o,e),o=yield this.hydrateErrorWithContext(o),o}))}hydrateErrorWithShakaError(e,t){var n;const o={category:void 0!==t.category?p(t.category):"unknown",code:null!==(n=t.code)&&void 0!==n?n:0,severity:f(t.severity),internalDetails:t.data};if(t.category===i().util.Error.Category.NETWORK&&t.data){const e=t.data;o.network={uri:e[0]},t.code===i().util.Error.Code.BAD_HTTP_STATUS&&(o.network.httpStatus=e[1],o.network.responseText=e[2],o.network.responseHeaders=e[3])}return Object.assign(Object.assign({},e),o)}hydrateErrorWithEventInfo(e,t){let n;try{n=[JSON.stringify(t)]}catch(e){t instanceof Error&&(n=[t.name,t.message])}return Object.assign(Object.assign({},e),{internalDetails:n})}hydrateErrorWithContext(e){return xe(this,void 0,void 0,(function*(){const t=yield Fe.probeSupport(),n=t.drm["com.widevine.alpha"];return Object.assign(Object.assign({},e),{sessionContext:{audioFormat:this.state.currentAudioFormat,videoFormat:this.state.currentVideoFormat},clientContext:{browserSupported:Fe.isBrowserSupported(),widevineSupported:!!n,widevinePersistentLicenseSupported:!!(null==n?void 0:n.persistentState),supportedAudioWebmMedia:this.getSupportedMedia(t.media,"audio/webm"),supportedVideoWebmMedia:this.getSupportedMedia(t.media,"video/webm")}})}))}handleAdaptation(e){var t,n,o,i;if(!this.internalPlayer)return;if("adaptation"!==e.type&&"variantchanged"!==e.type)return;const r=this.internalPlayer.getVariantTracks().find((e=>e.active));if(!r)return;if(this.state.bitrate=r.bandwidth,this.state.currentVariantId===r.id)return;const a={id:r.id,audioCodec:null!==(t=r.audioCodec)&&void 0!==t?t:"",audioBitrate:r.audioBandwidth,totalBitrate:r.bandwidth},s={id:r.id,width:r.width,height:r.height,videoCodec:null!==(n=r.videoCodec)&&void 0!==n?n:"",videoBitrate:r.videoBandwidth,totalBitrate:r.bandwidth};(null===(o=this.state.currentAudioFormat)||void 0===o?void 0:o.id)!==a.id&&this.internalObserver.onAudioFormatChanged({format:a,position:this.getCurrentPosition()}),(null===(i=this.state.currentVideoFormat)||void 0===i?void 0:i.id)!==s.id&&this.internalObserver.onVideoFormatChanged({format:s,position:this.getCurrentPosition()}),this.state.currentVariantId=r.id,this.state.currentAudioFormat=a,this.state.currentVideoFormat=s}handleSeeking(){var e;this.state.hasInitiallySeeked&&(null===this.state.firstUnhandledSeek&&(this.state.firstUnhandledSeek=this.state.seekingFrom),this.state.isSeeking=!0,this.internalObserver.onSeeking({fromPosition:null!==(e=this.state.seekingFrom)&&void 0!==e?e:0,toPosition:this.getCurrentPosition()}))}handleSeeked(){if(!this.state.hasInitiallySeeked)return void(this.state.hasInitiallySeeked=!0);const e=null!==this.state.firstUnhandledSeek?this.state.firstUnhandledSeek:this.state.seekingFrom;this.state.isSeeking=!1,this.state.seekingFrom=null,this.state.progress=this.calculateProgress(this.state.currentTime,this.getCurrentPosition()),this.state.firstUnhandledSeek=null,this.lastSeekTime=0,this.internalObserver.onSeeked({fromPosition:null!=e?e:0,toPosition:this.getCurrentPosition()})}onBufferingStateChange(e){return xe(this,void 0,void 0,(function*(){if(e.buffering){let e=Re.INITIAL;if(this.state.hasInitiallyReadied&&(e=this.state.isSeeking?Re.SEEK:Re.STALL),e===Re.STALL&&this.state.unableToFetchLastSegments){const e=yield this.getPlaybackError(this.state.failedSegmentRetryError);e.severity="fatal",yield this.handlePlaybackError(e,!1),yield this.stop(Le.FATAL_ERROR),this.state.failedSegmentRetryError=void 0}else this.state.isBuffering=!0,this.state.bufferType=e,this.state.lastBufferStart=Date.now(),this.state.isPlaying=!1,this.internalObserver.onBuffering({position:this.getCurrentPosition(),playWhenReady:this.state.playWhenReady,type:e})}else{const e=this.state.isBuffering&&this.state.bufferType===Re.STALL;this.state.isBuffering=!1,this.state.bufferType=null,e&&(this.node.paused||(this.state.isPlaying=!0),this.internalObserver.onReady({position:this.getCurrentPosition(),playWhenReady:!this.state.isPaused,streamingType:this.session.streamingType,isPictureInPicture:this.isPictureInPicture()}))}}))}onEncryptionKeyLoaded(){A("shaka::drmsessionupdate"),this.internalObserver.onEncryptionKeyLoaded({encryptionType:this.internalPlayer.keySystem()})}enablePlayTimers(){if(this.playerBufferInterval)return;const e=()=>{this.state.timeUpdate=!0,this.state.timeUpdate=!1};e(),this.playerTimeUpdateInterval=window.setInterval(e,15e3)}disablePlayTimers(){this.getWindow().clearInterval(this.playerBufferInterval),this.getWindow().clearInterval(this.playerTimeUpdateInterval),this.playerBufferInterval=0,this.playerTimeUpdateInterval=0,this.state.isBuffering=!1,this.state.timeBuffering=0}getStats(){return void 0!==this.internalPlayer&&this.state.isLoaded?this.internalPlayer.getStats():void 0}setPaused(e){return e?(this.node.pause(),this.disablePlayTimers()):(this.node.play(),this.enablePlayTimers()),this.state.isPaused=e,this}enableMinimizeBitrate(){this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:1}}}),this.internalObserver.onMinimizeBitrateChanged({position:this.getCurrentPosition(),minimizeBitrate:!0})}disableMinimizeBitrate(){var e,t,n,o,i,r;const a=null!==(n=null===(t=null===(e=this.playerConfiguration)||void 0===e?void 0:e.adaptiveBitrate)||void 0===t?void 0:t.maxBitrate)&&void 0!==n?n:void 0;this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:a}}});const s=this.abrManager.chooseVariant(),l=null!==(r=null===(i=null===(o=this.playerConfiguration)||void 0===o?void 0:o.minimizeBitrate)||void 0===i?void 0:i.bufferMargin)&&void 0!==r?r:4;this.internalPlayer.selectVariantTrack((e=>{var t,n,o,i,r,a,s,l,c,u,d,p,f,h,m,g,v,y,_;const b=null==e?void 0:e.audio,S=null==e?void 0:e.video,E=[];(null==S?void 0:S.codecs)&&E.push(S.codecs),(null==b?void 0:b.codecs)&&E.push(b.codecs);const A=[];S&&A.push(S.mimeType),b&&A.push(b.mimeType);const T=[];b&&T.push(b.kind),S&&T.push(S.kind);const P=new Set;if(b)for(const e of b.roles)P.add(e);if(S)for(const e of S.roles)P.add(e);return{id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null!==(t=null==b?void 0:b.label)&&void 0!==t?t:null,kind:null!==(n=T[0])&&void 0!==n?n:null,width:null!==(o=null==S?void 0:S.width)&&void 0!==o?o:null,height:null!==(i=null==S?void 0:S.height)&&void 0!==i?i:null,frameRate:null!==(r=null==S?void 0:S.frameRate)&&void 0!==r?r:null,pixelAspectRatio:null!==(a=null==S?void 0:S.pixelAspectRatio)&&void 0!==a?a:null,hdr:null,mimeType:A[0]||null,audioMimeType:null!==(s=null==b?void 0:b.mimeType)&&void 0!==s?s:null,videoMimeType:null!==(l=null==S?void 0:S.mimeType)&&void 0!==l?l:null,codecs:E.join(", "),audioCodec:null!==(c=null==b?void 0:b.codecs)&&void 0!==c?c:null,videoCodec:null!==(u=null==S?void 0:S.codecs)&&void 0!==u?u:null,primary:e.primary,roles:Array.from(P),audioRoles:null!==(d=null==b?void 0:b.roles)&&void 0!==d?d:null,forced:!1,videoId:null!==(p=null==S?void 0:S.id)&&void 0!==p?p:null,audioId:null!==(f=null==b?void 0:b.id)&&void 0!==f?f:null,channelsCount:null!==(h=null==b?void 0:b.channelsCount)&&void 0!==h?h:null,audioSamplingRate:null!==(m=null==b?void 0:b.audioSamplingRate)&&void 0!==m?m:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null!==(g=null==b?void 0:b.bandwidth)&&void 0!==g?g:null,videoBandwidth:null!==(v=null==S?void 0:S.bandwidth)&&void 0!==v?v:null,originalVideoId:null!==(y=null==S?void 0:S.originalId)&&void 0!==y?y:null,originalAudioId:null!==(_=null==b?void 0:b.originalId)&&void 0!==_?_:null,originalTextId:null,originalImageId:null}})(s),!0,l),this.internalObserver.onMinimizeBitrateChanged({position:this.getCurrentPosition(),minimizeBitrate:!1})}getSubtitleLanguageTag(){if(this.internalPlayer.isTextTrackVisible()){const e=this.internalPlayer.getTextTracks().find((e=>e.active));return e?e.language:void 0}}setSubtitle(e){const t=e.languageTag;this.internalPlayer.selectTextLanguage(t),this.internalPlayer.configure({preferredTextLanguage:t}),this.internalPlayer.setTextTrackVisibility(""!==t),this.internalObserver.onSubtitleChanged({position:this.getCurrentPosition(),subtitle:{languageTag:t}})}removeSubtitle(){this.setSubtitle(B)}}class Ue{constructor(e){this.playerConfigurationDependencies=e}createPlaybackSession(e,t){let n=this.playerConfigurationDependencies.factories||[];if(e){if(!this.playerConfigurationDependencies.endVideo)throw new Error("Cannot play Royalty media. EndVideo support is not enabled.");const{endVideo:e,productStateProvider:t,logError:o}=this.playerConfigurationDependencies.endVideo;n=[...n,()=>new Nn(e,t,o)]}return new Fe(t,Object.assign(Object.assign({},this.playerConfigurationDependencies),{initiateInternalPlaybackObserver:()=>new Ce(n)}))}}var Be=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};class Ve{constructor(e,t){this.playerConfiguration=e,this.playbackSessionFactory=t,this.defaultPlayOptions={playWhenReady:!0,initialPosition:0,volume:1,playbackSpeed:1,preferredSubtitle:B,bandwidthEstimate:8e6,minimizeBitrate:!1,fullscreen:!1,surface:void 0},this.playOptions=this.defaultPlayOptions}get muted(){return this.playbackSession?this.playbackSession.muted:null}get volume(){return this.playbackSession?this.playbackSession.volume:this.playOptions.volume}get started(){return this.playbackSession?this.playbackSession.started:null}get ended(){return this.playbackSession?this.playbackSession.ended:null}static isBrowserSupported(){return Fe.isBrowserSupported()}static probeSupport(){return Fe.probeSupport()}play(e,t){return Be(this,void 0,void 0,(function*(){A("betamax::start_play"),yield this.endPreviousPlaybackSession(e),this.playbackRequest=e;const n=this.createPlaybackSession(e.isRoyaltyMedia);return null===n?Promise.reject("failed to create playback session object"):(yield n.play(e,Object.assign(Object.assign({},this.playOptions),t)),A("betamax::start_play_end"),this)}))}getPlaybackRequest(){return this.playbackRequest}resume(){return this.playbackSession&&this.playbackSession.resume(),this}pause(){return this.playbackSession&&this.playbackSession.pause(),this}seekTo(e){return this.playbackSession&&this.playbackSession.seekTo(e),this}setVolume(e){return this.playOptions.volume=e,this.playbackSession&&this.playbackSession.setVolume(e),this}setAudioDisabled(e){return this.playbackSession&&this.playbackSession.setAudioDisabled(e),this}getPreferredSubtitle(){return this.playOptions.preferredSubtitle}setPreferredSubtitle(e){return this.playOptions.preferredSubtitle=e,this.playbackSession&&this.playbackSession.setPreferredSubtitle(e),this}setPlaybackSpeed(e){this.playOptions.playbackSpeed=e,this.playbackSession&&this.playbackSession.setPlaybackSpeed(e)}setMinimizeBitrate(e){this.playOptions.minimizeBitrate=e,this.playbackSession&&this.playbackSession.setMinimizeBitrate(e)}setWindow(e){var t;null===(t=this.playbackSession)||void 0===t||t.setWindow(e)}setFullscreen(e){var t;this.playOptions.fullscreen=e,null===(t=this.playbackSession)||void 0===t||t.setFullscreen(e)}setSurface(e){var t;this.playOptions.surface=e,null===(t=this.playbackSession)||void 0===t||t.setSurface(e)}setPip(e){var t,n;return null!==(n=null===(t=this.playbackSession)||void 0===t?void 0:t.setPip(e))&&void 0!==n?n:Promise.resolve(null)}reattach(){var e;null===(e=this.playbackSession)||void 0===e||e.reattach()}stop(e){return Be(this,void 0,void 0,(function*(){this.playbackSession&&(yield this.playbackSession.stop(null!=e?e:Le.REQUESTED),this.playbackSession=void 0)}))}release(){return Be(this,void 0,void 0,(function*(){yield this.stop(Le.REQUESTED),this.playbackSession=void 0,this.playbackRequest=void 0,this.playOptions=this.defaultPlayOptions}))}emitForPercentages(e){this.playbackSession&&this.playbackSession.emitForPercentages(e)}clearEmittedPercentages(){this.playbackSession&&this.playbackSession.clearEmittedPercentages()}getNode(){return this.playbackSession?this.playbackSession.getNode():null}hideNode(){var e;null===(e=this.playbackSession)||void 0===e||e.hideNode()}showNode(){var e;null===(e=this.playbackSession)||void 0===e||e.showNode()}getSessionState(){return this.playbackSession?this.playbackSession.state:null}setPreferredVideoCodecs(e){var t;null===(t=this.playbackSession)||void 0===t||t.setPreferredVideoCodecs(e)}setPreferredAudioCodecs(e){var t;null===(t=this.playbackSession)||void 0===t||t.setPreferredAudioCodecs(e)}_isLive(){var e,t;return null!==(t=null===(e=this.playbackSession)||void 0===e?void 0:e.isLive())&&void 0!==t&&t}endPreviousPlaybackSession(e){return Be(this,void 0,void 0,(function*(){this.playbackSession&&!this.playbackSession.ended&&this.playbackSession.newSessionLoaded(e),yield this.stop()}))}createPlaybackSession(e){let t;try{return t=this.playbackSessionFactory.createPlaybackSession(e,this.playerConfiguration),this.playbackSession=t,this.playbackSession}catch(e){return null}}}class Ge{constructor(e){this.playerConfigurationDependencies=e}createBetamaxPlayer(e){return new Ve(e,new Ue(this.playerConfigurationDependencies))}}class Je{constructor(e,t,n){this.cosmosSender=e,this.playerInterruptor=t,this.stallTimeoutMs=n}onPlaybackCreated({playbackIdentity:e,timeObservable:t}){var n;this.playbackId=null===(n=e.metadata)||void 0===n?void 0:n.playback_id,this.cosmosSender.sendPlaybackState(this.playbackId),void 0!==this.playerInterruptor&&this.playerInterruptor.setTimeObservable(t)}onPlaybackEnded({reason:e}){switch(this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId),e){case Le.PLAYED_TO_END:this.cosmosSender.sendAdvance("finished");break;case Le.NETWORK_ERROR:this.cosmosSender.sendContextPlayerError({type:"timeout"})}this.playbackId=void 0}onBuffering(){this.cosmosSender.sendPlaybackState(this.playbackId),this.shouldSetStallTimers()&&this.startStallTimer()}onDurationChanged({duration:e}){this.cosmosSender.sendPlaybackState(this.playbackId),void 0!==this.playerInterruptor&&this.playerInterruptor.setMediaDuration(e)}onPlaybackError({error:e}){this.cosmosSender.sendPlaybackState(this.playbackId),this.cosmosSender.sendPlaybackError(e)}onPaused(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onReady(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onResumed(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onSeeking(){this.cosmosSender.sendPlaybackState(this.playbackId)}onPlaybackSpeedChanged(){this.cosmosSender.sendPlaybackState(this.playbackId)}shouldSetStallTimers(){return void 0!==this.stallTimeoutMs&&this.stallTimeoutMs>0}startStallTimer(){this.stopStallTimerIfRunning(),this.stallTimeoutId=setTimeout((()=>{this.cosmosSender.sendContextPlayerError({type:"playback_stuck"})}),this.stallTimeoutMs)}stopStallTimerIfRunning(){void 0!==this.stallTimeoutId&&(clearTimeout(this.stallTimeoutId),this.stallTimeoutId=void 0)}}var je=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};class He{constructor(e,t,n){this.configuration=e,this.contextPlayerCoordinator=t,this.playerRouter=n,this.cosmosPositionEndpoint="sp://player/v2/main/position",this.debugOverlay=e=>{var t,n,o,i,r,a,s,l,c;const u=null!==(n=null===(t=this.playerRouter.mainPlayer.getNode())||void 0===t?void 0:t.ownerDocument.getElementsByClassName("debugOverlay"))&&void 0!==n?n:[];if(0===u.length){const t=null!==(i=null===(o=this.playerRouter.mainPlayer.getNode())||void 0===o?void 0:o.ownerDocument.createElement("div"))&&void 0!==i?i:new HTMLDivElement,n=null!==(a=null===(r=this.playerRouter.mainPlayer.getNode())||void 0===r?void 0:r.ownerDocument.createElement("p"))&&void 0!==a?a:new HTMLParagraphElement;n.className="debugOverlay",t.appendChild(n),t.setAttribute("style","width: 100%; position: absolute; top: 0; left: 0; opacity: 1; background: yellow; color: black; font-size: 10px; font-weight: bold"),null===(c=null===(l=null===(s=this.playerRouter.mainPlayer.getNode())||void 0===s?void 0:s.parentNode)||void 0===l?void 0:l.parentNode)||void 0===c||c.append(t),Ke(n,e)}else Ke(u[0],e)}}initialize(){this.videoPositionSub=this.configuration.cosmos.sub(`${this.cosmosPositionEndpoint}`,this.onContextualPositionReceived.bind(this),y)}release(){this.videoPositionSub&&(this.videoPositionSub.cancel(),this.videoPositionSub=void 0)}onContextualPositionReceived(e){return je(this,void 0,void 0,(function*(){switch(this.inferPlaybackEvent(e)){case"start":yield this.startPlayback(e);break;case"stop-and-start":yield this.stopPlayback(),yield this.startPlayback(e);break;case"pause":this.pausePlayback();break;case"resume":this.resumePlayback();break;case"seek":this.playerRouter.mainPlayer.seekTo(e.position_as_of_timestamp)}}))}inferPlaybackEvent(e){var t,n,o;let i="none";return void 0===this.lastContextualPositionPayload?i="start":this.lastContextualPositionPayload.playback_id!==e.playback_id?i="stop-and-start":!(null===(t=this.lastContextualPositionPayload)||void 0===t?void 0:t.is_paused)&&e.is_paused?i="pause":(null===(n=this.lastContextualPositionPayload)||void 0===n?void 0:n.is_paused)&&!e.is_paused?i="resume":(null===(o=this.lastContextualPositionPayload)||void 0===o?void 0:o.is_buffering)&&!e.is_buffering&&(i="seek"),this.lastContextualPositionPayload=e,i}startPlayback(e){return je(this,void 0,void 0,(function*(){const t=(e=>{var t;const n={type:"start",track:{}};return n.track.playback_id=e.playback_id,n.track.track={},n.track.track.metadata=null===(t=e.track)||void 0===t?void 0:t.metadata,n.config={},n.config["audio.episode.speed"]=e.playback_speed,n.position=e.timestamp,n})(e);yield this.contextPlayerCoordinator.startNewPlayback(t).then((e=>console.log("startNewPlayback done",e)),(e=>console.error("start new playback failed",e))),this.playerRouter.setVolume(0),this.listenToMediaPositionUpdates()}))}stopPlayback(){return je(this,void 0,void 0,(function*(){yield this.playerRouter.mainPlayer.stop(),this.stopListeningToMediaPositionUpdates()}))}pausePlayback(){this.playerRouter.mainPlayer.pause(),this.stopListeningToMediaPositionUpdates()}resumePlayback(){this.playerRouter.mainPlayer.resume(),this.listenToMediaPositionUpdates()}listenToMediaPositionUpdates(){this.mediaPositionIntervalId=window.setInterval((()=>{this.configuration.cosmos.get(`${this.cosmosPositionEndpoint}`).then((e=>{this.onMediaPositionReceived(e)})).catch(console.error)}),400)}stopListeningToMediaPositionUpdates(){this.mediaPositionIntervalId&&window.clearInterval(this.mediaPositionIntervalId),this.mediaPositionIntervalId=void 0}onMediaPositionReceived(e){var t,n,o;const i=null!==(o=null===(n=null===(t=this.playerRouter.mainPlayer)||void 0===t?void 0:t.getNode())||void 0===n?void 0:n.currentTime)&&void 0!==o?o:0,r=e.position,a=We(i,r),s=r/1e3,l=1+(s-i)/100,c=ze(i,r);if(this.debugOverlay({delta:c,adjustSpeed:!a,newSpeed:l}),0===e.playback_speed)this.pausePlayback();else if(a){const t=s,n=200*e.playback_speed/1e3;this.playerRouter.mainPlayer.seekTo(t+n)}else c>1?this.playerRouter.mainPlayer.setPlaybackSpeed(.9):l<2&&this.playerRouter.mainPlayer.setPlaybackSpeed(l)}}const Ke=(e,{delta:t,adjustSpeed:n,newSpeed:o=0})=>{e.innerHTML=`d:${Ye(t)}, s: ${n?"t":"f"}, speed: ${o}`,e.style.background=t>200?"pink":n?"yellow":"lightgreen"},Ye=e=>e>1?"&uparrow;":e<1?"&downarrow;":"-",We=(e,t)=>0!==e&&void 0!==e&&(0!==t&&void 0!==t&&Math.abs(ze(e,t))>200),ze=(e=0,t)=>t-1e3*e;var qe=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const Xe=i().util.Error.Code,Ze=i().util.Error.Category;class Qe{constructor(e){var t,n,o,i,r,a,s,l,c,u,d;if(this.configuration=e,this.cosmosVideoPlayerEndpoint="sp://videoplayer/v1",this.cosmos=e.cosmos,this.spotifyProductState=e.productState,this.playerDependencies=e.playerDependencies,this.playerConfiguration=null!==(t=e.playerConfiguration)&&void 0!==t?t:{},this.authTokenCallback=()=>qe(this,void 0,void 0,(function*(){const{accessToken:t,tokenType:n}=yield e.getToken();return`${n} ${t}`})),(null!==(o=(c=null!==(n=(l=this.playerConfiguration).analytics)&&void 0!==n?n:l.analytics={}).playbackMetadataKeys)&&void 0!==o?o:c.playbackMetadataKeys=[]).push(Z),(null!==(i=(u=e.playerDependencies).factories)&&void 0!==i?i:u.factories=[]).push((()=>new Je(this,this.playerInterruptor,this.stallTimeoutMs))),e.eventSenderProvider){const{playbackSessionLogger:t,playbackErrorLogger:n,downloadSessionLogger:o,downloadErrorLogger:i}=ye(e.eventSenderProvider),l={log:e=>(Y().queueHeartBeat(e),Promise.resolve())};e.playerDependencies.factories.push((()=>{var e,n;return new ln(t,null===(n=null===(e=this.playerConfiguration)||void 0===e?void 0:e.analytics)||void 0===n?void 0:n.playbackMetadataKeys)}),(()=>new cn(n)),(()=>new fn(l))),(null===(a=null===(r=this.playerConfiguration)||void 0===r?void 0:r.offline)||void 0===a?void 0:a.enabled)&&(null!==(s=(d=this.playerConfiguration.offline).downloadObserverFactories)&&void 0!==s?s:d.downloadObserverFactories=[]).push((()=>new hn(o)),(()=>new mn(i)))}if(e.endVideoLogger){const t=new Se(e.productStateService,e.scrobbleService);e.playerDependencies.endVideo={endVideo:e.endVideoLogger,productStateProvider:t}}const p=this.spotifyProductState["video-manifest-url"];this.playerDependencies.mediaExtensions=[new C(p)],this.videoContextPlayerSub=void 0,this.contextPlayerVolumeSub=void 0,this.playerInterruptor=new F(this.cosmos),this.playbackService=e.playbackService}initialize(){var e;const t=new Ge(this.playerDependencies),n=t.createBetamaxPlayer(this.playerConfiguration),o=(null===(e=this.configuration.ads)||void 0===e?void 0:e.videoOnVideoSaiEnabled)?t.createBetamaxPlayer(this.playerConfiguration):void 0;this.playerRouter=new Ae(n,o),this.configuration.boomboxAudioSync?(this.audioSyncCoordinator=new He(this.configuration,this,this.playerRouter),this.audioSyncCoordinator.initialize()):this.videoContextPlayerSub=this.cosmos.sub(`${this.cosmosVideoPlayerEndpoint}/commands`,this.onCommandReceived.bind(this),y),void 0!==this.playbackService&&this.playbackService.subVolume({},(({volume:e})=>{var t;null===(t=this.playerRouter)||void 0===t||t.setVolume(e)}))}release(){return qe(this,void 0,void 0,(function*(){this.videoContextPlayerSub&&(this.videoContextPlayerSub.cancel(),this.videoContextPlayerSub=void 0),this.contextPlayerVolumeSub&&(this.contextPlayerVolumeSub.cancel(),this.contextPlayerVolumeSub=void 0),yield this.stopAndUnloadCurrentTrack(),this.playerInterruptor=void 0,this.playerRouter=void 0,this.deferredStartPayload=void 0,this.audioSyncCoordinator&&this.audioSyncCoordinator.release()}))}onCommandReceived(e){var t,n,o;return qe(this,void 0,void 0,(function*(){const i=e;if(!this.playerRouter)return i;const r=null===(t=null==i?void 0:i.track)||void 0===t?void 0:t.playback_id;switch(i.type){case"start":try{this.playerInterruptor&&this.playerInterruptor.unregister(),this.shouldResumeCurrentTrack(i,this.currentTrack)?yield this.resumeCurrentPlayback(this.playerRouter,i):yield this.startNewPlayback(i)}catch(e){yield this.playerRouter.stop(r),yield this.sendContextPlayerError({type:"video_playback_error"})}return this.shouldPrepareDeferredStart(i,r)&&(this.deferredStartPayload=i),i;case"stop":yield this.playerRouter.stop(r);break;case"pause":this.playerRouter.pause(r);break;case"resume":(null===(o=null===(n=this.currentTrack)||void 0===n?void 0:n.track)||void 0===o?void 0:o.metadata["media.live"])&&this.playerRouter.seekTo(r,0),this.deferredStartPayload&&this.shouldPerformDeferredStart(r)&&(this.deferredStartPayload.start_reason="unknown",yield this.startNewPlayback(this.deferredStartPayload)),this.playerRouter.resume(r);break;case"seek_to":{const e=i.position||0;this.isSeekPastStopPosition(e)&&void 0!==this.playerInterruptor&&this.playerInterruptor.unregister(),this.playerRouter.seekTo(r,e/1e3)}break;case"set_stop_position":{const e=i.stop_position;void 0!==this.playerInterruptor&&void 0!==e&&this.playerInterruptor.registerInterruptorWhenReadyAtPosition(e/1e3)}break;case"subscribed":case"config":{const e=ge(i.config);this.playerRouter.setPreferredSubtitle(e);const t=ve(i.config);this.playerRouter.setPlaybackSpeed(t)}}return i}))}shouldPrepareDeferredStart(e,t){var n;return"appload"===e.start_reason&&null===(null===(n=this.playerRouter)||void 0===n?void 0:n.getSessionState(t))}shouldPerformDeferredStart(e){var t;return void 0!==this.deferredStartPayload&&null===(null===(t=this.playerRouter)||void 0===t?void 0:t.getSessionState(e))}sendPlaybackError(e){return qe(this,void 0,void 0,(function*(){const t=this.backendErrorToContextPlayerError(e);t&&(yield this.sendContextPlayerError(t))}))}sendContextPlayerError(e){return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/error`,e)}startNewPlayback(e){var t,n,o,i,r,a,s,l,c;return qe(this,void 0,void 0,(function*(){if(!this.playerRouter)return Promise.reject("betamaxPlayer was not set");this.deferredStartPayload&&(this.deferredStartPayload=void 0);const u=null!==(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.track)&&void 0!==n?n:e,d=null!==(i=null===(o=null==u?void 0:u.metadata)||void 0===o?void 0:o["media.manifest_id"])&&void 0!==i?i:"";let p="";if(!d){try{p=(e=>{if(!Array.isArray(e)||!e.length)return null;const t=["video/webm"],n=e.filter((e=>t.indexOf(e.mimeType)>-1)).sort(((e,t)=>Math.abs(e.bitrate-640)-Math.abs(t.bitrate-640)));return n.length?n[0].url:null})(JSON.parse(u.metadata["media.manifest"]))||""}catch(e){p=""}p||(p=null!==(a=null===(r=null==u?void 0:u.metadata)||void 0===r?void 0:r.external_url)&&void 0!==a?a:"")}if(!d&&!p){const e=this.makeVideoContextPlayerCoordinatorError("no-source-url","Cannot find a manifest ID nor a source URL in payload");return Promise.reject(e)}const f=function(e){var t;return"true"===(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.is_advertisement)}(u),h=!f,m=!f;if(f||(yield this.stopAndUnloadCurrentTrack()),null!==(s=this.playerConfiguration)&&void 0!==s||(this.playerConfiguration={}),h){let e;null!==(l=(c=this.playerConfiguration).drm)&&void 0!==l||(c.drm={}),this.playerConfiguration.drm.vmpEnabled&&(e=yield Oe(this.configuration.getToken));const t=this.spotifyProductState["widevine-license-url"];this.playerConfiguration.drm=Object.assign(Object.assign({},this.playerConfiguration.drm),{servers:Object.assign(Object.assign({},this.playerConfiguration.drm.servers),{"com.widevine.alpha":t}),advanced:Object.assign(Object.assign({},this.playerConfiguration.drm.advanced),{"com.widevine.alpha":{videoRobustness:"SW_SECURE_DECODE",serverCertificate:e}})})}const g=d?this.authTokenCallback:void 0;this.playerConfiguration.networkConfiguration={getAuthorizationHeader:g};const v=he(e);v.desktop_ui="x";const y={mediaUrl:d?O.create(d):p,isRoyaltyMedia:m,metadata:v},_=ve(e.config);this.playerRouter.setPlaybackSpeed(_),this.currentTrack=e.track,this.stallTimeoutMs=function(e){const t=e.track.track.metadata["video.seconds_before_track_stuck"];if(!t)return;const n=Number(t);return Number.isInteger(n)?1e3*n:void 0}(e);const b=(e.seek_to||0)/1e3,S=!e.initially_paused;return this.playerRouter.play(y,{playWhenReady:S,initialPosition:b})}))}getPlaybackRequest(){if(this.playerRouter)return this.playerRouter.getPlaybackRequest()}sendAdvance(e){const t={reason:e};return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/advance`,t)}sendPlaybackState(e){var t;if(!e)return Promise.resolve({err:"playbackId is undefined"});const n=null===(t=this.playerRouter)||void 0===t?void 0:t.getSessionState(e);if(!n)return Promise.resolve({err:`no session state for playbackId: '${e}'`});const o=n.duration>-1?Math.floor(1e3*n.duration):-1;if(-1===o)return Promise.resolve({err:"negDuration"});const i=n.currentTime>-1?Math.floor(1e3*n.currentTime):-1,r=n.isPlaying&&!n.isPaused?n.playbackSpeed:0,a={timestamp:(new Date).getTime(),playback_id:e||"",is_paused:n.isPaused,is_buffering:n.isBuffering||!1,playback_speed:r,position_as_of_timestamp:i,duration:o};return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/state`,a)}setMinimizeBitrate(e){var t;null===(t=this.playerRouter)||void 0===t||t.setMinimizeBitrate(e)}reportVideoMode(e){var t;const n="none"==e?void 0:e;null===(t=this.playerRouter)||void 0===t||t.setSurface(n)}setFullscreen(e){var t;null===(t=this.playerRouter)||void 0===t||t.setFullscreen(e)}setWindow(e){var t;null===(t=this.playerRouter)||void 0===t||t.setWindow(e)}setPip(e){var t,n;return null!==(n=null===(t=this.playerRouter)||void 0===t?void 0:t.setPip(e))&&void 0!==n?n:Promise.resolve(null)}isSeekPastStopPosition(e){const t=this.playerInterruptor?this.playerInterruptor.getStopPosition():void 0;return void 0!==t&&e>=t}shouldResumeCurrentTrack(e,t){return void 0!==t&&(void 0!==this.playerRouter&&this.playerRouter.hasPlaybackId(e.track.playback_id))}resumeCurrentPlayback(e,t){var n;return qe(this,void 0,void 0,(function*(){const o=t.track.playback_id;yield null===(n=this.playerRouter)||void 0===n?void 0:n.switchPlayer(o);const i=ve(t.config);if(e.setPlaybackSpeed(i),e.resume(o),void 0!==t.seek_to&&t.seek_to>=0){const n=t.seek_to/1e3;e.seekTo(o,n)}}))}makeVideoContextPlayerCoordinatorError(e,t){const n=new Error(t);return n.name="VideoContextPlayerCoordinatorError",n.reason=e,n}backendErrorToContextPlayerError(e){var t,n;if(!(null===(t=e.network)||void 0===t?void 0:t.responseText)&&!(null===(n=e.network)||void 0===n?void 0:n.httpStatus))return e.code===Xe.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE?{type:"video_unsupported_key_system"}:e.category===p(Ze.DRM)?this.configuration.widevineVersionSupported?{type:"video_playback_error"}:{type:"video_unsupported_client_version"}:"recoverable"===e.severity?null:{type:"unknown"};if(401===e.network.httpStatus)return{type:"video_playback_error"};let o=null;try{if(e.network.responseHeaders&&"content-type"in e.network.responseHeaders){if("application/json"===e.network.responseHeaders["content-type"]&&e.network.responseText){o=JSON.parse(e.network.responseText).reason}}}catch(e){return{type:"unknown"}}switch(o){case"GEO_RESTRICTED":return{type:"video_georestricted"};case"UNSUPPORTED_CLIENT_VERSION":return{type:"video_unsupported_client_version"};case"UNSUPPORTED_PLATFORM_VERSION":return{type:"video_unsupported_platform_version"};case"COUNTRY_RESTRICTED":return{type:"video_country_restricted"};case"UNAVAILABLE":return{type:"video_unavailable"};case"CATALOGUE_RESTRICTED":return{type:"video_catalogue_restricted"};default:return{type:"unknown"}}}stopAndUnloadCurrentTrack(){return qe(this,void 0,void 0,(function*(){if(!this.playerRouter)return;const e=this.playerRouter.getNode();this.currentTrack&&!this.playerRouter.ended&&(yield this.playerRouter.stopAll()),this.currentTrack=void 0,this.stallTimeoutMs=void 0,e&&e.remove()}))}}const $e=i().net.NetworkingEngine.RequestType;class et{constructor(){this.sessionEvents=[]}onBuffering(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.BUFFERING})}onEncryptionKeyLoaded(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.ENCRYPTION_KEY_LOADED})}onDurationChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.DURATION_CHANGED})}onManifestLoaded(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.MANIFEST_LOADED})}onPlaybackError(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.ERROR})}onPlaybackCreated(e,t){this.sessionEvents.push({data:e,timestamp:t,type:Ie.CREATED})}onEndingPlayback(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.NEW_SESSION_LOADED})}onPlaybackEnded(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.ENDED})}onReady(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.READY})}onResumed(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.RESUMED})}onPaused(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.PAUSED})}onSeeking(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SEEKING})}onSeeked(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SEEKED})}onAudioFormatChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.AUDIO_FORMAT_CHANGED})}onVideoFormatChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.VIDEO_FORMAT_CHANGED})}onVolumeChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.VOLUME_CHANGED})}onManifestLoading(e){this.sessionEvents.push({timestamp:e,data:void 0,type:Ie.MANIFEST_LOADING})}onEncryptionKeyLoading(e){this.sessionEvents.push({timestamp:e,data:void 0,type:Ie.ENCRYPTION_KEY_LOADING})}onBytesTransferred(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.BYTES_TRANSFERRED})}onSubtitleChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SUBTITLE_CHANGED})}onFullscreenChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.FULLSCREEN_CHANGED})}onSurfaceChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SURFACE_CHANGED})}onMinimizeBitrateChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.MINIMIZE_BITRATE_CHANGED})}onPlaybackSpeedChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.PLAYBACK_SPEED_CHANGED})}onDroppedVideoFrames(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.DROPPED_FRAMES})}}const tt=-1,nt=e=>Number.isFinite(e);function ot(e){return Object.entries(e).filter((([e])=>e.includes(fe))).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t.replace(fe,"")]:n})),{})}const it=e=>e.type===Ie.RESUMED,rt=e=>e.type===Ie.ENDED,at=e=>e.type===Ie.BUFFERING,st=e=>e.type===Ie.DROPPED_FRAMES,lt=e=>e.type===Ie.NEW_SESSION_LOADED,ct=e=>e.type===Ie.CREATED,ut=e=>e.type===Ie.READY,dt=e=>e.type===Ie.DURATION_CHANGED,pt=e=>e.type===Ie.AUDIO_FORMAT_CHANGED,ft=e=>e.type===Ie.VIDEO_FORMAT_CHANGED,ht=e=>e.type===Ie.ENCRYPTION_KEY_LOADED,mt=e=>e.type===Ie.ENCRYPTION_KEY_LOADING,gt=e=>e.type===Ie.SUBTITLE_CHANGED,vt=e=>e.type===Ie.MANIFEST_LOADED,yt=e=>e.type===Ie.MANIFEST_LOADING,_t=e=>e.type===Ie.SEEKING,bt=e=>e.type===Ie.PLAYBACK_SPEED_CHANGED,St=e=>e.type===Ie.FULLSCREEN_CHANGED,Et=e=>e.type===Ie.SURFACE_CHANGED,At=e=>e.type===Ie.MINIMIZE_BITRATE_CHANGED,Tt=e=>e.type===Ie.BYTES_TRANSFERRED,Pt=e=>(e=>{var t;return null!==(t=e[Z])&&void 0!==t?t:""})(ot(e)),Ot=e=>t=>it(t)&&!e,Ct=e=>t=>_t(t)&&e,kt=e=>t=>rt(t)&&e,Rt=e=>t=>(_t(t)||(e=>e.type===Ie.PAUSED)(t)||rt(t))&&e,Lt=(e,t)=>it(e)?void 0===e.data||void 0===e.data.position?Object.assign(Object.assign({},t),{playing:!0}):Object.assign(Object.assign({},t),{playing:!0,playingPosition:e.data.position}):t;function It(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return 0;const n=t-e;return!Number.isFinite(n)||n<0?0:Math.round(1e3*n)}function Nt(e,t,n){const o=Math.round(n.timestamp-e.bufferingStart),i=Object.assign({},t);if(nt(o)&&o>0)switch(e.bufferingType){case Re.SEEK:i[W.MS_BUFFERING_SEEK]+=o,o>i[W.MS_BUFFERING_SEEK_LONGEST]&&(i[W.MS_BUFFERING_SEEK_LONGEST]=o);break;case Re.STALL:i[W.MS_BUFFERING_STALL]+=o,o>i[W.MS_BUFFERING_STALL_LONGEST]&&(i[W.MS_BUFFERING_STALL_LONGEST]=o);break;case Re.INITIAL:i[W.MS_INITIAL_BUFFERING]+=o}return i}const wt=(e,t,n)=>n>0?Math.round(It(t,Dt(e))/n):0;function Dt(e){if(e.data){const t=e.data.position;if(nt(t))return t;if(_t(e)&&nt(e.data.fromPosition))return e.data.fromPosition}return 1/0}const Mt=(e,t)=>bt(e)?Object.assign(Object.assign({},t),{playbackSpeed:e.data.speed}):t,xt=(e,t)=>{var n;return gt(e)?Object.assign(Object.assign({},t),{subtitlesEnabled:!!(null===(n=e.data)||void 0===n?void 0:n.subtitle.languageTag)}):t},Ft=(e,t)=>St(e)?Object.assign(Object.assign({},t),{fullscreen:e.data.fullscreen}):t,Ut=(e,t)=>Et(e)?Object.assign(Object.assign({},t),{surfaceChanged:!0}):t,Bt=(e,t)=>At(e)?Object.assign(Object.assign({},t),{minimizeBitrate:e.data.minimizeBitrate}):t,Vt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{minimizeBitrate:e.data.initialConfiguration.minimizeBitrate}):t,Gt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{fullscreen:e.data.initialConfiguration.fullscreen}):t,Jt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{surface:e.data.initialConfiguration.surface}):t,jt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{playbackSpeed:e.data.initialConfiguration.playbackSpeed}):t,Ht=(e,t)=>{const n=Object.assign({},t),o=(e=>{const t=e.playing&&e.subtitlesEnabled,n=void 0!==e.playingWithSubtitlesPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===o&&(n.playingWithSubtitlesPosition=Dt(e)),"finished"===o&&void 0!==n.playingWithSubtitlesPosition&&(n.msPlayedSubtitles+=wt(e,n.playingWithSubtitlesPosition,n.playbackSpeed),n.playingWithSubtitlesPosition=void 0),n},Kt=(e,t)=>{const n=Object.assign({},t),o=(e=>{const t=e.playing&&e.fullscreen,n=void 0!==e.playingWhileFullscreenPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===o&&(n.playingWhileFullscreenPosition=Dt(e)),"finished"===o&&void 0!==n.playingWhileFullscreenPosition&&(n.msPlayedFullscreen+=wt(e,n.playingWhileFullscreenPosition,n.playbackSpeed),n.playingWhileFullscreenPosition=void 0),n},Yt=(e,t)=>{var n,o,i,r,a,s;const l=Object.assign({},t),c=(e=>{if(e.surfaceChanged)return"changed";const t=e.playing&&e.surface,n=void 0!==e.playingInSurfacePosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(l);return"started"===c&&(l.playingInSurfacePosition=Dt(e)),"finished"===c&&void 0!==l.playingInSurfacePosition&&l.surface&&(null!==(n=(i=l.msPlayedPerSurface)[r=l.surface])&&void 0!==n||(i[r]=0),l.msPlayedPerSurface[l.surface]+=wt(e,l.playingInSurfacePosition,l.playbackSpeed),l.playingInSurfacePosition=void 0),"changed"===c&&Et(e)&&(l.surface&&void 0!==l.playingInSurfacePosition&&(null!==(o=(a=l.msPlayedPerSurface)[s=l.surface])&&void 0!==o||(a[s]=0),l.msPlayedPerSurface[l.surface]+=wt(e,l.playingInSurfacePosition,l.playbackSpeed)),l.surface=e.data.surface,l.surfaceChanged=!1,l.playing&&(l.playingInSurfacePosition=Dt(e))),l},Wt=(e,t)=>{const n=Object.assign({},t),o=(e=>{const t=e.playing&&e.minimizeBitrate,n=void 0!==e.playingWithMinimizeBitratePosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===o&&(n.playingWithMinimizeBitratePosition=Dt(e)),"finished"===o&&void 0!==n.playingWithMinimizeBitratePosition&&(n.msPlayedDisabled+=wt(e,n.playingWithMinimizeBitratePosition,n.playbackSpeed),n.playingWithMinimizeBitratePosition=void 0),n},zt=(e,t)=>{const n=It(t.playingPosition,Dt(e)),o=wt(e,t.playingPosition,t.playbackSpeed);return Object.assign(Object.assign({},t),{msNominalPlayed:n+t.msNominalPlayed,msPlayed:o+t.msPlayed,playing:!1,playingPosition:0})},qt=(e,t)=>{t[W.SESSION_ID]=e.data.playbackIdentity.sessionId,t[W.MEDIA_URL]=e.data.playbackIdentity.mediaUrl},Xt=(e,t)=>{t[W.MS_START_POSITION]=Math.round(1e3*e.data.position),t[W.STREAMING_TYPE]=e.data.streamingType},Zt=(e,t)=>{t[W.MS_DURATION]=Math.round(1e3*e.data.duration)};const Qt=(e,t)=>{t[W.N_DROPPED_FRAMES]=e.data.droppedFrames},$t=(e,t)=>{t[W.EXIT_REASON]=e.data.reason},en=(e,t)=>{t[W.ASPECT_RATIO]=e.data.format.width&&e.data.format.height?e.data.format.width/e.data.format.height:t[W.ASPECT_RATIO],t[W.START_BITRATE]=e.data.format.totalBitrate&&!t[W.START_BITRATE]?e.data.format.totalBitrate:t[W.START_BITRATE]};const tn=(e,t)=>{t[W.ENCRYPTION_TYPE]=e.data.encryptionType},nn=(e,t)=>{t[W.LAST_USED_SUBTITLE]=e.data.subtitle.languageTag||t[W.LAST_USED_SUBTITLE]};const on=(e,t)=>{var n,o;e.data.fromPosition>e.data.toPosition?t[W.N_SEEKBACK]=(null!==(n=t[W.N_SEEKBACK])&&void 0!==n?n:0)+1:e.data.fromPosition<=e.data.toPosition&&(t[W.N_SEEKFORWARD]=(null!==(o=t[W.N_SEEKFORWARD])&&void 0!==o?o:0)+1)};const rn=()=>({playing:!1,subtitlesEnabled:!1,playingWithSubtitlesPosition:void 0,msPlayedSubtitles:0,msPlayed:0,msNominalPlayed:0,msPlayedRangeStartTime:0,playingPosition:0,fullscreen:!1,playingWhileFullscreenPosition:void 0,msPlayedFullscreen:0,minimizeBitrate:!1,playingWithMinimizeBitratePosition:void 0,msPlayedDisabled:0,playedRanges:[],unionPlayed:0,maxContinous:0,playbackSpeed:1,surfaceChanged:!1,msPlayedPerSurface:{}});function an(e){let t=rn(),n={[W.ASPECT_RATIO]:0,[W.START_BITRATE]:0,[W.N_SEEKBACK]:0,[W.N_SEEKFORWARD]:0,[W.N_DROPPED_FRAMES]:0,[W.EXIT_REASON]:"",[W.ENCRYPTION_TYPE]:"",[W.LAST_USED_SUBTITLE]:"",[W.SESSION_ID]:"",[W.MEDIA_URL]:"",[W.STREAMING_TYPE]:"unknown",[W.MS_DURATION]:tt,[W.MS_START_POSITION]:tt,[W.MS_MANIFEST_LOAD_TIME]:tt,[W.MS_ENCRYPTION_LOAD_TIME]:tt},o=tt,i=tt,r=tt,a=tt,s=0,l=0;const c={buffering:!1,bufferingType:"",bufferingStart:0};let u={[W.N_STALLS]:0,[W.MS_BUFFERING_SEEK]:0,[W.MS_BUFFERING_SEEK_LONGEST]:0,[W.MS_BUFFERING_STALL]:0,[W.MS_INITIAL_BUFFERING]:0,[W.MS_BUFFERING_STALL_LONGEST]:0};return n=e.reduce(((e,n)=>(ct(n)?(o===tt&&(o=n.timestamp),t=jt(n,t),t=Gt(n,t),t=Vt(n,t),t=Jt(n,t),qt(n,e)):ut(n)?(i===tt&&(i=n.timestamp),Xt(n,e)):bt(n)?t=Mt(n,t):gt(n)?(t=xt(n,t),nn(n,e)):St(n)?t=Ft(n,t):At(n)?t=Bt(n,t):Et(n)?t=Ut(n,t):Tt(n)?(s+=n.data.bytes,l+=n.data.timeMs):dt(n)?Zt(n,e):ft(n)?en(n,e):st(n)?Qt(n,e):ht(n)?(tn(n,e),function(e,t,n){if(t!==tt){const o=n[W.MS_ENCRYPTION_LOAD_TIME],i=nt(o)&&o!==tt?o:0;n[W.MS_ENCRYPTION_LOAD_TIME]=i+Math.round(e.timestamp-t)}}(n,a,e),a=tt):mt(n)&&i===tt?a=n.timestamp:vt(n)?(!function(e,t,n){if(t!==tt){const o=n[W.MS_MANIFEST_LOAD_TIME],i=nt(o)&&o!==tt?o:0;n[W.MS_MANIFEST_LOAD_TIME]=i+Math.round(e.timestamp-t)}}(n,r,e),r=tt):yt(n)?r=n.timestamp:_t(n)?on(n,e):rt(n)&&$t(n,e),Ot(t.playing)(n)?t=Lt(n,t):Rt(t.playing)(n)&&(t=zt(n,t)),t=Ht(n,t),t=Kt(n,t),t=Wt(n,t),t=Yt(n,t),e[W.MS_PLAYED]=t.msPlayed,e[W.MS_PLAYED_NOMINAL]=t.msNominalPlayed,e[W.MS_PLAYED_SUBTITLES]=t.msPlayedSubtitles,e[W.MS_PLAYED_FULLSCREEN]=t.msPlayedFullscreen,e[W.MS_PLAYED_VIDEO_DISABLED]=t.msPlayedDisabled,e[W.MS_PLAYED_PER_SURFACE]=t.msPlayedPerSurface,u=function(e,t,n){return at(e)&&(e.data.type===Re.STALL&&n[W.N_STALLS]++,t.buffering&&(n=Nt(t,n,e)),t.buffering=!0,t.bufferingType=e.data.type,t.bufferingStart=e.timestamp),(ut(e)||rt(e))&&t.buffering&&(n=Nt(t,n,e),t.buffering=!1,t.bufferingType="",t.bufferingStart=0),n}(n,c,u),e)),n),n=function(e,t,n){const o=t?e/(t/1e3):0;return n[W.KBYTES_DOWNLOADED]=Math.ceil(e/1e3),n[W.KBPS_AVERAGE_BANDWIDTH]=Math.ceil(.008*o),n}(s,l,n),n=function(e,t,n){if(e===tt||t===tt)return n[W.MS_START_TIME]=tt,n;let o=Math.round(t-e);return o=o>=0?o:tt,n[W.MS_START_TIME]=o,n}(o,i,n),Object.assign(Object.assign({},n),u)}const sn=()=>{var e;if(navigator.onLine){const t=null===(e=navigator.connection)||void 0===e?void 0:e.effectiveType;return t?`${t}-like`:"online"}return"none"};class ln extends et{constructor(e,t){super(),this.logger=e,this.playbackMetadataKeys=t,this.startConnectionType="unknown",this.endConnectionType="unknown"}onPlaybackCreated(e,t){super.onPlaybackCreated(e,t),this.startConnectionType=sn(),this.playbackIdentity=e.playbackIdentity}onPlaybackEnded(e,t){super.onPlaybackEnded(e,t),this.endConnectionType=sn(),this.playbackStats=e.playbackStats,this.logPlaybackSessionMessage(this.sessionEvents)}logPlaybackSessionMessage(e){const t=this.generatePlaybackSessionMessage(e);this.logger.log(t)}logClientMetadata(e){var t;if(void 0===this.playbackMetadataKeys)return;const n={};for(const[o,i]of Object.entries(null!==(t=null==e?void 0:e.metadata)&&void 0!==t?t:{}))this.playbackMetadataKeys.includes(o)&&(n[o]=i);return Object.entries(n).length>0?n:void 0}generatePlaybackSessionMessage(e){var t,n,o,i,r,a,s,l,c;const u=an(e),d=void 0!==(null===(t=this.playbackStats)||void 0===t?void 0:t.playTime)?Math.round(null===(n=this.playbackStats)||void 0===n?void 0:n.playTime):void 0;return Object.assign(Object.assign({},u),{connection_type_start:this.startConnectionType,connection_type_end:this.endConnectionType,feature_identifier:null!==(r=null===(i=null===(o=this.playbackIdentity)||void 0===o?void 0:o.metadata)||void 0===i?void 0:i[Q])&&void 0!==r?r:"",desktop_ui:null!==(l=null===(s=null===(a=this.playbackIdentity)||void 0===a?void 0:a.metadata)||void 0===s?void 0:s[$])&&void 0!==l?l:"",ms_played_internal:d,is_royalty_media:null===(c=this.playbackIdentity)||void 0===c?void 0:c.isRoyaltyMedia,client_metadata:this.logClientMetadata(this.playbackIdentity)})}}class cn{constructor(e){this.logger=e}onPlaybackCreated({playbackIdentity:e}){this.playbackIdentity=e}onPlaybackError({error:e}){this.logErrorMessage(e)}logErrorMessage(e){var t,n,o;const i={error_domain:e.category,error_code:e.code,error_description:null===(t=e.internalDetails)||void 0===t?void 0:t.toString(),error_extra1:JSON.stringify(Object.assign({severity:e.severity,sdkVersion:Mn,internalPlayerVersion:xn},e.sessionContext)),error_extra2:JSON.stringify(e.clientContext)};this.playbackIdentity&&(i.session_id=this.playbackIdentity.sessionId,i.media_url=this.playbackIdentity.mediaUrl,i.feature_identifier=null===(n=this.playbackIdentity.metadata)||void 0===n?void 0:n[Q],i.desktop_ui=null===(o=this.playbackIdentity.metadata)||void 0===o?void 0:o[$]),this.logger.log(i)}}const un="video-fa",dn="video-akp";function pn(e){return function(e){return e.includes(dn)}(e)?"Akamai":function(e){return e.includes(un)}(e)?"Fastly":function(e){try{return new URL(e).origin}catch(e){return}}(e)}class fn{constructor(e){this.logger=e,this.muxExtraFields={}}onPlaybackCreated({playbackIdentity:e,initialConfiguration:t}){var n,o,i;this.muxExtraFields={view_session_id:null==e?void 0:e.sessionId,video_title:null===(n=e.metadata)||void 0===n?void 0:n.album_title,video_id:null===(o=e.metadata)||void 0===o?void 0:o["media.manifest_id"],video_stream_type:null===(i=e.metadata)||void 0===i?void 0:i.streamingType,custom_1:t.playbackSpeed},this.logger.log(this.muxExtraFields)}onBytesTransferred({uri:e,requestType:t}){if(t!==$e.SEGMENT)return;const n=pn(e);n!==this.muxExtraFields.video_cdn&&(this.muxExtraFields=Object.assign(Object.assign({},this.muxExtraFields),{video_cdn:n}),this.logger.log(this.muxExtraFields))}onPlaybackSpeedChanged({speed:e}){this.muxExtraFields=Object.assign(Object.assign({},this.muxExtraFields),{custom_1:e}),this.logger.log(this.muxExtraFields)}}class hn{constructor(e){this.logger=e}onDownloadEvent(e){switch(e.name){case"created":{const{mediaUri:t}=e;this.ongoingDownload={mediaUri:t,startTime:(new Date).getTime(),connectionTypeStart:sn()};break}case"completed":{const{offlineAsset:t}=e;this.log(t,"completed"),this.ongoingDownload=void 0;break}case"error":{const{partialAsset:t}=e;this.log(t,"error"),this.ongoingDownload=void 0;break}case"cancelled":{const{partialAsset:t}=e;this.log(t,"cancelled"),this.ongoingDownload=void 0;break}}}log(e,t){var n,o,i,r;const a=Math.round((null!==(n=e.size)&&void 0!==n?n:0)/1e3),s=(null===(o=this.ongoingDownload)||void 0===o?void 0:o.startTime)?(new Date).getTime()-(null===(i=this.ongoingDownload)||void 0===i?void 0:i.startTime):0,l=null===(r=this.ongoingDownload)||void 0===r?void 0:r.connectionTypeStart,c=sn(),u={feature_identifier:"offline-coordinator",media_url:e.originalUrl,session_id:e.downloadSessionId,kbytes_downloaded:a,ms_download_time:s,reason_end:t,bitrate:0,connection_type_start:l,connection_type_end:c};this.logger.log(u)}}class mn{constructor(e){this.logger=e}onDownloadEvent(e){if("error"===e.name){const{partialAsset:t,error:n}=e;this.log(t,n)}}log(e,t){var n,o,i,r,a,s;const l={feature_identifier:"offline-coordinator",media_url:e.originalUrl,session_id:null!==(n=e.downloadSessionId)&&void 0!==n?n:"",error_description:null!==(o=t.reason)&&void 0!==o?o:"",error_code:null!==(i=t.code)&&void 0!==i?i:0,error_domain:null!==(r=t.category)&&void 0!==r?r:"",error_extra1:null!==(a=t.error_extra1)&&void 0!==a?a:"",error_extra2:null!==(s=t.error_extra2)&&void 0!==s?s:""};this.logger.log(l)}}var gn;!function(e){e.END_APPLOAD="appload",e.END_UNKNOWN="unknown",e.END_TRACK_DONE="trackdone",e.END_TRACK_ERROR="trackerror",e.END_PLAY="endplay",e.END_UNEXPECTED_EXIT="unexpected-exit",e.END_UNEXPECTED_EXIT_WHILE_PAUSED="unexpected-exit-while-paused"}(gn||(gn={}));var vn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};function yn(e,t){switch(e){case Le.PLAYED_TO_END:return gn.END_TRACK_DONE;case Le.REQUESTED:return gn.END_PLAY;case Le.FATAL_ERROR:return gn.END_TRACK_ERROR;case Le.SHUTDOWN:return null!=t?t:gn.END_UNEXPECTED_EXIT;case Le.NETWORK_ERROR:return gn.END_TRACK_ERROR;default:return e}}function _n(e,t){return e.from<t.from?-1:e.from===t.from?e.to>t.to?-1:e.to<t.to?1:0:1}function bn(e,t){return 0===t?0:Object.entries(e).reduce(((e,[n,o])=>{const i=parseFloat(n)*o/t;return Math.round(e+i)}),0)}const Sn=(e,t)=>{const n=Object.assign({},t);if(n.playing&&void 0!==n.bitrates[n.activeBitrate]){const t=It(n.playingTimestamp/1e3,e.timestamp/1e3);n.bitrates[n.activeBitrate]+=t,n.totalTimePlayedInKnownBitrate+=t,n.timeWeightedBitrate=bn(n.bitrates,n.totalTimePlayedInKnownBitrate)}return n.playing=!1,n.playingTimestamp=0,n},En=(e,t)=>{const n=Object.assign({},t),{timestamp:o}=e;let{data:{format:{totalBitrate:i}}}=e;if(i=null!=i?i:0,n.bitrates[i]||(n.bitrates[i]=0),n.playing&&-1===n.activeBitrate)n.playingTimestamp=o;else if(n.playing&&i!==n.activeBitrate){const e=It(n.playingTimestamp/1e3,o/1e3);n.bitrates[n.activeBitrate]+=e,n.totalTimePlayedInKnownBitrate+=e,n.playingTimestamp=o,n.timeWeightedBitrate=bn(n.bitrates,n.totalTimePlayedInKnownBitrate)}return n.playing||n.bitrates[i]||(n.bitrates[i]=0),n.activeBitrate=i,n},An=(e,t)=>Object.assign(Object.assign({},t),{playing:!0,playingTimestamp:e.timestamp}),Tn=(e,t)=>{if(e.type!==Ie.SEEKING)return t;const n=e;return Object.assign(Object.assign({},t),{playingPosition:n.data.toPosition,playing:!1,playedRanges:[...t.playedRanges,{from:t.playingPosition,to:n.data.fromPosition}]})},Pn=(e,t)=>{if(e.type!==Ie.SEEKING)return t;const n=e,o=1e3*(n.data.fromPosition-t.playingPosition),i=Math.round(Math.max(t.maxContinous,o));return Object.assign(Object.assign({},t),{playing:!1,playingPosition:n.data.toPosition,maxContinous:i})},On=(e,t)=>{if(e.type!==Ie.ENDED)return t;const n=1e3*(e.data.position-t.playingPosition),o=Math.round(Math.max(t.maxContinous,n));return Object.assign(Object.assign({},t),{playing:!1,playingPosition:0,maxContinous:o})},Cn=(e,t)=>{if(e.type!==Ie.ENDED)return t;const n=e,o=[...t.playedRanges,{from:t.playingPosition,to:n.data.position}],i=Math.round(1e3*(r=o).sort(_n).reduce(((e,t,n)=>{if(0===e.length)return e.push(t),e;const o=r[n-1];return o.to===t.from||o.to<t.to&&o.to>t.from?(e[n-1]={from:o.from,to:t.to},e):o.to<t.from?(e.push(t),e):e}),[]).reduce(((e,t)=>e+t.to-t.from),0));var r;return Object.assign(Object.assign({},t),{playedRanges:o,playing:!1,playingPosition:0,unionPlayed:i})};function kn(e){let t=gn.END_UNEXPECTED_EXIT;const n=rn();for(const o of e)Ot(n.playing)(o)||kt(n.playing)(o)?(n.playing=!0,t=gn.END_UNEXPECTED_EXIT):Rt(n.playing)(o)&&(n.playing=!1,t=gn.END_UNEXPECTED_EXIT_WHILE_PAUSED);const o=function(e){return e.filter(lt).reduce(((e,{data:t})=>({startReason:t.playbackRequest.metadata?Pt(t.playbackRequest.metadata):""})),{startReason:""})}(e);return e.filter(rt).reduce(((e,{data:n})=>({[z.REASON_END]:o.startReason||yn(n.reason,t)})),{[z.REASON_END]:""})}function Rn(e){return e[W.MS_PLAYED]-e[W.MS_PLAYED_VIDEO_DISABLED]}function Ln(e){const t=an(e),n=Object.assign(Object.assign({},t),{[z.MS_PLAYED_BACKGROUND]:0,[z.FULL_SCREEN]:0,[z.PREFETCHED_BYTES]:0,[z.PREFETCHED_BYTES_LOADED]:-1,[z.REFERRER_VENDOR]:"com.spotify",[z.SHUFFLE]:!1,[z.LIVE]:!1,[z.SEQUENCE_NUMBER]:-1,[z.SEQUENCE_ID]:"",[z.CONNECTION_TYPE_START]:"",[z.CONNECTION_TYPE_END]:"",[z.STREAMING_RULE]:"",[z.INCOGNITO_MODE]:!1,[z.INTERACTION_ID]:void 0,[z.PAGE_INSTANCE_ID]:void 0,[z.MS_PLAYED_VIDEO]:Rn(t),[z.MS_NOMINAL_PLAYED]:t[W.MS_PLAYED_NOMINAL],[z.N_SEEKFWD]:t[W.N_SEEKFORWARD],[z.VIDEO_SESSION_ID]:t[W.SESSION_ID],[z.MS_TOTAL_EST]:t[W.MS_DURATION],[z.MS_MANIFEST_LATENCY]:t[W.MS_MANIFEST_LOAD_TIME],[z.START_OFFSET_MS]:t[W.MS_START_POSITION],[z.MS_SEEK_REBUFFERING]:t[W.MS_BUFFERING_SEEK],[z.MAX_MS_SEEK_REBUFFERING]:t[W.MS_BUFFERING_SEEK_LONGEST],[z.MS_STALLED]:t[W.MS_BUFFERING_STALL],[z.MAX_MS_STALLED]:t[W.MS_BUFFERING_STALL_LONGEST],[z.KEY_SYSTEM]:t[W.ENCRYPTION_TYPE],[z.MS_KEY_LATENCY]:t[W.MS_ENCRYPTION_LOAD_TIME],[z.MS_LATENCY]:t[W.MS_START_TIME],[z.TOTAL_BYTES]:Math.round(1e3*t[W.KBYTES_DOWNLOADED])});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){return e.filter(_t).reduce(((e,{data:t})=>t.fromPosition>t.toPosition?Object.assign(Object.assign({},e),{[z.MS_SEEKBACK]:Math.round(e[z.MS_SEEKBACK]+1e3*(t.fromPosition-t.toPosition))}):t.fromPosition<=t.toPosition?Object.assign(Object.assign({},e),{[z.MS_SEEKFWD]:Math.round(e[z.MS_SEEKFWD]+1e3*(t.toPosition-t.fromPosition))}):e),{[z.MS_SEEKBACK]:0,[z.MS_SEEKFWD]:0})}(e)),function(e){const t=e.filter(ct).reduce(((e,{data:t})=>ot(t.playbackIdentity.metadata||{})),{}),n=se,o=t[n],i=vn(t,["symbol"==typeof n?n:n+""]),r=Object.assign({},i);return void 0!==o&&(r[z.SHUFFLE]="true"===o),r}(e)),function(e){var t,n;let o,i;for(const r of e)if(ct(r)&&(o=null!==(n=ot(null!==(t=r.data.playbackIdentity.metadata)&&void 0!==t?t:{})[ue])&&void 0!==n?n:void 0),ut(r)){void 0!==o&&o>0&&(i=Math.round(r.timestamp-o));break}return null!=i||(i=tt),{[z.UI_LATENCY]:i}}(e)),kn(e)),function(e){let t=rn();for(const n of e)!0===Ot(t.playing)(n)?t=Lt(n,t):!0===Ct(t.playing)(n)?t=Tn(n,t):!0===kt(t.playing)(n)&&(t=Cn(n,t));return{[z.UNION_PLAYED]:t.unionPlayed}}(e)),function(e){let t=rn();for(const n of e)!0===Ot(t.playing)(n)?t=Lt(n,t):!0===Ct(t.playing)(n)?t=Pn(n,t):kt(t.playing)(n)&&(t=On(n,t));return{[z.MAX_CONTINOUS]:t.maxContinous}}(e)),function(e){let t={activeBitrate:-1,currentPlayingBitrate:0,playing:!1,playingTimestamp:0,bitrates:{},totalTimePlayedInKnownBitrate:0,timeWeightedBitrate:0};for(const n of e)ft(n)?t=En(n,t):!0===Ot(t.playing)(n)?t=An(n,t):!0===Rt(t.playing)(n)&&(t=Sn(n,t));return{[z.TIME_WEIGHTED_BITRATE]:t.timeWeightedBitrate}}(e)),function(e){return e.filter(ct).reduce(((e,{timestamp:t})=>({[z.LOCAL_TIME_MS]:Math.round(t)})),{[z.LOCAL_TIME_MS]:0})}(e)),function(e){return e.filter(pt).reduce(((e,{data:t})=>({[z.AUDIOCODEC]:t.format.audioCodec})),{[z.AUDIOCODEC]:""})}(e)),function(e){return e.filter(ft).reduce(((e,{data:t})=>({[z.VIDEOCODEC]:t.format.videoCodec})),{[z.VIDEOCODEC]:""})}(e))}var In=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};class Nn extends et{constructor(e,t,n){super(),this.endVideo=e,this.productStateProvider=t,this.logError=n,this.startConnectionType="unknown",this.endConnectionType="unknown",this.streamingRules=this.productStateProvider.streamingRules()}onPlaybackCreated(e,t){const n=Object.create(null,{onPlaybackCreated:{get:()=>super.onPlaybackCreated}});var o,i,r;return In(this,void 0,void 0,(function*(){n.onPlaybackCreated.call(this,e,t),this.incognito=this.productStateProvider.incognito||!1,this.interaction_id=null===(o=e.playbackIdentity.metadata)||void 0===o?void 0:o[z.INTERACTION_ID],this.page_instance_id=null===(i=e.playbackIdentity.metadata)||void 0===i?void 0:i[z.PAGE_INSTANCE_ID],this.streamingRules=(null===(r=e.playbackIdentity.metadata)||void 0===r?void 0:r.endvideo_streaming_rule_override)||this.streamingRules,this.startConnectionType=sn();!(e.playbackIdentity.metadata&&e.playbackIdentity.metadata[fe+Z]===gn.END_APPLOAD)&&(yield this.updatePendingEndVideo(e.initialConfiguration.position,t)),this.timeObservable=e.timeObservable,this.periodicObserverToken=e.timeObservable.addObserverForPeriodicEvents(15,(e=>this.updatePendingEndVideo(e,t)))}))}onReady(e,t){const n=Object.create(null,{onReady:{get:()=>super.onReady}});return In(this,void 0,void 0,(function*(){n.onReady.call(this,e,t),yield this.updatePendingEndVideo(e.position,t)}))}onPaused(e,t){const n=Object.create(null,{onPaused:{get:()=>super.onPaused}});return In(this,void 0,void 0,(function*(){n.onPaused.call(this,e,t),yield this.updatePendingEndVideo(e.position,t)}))}onResumed(e,t){const n=Object.create(null,{onResumed:{get:()=>super.onResumed}});return In(this,void 0,void 0,(function*(){n.onResumed.call(this,e,t),yield this.updatePendingEndVideo(e.position,t)}))}onPlaybackEnded(e,t){const n=Object.create(null,{onPlaybackEnded:{get:()=>super.onPlaybackEnded}});return In(this,void 0,void 0,(function*(){n.onPlaybackEnded.call(this,e,t),this.endConnectionType=sn(),yield this.createAndUpdateMessage(this.sessionEvents),this.timeObservable&&this.periodicObserverToken&&this.timeObservable.removePeriodicObserver(this.periodicObserverToken),this.sequenceNumber&&this.endVideo.send(this.sequenceNumber)}))}createEndVideo(){return new Promise(((e,t)=>{this.endVideo.create(((n,o,i)=>{n&&(this.sequenceNumber=void 0,this.sequenceId=void 0,t(n)),this.sequenceNumber=o,this.sequenceId=i,e({sequenceNumber:o,sequenceId:i})}))}))}updateEndVideo(e){return new Promise(((t,n)=>{this.endVideo.update(this.sequenceNumber,e,(o=>{o&&(this.logError&&this.logError("logEndVideo, failed update:",o),n(o)),t(e)}))}))}endVideoFields(){return{[z.SEQUENCE_NUMBER]:this.sequenceNumber,[z.SEQUENCE_ID]:this.sequenceId,[z.CONNECTION_TYPE_START]:this.startConnectionType,[z.CONNECTION_TYPE_END]:this.endConnectionType,[z.STREAMING_RULE]:this.streamingRules,[z.INCOGNITO_MODE]:this.incognito,[z.INTERACTION_ID]:this.interaction_id,[z.PAGE_INSTANCE_ID]:this.page_instance_id}}shouldLogEndVideo(e,t){return!(t===gn.END_APPLOAD&&e<100)}createAndUpdateMessage(e){return In(this,void 0,void 0,(function*(){const t=Ln(e);if(!this.shouldLogEndVideo(t[z.MS_PLAYED],t[z.REASON_START]))return;this.sequenceNumber||(yield this.createEndVideo());const n=Object.assign(Object.assign({},t),this.endVideoFields());yield this.updateEndVideo(n)}))}updatePendingEndVideo(e,t){return In(this,void 0,void 0,(function*(){const n={timestamp:t,type:Ie.ENDED,data:{reason:Le.SHUTDOWN,position:e}};yield this.createAndUpdateMessage([...this.sessionEvents,n])}))}}const wn=n(86477),Dn=i().polyfill,Mn=wn.version,xn=i().Player.version},47678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionServiceClient=void 0;const o=n(33892),i=n(94412),r=n(22497),a=n(56666),s=n(766),l=n(7625),c=n(87315),u=n(66072),d=n(97233),p=n(60778),f=n(72159),h=n(60151),m=n(45246),g=n(62571),v=n(4194),y=n(95123),_=n(98317),b=n(75879),S=n(94503);class E{transport;options;constructor(e,t={}){this.transport=e,this.options=t}remove(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Remove",r=i.CollectionAddRemoveItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CollectionAddRemoveItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}add(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Add",r=i.CollectionAddRemoveItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CollectionAddRemoveItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getBans(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetBans",i=r.CollectionGetBansRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.CollectionGetBansResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamBans(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamBans",a=r.CollectionGetBansRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.CollectionGetBansResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}ban(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Ban",i=a.CollectionBanRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.CollectionBanResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}unban(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Unban",i=a.CollectionBanRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.CollectionBanResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getArtistView(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetArtistView",i=s.CollectionGetArtistViewRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.CollectionGetArtistViewResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamArtistView(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamArtistView",r=s.CollectionGetArtistViewRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=s.CollectionGetArtistViewResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getAlbumView(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetAlbumView",i=l.CollectionGetAlbumViewRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.CollectionGetAlbumViewResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamAlbumView(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamAlbumView",r=l.CollectionGetAlbumViewRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=l.CollectionGetAlbumViewResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getTrackListMetadata(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetTrackListMetadata",i=c.CollectionGetTrackListMetadataRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=c.CollectionGetTrackListMetadataResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamTrackListMetadata(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamTrackListMetadata",r=c.CollectionGetTrackListMetadataRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=c.CollectionGetTrackListMetadataResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}streamChanges(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamChanges",r=u.CollectionChangesRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=u.CollectionChangesResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getTrackList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetTrackList",i=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamTrackList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamTrackList",r=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getAlbumTrackList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetAlbumTrackList",i=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamAlbumTrackList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamAlbumTrackList",r=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getArtistTrackList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetArtistTrackList",i=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamArtistTrackList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamArtistTrackList",r=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}playTracks(e){const t="spotify.collection_esperanto.proto.CollectionService",n="PlayTracks",i=p.CollectionPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.CollectionPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}playArtist(e){const t="spotify.collection_esperanto.proto.CollectionService",n="PlayArtist",i=p.CollectionPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.CollectionPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}playAlbum(e){const t="spotify.collection_esperanto.proto.CollectionService",n="PlayAlbum",i=p.CollectionPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.CollectionPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}tracksOfflineStatus(e){const t="spotify.collection_esperanto.proto.CollectionService",n="TracksOfflineStatus",i=f.CollectionTrackListOfflineStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionTrackListOfflineStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}offlineTracks(e){const t="spotify.collection_esperanto.proto.CollectionService",n="OfflineTracks",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeOfflineTracks(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveOfflineTracks",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}offlineAlbum(e){const t="spotify.collection_esperanto.proto.CollectionService",n="OfflineAlbum",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeOfflineAlbum(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveOfflineAlbum",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}offlineArtist(e){const t="spotify.collection_esperanto.proto.CollectionService",n="OfflineArtist",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeOfflineArtist(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveOfflineArtist",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}decorate(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Decorate",i=h.CollectionDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=h.CollectionDecorateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamDecorate(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamDecorate",r=h.CollectionDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=h.CollectionDecorateResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}contains(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Contains",i=m.CollectionContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=m.CollectionContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamContains(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamContains",r=m.CollectionContainsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=m.CollectionContainsResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getShowList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetShowList",i=g.CollectionGetShowListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=g.CollectionGetShowListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamShowList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamShowList",r=g.CollectionGetShowListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=g.CollectionGetShowListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getEpisodeList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetEpisodeList",i=v.CollectionGetEpisodeListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=v.CollectionGetEpisodeListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamEpisodeList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamEpisodeList",r=v.CollectionGetEpisodeListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=v.CollectionGetEpisodeListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getUnplayedEpisodes(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetUnplayedEpisodes",i=y.CollectionGetUnplayedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=y.CollectionGetUnplayedEpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamUnplayedEpisodes(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamUnplayedEpisodes",r=y.CollectionGetUnplayedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=y.CollectionGetUnplayedEpisodesResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getResumePoints(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetResumePoints",i=_.CollectionGetResumePointsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=_.CollectionGetResumePointsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getBucketSyncStatus(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetBucketSyncStatus",i=b.CollectionGetBucketSyncStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=b.CollectionGetBucketSyncStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}addUnplayed(e){const t="spotify.collection_esperanto.proto.CollectionService",n="AddUnplayed",i=S.CollectionUnplayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=S.CollectionUnplayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeUnplayed(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveUnplayed",i=S.CollectionUnplayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=S.CollectionUnplayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.collection_esperanto.proto.CollectionService";static DECODERS={Remove:{request:i.CollectionAddRemoveItemsRequest.decode,response:i.CollectionAddRemoveItemsResponse.decode},Add:{request:i.CollectionAddRemoveItemsRequest.decode,response:i.CollectionAddRemoveItemsResponse.decode},GetBans:{request:r.CollectionGetBansRequest.decode,response:r.CollectionGetBansResponse.decode},StreamBans:{request:r.CollectionGetBansRequest.decode,response:r.CollectionGetBansResponse.decode},Ban:{request:a.CollectionBanRequest.decode,response:a.CollectionBanResponse.decode},Unban:{request:a.CollectionBanRequest.decode,response:a.CollectionBanResponse.decode},GetArtistView:{request:s.CollectionGetArtistViewRequest.decode,response:s.CollectionGetArtistViewResponse.decode},StreamArtistView:{request:s.CollectionGetArtistViewRequest.decode,response:s.CollectionGetArtistViewResponse.decode},GetAlbumView:{request:l.CollectionGetAlbumViewRequest.decode,response:l.CollectionGetAlbumViewResponse.decode},StreamAlbumView:{request:l.CollectionGetAlbumViewRequest.decode,response:l.CollectionGetAlbumViewResponse.decode},GetTrackListMetadata:{request:c.CollectionGetTrackListMetadataRequest.decode,response:c.CollectionGetTrackListMetadataResponse.decode},StreamTrackListMetadata:{request:c.CollectionGetTrackListMetadataRequest.decode,response:c.CollectionGetTrackListMetadataResponse.decode},StreamChanges:{request:u.CollectionChangesRequest.decode,response:u.CollectionChangesResponse.decode},GetTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},StreamTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},GetAlbumTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},StreamAlbumTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},GetArtistTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},StreamArtistTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},PlayTracks:{request:p.CollectionPlayRequest.decode,response:p.CollectionPlayResponse.decode},PlayArtist:{request:p.CollectionPlayRequest.decode,response:p.CollectionPlayResponse.decode},PlayAlbum:{request:p.CollectionPlayRequest.decode,response:p.CollectionPlayResponse.decode},TracksOfflineStatus:{request:f.CollectionTrackListOfflineStatusRequest.decode,response:f.CollectionTrackListOfflineStatusResponse.decode},OfflineTracks:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},RemoveOfflineTracks:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},OfflineAlbum:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},RemoveOfflineAlbum:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},OfflineArtist:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},RemoveOfflineArtist:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},Decorate:{request:h.CollectionDecorateRequest.decode,response:h.CollectionDecorateResponse.decode},StreamDecorate:{request:h.CollectionDecorateRequest.decode,response:h.CollectionDecorateResponse.decode},Contains:{request:m.CollectionContainsRequest.decode,response:m.CollectionContainsResponse.decode},StreamContains:{request:m.CollectionContainsRequest.decode,response:m.CollectionContainsResponse.decode},GetShowList:{request:g.CollectionGetShowListRequest.decode,response:g.CollectionGetShowListResponse.decode},StreamShowList:{request:g.CollectionGetShowListRequest.decode,response:g.CollectionGetShowListResponse.decode},GetEpisodeList:{request:v.CollectionGetEpisodeListRequest.decode,response:v.CollectionGetEpisodeListResponse.decode},StreamEpisodeList:{request:v.CollectionGetEpisodeListRequest.decode,response:v.CollectionGetEpisodeListResponse.decode},GetUnplayedEpisodes:{request:y.CollectionGetUnplayedEpisodesRequest.decode,response:y.CollectionGetUnplayedEpisodesResponse.decode},StreamUnplayedEpisodes:{request:y.CollectionGetUnplayedEpisodesRequest.decode,response:y.CollectionGetUnplayedEpisodesResponse.decode},GetResumePoints:{request:_.CollectionGetResumePointsRequest.decode,response:_.CollectionGetResumePointsResponse.decode},GetBucketSyncStatus:{request:b.CollectionGetBucketSyncStatusRequest.decode,response:b.CollectionGetBucketSyncStatusResponse.decode},AddUnplayed:{request:S.CollectionUnplayedRequest.decode,response:S.CollectionUnplayedResponse.decode},RemoveUnplayed:{request:S.CollectionUnplayedRequest.decode,response:S.CollectionUnplayedResponse.decode}}}t.CollectionServiceClient=E},66494:(e,t,n)=>{"use strict";t.Ul=t._X=t.rI=t.ow=t.v0=t.H8=void 0;var o=n(94412);var i=n(22497);var r=n(56666);var a=n(766);var s=n(7625);Object.defineProperty(t,"H8",{enumerable:!0,get:function(){return s.CollectionGetAlbumViewRequest}});var l=n(87315);Object.defineProperty(t,"v0",{enumerable:!0,get:function(){return l.CollectionGetTrackListMetadataRequest}});var c=n(66072);var u=n(97233);Object.defineProperty(t,"ow",{enumerable:!0,get:function(){return u.CollectionGetTrackListRequest}});var d=n(60778);Object.defineProperty(t,"rI",{enumerable:!0,get:function(){return d.CollectionPlayRequest}});var p=n(72159);var f=n(60151);var h=n(45246);Object.defineProperty(t,"_X",{enumerable:!0,get:function(){return h.CollectionContainsRequest}});var m=n(62571);var g=n(4194);var v=n(95123);var y=n(98317);var _=n(47678);Object.defineProperty(t,"Ul",{enumerable:!0,get:function(){return _.CollectionServiceClient}})},61013:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumCollectionState={encode:(e,t=r.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),0!==e.numTracksInCollection&&t.uint32(16).uint32(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:"",numTracksInCollection:0,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.string();break;case 2:i.numTracksInCollection=n.uint32();break;case 3:i.complete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:a(e.collectionLink)?String(e.collectionLink):"",numTracksInCollection:a(e.numTracksInCollection)?Number(e.numTracksInCollection):0,complete:!!a(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:"",numTracksInCollection:0,complete:!1};return t.collectionLink=e.collectionLink??"",t.numTracksInCollection=e.numTracksInCollection??0,t.complete=e.complete??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},37709:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistCollectionState={encode:(e,t=r.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),!0===e.followed&&t.uint32(16).bool(e.followed),0!==e.numTracksInCollection&&t.uint32(24).uint32(e.numTracksInCollection),0!==e.numAlbumsInCollection&&t.uint32(32).uint32(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.string();break;case 2:i.followed=n.bool();break;case 3:i.numTracksInCollection=n.uint32();break;case 4:i.numAlbumsInCollection=n.uint32();break;case 5:i.isBanned=n.bool();break;case 6:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:a(e.collectionLink)?String(e.collectionLink):"",followed:!!a(e.followed)&&Boolean(e.followed),numTracksInCollection:a(e.numTracksInCollection)?Number(e.numTracksInCollection):0,numAlbumsInCollection:a(e.numAlbumsInCollection)?Number(e.numAlbumsInCollection):0,isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.followed&&(t.followed=e.followed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=Math.round(e.numAlbumsInCollection)),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??"",t.followed=e.followed??!1,t.numTracksInCollection=e.numTracksInCollection??0,t.numAlbumsInCollection=e.numAlbumsInCollection??0,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},58405:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isNew=n.bool();break;case 3:i.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!a(e.isNew)&&Boolean(e.isNew),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},39836:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto",t.ShowCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},59649:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94412:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionAddRemoveItemsResponse=t.CollectionAddRemoveItemsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionAddRemoveItemsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.uri.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.CollectionAddRemoveItemsResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){return{status:(t=e.status,null!=t?a.Status.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},56666:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionBanResponse=t.CollectionBanRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionBanRequest={encode(e,t=r.default.Writer.create()){""!==e.contextSource&&t.uint32(10).string(e.contextSource);for(const n of e.uri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={contextSource:"",uri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.contextSource=n.string();break;case 2:i.uri.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({contextSource:s(e.contextSource)?String(e.contextSource):"",uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.contextSource&&(t.contextSource=e.contextSource),e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={contextSource:"",uri:[]};return t.contextSource=e.contextSource??"",t.uri=e.uri?.map((e=>e))||[],t}},t.CollectionBanResponse={encode(e,t=r.default.Writer.create()){void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.success)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,success:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.success.push(n.bool())}else i.success.push(n.bool());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,success:Array.isArray(e?.success)?e.success.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),e.success?t.success=e.success.map((e=>e)):t.success=[],t},fromPartial(e){const t={status:void 0,success:[]};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.success=e.success?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66072:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionChangesResponse=t.CollectionChangesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionChangesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.CollectionChangesResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){return{status:(t=e.status,null!=t?a.Status.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},45246:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionContainsResponse=t.CollectionContainsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionContainsRequest={encode(e,t=r.default.Writer.create()){0!==e.updateThrottling&&t.uint32(8).uint32(e.updateThrottling);for(const n of e.uri)t.uint32(18).string(n);return""!==e.contextUri&&t.uint32(26).string(e.contextUri),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={updateThrottling:0,uri:[],contextUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.updateThrottling=n.uint32();break;case 2:i.uri.push(n.string());break;case 3:i.contextUri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0,uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:s(e.contextUri)?String(e.contextUri):""}),toJSON(e){const t={};return void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],void 0!==e.contextUri&&(t.contextUri=e.contextUri),t},fromPartial(e){const t={updateThrottling:0,uri:[],contextUri:""};return t.updateThrottling=e.updateThrottling??0,t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t}},t.CollectionContainsResponse={encode(e,t=r.default.Writer.create()){void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.found)t.bool(n);t.ldelim(),t.uint32(26).fork();for(const n of e.banFound)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,found:[],banFound:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.found.push(n.bool())}else i.found.push(n.bool());break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.banFound.push(n.bool())}else i.banFound.push(n.bool());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[],banFound:Array.isArray(e?.banFound)?e.banFound.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),e.found?t.found=e.found.map((e=>e)):t.found=[],e.banFound?t.banFound=e.banFound.map((e=>e)):t.banFound=[],t},fromPartial(e){const t={status:void 0,found:[],banFound:[]};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.found=e.found?.map((e=>e))||[],t.banFound=e.banFound?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},60151:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionDecorateResponse=t.CollectionDecorateRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(62908),l=n(96859);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionDecorateRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return""!==e.contextUri&&t.uint32(18).string(e.contextUri),0!==e.updateThrottling&&t.uint32(24).uint32(e.updateThrottling),void 0!==e.artistPolicy&&a.CollectionArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.albumPolicy&&a.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(50).fork()).ldelim(),void 0!==e.showPolicy&&a.CollectionShowDecorationPolicy.encode(e.showPolicy,t.uint32(58).fork()).ldelim(),void 0!==e.episodePolicy&&a.CollectionEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(66).fork()).ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[],contextUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri.push(n.string());break;case 2:i.contextUri=n.string();break;case 3:i.updateThrottling=n.uint32();break;case 4:i.artistPolicy=a.CollectionArtistDecorationPolicy.decode(n,n.uint32());break;case 5:i.albumPolicy=a.CollectionAlbumDecorationPolicy.decode(n,n.uint32());break;case 6:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;case 7:i.showPolicy=a.CollectionShowDecorationPolicy.decode(n,n.uint32());break;case 8:i.episodePolicy=a.CollectionEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:c(e.contextUri)?String(e.contextUri):"",updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,artistPolicy:c(e.artistPolicy)?a.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,albumPolicy:c(e.albumPolicy)?a.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,showPolicy:c(e.showPolicy)?a.CollectionShowDecorationPolicy.fromJSON(e.showPolicy):void 0,episodePolicy:c(e.episodePolicy)?a.CollectionEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],void 0!==e.contextUri&&(t.contextUri=e.contextUri),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?a.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.CollectionShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?a.CollectionEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),t},fromPartial(e){const t={uri:[],contextUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0};return t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t.updateThrottling=e.updateThrottling??0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?a.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.CollectionShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?a.CollectionEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t}},t.CollectionDecorateResponse={encode(e,t=r.default.Writer.create()){void 0!==e.status&&s.Status.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.show)l.CollectionShow.encode(n,t.uint32(18).fork()).ldelim();for(const n of e.episode)l.CollectionEpisode.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.album)l.CollectionAlbum.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.artist)l.CollectionArtist.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.track)l.CollectionTrack.encode(n,t.uint32(50).fork()).ldelim();return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,show:[],episode:[],album:[],artist:[],track:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=s.Status.decode(n,n.uint32());break;case 2:i.show.push(l.CollectionShow.decode(n,n.uint32()));break;case 3:i.episode.push(l.CollectionEpisode.decode(n,n.uint32()));break;case 4:i.album.push(l.CollectionAlbum.decode(n,n.uint32()));break;case 5:i.artist.push(l.CollectionArtist.decode(n,n.uint32()));break;case 6:i.track.push(l.CollectionTrack.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:c(e.status)?s.Status.fromJSON(e.status):void 0,show:Array.isArray(e?.show)?e.show.map((e=>l.CollectionShow.fromJSON(e))):[],episode:Array.isArray(e?.episode)?e.episode.map((e=>l.CollectionEpisode.fromJSON(e))):[],album:Array.isArray(e?.album)?e.album.map((e=>l.CollectionAlbum.fromJSON(e))):[],artist:Array.isArray(e?.artist)?e.artist.map((e=>l.CollectionArtist.fromJSON(e))):[],track:Array.isArray(e?.track)?e.track.map((e=>l.CollectionTrack.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?s.Status.toJSON(e.status):void 0),e.show?t.show=e.show.map((e=>e?l.CollectionShow.toJSON(e):void 0)):t.show=[],e.episode?t.episode=e.episode.map((e=>e?l.CollectionEpisode.toJSON(e):void 0)):t.episode=[],e.album?t.album=e.album.map((e=>e?l.CollectionAlbum.toJSON(e):void 0)):t.album=[],e.artist?t.artist=e.artist.map((e=>e?l.CollectionArtist.toJSON(e):void 0)):t.artist=[],e.track?t.track=e.track.map((e=>e?l.CollectionTrack.toJSON(e):void 0)):t.track=[],t},fromPartial(e){const t={status:void 0,show:[],episode:[],album:[],artist:[],track:[]};return t.status=void 0!==e.status&&null!==e.status?s.Status.fromPartial(e.status):void 0,t.show=e.show?.map((e=>l.CollectionShow.fromPartial(e)))||[],t.episode=e.episode?.map((e=>l.CollectionEpisode.fromPartial(e)))||[],t.album=e.album?.map((e=>l.CollectionAlbum.fromPartial(e)))||[],t.artist=e.artist?.map((e=>l.CollectionArtist.fromPartial(e)))||[],t.track=e.track?.map((e=>l.CollectionTrack.fromPartial(e)))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},38518:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionEpisodeDecorationPolicy=t.CollectionShowDecorationPolicy=t.CollectionTrackDecorationPolicy=t.CollectionAlbumDecorationPolicy=t.CollectionArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(39974),s=n(71072),l=n(82817),c=n(61473),u=n(17653);function d(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionArtistDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.collectionPolicy&&a.ArtistCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&a.ArtistSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.artistPolicy&&a.ArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),!0===e.decorated&&t.uint32(32).bool(e.decorated),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,decorated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionPolicy=a.ArtistCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:i.syncPolicy=a.ArtistSyncDecorationPolicy.decode(n,n.uint32());break;case 3:i.artistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 4:i.decorated=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?a.ArtistCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?a.ArtistSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,artistPolicy:d(e.artistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?a.ArtistCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?a.ArtistSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.ArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.decorated&&(t.decorated=e.decorated),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,decorated:!1};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?a.ArtistCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?a.ArtistSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.decorated=e.decorated??!1,t}},t.CollectionAlbumDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(!0===e.decorated&&n.uint32(8).bool(e.decorated),!0===e.albumType&&n.uint32(16).bool(e.albumType),void 0!==e.artistPolicy&&t.CollectionArtistDecorationPolicy.encode(e.artistPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.artistsPolicy&&t.CollectionArtistDecorationPolicy.encode(e.artistsPolicy,n.uint32(34).fork()).ldelim(),void 0!==e.collectionPolicy&&s.AlbumCollectionDecorationPolicy.encode(e.collectionPolicy,n.uint32(42).fork()).ldelim(),void 0!==e.syncPolicy&&s.AlbumSyncDecorationPolicy.encode(e.syncPolicy,n.uint32(50).fork()).ldelim(),void 0!==e.albumPolicy&&s.AlbumDecorationPolicy.encode(e.albumPolicy,n.uint32(58).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={decorated:!1,albumType:!1,artistPolicy:void 0,artistsPolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.decorated=o.bool();break;case 2:a.albumType=o.bool();break;case 3:a.artistPolicy=t.CollectionArtistDecorationPolicy.decode(o,o.uint32());break;case 4:a.artistsPolicy=t.CollectionArtistDecorationPolicy.decode(o,o.uint32());break;case 5:a.collectionPolicy=s.AlbumCollectionDecorationPolicy.decode(o,o.uint32());break;case 6:a.syncPolicy=s.AlbumSyncDecorationPolicy.decode(o,o.uint32());break;case 7:a.albumPolicy=s.AlbumDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({decorated:!!d(e.decorated)&&Boolean(e.decorated),albumType:!!d(e.albumType)&&Boolean(e.albumType),artistPolicy:d(e.artistPolicy)?t.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,artistsPolicy:d(e.artistsPolicy)?t.CollectionArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0,collectionPolicy:d(e.collectionPolicy)?s.AlbumCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?s.AlbumSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,albumPolicy:d(e.albumPolicy)?s.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0}),toJSON(e){const n={};return void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.albumType&&(n.albumType=e.albumType),void 0!==e.artistPolicy&&(n.artistPolicy=e.artistPolicy?t.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.artistsPolicy&&(n.artistsPolicy=e.artistsPolicy?t.CollectionArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),void 0!==e.collectionPolicy&&(n.collectionPolicy=e.collectionPolicy?s.AlbumCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(n.syncPolicy=e.syncPolicy?s.AlbumSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.albumPolicy&&(n.albumPolicy=e.albumPolicy?s.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),n},fromPartial(e){const n={decorated:!1,albumType:!1,artistPolicy:void 0,artistsPolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0};return n.decorated=e.decorated??!1,n.albumType=e.albumType??!1,n.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?t.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,n.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?t.CollectionArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,n.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?s.AlbumCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,n.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?s.AlbumSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,n.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?s.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,n}},t.CollectionTrackDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.collectionPolicy&&l.TrackCollectionDecorationPolicy.encode(e.collectionPolicy,n.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&l.TrackSyncDecorationPolicy.encode(e.syncPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.trackPolicy&&l.TrackDecorationPolicy.encode(e.trackPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&l.TrackPlayedStateDecorationPolicy.encode(e.playedStatePolicy,n.uint32(34).fork()).ldelim(),void 0!==e.albumPolicy&&t.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,n.uint32(42).fork()).ldelim(),void 0!==e.artistPolicy&&a.ArtistDecorationPolicy.encode(e.artistPolicy,n.uint32(50).fork()).ldelim(),!0===e.decorated&&n.uint32(56).bool(e.decorated),void 0!==e.artistCollectionPolicy&&a.ArtistCollectionDecorationPolicy.encode(e.artistCollectionPolicy,n.uint32(66).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,albumPolicy:void 0,artistPolicy:void 0,decorated:!1,artistCollectionPolicy:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.collectionPolicy=l.TrackCollectionDecorationPolicy.decode(o,o.uint32());break;case 2:s.syncPolicy=l.TrackSyncDecorationPolicy.decode(o,o.uint32());break;case 3:s.trackPolicy=l.TrackDecorationPolicy.decode(o,o.uint32());break;case 4:s.playedStatePolicy=l.TrackPlayedStateDecorationPolicy.decode(o,o.uint32());break;case 5:s.albumPolicy=t.CollectionAlbumDecorationPolicy.decode(o,o.uint32());break;case 6:s.artistPolicy=a.ArtistDecorationPolicy.decode(o,o.uint32());break;case 7:s.decorated=o.bool();break;case 8:s.artistCollectionPolicy=a.ArtistCollectionDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?l.TrackCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?l.TrackSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,trackPolicy:d(e.trackPolicy)?l.TrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?l.TrackPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,albumPolicy:d(e.albumPolicy)?t.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,artistPolicy:d(e.artistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated),artistCollectionPolicy:d(e.artistCollectionPolicy)?a.ArtistCollectionDecorationPolicy.fromJSON(e.artistCollectionPolicy):void 0}),toJSON(e){const n={};return void 0!==e.collectionPolicy&&(n.collectionPolicy=e.collectionPolicy?l.TrackCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(n.syncPolicy=e.syncPolicy?l.TrackSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.trackPolicy&&(n.trackPolicy=e.trackPolicy?l.TrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.playedStatePolicy&&(n.playedStatePolicy=e.playedStatePolicy?l.TrackPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.albumPolicy&&(n.albumPolicy=e.albumPolicy?t.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.artistPolicy&&(n.artistPolicy=e.artistPolicy?a.ArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.artistCollectionPolicy&&(n.artistCollectionPolicy=e.artistCollectionPolicy?a.ArtistCollectionDecorationPolicy.toJSON(e.artistCollectionPolicy):void 0),n},fromPartial(e){const n={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,albumPolicy:void 0,artistPolicy:void 0,decorated:!1,artistCollectionPolicy:void 0};return n.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?l.TrackCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,n.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?l.TrackSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,n.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?l.TrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,n.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?l.TrackPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,n.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?t.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,n.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,n.decorated=e.decorated??!1,n.artistCollectionPolicy=void 0!==e.artistCollectionPolicy&&null!==e.artistCollectionPolicy?a.ArtistCollectionDecorationPolicy.fromPartial(e.artistCollectionPolicy):void 0,n}},t.CollectionShowDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showPolicy&&c.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.playedStatePolicy&&c.ShowPlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(18).fork()).ldelim(),void 0!==e.collectionPolicy&&c.ShowCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(26).fork()).ldelim(),!0===e.decorated&&t.uint32(32).bool(e.decorated),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showPolicy:void 0,playedStatePolicy:void 0,collectionPolicy:void 0,decorated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.showPolicy=c.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:i.playedStatePolicy=c.ShowPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 3:i.collectionPolicy=c.ShowCollectionDecorationPolicy.decode(n,n.uint32());break;case 4:i.decorated=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showPolicy:d(e.showPolicy)?c.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?c.ShowPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,collectionPolicy:d(e.collectionPolicy)?c.ShowCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?c.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?c.ShowCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.decorated&&(t.decorated=e.decorated),t},fromPartial(e){const t={showPolicy:void 0,playedStatePolicy:void 0,collectionPolicy:void 0,decorated:!1};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?c.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?c.ShowCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.decorated=e.decorated??!1,t}},t.CollectionEpisodeDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.episodePolicy&&u.EpisodeDecorationPolicy.encode(e.episodePolicy,n.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&u.EpisodeCollectionDecorationPolicy.encode(e.collectionPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.syncPolicy&&u.EpisodeSyncDecorationPolicy.encode(e.syncPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&u.EpisodePlayedStateDecorationPolicy.encode(e.playedStatePolicy,n.uint32(34).fork()).ldelim(),void 0!==e.showPolicy&&t.CollectionShowDecorationPolicy.encode(e.showPolicy,n.uint32(42).fork()).ldelim(),!0===e.decorated&&n.uint32(48).bool(e.decorated),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,decorated:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.episodePolicy=u.EpisodeDecorationPolicy.decode(o,o.uint32());break;case 2:a.collectionPolicy=u.EpisodeCollectionDecorationPolicy.decode(o,o.uint32());break;case 3:a.syncPolicy=u.EpisodeSyncDecorationPolicy.decode(o,o.uint32());break;case 4:a.playedStatePolicy=u.EpisodePlayedStateDecorationPolicy.decode(o,o.uint32());break;case 5:a.showPolicy=t.CollectionShowDecorationPolicy.decode(o,o.uint32());break;case 6:a.decorated=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodePolicy:d(e.episodePolicy)?u.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,collectionPolicy:d(e.collectionPolicy)?u.EpisodeCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?u.EpisodeSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?u.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,showPolicy:d(e.showPolicy)?t.CollectionShowDecorationPolicy.fromJSON(e.showPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const n={};return void 0!==e.episodePolicy&&(n.episodePolicy=e.episodePolicy?u.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.collectionPolicy&&(n.collectionPolicy=e.collectionPolicy?u.EpisodeCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(n.syncPolicy=e.syncPolicy?u.EpisodeSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.playedStatePolicy&&(n.playedStatePolicy=e.playedStatePolicy?u.EpisodePlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.showPolicy&&(n.showPolicy=e.showPolicy?t.CollectionShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),n},fromPartial(e){const n={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,decorated:!1};return n.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?u.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,n.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?u.EpisodeCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,n.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?u.EpisodeSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,n.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?u.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,n.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?t.CollectionShowDecorationPolicy.fromPartial(e.showPolicy):void 0,n.decorated=e.decorated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},7625:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetAlbumViewResponse=t.CollectionGetAlbumViewRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(62908),l=n(96859);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetAlbumViewRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.albumUri&&t.uint32(10).string(e.albumUri),0!==e.updateThrottling&&t.uint32(16).uint32(e.updateThrottling),void 0!==e.albumPolicy&&a.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={albumUri:"",updateThrottling:0,albumPolicy:void 0,trackPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.albumUri=n.string();break;case 2:i.updateThrottling=n.uint32();break;case 3:i.albumPolicy=a.CollectionAlbumDecorationPolicy.decode(n,n.uint32());break;case 4:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({albumUri:c(e.albumUri)?String(e.albumUri):"",updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,albumPolicy:c(e.albumPolicy)?a.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0}),toJSON(e){const t={};return void 0!==e.albumUri&&(t.albumUri=e.albumUri),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?a.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),t},fromPartial(e){const t={albumUri:"",updateThrottling:0,albumPolicy:void 0,trackPolicy:void 0};return t.albumUri=e.albumUri??"",t.updateThrottling=e.updateThrottling??0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?a.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t}},t.CollectionGetAlbumViewResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&s.Status.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.album&&l.CollectionAlbum.encode(e.album,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,album:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=s.Status.decode(n,n.uint32());break;case 2:i.album=l.CollectionAlbum.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:c(e.status)?s.Status.fromJSON(e.status):void 0,album:c(e.album)?l.CollectionAlbum.fromJSON(e.album):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?s.Status.toJSON(e.status):void 0),void 0!==e.album&&(t.album=e.album?l.CollectionAlbum.toJSON(e.album):void 0),t},fromPartial(e){const t={status:void 0,album:void 0};return t.status=void 0!==e.status&&null!==e.status?s.Status.fromPartial(e.status):void 0,t.album=void 0!==e.album&&null!==e.album?l.CollectionAlbum.fromPartial(e.album):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},766:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetArtistViewResponse=t.CollectionGetArtistViewRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(62908),l=n(96859);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetArtistViewRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.artistUri&&t.uint32(10).string(e.artistUri),0!==e.updateThrottling&&t.uint32(16).uint32(e.updateThrottling),void 0!==e.artistPolicy&&a.CollectionArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.albumPolicy&&a.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={artistUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.artistUri=n.string();break;case 2:i.updateThrottling=n.uint32();break;case 3:i.artistPolicy=a.CollectionArtistDecorationPolicy.decode(n,n.uint32());break;case 4:i.albumPolicy=a.CollectionAlbumDecorationPolicy.decode(n,n.uint32());break;case 5:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({artistUri:c(e.artistUri)?String(e.artistUri):"",updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,artistPolicy:c(e.artistPolicy)?a.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,albumPolicy:c(e.albumPolicy)?a.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0}),toJSON(e){const t={};return void 0!==e.artistUri&&(t.artistUri=e.artistUri),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?a.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),t},fromPartial(e){const t={artistUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0};return t.artistUri=e.artistUri??"",t.updateThrottling=e.updateThrottling??0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?a.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t}},t.CollectionGetArtistViewResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&s.Status.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&l.CollectionArtist.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,artist:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=s.Status.decode(n,n.uint32());break;case 2:i.artist=l.CollectionArtist.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:c(e.status)?s.Status.fromJSON(e.status):void 0,artist:c(e.artist)?l.CollectionArtist.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?s.Status.toJSON(e.status):void 0),void 0!==e.artist&&(t.artist=e.artist?l.CollectionArtist.toJSON(e.artist):void 0),t},fromPartial(e){const t={status:void 0,artist:void 0};return t.status=void 0!==e.status&&null!==e.status?s.Status.fromPartial(e.status):void 0,t.artist=void 0!==e.artist&&null!==e.artist?l.CollectionArtist.fromPartial(e.artist):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},22497:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetBansResponse=t.Item=t.CollectionGetBansRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetBansRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.artistPolicy&&a.CollectionArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(18).fork()).ldelim(),""!==e.sort&&t.uint32(26).string(e.sort),!0===e.timestamp&&t.uint32(32).bool(e.timestamp),0!==e.updateThrottling&&t.uint32(40).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={trackPolicy:void 0,artistPolicy:void 0,sort:"",timestamp:!1,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.artistPolicy=a.CollectionArtistDecorationPolicy.decode(n,n.uint32());break;case 3:i.sort=n.string();break;case 4:i.timestamp=n.bool();break;case 5:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,artistPolicy:c(e.artistPolicy)?a.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,sort:c(e.sort)?String(e.sort):"",timestamp:!!c(e.timestamp)&&Boolean(e.timestamp),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={trackPolicy:void 0,artistPolicy:void 0,sort:"",timestamp:!1,updateThrottling:0};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.sort=e.sort??"",t.timestamp=e.timestamp??!1,t.updateThrottling=e.updateThrottling??0,t}},t.Item={encode:(e,t=r.default.Writer.create())=>(0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.trackMetadata&&s.CollectionTrack.encode(e.trackMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.artistMetadata&&s.CollectionArtist.encode(e.artistMetadata,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={addTime:0,trackMetadata:void 0,artistMetadata:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.addTime=n.uint32();break;case 2:i.trackMetadata=s.CollectionTrack.decode(n,n.uint32());break;case 3:i.artistMetadata=s.CollectionArtist.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({addTime:c(e.addTime)?Number(e.addTime):0,trackMetadata:c(e.trackMetadata)?s.CollectionTrack.fromJSON(e.trackMetadata):void 0,artistMetadata:c(e.artistMetadata)?s.CollectionArtist.fromJSON(e.artistMetadata):void 0}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?s.CollectionTrack.toJSON(e.trackMetadata):void 0),void 0!==e.artistMetadata&&(t.artistMetadata=e.artistMetadata?s.CollectionArtist.toJSON(e.artistMetadata):void 0),t},fromPartial(e){const t={addTime:0,trackMetadata:void 0,artistMetadata:void 0};return t.addTime=e.addTime??0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?s.CollectionTrack.fromPartial(e.trackMetadata):void 0,t.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?s.CollectionArtist.fromPartial(e.artistMetadata):void 0,t}},t.CollectionGetBansResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.Item.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.Item.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],n},fromPartial(e){const n={status:void 0,item:[]};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},75879:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetBucketSyncStatusResponse=t.CollectionGetBucketSyncStatusRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetBucketSyncStatusRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.bucketName&&t.uint32(10).string(e.bucketName),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={bucketName:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.bucketName=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({bucketName:s(e.bucketName)?String(e.bucketName):""}),toJSON(e){const t={};return void 0!==e.bucketName&&(t.bucketName=e.bucketName),t},fromPartial(e){const t={bucketName:""};return t.bucketName=e.bucketName??"",t}},t.CollectionGetBucketSyncStatusResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),!0===e.isSynced&&t.uint32(16).bool(e.isSynced),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,isSynced:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:i.isSynced=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,isSynced:!!s(e.isSynced)&&Boolean(e.isSynced)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),void 0!==e.isSynced&&(t.isSynced=e.isSynced),t},fromPartial(e){const t={status:void 0,isSynced:!1};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.isSynced=e.isSynced??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},4194:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetEpisodeListResponse=t.EpisodeListItem=t.CollectionGetEpisodeListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetEpisodeListRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.start&&t.uint32(8).uint32(e.start),0!==e.length&&t.uint32(16).uint32(e.length),""!==e.sort&&t.uint32(26).string(e.sort),""!==e.filter&&t.uint32(34).string(e.filter),!0===e.group&&t.uint32(40).bool(e.group),0!==e.updateThrottling&&t.uint32(48).uint32(e.updateThrottling),void 0!==e.episodePolicy&&a.CollectionEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0,episodePolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.start=n.uint32();break;case 2:i.length=n.uint32();break;case 3:i.sort=n.string();break;case 4:i.filter=n.string();break;case 5:i.group=n.bool();break;case 6:i.updateThrottling=n.uint32();break;case 7:i.episodePolicy=a.CollectionEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({start:c(e.start)?Number(e.start):0,length:c(e.length)?Number(e.length):0,sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",group:!!c(e.group)&&Boolean(e.group),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,episodePolicy:c(e.episodePolicy)?a.CollectionEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?a.CollectionEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),t},fromPartial(e){const t={start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0,episodePolicy:void 0};return t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.updateThrottling=e.updateThrottling??0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?a.CollectionEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t}},t.EpisodeListItem={encode:(e,t=r.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episode&&s.CollectionEpisode.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={header:"",episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.header=n.string();break;case 2:i.episode=s.CollectionEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({header:c(e.header)?String(e.header):"",episode:c(e.episode)?s.CollectionEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.episode&&(t.episode=e.episode?s.CollectionEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={header:"",episode:void 0};return t.header=e.header??"",t.episode=void 0!==e.episode&&null!==e.episode?s.CollectionEpisode.fromPartial(e.episode):void 0,t}},t.CollectionGetEpisodeListResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.EpisodeListItem.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.unfilteredLength&&n.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(32).uint32(e.unrangedLength),!0===e.loadingContents&&n.uint32(40).bool(e.loadingContents),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContents:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.EpisodeListItem.decode(o,o.uint32()));break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.loadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.EpisodeListItem.fromJSON(e))):[],unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!c(e.loadingContents)&&Boolean(e.loadingContents)}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.EpisodeListItem.toJSON(e):void 0)):n.item=[],void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),n},fromPartial(e){const n={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContents:!1};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.EpisodeListItem.fromPartial(e)))||[],n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContents=e.loadingContents??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},98317:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetResumePointsResponse=t.ResumePointItem=t.CollectionGetResumePointsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetResumePointsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.uri.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.ResumePointItem={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.resumePoint&&t.uint32(16).uint32(e.resumePoint),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),""!==e.link&&t.uint32(42).string(e.link),""!==e.coverUri&&t.uint32(50).string(e.coverUri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",resumePoint:0,name:"",length:0,link:"",coverUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri=n.string();break;case 2:i.resumePoint=n.uint32();break;case 3:i.name=n.string();break;case 4:i.length=n.uint32();break;case 5:i.link=n.string();break;case 6:i.coverUri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",resumePoint:s(e.resumePoint)?Number(e.resumePoint):0,name:s(e.name)?String(e.name):"",length:s(e.length)?Number(e.length):0,link:s(e.link)?String(e.link):"",coverUri:s(e.coverUri)?String(e.coverUri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.resumePoint&&(t.resumePoint=Math.round(e.resumePoint)),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.link&&(t.link=e.link),void 0!==e.coverUri&&(t.coverUri=e.coverUri),t},fromPartial(e){const t={uri:"",resumePoint:0,name:"",length:0,link:"",coverUri:""};return t.uri=e.uri??"",t.resumePoint=e.resumePoint??0,t.name=e.name??"",t.length=e.length??0,t.link=e.link??"",t.coverUri=e.coverUri??"",t}},t.CollectionGetResumePointsResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&a.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.ResumePointItem.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={status:void 0,item:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.status=a.Status.decode(o,o.uint32());break;case 2:s.item.push(t.ResumePointItem.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.ResumePointItem.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?a.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.ResumePointItem.toJSON(e):void 0)):n.item=[],n},fromPartial(e){const n={status:void 0,item:[]};return n.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.ResumePointItem.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},62571:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetShowListResponse=t.ShowListItem=t.CollectionGetShowListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetShowListRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showPolicy&&a.CollectionShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),!0===e.addTime&&t.uint32(16).bool(e.addTime),!0===e.index&&t.uint32(24).bool(e.index),!0===e.hasNewEpisodes&&t.uint32(32).bool(e.hasNewEpisodes),!0===e.latestPublishedEpisodeDate&&t.uint32(40).bool(e.latestPublishedEpisodeDate),""!==e.sort&&t.uint32(50).string(e.sort),""!==e.filter&&t.uint32(58).string(e.filter),!0===e.group&&t.uint32(64).bool(e.group),0!==e.start&&t.uint32(72).uint32(e.start),0!==e.length&&t.uint32(80).uint32(e.length),0!==e.updateThrottling&&t.uint32(88).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showPolicy:void 0,addTime:!1,index:!1,hasNewEpisodes:!1,latestPublishedEpisodeDate:!1,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.showPolicy=a.CollectionShowDecorationPolicy.decode(n,n.uint32());break;case 2:i.addTime=n.bool();break;case 3:i.index=n.bool();break;case 4:i.hasNewEpisodes=n.bool();break;case 5:i.latestPublishedEpisodeDate=n.bool();break;case 6:i.sort=n.string();break;case 7:i.filter=n.string();break;case 8:i.group=n.bool();break;case 9:i.start=n.uint32();break;case 10:i.length=n.uint32();break;case 11:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showPolicy:c(e.showPolicy)?a.CollectionShowDecorationPolicy.fromJSON(e.showPolicy):void 0,addTime:!!c(e.addTime)&&Boolean(e.addTime),index:!!c(e.index)&&Boolean(e.index),hasNewEpisodes:!!c(e.hasNewEpisodes)&&Boolean(e.hasNewEpisodes),latestPublishedEpisodeDate:!!c(e.latestPublishedEpisodeDate)&&Boolean(e.latestPublishedEpisodeDate),sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",group:!!c(e.group)&&Boolean(e.group),start:c(e.start)?Number(e.start):0,length:c(e.length)?Number(e.length):0,updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.CollectionShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.index&&(t.index=e.index),void 0!==e.hasNewEpisodes&&(t.hasNewEpisodes=e.hasNewEpisodes),void 0!==e.latestPublishedEpisodeDate&&(t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={showPolicy:void 0,addTime:!1,index:!1,hasNewEpisodes:!1,latestPublishedEpisodeDate:!1,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.CollectionShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.addTime=e.addTime??!1,t.index=e.index??!1,t.hasNewEpisodes=e.hasNewEpisodes??!1,t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate??!1,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t}},t.ShowListItem={encode:(e,t=r.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),0!==e.headerlessIndex&&t.uint32(16).uint32(e.headerlessIndex),!0===e.hasNewEpisodes&&t.uint32(24).bool(e.hasNewEpisodes),"0"!==e.latestPublishedEpisodeDate&&t.uint32(32).uint64(e.latestPublishedEpisodeDate),void 0!==e.show&&s.CollectionShow.encode(e.show,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={header:"",headerlessIndex:0,hasNewEpisodes:!1,latestPublishedEpisodeDate:"0",show:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.header=n.string();break;case 2:i.headerlessIndex=n.uint32();break;case 3:i.hasNewEpisodes=n.bool();break;case 4:i.latestPublishedEpisodeDate=n.uint64().toString();break;case 5:i.show=s.CollectionShow.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({header:c(e.header)?String(e.header):"",headerlessIndex:c(e.headerlessIndex)?Number(e.headerlessIndex):0,hasNewEpisodes:!!c(e.hasNewEpisodes)&&Boolean(e.hasNewEpisodes),latestPublishedEpisodeDate:c(e.latestPublishedEpisodeDate)?String(e.latestPublishedEpisodeDate):"0",show:c(e.show)?s.CollectionShow.fromJSON(e.show):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.headerlessIndex&&(t.headerlessIndex=Math.round(e.headerlessIndex)),void 0!==e.hasNewEpisodes&&(t.hasNewEpisodes=e.hasNewEpisodes),void 0!==e.latestPublishedEpisodeDate&&(t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate),void 0!==e.show&&(t.show=e.show?s.CollectionShow.toJSON(e.show):void 0),t},fromPartial(e){const t={header:"",headerlessIndex:0,hasNewEpisodes:!1,latestPublishedEpisodeDate:"0",show:void 0};return t.header=e.header??"",t.headerlessIndex=e.headerlessIndex??0,t.hasNewEpisodes=e.hasNewEpisodes??!1,t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate??"0",t.show=void 0!==e.show&&null!==e.show?s.CollectionShow.fromPartial(e.show):void 0,t}},t.CollectionGetShowListResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.ShowListItem.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.numOfflinedEpisodes&&n.uint32(24).uint32(e.numOfflinedEpisodes),0!==e.unfilteredLength&&n.uint32(32).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(40).uint32(e.unrangedLength),!0===e.loadingContents&&n.uint32(48).bool(e.loadingContents),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[],numOfflinedEpisodes:0,unfilteredLength:0,unrangedLength:0,loadingContents:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.ShowListItem.decode(o,o.uint32()));break;case 3:a.numOfflinedEpisodes=o.uint32();break;case 4:a.unfilteredLength=o.uint32();break;case 5:a.unrangedLength=o.uint32();break;case 6:a.loadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.ShowListItem.fromJSON(e))):[],numOfflinedEpisodes:c(e.numOfflinedEpisodes)?Number(e.numOfflinedEpisodes):0,unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!c(e.loadingContents)&&Boolean(e.loadingContents)}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.ShowListItem.toJSON(e):void 0)):n.item=[],void 0!==e.numOfflinedEpisodes&&(n.numOfflinedEpisodes=Math.round(e.numOfflinedEpisodes)),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),n},fromPartial(e){const n={status:void 0,item:[],numOfflinedEpisodes:0,unfilteredLength:0,unrangedLength:0,loadingContents:!1};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.ShowListItem.fromPartial(e)))||[],n.numOfflinedEpisodes=e.numOfflinedEpisodes??0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContents=e.loadingContents??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},87315:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetTrackListMetadataResponse=t.CollectionGetTrackListMetadataRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908),s=n(42676);function l(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetTrackListMetadataRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.filter&&t.uint32(18).string(e.filter),0!==e.updateThrottling&&t.uint32(24).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={filter:"",updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 2:i.filter=n.string();break;case 3:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({filter:l(e.filter)?String(e.filter):"",updateThrottling:l(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.filter&&(t.filter=e.filter),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={filter:"",updateThrottling:0};return t.filter=e.filter??"",t.updateThrottling=e.updateThrottling??0,t}},t.CollectionGetTrackListMetadataResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&s.TrackListMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,metadata:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:i.metadata=s.TrackListMetadata.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:l(e.status)?a.Status.fromJSON(e.status):void 0,metadata:l(e.metadata)?s.TrackListMetadata.fromJSON(e.metadata):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),void 0!==e.metadata&&(t.metadata=e.metadata?s.TrackListMetadata.toJSON(e.metadata):void 0),t},fromPartial(e){const t={status:void 0,metadata:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?s.TrackListMetadata.fromPartial(e.metadata):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},97233:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetTrackListResponse=t.GroupHeader=t.TrackListItem=t.CollectionGetTrackListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetTrackListRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),!0===e.addTime&&t.uint32(16).bool(e.addTime),!0===e.index&&t.uint32(24).bool(e.index),!0===e.groupIndex&&t.uint32(32).bool(e.groupIndex),!0===e.groupLabel&&t.uint32(40).bool(e.groupLabel),!0===e.groupByInitial&&t.uint32(48).bool(e.groupByInitial),0!==e.updateThrottling&&t.uint32(56).uint32(e.updateThrottling),0!==e.start&&t.uint32(64).uint32(e.start),0!==e.length&&t.uint32(72).uint32(e.length),""!==e.sort&&t.uint32(82).string(e.sort),""!==e.filter&&t.uint32(90).string(e.filter),""!==e.id&&t.uint32(98).string(e.id),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={trackPolicy:void 0,addTime:!1,index:!1,groupIndex:!1,groupLabel:!1,groupByInitial:!1,updateThrottling:0,start:0,length:0,sort:"",filter:"",id:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.addTime=n.bool();break;case 3:i.index=n.bool();break;case 4:i.groupIndex=n.bool();break;case 5:i.groupLabel=n.bool();break;case 6:i.groupByInitial=n.bool();break;case 7:i.updateThrottling=n.uint32();break;case 8:i.start=n.uint32();break;case 9:i.length=n.uint32();break;case 10:i.sort=n.string();break;case 11:i.filter=n.string();break;case 12:i.id=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,addTime:!!c(e.addTime)&&Boolean(e.addTime),index:!!c(e.index)&&Boolean(e.index),groupIndex:!!c(e.groupIndex)&&Boolean(e.groupIndex),groupLabel:!!c(e.groupLabel)&&Boolean(e.groupLabel),groupByInitial:!!c(e.groupByInitial)&&Boolean(e.groupByInitial),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,start:c(e.start)?Number(e.start):0,length:c(e.length)?Number(e.length):0,sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",id:c(e.id)?String(e.id):""}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.index&&(t.index=e.index),void 0!==e.groupIndex&&(t.groupIndex=e.groupIndex),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.groupByInitial&&(t.groupByInitial=e.groupByInitial),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.id&&(t.id=e.id),t},fromPartial(e){const t={trackPolicy:void 0,addTime:!1,index:!1,groupIndex:!1,groupLabel:!1,groupByInitial:!1,updateThrottling:0,start:0,length:0,sort:"",filter:"",id:""};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.addTime=e.addTime??!1,t.index=e.index??!1,t.groupIndex=e.groupIndex??!1,t.groupLabel=e.groupLabel??!1,t.groupByInitial=e.groupByInitial??!1,t.updateThrottling=e.updateThrottling??0,t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.id=e.id??"",t}},t.TrackListItem={encode:(e,t=r.default.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.track&&s.CollectionTrack.encode(e.track,t.uint32(18).fork()).ldelim(),""!==e.groupLabel&&t.uint32(26).string(e.groupLabel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={headerField:"",track:void 0,groupLabel:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.headerField=n.string();break;case 2:i.track=s.CollectionTrack.decode(n,n.uint32());break;case 3:i.groupLabel=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({headerField:c(e.headerField)?String(e.headerField):"",track:c(e.track)?s.CollectionTrack.fromJSON(e.track):void 0,groupLabel:c(e.groupLabel)?String(e.groupLabel):""}),toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.track&&(t.track=e.track?s.CollectionTrack.toJSON(e.track):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={headerField:"",track:void 0,groupLabel:""};return t.headerField=e.headerField??"",t.track=void 0!==e.track&&null!==e.track?s.CollectionTrack.fromPartial(e.track):void 0,t.groupLabel=e.groupLabel??"",t}},t.GroupHeader={encode:(e,t=r.default.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.length&&t.uint32(24).uint32(e.length),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={headerField:"",index:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.headerField=n.string();break;case 2:i.index=n.uint32();break;case 3:i.length=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({headerField:c(e.headerField)?String(e.headerField):"",index:c(e.index)?Number(e.index):0,length:c(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){const t={headerField:"",index:0,length:0};return t.headerField=e.headerField??"",t.index=e.index??0,t.length=e.length??0,t}},t.CollectionGetTrackListResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(16).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(24).uint32(e.unrangedLength),!0===e.loadingContents&&n.uint32(32).bool(e.loadingContents),""!==e.offline&&n.uint32(42).string(e.offline),0!==e.syncProgress&&n.uint32(48).uint32(e.syncProgress);for(const o of e.groupIndex)t.GroupHeader.encode(o,n.uint32(58).fork()).ldelim();for(const o of e.item)t.TrackListItem.encode(o,n.uint32(66).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,unfilteredLength:0,unrangedLength:0,loadingContents:!1,offline:"",syncProgress:0,groupIndex:[],item:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.unfilteredLength=o.uint32();break;case 3:a.unrangedLength=o.uint32();break;case 4:a.loadingContents=o.bool();break;case 5:a.offline=o.string();break;case 6:a.syncProgress=o.uint32();break;case 7:a.groupIndex.push(t.GroupHeader.decode(o,o.uint32()));break;case 8:a.item.push(t.TrackListItem.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!c(e.loadingContents)&&Boolean(e.loadingContents),offline:c(e.offline)?String(e.offline):"",syncProgress:c(e.syncProgress)?Number(e.syncProgress):0,groupIndex:Array.isArray(e?.groupIndex)?e.groupIndex.map((e=>t.GroupHeader.fromJSON(e))):[],item:Array.isArray(e?.item)?e.item.map((e=>t.TrackListItem.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),void 0!==e.offline&&(n.offline=e.offline),void 0!==e.syncProgress&&(n.syncProgress=Math.round(e.syncProgress)),e.groupIndex?n.groupIndex=e.groupIndex.map((e=>e?t.GroupHeader.toJSON(e):void 0)):n.groupIndex=[],e.item?n.item=e.item.map((e=>e?t.TrackListItem.toJSON(e):void 0)):n.item=[],n},fromPartial(e){const n={status:void 0,unfilteredLength:0,unrangedLength:0,loadingContents:!1,offline:"",syncProgress:0,groupIndex:[],item:[]};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContents=e.loadingContents??!1,n.offline=e.offline??"",n.syncProgress=e.syncProgress??0,n.groupIndex=e.groupIndex?.map((e=>t.GroupHeader.fromPartial(e)))||[],n.item=e.item?.map((e=>t.TrackListItem.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95123:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetUnplayedEpisodesResponse=t.UnplayedEpisodeItem=t.CollectionGetUnplayedEpisodesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetUnplayedEpisodesRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episodePolicy&&a.CollectionEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),0!==e.start&&t.uint32(16).uint32(e.start),0!==e.length&&t.uint32(24).uint32(e.length),""!==e.sort&&t.uint32(34).string(e.sort),""!==e.filter&&t.uint32(42).string(e.filter),!0===e.group&&t.uint32(48).bool(e.group),0!==e.updateThrottling&&t.uint32(56).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={episodePolicy:void 0,start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.episodePolicy=a.CollectionEpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:i.start=n.uint32();break;case 3:i.length=n.uint32();break;case 4:i.sort=n.string();break;case 5:i.filter=n.string();break;case 6:i.group=n.bool();break;case 7:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({episodePolicy:c(e.episodePolicy)?a.CollectionEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,start:c(e.start)?Number(e.start):0,length:c(e.length)?Number(e.length):0,sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",group:!!c(e.group)&&Boolean(e.group),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?a.CollectionEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={episodePolicy:void 0,start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?a.CollectionEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.updateThrottling=e.updateThrottling??0,t}},t.UnplayedEpisodeItem={encode:(e,t=r.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episode&&s.CollectionEpisode.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={header:"",episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.header=n.string();break;case 2:i.episode=s.CollectionEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({header:c(e.header)?String(e.header):"",episode:c(e.episode)?s.CollectionEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.episode&&(t.episode=e.episode?s.CollectionEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={header:"",episode:void 0};return t.header=e.header??"",t.episode=void 0!==e.episode&&null!==e.episode?s.CollectionEpisode.fromPartial(e.episode):void 0,t}},t.CollectionGetUnplayedEpisodesResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.UnplayedEpisodeItem.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.unfilteredLength&&n.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(32).uint32(e.unrangedLength),!0===e.loadingContent&&n.uint32(40).bool(e.loadingContent),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContent:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.UnplayedEpisodeItem.decode(o,o.uint32()));break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.loadingContent=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.UnplayedEpisodeItem.fromJSON(e))):[],unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContent:!!c(e.loadingContent)&&Boolean(e.loadingContent)}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.UnplayedEpisodeItem.toJSON(e):void 0)):n.item=[],void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContent&&(n.loadingContent=e.loadingContent),n},fromPartial(e){const n={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContent:!1};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.UnplayedEpisodeItem.fromPartial(e)))||[],n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContent=e.loadingContent??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},96859:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionEpisode=t.CollectionShow=t.CollectionArtist=t.CollectionAlbum=t.CollectionTrack=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(44676),s=n(59649),l=n(1772),c=n(8151),u=n(37709),d=n(78318),p=n(61013),f=n(3103),h=n(91864),m=n(13922),g=n(58894),v=n(39836),y=n(9589),_=n(15400),b=n(58405),S=n(26909),E=n(83664);function A(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionTrack={encode(e,n=r.default.Writer.create()){0!==e.index&&n.uint32(8).uint32(e.index),0!==e.addTime&&n.uint32(16).uint32(e.addTime),void 0!==e.trackMetadata&&a.TrackMetadata.encode(e.trackMetadata,n.uint32(26).fork()).ldelim(),void 0!==e.trackCollectionState&&s.TrackCollectionState.encode(e.trackCollectionState,n.uint32(34).fork()).ldelim(),void 0!==e.trackPlayState&&l.TrackPlayState.encode(e.trackPlayState,n.uint32(42).fork()).ldelim(),void 0!==e.trackSyncState&&c.TrackSyncState.encode(e.trackSyncState,n.uint32(50).fork()).ldelim(),!0===e.decorated&&n.uint32(56).bool(e.decorated),void 0!==e.album&&t.CollectionAlbum.encode(e.album,n.uint32(66).fork()).ldelim(),""!==e.cover&&n.uint32(74).string(e.cover),""!==e.link&&n.uint32(82).string(e.link);for(const t of e.artistCollectionState)u.ArtistCollectionState.encode(t,n.uint32(90).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const d={index:0,addTime:0,trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,decorated:!1,album:void 0,cover:"",link:"",artistCollectionState:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:d.index=o.uint32();break;case 2:d.addTime=o.uint32();break;case 3:d.trackMetadata=a.TrackMetadata.decode(o,o.uint32());break;case 4:d.trackCollectionState=s.TrackCollectionState.decode(o,o.uint32());break;case 5:d.trackPlayState=l.TrackPlayState.decode(o,o.uint32());break;case 6:d.trackSyncState=c.TrackSyncState.decode(o,o.uint32());break;case 7:d.decorated=o.bool();break;case 8:d.album=t.CollectionAlbum.decode(o,o.uint32());break;case 9:d.cover=o.string();break;case 10:d.link=o.string();break;case 11:d.artistCollectionState.push(u.ArtistCollectionState.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return d},fromJSON:e=>({index:A(e.index)?Number(e.index):0,addTime:A(e.addTime)?Number(e.addTime):0,trackMetadata:A(e.trackMetadata)?a.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:A(e.trackCollectionState)?s.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackPlayState:A(e.trackPlayState)?l.TrackPlayState.fromJSON(e.trackPlayState):void 0,trackSyncState:A(e.trackSyncState)?c.TrackSyncState.fromJSON(e.trackSyncState):void 0,decorated:!!A(e.decorated)&&Boolean(e.decorated),album:A(e.album)?t.CollectionAlbum.fromJSON(e.album):void 0,cover:A(e.cover)?String(e.cover):"",link:A(e.link)?String(e.link):"",artistCollectionState:Array.isArray(e?.artistCollectionState)?e.artistCollectionState.map((e=>u.ArtistCollectionState.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.index&&(n.index=Math.round(e.index)),void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.trackMetadata&&(n.trackMetadata=e.trackMetadata?a.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(n.trackCollectionState=e.trackCollectionState?s.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackPlayState&&(n.trackPlayState=e.trackPlayState?l.TrackPlayState.toJSON(e.trackPlayState):void 0),void 0!==e.trackSyncState&&(n.trackSyncState=e.trackSyncState?c.TrackSyncState.toJSON(e.trackSyncState):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.album&&(n.album=e.album?t.CollectionAlbum.toJSON(e.album):void 0),void 0!==e.cover&&(n.cover=e.cover),void 0!==e.link&&(n.link=e.link),e.artistCollectionState?n.artistCollectionState=e.artistCollectionState.map((e=>e?u.ArtistCollectionState.toJSON(e):void 0)):n.artistCollectionState=[],n},fromPartial(e){const n={index:0,addTime:0,trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,decorated:!1,album:void 0,cover:"",link:"",artistCollectionState:[]};return n.index=e.index??0,n.addTime=e.addTime??0,n.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?a.TrackMetadata.fromPartial(e.trackMetadata):void 0,n.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?s.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,n.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?l.TrackPlayState.fromPartial(e.trackPlayState):void 0,n.trackSyncState=void 0!==e.trackSyncState&&null!==e.trackSyncState?c.TrackSyncState.fromPartial(e.trackSyncState):void 0,n.decorated=e.decorated??!1,n.album=void 0!==e.album&&null!==e.album?t.CollectionAlbum.fromPartial(e.album):void 0,n.cover=e.cover??"",n.link=e.link??"",n.artistCollectionState=e.artistCollectionState?.map((e=>u.ArtistCollectionState.fromPartial(e)))||[],n}},t.CollectionAlbum={encode(e,n=r.default.Writer.create()){0!==e.addTime&&n.uint32(8).uint32(e.addTime),void 0!==e.albumMetadata&&d.AlbumMetadata.encode(e.albumMetadata,n.uint32(18).fork()).ldelim(),void 0!==e.albumCollectionState&&p.AlbumCollectionState.encode(e.albumCollectionState,n.uint32(26).fork()).ldelim(),void 0!==e.albumSyncState&&f.AlbumSyncState.encode(e.albumSyncState,n.uint32(34).fork()).ldelim(),!0===e.decorated&&n.uint32(40).bool(e.decorated),""!==e.albumType&&n.uint32(50).string(e.albumType);for(const o of e.track)t.CollectionTrack.encode(o,n.uint32(58).fork()).ldelim();return""!==e.link&&n.uint32(90).string(e.link),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={addTime:0,albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,decorated:!1,albumType:"",track:[],link:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.addTime=o.uint32();break;case 2:a.albumMetadata=d.AlbumMetadata.decode(o,o.uint32());break;case 3:a.albumCollectionState=p.AlbumCollectionState.decode(o,o.uint32());break;case 4:a.albumSyncState=f.AlbumSyncState.decode(o,o.uint32());break;case 5:a.decorated=o.bool();break;case 6:a.albumType=o.string();break;case 7:a.track.push(t.CollectionTrack.decode(o,o.uint32()));break;case 11:a.link=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({addTime:A(e.addTime)?Number(e.addTime):0,albumMetadata:A(e.albumMetadata)?d.AlbumMetadata.fromJSON(e.albumMetadata):void 0,albumCollectionState:A(e.albumCollectionState)?p.AlbumCollectionState.fromJSON(e.albumCollectionState):void 0,albumSyncState:A(e.albumSyncState)?f.AlbumSyncState.fromJSON(e.albumSyncState):void 0,decorated:!!A(e.decorated)&&Boolean(e.decorated),albumType:A(e.albumType)?String(e.albumType):"",track:Array.isArray(e?.track)?e.track.map((e=>t.CollectionTrack.fromJSON(e))):[],link:A(e.link)?String(e.link):""}),toJSON(e){const n={};return void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.albumMetadata&&(n.albumMetadata=e.albumMetadata?d.AlbumMetadata.toJSON(e.albumMetadata):void 0),void 0!==e.albumCollectionState&&(n.albumCollectionState=e.albumCollectionState?p.AlbumCollectionState.toJSON(e.albumCollectionState):void 0),void 0!==e.albumSyncState&&(n.albumSyncState=e.albumSyncState?f.AlbumSyncState.toJSON(e.albumSyncState):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.albumType&&(n.albumType=e.albumType),e.track?n.track=e.track.map((e=>e?t.CollectionTrack.toJSON(e):void 0)):n.track=[],void 0!==e.link&&(n.link=e.link),n},fromPartial(e){const n={addTime:0,albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,decorated:!1,albumType:"",track:[],link:""};return n.addTime=e.addTime??0,n.albumMetadata=void 0!==e.albumMetadata&&null!==e.albumMetadata?d.AlbumMetadata.fromPartial(e.albumMetadata):void 0,n.albumCollectionState=void 0!==e.albumCollectionState&&null!==e.albumCollectionState?p.AlbumCollectionState.fromPartial(e.albumCollectionState):void 0,n.albumSyncState=void 0!==e.albumSyncState&&null!==e.albumSyncState?f.AlbumSyncState.fromPartial(e.albumSyncState):void 0,n.decorated=e.decorated??!1,n.albumType=e.albumType??"",n.track=e.track?.map((e=>t.CollectionTrack.fromPartial(e)))||[],n.link=e.link??"",n}},t.CollectionArtist={encode(e,n=r.default.Writer.create()){void 0!==e.artistMetadata&&h.ArtistMetadata.encode(e.artistMetadata,n.uint32(10).fork()).ldelim(),void 0!==e.artistCollectionState&&u.ArtistCollectionState.encode(e.artistCollectionState,n.uint32(18).fork()).ldelim(),void 0!==e.artistSyncState&&m.ArtistSyncState.encode(e.artistSyncState,n.uint32(26).fork()).ldelim(),!0===e.decorated&&n.uint32(32).bool(e.decorated);for(const o of e.album)t.CollectionAlbum.encode(o,n.uint32(42).fork()).ldelim();return""!==e.link&&n.uint32(50).string(e.link),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,decorated:!1,album:[],link:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.artistMetadata=h.ArtistMetadata.decode(o,o.uint32());break;case 2:a.artistCollectionState=u.ArtistCollectionState.decode(o,o.uint32());break;case 3:a.artistSyncState=m.ArtistSyncState.decode(o,o.uint32());break;case 4:a.decorated=o.bool();break;case 5:a.album.push(t.CollectionAlbum.decode(o,o.uint32()));break;case 6:a.link=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({artistMetadata:A(e.artistMetadata)?h.ArtistMetadata.fromJSON(e.artistMetadata):void 0,artistCollectionState:A(e.artistCollectionState)?u.ArtistCollectionState.fromJSON(e.artistCollectionState):void 0,artistSyncState:A(e.artistSyncState)?m.ArtistSyncState.fromJSON(e.artistSyncState):void 0,decorated:!!A(e.decorated)&&Boolean(e.decorated),album:Array.isArray(e?.album)?e.album.map((e=>t.CollectionAlbum.fromJSON(e))):[],link:A(e.link)?String(e.link):""}),toJSON(e){const n={};return void 0!==e.artistMetadata&&(n.artistMetadata=e.artistMetadata?h.ArtistMetadata.toJSON(e.artistMetadata):void 0),void 0!==e.artistCollectionState&&(n.artistCollectionState=e.artistCollectionState?u.ArtistCollectionState.toJSON(e.artistCollectionState):void 0),void 0!==e.artistSyncState&&(n.artistSyncState=e.artistSyncState?m.ArtistSyncState.toJSON(e.artistSyncState):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),e.album?n.album=e.album.map((e=>e?t.CollectionAlbum.toJSON(e):void 0)):n.album=[],void 0!==e.link&&(n.link=e.link),n},fromPartial(e){const n={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,decorated:!1,album:[],link:""};return n.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?h.ArtistMetadata.fromPartial(e.artistMetadata):void 0,n.artistCollectionState=void 0!==e.artistCollectionState&&null!==e.artistCollectionState?u.ArtistCollectionState.fromPartial(e.artistCollectionState):void 0,n.artistSyncState=void 0!==e.artistSyncState&&null!==e.artistSyncState?m.ArtistSyncState.fromPartial(e.artistSyncState):void 0,n.decorated=e.decorated??!1,n.album=e.album?.map((e=>t.CollectionAlbum.fromPartial(e)))||[],n.link=e.link??"",n}},t.CollectionShow={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showMetadata&&g.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&v.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&y.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,addTime:0,link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.showMetadata=g.ShowMetadata.decode(n,n.uint32());break;case 2:i.showCollectionState=v.ShowCollectionState.decode(n,n.uint32());break;case 3:i.showPlayState=y.ShowPlayState.decode(n,n.uint32());break;case 4:i.addTime=n.uint32();break;case 5:i.link=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showMetadata:A(e.showMetadata)?g.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:A(e.showCollectionState)?v.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:A(e.showPlayState)?y.ShowPlayState.fromJSON(e.showPlayState):void 0,addTime:A(e.addTime)?Number(e.addTime):0,link:A(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?g.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?v.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?y.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,addTime:0,link:""};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?g.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?v.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?y.ShowPlayState.fromPartial(e.showPlayState):void 0,t.addTime=e.addTime??0,t.link=e.link??"",t}},t.CollectionEpisode={encode:(e,n=r.default.Writer.create())=>(void 0!==e.episodeMetadata&&_.EpisodeMetadata.encode(e.episodeMetadata,n.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&b.EpisodeCollectionState.encode(e.episodeCollectionState,n.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&S.EpisodeSyncState.encode(e.episodeOfflineState,n.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&E.EpisodePlayState.encode(e.episodePlayState,n.uint32(34).fork()).ldelim(),void 0!==e.show&&t.CollectionShow.encode(e.show,n.uint32(42).fork()).ldelim(),""!==e.link&&n.uint32(50).string(e.link),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,show:void 0,link:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.episodeMetadata=_.EpisodeMetadata.decode(o,o.uint32());break;case 2:a.episodeCollectionState=b.EpisodeCollectionState.decode(o,o.uint32());break;case 3:a.episodeOfflineState=S.EpisodeSyncState.decode(o,o.uint32());break;case 4:a.episodePlayState=E.EpisodePlayState.decode(o,o.uint32());break;case 5:a.show=t.CollectionShow.decode(o,o.uint32());break;case 6:a.link=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeMetadata:A(e.episodeMetadata)?_.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:A(e.episodeCollectionState)?b.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:A(e.episodeOfflineState)?S.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:A(e.episodePlayState)?E.EpisodePlayState.fromJSON(e.episodePlayState):void 0,show:A(e.show)?t.CollectionShow.fromJSON(e.show):void 0,link:A(e.link)?String(e.link):""}),toJSON(e){const n={};return void 0!==e.episodeMetadata&&(n.episodeMetadata=e.episodeMetadata?_.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(n.episodeCollectionState=e.episodeCollectionState?b.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(n.episodeOfflineState=e.episodeOfflineState?S.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(n.episodePlayState=e.episodePlayState?E.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.show&&(n.show=e.show?t.CollectionShow.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),n},fromPartial(e){const n={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,show:void 0,link:""};return n.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?_.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,n.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?b.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,n.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?S.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,n.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?E.EpisodePlayState.fromPartial(e.episodePlayState):void 0,n.show=void 0!==e.show&&null!==e.show?t.CollectionShow.fromPartial(e.show):void 0,n.link=e.link??"",n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},72159:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionTrackListOfflineStatusResponse=t.CollectionTrackListOfflineStatusRequest=t.CollectionOfflineTrackListResponse=t.CollectionOfflineTrackListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionOfflineTrackListRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.sort&&t.uint32(18).string(e.sort),""!==e.filter&&t.uint32(26).string(e.filter),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={id:"",sort:"",filter:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.id=n.string();break;case 2:i.sort=n.string();break;case 3:i.filter=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({id:s(e.id)?String(e.id):"",sort:s(e.sort)?String(e.sort):"",filter:s(e.filter)?String(e.filter):""}),toJSON(e){const t={};return void 0!==e.id&&(t.id=e.id),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),t},fromPartial(e){const t={id:"",sort:"",filter:""};return t.id=e.id??"",t.sort=e.sort??"",t.filter=e.filter??"",t}},t.CollectionOfflineTrackListResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},t.CollectionTrackListOfflineStatusRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.CollectionTrackListOfflineStatusResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),!0===e.offline&&t.uint32(16).bool(e.offline),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,offline:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:i.offline=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,offline:!!s(e.offline)&&Boolean(e.offline)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){const t={status:void 0,offline:!1};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.offline=e.offline??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},60778:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlayResponse=t.CollectionPlayRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(20373),s=n(41308),l=n(69746),c=n(70650),u=n(68222),d=n(62908);function p(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionPlayRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.sort&&t.uint32(10).string(e.sort),""!==e.filter&&t.uint32(18).string(e.filter),!0===e.groupByInitial&&t.uint32(24).bool(e.groupByInitial),void 0!==e.context&&a.Context.encode(e.context,t.uint32(34).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(42).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(50).fork()).ldelim(),void 0!==e.preparePlayOptions&&c.PreparePlayOptions.encode(e.preparePlayOptions,t.uint32(58).fork()).ldelim(),void 0!==e.playOrigin&&u.PlayOrigin.encode(e.playOrigin,t.uint32(66).fork()).ldelim(),""!==e.id&&t.uint32(74).string(e.id),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={sort:"",filter:"",groupByInitial:!1,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0,id:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.sort=n.string();break;case 2:i.filter=n.string();break;case 3:i.groupByInitial=n.bool();break;case 4:i.context=a.Context.decode(n,n.uint32());break;case 5:i.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 6:i.loggingParams=l.LoggingParams.decode(n,n.uint32());break;case 7:i.preparePlayOptions=c.PreparePlayOptions.decode(n,n.uint32());break;case 8:i.playOrigin=u.PlayOrigin.decode(n,n.uint32());break;case 9:i.id=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({sort:p(e.sort)?String(e.sort):"",filter:p(e.filter)?String(e.filter):"",groupByInitial:!!p(e.groupByInitial)&&Boolean(e.groupByInitial),context:p(e.context)?a.Context.fromJSON(e.context):void 0,playOptions:p(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,loggingParams:p(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0,preparePlayOptions:p(e.preparePlayOptions)?c.PreparePlayOptions.fromJSON(e.preparePlayOptions):void 0,playOrigin:p(e.playOrigin)?u.PlayOrigin.fromJSON(e.playOrigin):void 0,id:p(e.id)?String(e.id):""}),toJSON(e){const t={};return void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.groupByInitial&&(t.groupByInitial=e.groupByInitial),void 0!==e.context&&(t.context=e.context?a.Context.toJSON(e.context):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=e.preparePlayOptions?c.PreparePlayOptions.toJSON(e.preparePlayOptions):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?u.PlayOrigin.toJSON(e.playOrigin):void 0),void 0!==e.id&&(t.id=e.id),t},fromPartial(e){const t={sort:"",filter:"",groupByInitial:!1,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0,id:""};return t.sort=e.sort??"",t.filter=e.filter??"",t.groupByInitial=e.groupByInitial??!1,t.context=void 0!==e.context&&null!==e.context?a.Context.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?c.PreparePlayOptions.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?u.PlayOrigin.fromPartial(e.playOrigin):void 0,t.id=e.id??"",t}},t.CollectionPlayResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&d.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=d.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({status:p(e.status)?d.Status.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?d.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?d.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94503:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionUnplayedResponse=t.CollectionUnplayedRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);t.protobufPackage="spotify.collection_esperanto.proto",t.CollectionUnplayedRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.uri.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.CollectionUnplayedResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){return{status:(t=e.status,null!=t?a.Status.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},42676:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackListMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.TrackListMetadata={encode:(e,t=r.default.Writer.create())=>(0!==e.unfilteredLength&&t.uint32(8).uint32(e.unfilteredLength),0!==e.length&&t.uint32(16).uint32(e.length),""!==e.offline&&t.uint32(26).string(e.offline),0!==e.syncProgress&&t.uint32(32).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={unfilteredLength:0,length:0,offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.unfilteredLength=n.uint32();break;case 2:i.length=n.uint32();break;case 3:i.offline=n.string();break;case 4:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({unfilteredLength:a(e.unfilteredLength)?Number(e.unfilteredLength):0,length:a(e.length)?Number(e.length):0,offline:a(e.offline)?String(e.offline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={unfilteredLength:0,length:0,offline:"",syncProgress:0};return t.unfilteredLength=e.unfilteredLength??0,t.length=e.length??0,t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},20373:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context_MetadataEntry=t.Context=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(22021),s=n(989);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=r.default.Writer.create()){for(const t of e.pages)a.ContextPage.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.Context_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoaded&&n.uint32(40).bool(e.isLoaded),void 0!==e.restrictions&&s.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoaded:!1,restrictions:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.pages.push(a.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoaded=o.bool();break;case 6:l.restrictions=s.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>a.ContextPage.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:l(e.uri)?String(e.uri):"",url:l(e.url)?String(e.url):"",isLoaded:!!l(e.isLoaded)&&Boolean(e.isLoaded),restrictions:l(e.restrictions)?s.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?a.ContextPage.toJSON(e):void 0)):t.pages=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.url&&(t.url=e.url),void 0!==e.isLoaded&&(t.isLoaded=e.isLoaded),void 0!==e.restrictions&&(t.restrictions=e.restrictions?s.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoaded:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>a.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoaded=e.isLoaded??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?s.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:l(e.key)?String(e.key):"",value:l(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},22021:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPage_MetadataEntry=t.ContextPage=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(75422);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=r.default.Writer.create()){for(const t of e.tracks)a.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoaded&&n.uint32(40).bool(e.isLoaded),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoaded:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.tracks.push(a.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoaded=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>a.ContextTrack.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:s(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:s(e.nextPageUrl)?String(e.nextPageUrl):"",isLoaded:!!s(e.isLoaded)&&Boolean(e.isLoaded)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?a.ContextTrack.toJSON(e):void 0)):t.tracks=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),void 0!==e.isLoaded&&(t.isLoaded=e.isLoaded),t},fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoaded:!1};return t.tracks=e.tracks?.map((e=>a.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoaded=e.isLoaded??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},52710:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerOptionOverrides=t.ContextPlayerOptions=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(74405);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=r.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),!0===e.repeatingContext&&t.uint32(16).bool(e.repeatingContext),!0===e.repeatingTrack&&t.uint32(24).bool(e.repeatingTrack),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.shufflingContext=n.bool();break;case 2:i.repeatingContext=n.bool();break;case 3:i.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({shufflingContext:!!s(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!s(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!s(e.repeatingTrack)&&Boolean(e.repeatingTrack)}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),t},fromPartial(e){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=r.default.Writer.create())=>(void 0!==e.shufflingContext&&a.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&a.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&a.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.shufflingContext=a.OptionalBoolean.decode(n,n.uint32());break;case 2:i.repeatingContext=a.OptionalBoolean.decode(n,n.uint32());break;case 3:i.repeatingTrack=a.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({shufflingContext:s(e.shufflingContext)?a.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:s(e.repeatingContext)?a.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:s(e.repeatingTrack)?a.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?a.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?a.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?a.OptionalBoolean.toJSON(e.repeatingTrack):void 0),t},fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?a.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?a.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?a.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},75422:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTrack_MetadataEntry=t.ContextTrack=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=r.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),""!==e.uid&&n.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{uri:a(e.uri)?String(e.uri):"",uid:a(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.uid&&(t.uid=e.uid),t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),t},fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:a(e.key)?String(e.key):"",value:a(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},69746:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingParams=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(74405);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=r.default.Writer.create()){void 0!==e.commandInitiatedTime&&a.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&a.OptionalInt64.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.commandInitiatedTime=a.OptionalInt64.decode(n,n.uint32());break;case 2:i.commandReceivedTime=a.OptionalInt64.decode(n,n.uint32());break;case 3:i.pageInstanceIds.push(n.string());break;case 4:i.interactionIds.push(n.string());break;case 5:i.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({commandInitiatedTime:s(e.commandInitiatedTime)?a.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:s(e.commandReceivedTime)?a.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:s(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?a.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?a.OptionalInt64.toJSON(e.commandReceivedTime):void 0),e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),t},fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?a.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?a.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},74405:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBoolean=t.OptionalDouble=t.OptionalInt64=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.int64().toString();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?String(e.value):"0"}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.double();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!a(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},41308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOptions=t.playOptions_TriggerToJSON=t.playOptions_TriggerFromJSON=t.PlayOptions_Trigger=t.playOptions_OperationToJSON=t.playOptions_OperationFromJSON=t.PlayOptions_Operation=t.playOptions_ReasonToJSON=t.playOptions_ReasonFromJSON=t.PlayOptions_Reason=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l;function c(e){switch(e){case 0:case"INTERACTIVE":return a.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return a.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return a.LICENSE_CHANGE;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.INTERACTIVE:return"INTERACTIVE";case a.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case a.LICENSE_CHANGE:return"LICENSE_CHANGE";default:return"UNKNOWN"}}function d(e){switch(e){case 0:case"REPLACE":return s.REPLACE;case 1:case"ENQUEUE":return s.ENQUEUE;case 2:case"PUSH":return s.PUSH;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.REPLACE:return"REPLACE";case s.ENQUEUE:return"ENQUEUE";case s.PUSH:return"PUSH";default:return"UNKNOWN"}}function f(e){switch(e){case 0:case"IMMEDIATELY":return l.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return l.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return l.ADVANCED_PAST_CONTEXT;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.IMMEDIATELY:return"IMMEDIATELY";case l.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case l.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";default:return"UNKNOWN"}}function m(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=c,t.playOptions_ReasonToJSON=u,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=d,t.playOptions_OperationToJSON=p,function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=f,t.playOptions_TriggerToJSON=h,t.PlayOptions={encode:(e,t=r.default.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={reason:0,operation:0,trigger:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.reason=n.int32();break;case 2:i.operation=n.int32();break;case 3:i.trigger=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({reason:m(e.reason)?c(e.reason):0,operation:m(e.operation)?d(e.operation):0,trigger:m(e.trigger)?f(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=u(e.reason)),void 0!==e.operation&&(t.operation=p(e.operation)),void 0!==e.trigger&&(t.trigger=h(e.trigger)),t},fromPartial(e){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},68222:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOrigin=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=r.default.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.featureIdentifier=n.string();break;case 2:i.featureVersion=n.string();break;case 3:i.viewUri=n.string();break;case 4:i.externalReferrer=n.string();break;case 5:i.referrerIdentifier=n.string();break;case 6:i.deviceIdentifier=n.string();break;case 7:i.featureClasses.push(n.string());break;case 8:i.restrictionIdentifier=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({featureIdentifier:a(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:a(e.featureVersion)?String(e.featureVersion):"",viewUri:a(e.viewUri)?String(e.viewUri):"",externalReferrer:a(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:a(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:a(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),void 0!==e.featureVersion&&(t.featureVersion=e.featureVersion),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),void 0!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?t.featureClasses=e.featureClasses.map((e=>e)):t.featureClasses=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},70650:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreparePlayOptions_ConfigurationOverrideEntry=t.PreparePlayOptions=t.preparePlayOptions_AudioStreamToJSON=t.preparePlayOptions_AudioStreamFromJSON=t.PreparePlayOptions_AudioStream=t.preparePlayOptions_PrefetchLevelToJSON=t.preparePlayOptions_PrefetchLevelFromJSON=t.PreparePlayOptions_PrefetchLevel=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(28913),s=n(74405),l=n(52710);var c,u;function d(e){switch(e){case 0:case"NONE":return c.NONE;case 1:case"MEDIA":return c.MEDIA;default:return c.UNRECOGNIZED}}function p(e){switch(e){case c.NONE:return"NONE";case c.MEDIA:return"MEDIA";default:return"UNKNOWN"}}function f(e){switch(e){case 0:case"DEFAULT":return u.DEFAULT;case 1:case"ALARM":return u.ALARM;default:return u.UNRECOGNIZED}}function h(e){switch(e){case u.DEFAULT:return"DEFAULT";case u.ALARM:return"ALARM";default:return"UNKNOWN"}}function m(){return{playbackId:new Uint8Array,alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=d,t.preparePlayOptions_PrefetchLevelToJSON=p,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=f,t.preparePlayOptions_AudioStreamToJSON=h,t.PreparePlayOptions={encode(e,n=r.default.Writer.create()){0!==e.playbackId.length&&n.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&n.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&a.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&s.OptionalInt64.encode(e.seekTo,n.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&n.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&n.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&l.ContextPlayerOptionOverrides.encode(e.playerOptionsOverride,n.uint32(58).fork()).ldelim();for(const t of e.suppressions)n.uint32(66).string(t);return 0!==e.prefetchLevel&&n.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&n.uint32(80).int32(e.audioStream),""!==e.sessionId&&n.uint32(90).string(e.sessionId),""!==e.license&&n.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const c=m();for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=a.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=s.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=l.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.skipType(7&e)}}return c},fromJSON(e){return{playbackId:b(e.playbackId)?y(e.playbackId):new Uint8Array,alwaysPlaySomething:!!b(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:b(e.skipTo)?a.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:b(e.seekTo)?s.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!b(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!b(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:b(e.playerOptionsOverride)?l.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:b(e.prefetchLevel)?d(e.prefetchLevel):0,audioStream:b(e.audioStream)?f(e.audioStream):0,sessionId:b(e.sessionId)?String(e.sessionId):"",license:b(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return _(t.join(""))}(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=e.skipTo?a.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?s.OptionalInt64.toJSON(e.seekTo):void 0),void 0!==e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),void 0!==e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=e.playerOptionsOverride?l.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=p(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=h(e.audioStream)),void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.license&&(t.license=e.license),t.configurationOverride={},e.configurationOverride&&Object.entries(e.configurationOverride).forEach((([e,n])=>{t.configurationOverride[e]=n})),t},fromPartial(e){const t=m();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?a.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?s.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?l.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:b(e.key)?String(e.key):"",value:b(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var g=(()=>{if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const v=g.atob||(e=>g.Buffer.from(e,"base64").toString("binary"));function y(e){const t=v(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const _=g.btoa||(e=>g.Buffer.from(e,"binary").toString("base64"));function b(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},989:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Restrictions=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.Restrictions={encode(e,t=r.default.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.disallowPausingReasons.push(n.string());break;case 2:i.disallowResumingReasons.push(n.string());break;case 3:i.disallowSeekingReasons.push(n.string());break;case 4:i.disallowPeekingPrevReasons.push(n.string());break;case 5:i.disallowPeekingNextReasons.push(n.string());break;case 6:i.disallowSkippingPrevReasons.push(n.string());break;case 7:i.disallowSkippingNextReasons.push(n.string());break;case 8:i.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:i.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:i.disallowTogglingShuffleReasons.push(n.string());break;case 11:i.disallowSetQueueReasons.push(n.string());break;case 12:i.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:i.disallowTransferringPlaybackReasons.push(n.string());break;case 14:i.disallowRemoteControlReasons.push(n.string());break;case 15:i.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:i.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:i.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:i.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:i.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:i.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:i.disallowUpdatingContextReasons.push(n.string());break;case 22:i.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?t.disallowPausingReasons=e.disallowPausingReasons.map((e=>e)):t.disallowPausingReasons=[],e.disallowResumingReasons?t.disallowResumingReasons=e.disallowResumingReasons.map((e=>e)):t.disallowResumingReasons=[],e.disallowSeekingReasons?t.disallowSeekingReasons=e.disallowSeekingReasons.map((e=>e)):t.disallowSeekingReasons=[],e.disallowPeekingPrevReasons?t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons.map((e=>e)):t.disallowPeekingPrevReasons=[],e.disallowPeekingNextReasons?t.disallowPeekingNextReasons=e.disallowPeekingNextReasons.map((e=>e)):t.disallowPeekingNextReasons=[],e.disallowSkippingPrevReasons?t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons.map((e=>e)):t.disallowSkippingPrevReasons=[],e.disallowSkippingNextReasons?t.disallowSkippingNextReasons=e.disallowSkippingNextReasons.map((e=>e)):t.disallowSkippingNextReasons=[],e.disallowTogglingRepeatContextReasons?t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons.map((e=>e)):t.disallowTogglingRepeatContextReasons=[],e.disallowTogglingRepeatTrackReasons?t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons.map((e=>e)):t.disallowTogglingRepeatTrackReasons=[],e.disallowTogglingShuffleReasons?t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons.map((e=>e)):t.disallowTogglingShuffleReasons=[],e.disallowSetQueueReasons?t.disallowSetQueueReasons=e.disallowSetQueueReasons.map((e=>e)):t.disallowSetQueueReasons=[],e.disallowInterruptingPlaybackReasons?t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons.map((e=>e)):t.disallowInterruptingPlaybackReasons=[],e.disallowTransferringPlaybackReasons?t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons.map((e=>e)):t.disallowTransferringPlaybackReasons=[],e.disallowRemoteControlReasons?t.disallowRemoteControlReasons=e.disallowRemoteControlReasons.map((e=>e)):t.disallowRemoteControlReasons=[],e.disallowInsertingIntoNextTracksReasons?t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons.map((e=>e)):t.disallowInsertingIntoNextTracksReasons=[],e.disallowInsertingIntoContextTracksReasons?t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons.map((e=>e)):t.disallowInsertingIntoContextTracksReasons=[],e.disallowReorderingInNextTracksReasons?t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons.map((e=>e)):t.disallowReorderingInNextTracksReasons=[],e.disallowReorderingInContextTracksReasons?t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons.map((e=>e)):t.disallowReorderingInContextTracksReasons=[],e.disallowRemovingFromNextTracksReasons?t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons.map((e=>e)):t.disallowRemovingFromNextTracksReasons=[],e.disallowRemovingFromContextTracksReasons?t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons.map((e=>e)):t.disallowRemovingFromContextTracksReasons=[],e.disallowUpdatingContextReasons?t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons.map((e=>e)):t.disallowUpdatingContextReasons=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},28913:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipToTrack=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(74405);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=r.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&a.OptionalInt64.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&a.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.pageUrl=n.string();break;case 2:i.pageIndex=a.OptionalInt64.decode(n,n.uint32());break;case 3:i.trackUid=n.string();break;case 4:i.trackUri=n.string();break;case 5:i.trackIndex=a.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({pageUrl:s(e.pageUrl)?String(e.pageUrl):"",pageIndex:s(e.pageIndex)?a.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:s(e.trackUid)?String(e.trackUid):"",trackUri:s(e.trackUri)?String(e.trackUri):"",trackIndex:s(e.trackIndex)?a.OptionalInt64.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=e.pageIndex?a.OptionalInt64.toJSON(e.pageIndex):void 0),void 0!==e.trackUid&&(t.trackUid=e.trackUid),void 0!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=e.trackIndex?a.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?a.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?a.OptionalInt64.fromPartial(e.trackIndex):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},61286:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return a.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return a.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return a.CONTENT_WARNING;case 59:case"IMAGE_CUE":return a.IMAGE_CUE;case 60:case"STREAM_COUNT":return a.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return a.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return a.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return a.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return a.USER_COMMENTS;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case a.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case a.PLAY_TRAIT:return"PLAY_TRAIT";case a.CONTENT_WARNING:return"CONTENT_WARNING";case a.IMAGE_CUE:return"IMAGE_CUE";case a.STREAM_COUNT:return"STREAM_COUNT";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";case a.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case a.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case a.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case a.USER_COMMENTS:return"USER_COMMENTS";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},78318:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumMetadata=t.AlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(64561);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.AlbumMetadata={encode(e,n=r.default.Writer.create()){for(const o of e.artists)t.AlbumArtistMetadata.encode(o,n.uint32(10).fork()).ldelim();""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name);for(const t of e.copyright)n.uint32(34).string(t);return void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),0!==e.year&&n.uint32(48).uint32(e.year),0!==e.numDiscs&&n.uint32(56).uint32(e.numDiscs),0!==e.numTracks&&n.uint32(64).uint32(e.numTracks),!0===e.playability&&n.uint32(72).bool(e.playability),!0===e.isPremiumOnly&&n.uint32(80).bool(e.isPremiumOnly),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.artists.push(t.AlbumArtistMetadata.decode(o,o.uint32()));break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.copyright.push(o.string());break;case 5:s.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:s.year=o.uint32();break;case 7:s.numDiscs=o.uint32();break;case 8:s.numTracks=o.uint32();break;case 9:s.playability=o.bool();break;case 10:s.isPremiumOnly=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artists:Array.isArray(e?.artists)?e.artists.map((e=>t.AlbumArtistMetadata.fromJSON(e))):[],link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,year:s(e.year)?Number(e.year):0,numDiscs:s(e.numDiscs)?Number(e.numDiscs):0,numTracks:s(e.numTracks)?Number(e.numTracks):0,playability:!!s(e.playability)&&Boolean(e.playability),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const n={};return e.artists?n.artists=e.artists.map((e=>e?t.AlbumArtistMetadata.toJSON(e):void 0)):n.artists=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),e.copyright?n.copyright=e.copyright.map((e=>e)):n.copyright=[],void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.year&&(n.year=Math.round(e.year)),void 0!==e.numDiscs&&(n.numDiscs=Math.round(e.numDiscs)),void 0!==e.numTracks&&(n.numTracks=Math.round(e.numTracks)),void 0!==e.playability&&(n.playability=e.playability),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),n},fromPartial(e){const n={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};return n.artists=e.artists?.map((e=>t.AlbumArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.copyright=e.copyright?.map((e=>e))||[],n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.year=e.year??0,n.numDiscs=e.numDiscs??0,n.numTracks=e.numTracks??0,n.playability=e.playability??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},91864:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(64561);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",isVariousArtists:!1,portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.isVariousArtists=n.bool();break;case 4:i.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",isVariousArtists:!!s(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:s(e.portraits)?a.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",isVariousArtists:!1,portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.isVariousArtists=e.isVariousArtists??!1,t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},15400:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(64561),s=n(55230);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";default:return"UNKNOWN"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&a.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)s.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=a.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(s.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?a.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?a.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),n},fromPartial(e){const n={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?a.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},55230:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(61286);function s(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=r.default.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.extensionKind=n.int32();break;case 2:i.data=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({extensionKind:p(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,data:p(e.data)?u(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return d(t.join(""))}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=s();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var l=(()=>{if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const c=l.atob||(e=>l.Buffer.from(e,"base64").toString("binary"));function u(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const d=l.btoa||(e=>l.Buffer.from(e,"binary").toString("base64"));function p(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},64561:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=r.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.standardLink=n.string();break;case 2:i.smallLink=n.string();break;case 3:i.largeLink=n.string();break;case 4:i.xlargeLink=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({standardLink:a(e.standardLink)?String(e.standardLink):"",smallLink:a(e.smallLink)?String(e.smallLink):"",largeLink:a(e.largeLink)?String(e.largeLink):"",xlargeLink:a(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},58894:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(64561),s=n(55230);function l(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowMetadata={encode(e,t=r.default.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)s.Extension.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.description=n.string();break;case 4:i.popularity=n.uint32();break;case 5:i.publisher=n.string();break;case 6:i.language=n.string();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=a.ImageGroup.decode(n,n.uint32());break;case 9:i.numEpisodes=n.uint32();break;case 10:i.consumptionOrder=n.string();break;case 11:i.mediaTypeEnum=n.int32();break;case 12:i.copyright.push(n.string());break;case 13:i.trailerUri=n.string();break;case 14:i.isMusicAndTalk=n.bool();break;case 15:i.extension.push(s.Extension.decode(n,n.uint32()));break;case 16:i.isBook=n.bool();break;case 17:i.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",description:l(e.description)?String(e.description):"",popularity:l(e.popularity)?Number(e.popularity):0,publisher:l(e.publisher)?String(e.publisher):"",language:l(e.language)?String(e.language):"",isExplicit:!!l(e.isExplicit)&&Boolean(e.isExplicit),covers:l(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,numEpisodes:l(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:l(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:l(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:l(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!l(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[],isBook:!!l(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!l(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=Math.round(e.popularity)),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=Math.round(e.mediaTypeEnum)),e.copyright?t.copyright=e.copyright.map((e=>e)):t.copyright=[],void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},44676:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackMetadata=t.TrackDescriptor=t.TrackArtistMetadata=t.TrackAlbumMetadata=t.TrackAlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(64561),s=n(55230);function l(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=r.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artist:l(e.artist)?t.TrackAlbumArtistMetadata.fromJSON(e.artist):void 0,link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",covers:l(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",portraits:l(e.portraits)?a.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={name:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.name=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({name:l(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)s.Extension.encode(t,n.uint32(162).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:a.link=o.string();break;case 4:a.name=o.string();break;case 5:a.length=o.uint32();break;case 6:a.playable=o.bool();break;case 7:a.discNumber=o.uint32();break;case 8:a.trackNumber=o.uint32();break;case 9:a.isExplicit=o.bool();break;case 10:a.previewId=o.string();break;case 11:a.isLocal=o.bool();break;case 12:a.playableLocalTrack=o.bool();break;case 13:a.hasLyrics=o.bool();break;case 14:a.isPremiumOnly=o.bool();break;case 15:a.locallyPlayable=o.bool();break;case 16:a.playableTrackLink=o.string();break;case 17:a.popularity=o.uint32();break;case 18:a.is19PlusOnly=o.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:a.extension.push(s.Extension.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({album:l(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>t.TrackArtistMetadata.fromJSON(e))):[],link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",length:l(e.length)?Number(e.length):0,playable:!!l(e.playable)&&Boolean(e.playable),discNumber:l(e.discNumber)?Number(e.discNumber):0,trackNumber:l(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!l(e.isExplicit)&&Boolean(e.isExplicit),previewId:l(e.previewId)?String(e.previewId):"",isLocal:!!l(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!l(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!l(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!l(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!l(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:l(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:l(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!l(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=Math.round(e.discNumber)),void 0!==e.trackNumber&&(n.trackNumber=Math.round(e.trackNumber)),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=Math.round(e.popularity)),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],e.extension?n.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):n.extension=[],n},fromPartial(e){const n={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[]};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},83664:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(29683);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=r.default.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.timeLeft=n.uint32();break;case 2:i.isPlayable=n.bool();break;case 3:i.isPlayed=n.bool();break;case 4:i.lastPlayedAt=n.uint32();break;case 5:i.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({timeLeft:s(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!s(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:s(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:s(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},29683:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"NO_RESTRICTION":return a.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return a.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return a.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return a.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return a.NOT_AVAILABLE_OFFLINE;default:return a.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.NO_RESTRICTION:return"NO_RESTRICTION";case a.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case a.AGE_RESTRICTED:return"AGE_RESTRICTED";case a.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case a.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},9589:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayState=t.showPlayState_LabelToJSON=t.showPlayState_LabelFromJSON=t.ShowPlayState_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(29683);var s;function l(e){switch(e){case 0:case"UNKNOWN_LABEL":return s.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return s.NOT_STARTED;case 2:case"IN_PROGRESS":return s.IN_PROGRESS;case 3:case"COMPLETED":return s.COMPLETED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case s.NOT_STARTED:return"NOT_STARTED";case s.IN_PROGRESS:return"IN_PROGRESS";case s.COMPLETED:return"COMPLETED";default:return"UNKNOWN"}}function u(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.ShowPlayState_Label||(t.ShowPlayState_Label={})),t.showPlayState_LabelFromJSON=l,t.showPlayState_LabelToJSON=c,t.ShowPlayState={encode:(e,t=r.default.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),"0"!==e.playedTime&&t.uint32(16).uint64(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.latestPlayedEpisodeLink=n.string();break;case 2:i.playedTime=n.uint64().toString();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.int32();break;case 5:i.label=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:u(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:u(e.playedTime)?String(e.playedTime):"0",isPlayable:!!u(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:u(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0,label:u(e.label)?l(e.label):0}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),void 0!==e.label&&(t.label=c(e.label)),t},fromPartial(e){const t={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??"0",t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},1772:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(29683);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackPlayState={encode:(e,t=r.default.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isPlayable:!1,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isPlayable=n.bool();break;case 2:i.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:s(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},71072:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncDecorationPolicy=t.AlbumCollectionDecorationPolicy=t.AlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.copyrights=n.bool();break;case 4:i.covers=n.bool();break;case 5:i.year=n.bool();break;case 6:i.numDiscs=n.bool();break;case 7:i.numTracks=n.bool();break;case 8:i.playability=n.bool();break;case 9:i.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),covers:!!a(e.covers)&&Boolean(e.covers),year:!!a(e.year)&&Boolean(e.year),numDiscs:!!a(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!a(e.numTracks)&&Boolean(e.numTracks),playability:!!a(e.playability)&&Boolean(e.playability),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.bool();break;case 2:i.numTracksInCollection=n.bool();break;case 3:i.complete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:!!a(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!a(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!a(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({inferredOffline:!!a(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},39974:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncDecorationPolicy=t.ArtistCollectionDecorationPolicy=t.ArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.isVariousArtists=n.bool();break;case 4:i.portraits=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),isVariousArtists:!!a(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!a(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.bool();break;case 2:i.isFollowed=n.bool();break;case 3:i.numTracksInCollection=n.bool();break;case 4:i.numAlbumsInCollection=n.bool();break;case 5:i.isBanned=n.bool();break;case 6:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:!!a(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!a(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!a(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!a(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({inferredOffline:!!a(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},17653:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(61286);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.length=n.bool();break;case 3:i.name=n.bool();break;case 4:i.manifestId=n.bool();break;case 5:i.previewId=n.bool();break;case 6:i.previewManifestId=n.bool();break;case 7:i.description=n.bool();break;case 8:i.publishDate=n.bool();break;case 9:i.covers=n.bool();break;case 10:i.freezeFrames=n.bool();break;case 11:i.language=n.bool();break;case 12:i.available=n.bool();break;case 13:i.mediaTypeEnum=n.bool();break;case 14:i.number=n.bool();break;case 15:i.backgroundable=n.bool();break;case 16:i.isExplicit=n.bool();break;case 17:i.type=n.bool();break;case 18:i.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extension.push(n.int32())}else i.extension.push(n.int32());break;case 22:i.is19PlusOnly=n.bool();break;case 23:i.isBookChapter=n.bool();break;case 24:i.isPodcastShort=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!s(e.link)&&Boolean(e.link),length:!!s(e.length)&&Boolean(e.length),name:!!s(e.name)&&Boolean(e.name),manifestId:!!s(e.manifestId)&&Boolean(e.manifestId),previewId:!!s(e.previewId)&&Boolean(e.previewId),previewManifestId:!!s(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!s(e.description)&&Boolean(e.description),publishDate:!!s(e.publishDate)&&Boolean(e.publishDate),covers:!!s(e.covers)&&Boolean(e.covers),freezeFrames:!!s(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!s(e.language)&&Boolean(e.language),available:!!s(e.available)&&Boolean(e.available),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!s(e.number)&&Boolean(e.number),backgroundable:!!s(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),type:!!s(e.type)&&Boolean(e.type),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!s(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!s(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isInListenLater=n.bool();break;case 3:i.isNew=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isFollowingShow:!!s(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!s(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!s(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.timeLeft=n.bool();break;case 2:i.isPlayed=n.bool();break;case 3:i.playable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({timeLeft:!!s(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!s(e.isPlayed)&&Boolean(e.isPlayed),playable:!!s(e.playable)&&Boolean(e.playable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!s(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},61473:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(61286);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.description=n.bool();break;case 4:i.popularity=n.bool();break;case 5:i.publisher=n.bool();break;case 6:i.language=n.bool();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=n.bool();break;case 9:i.numEpisodes=n.bool();break;case 10:i.consumptionOrder=n.bool();break;case 11:i.mediaTypeEnum=n.bool();break;case 12:i.copyrights=n.bool();break;case 13:i.trailerUri=n.bool();break;case 14:i.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extension.push(n.int32())}else i.extension.push(n.int32());break;case 17:i.isBook=n.bool();break;case 18:i.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),description:!!s(e.description)&&Boolean(e.description),popularity:!!s(e.popularity)&&Boolean(e.popularity),publisher:!!s(e.publisher)&&Boolean(e.publisher),language:!!s(e.language)&&Boolean(e.language),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),covers:!!s(e.covers)&&Boolean(e.covers),numEpisodes:!!s(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!s(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!s(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!s(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],isBook:!!s(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!s(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.latestPlayedEpisodeLink=n.bool();break;case 2:i.playedTime=n.bool();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.label=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:!!s(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!s(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!s(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isInCollection:!!s(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82817:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncDecorationPolicy=t.TrackCollectionDecorationPolicy=t.TrackPlayedStateDecorationPolicy=t.TrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(61286);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.hasLyrics=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.length=n.bool();break;case 5:i.playable=n.bool();break;case 6:i.isAvailableInMetadataCatalogue=n.bool();break;case 7:i.locallyPlayable=n.bool();break;case 8:i.playableLocalTrack=n.bool();break;case 9:i.discNumber=n.bool();break;case 10:i.trackNumber=n.bool();break;case 11:i.isExplicit=n.bool();break;case 12:i.previewId=n.bool();break;case 13:i.isLocal=n.bool();break;case 14:i.isPremiumOnly=n.bool();break;case 15:i.playableTrackLink=n.bool();break;case 16:i.popularity=n.bool();break;case 17:i.is19PlusOnly=n.bool();break;case 18:i.trackDescriptors=n.bool();break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extension.push(n.int32())}else i.extension.push(n.int32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({hasLyrics:!!s(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),length:!!s(e.length)&&Boolean(e.length),playable:!!s(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!s(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!s(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!s(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!s(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!s(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!s(e.previewId)&&Boolean(e.previewId),isLocal:!!s(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!s(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!s(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!s(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[]}),toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],t},fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[]};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playable=n.bool();break;case 2:i.isCurrentlyPlayable=n.bool();break;case 3:i.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({playable:!!s(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!s(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isInCollection:!!s(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!s(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!s(e.isBanned)&&Boolean(e.isBanned),canBan:!!s(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offlineState=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offlineState:!!s(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},62908:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Status=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.Status={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.code=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({code:a(e.code)?Number(e.code):0,reason:a(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},3103:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumSyncState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.string();break;case 2:i.inferredOffline=n.string();break;case 3:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:a(e.offline)?String(e.offline):"",inferredOffline:a(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13922:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistSyncState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.string();break;case 2:i.inferredOffline=n.string();break;case 3:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:a(e.offline)?String(e.offline):"",inferredOffline:a(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},26909:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=r.default.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offlineState=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offlineState:a(e.offlineState)?String(e.offlineState):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},8151:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackSyncState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:a(e.offline)?String(e.offline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},90354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectServiceClient=void 0;const o=n(33892),i=n(95866);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}state(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="State",a=i.StateRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.StateResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}startDiscovery(e){const t="spotify.connect.esperanto.proto.ConnectService",n="StartDiscovery",r=i.StartDiscoveryRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.StartDiscoveryResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}forceDiscover(e){const t="spotify.connect.esperanto.proto.ConnectService",n="ForceDiscover",r=i.ForceDiscoverRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.ForceDiscoverResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}performDiscovery(e){const t="spotify.connect.esperanto.proto.ConnectService",n="PerformDiscovery",r=i.PerformDiscoveryRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PerformDiscoveryResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}pickerOpened(e){const t="spotify.connect.esperanto.proto.ConnectService",n="PickerOpened",r=i.PickerOpenedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PickerOpenedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}logout(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Logout",r=i.LogoutRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.LogoutResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}transfer(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Transfer",r=i.TransferRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.TransferResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}cancelTransfer(e){const t="spotify.connect.esperanto.proto.ConnectService",n="CancelTransfer",r=i.CancelTransferRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CancelTransferResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}pull(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Pull",r=i.PullRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PullResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volumeUp(e){const t="spotify.connect.esperanto.proto.ConnectService",n="VolumeUp",r=i.VolumeUpRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.VolumeUpResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volumeDown(e){const t="spotify.connect.esperanto.proto.ConnectService",n="VolumeDown",r=i.VolumeDownRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.VolumeDownResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volumeSet(e){const t="spotify.connect.esperanto.proto.ConnectService",n="VolumeSet",r=i.VolumeSetRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.VolumeSetResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volume(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="Volume",a=i.VolumeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.VolumeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}localVolume(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="LocalVolume",a=i.LocalVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.LocalVolumeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}setDebugLevel(e){const t="spotify.connect.esperanto.proto.ConnectService",n="SetDebugLevel",r=i.SetDebugLevelRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.SetDebugLevelResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getDebugLevel(e){const t="spotify.connect.esperanto.proto.ConnectService",n="GetDebugLevel",r=i.GetDebugLevelRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetDebugLevelResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}becomeInactive(e){const t="spotify.connect.esperanto.proto.ConnectService",n="BecomeInactive",r=i.BecomeInactiveRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.BecomeInactiveResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}rename(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Rename",r=i.RenameRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.RenameResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}onEnablingLocalPlayback(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="OnEnablingLocalPlayback",a=i.OnEnablingLocalPlaybackRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.OnEnablingLocalPlaybackResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}setPreferredZeroconf(e){const t="spotify.connect.esperanto.proto.ConnectService",n="SetPreferredZeroconf",r=i.SetPreferredZeroconfRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.SetPreferredZeroconfResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.connect.esperanto.proto.ConnectService";static DECODERS={State:{request:i.StateRequest.decode,response:i.StateResponse.decode},StartDiscovery:{request:i.StartDiscoveryRequest.decode,response:i.StartDiscoveryResponse.decode},ForceDiscover:{request:i.ForceDiscoverRequest.decode,response:i.ForceDiscoverResponse.decode},PerformDiscovery:{request:i.PerformDiscoveryRequest.decode,response:i.PerformDiscoveryResponse.decode},PickerOpened:{request:i.PickerOpenedRequest.decode,response:i.PickerOpenedResponse.decode},Logout:{request:i.LogoutRequest.decode,response:i.LogoutResponse.decode},Transfer:{request:i.TransferRequest.decode,response:i.TransferResponse.decode},CancelTransfer:{request:i.CancelTransferRequest.decode,response:i.CancelTransferResponse.decode},Pull:{request:i.PullRequest.decode,response:i.PullResponse.decode},VolumeUp:{request:i.VolumeUpRequest.decode,response:i.VolumeUpResponse.decode},VolumeDown:{request:i.VolumeDownRequest.decode,response:i.VolumeDownResponse.decode},VolumeSet:{request:i.VolumeSetRequest.decode,response:i.VolumeSetResponse.decode},Volume:{request:i.VolumeRequest.decode,response:i.VolumeResponse.decode},LocalVolume:{request:i.LocalVolumeRequest.decode,response:i.LocalVolumeResponse.decode},SetDebugLevel:{request:i.SetDebugLevelRequest.decode,response:i.SetDebugLevelResponse.decode},GetDebugLevel:{request:i.GetDebugLevelRequest.decode,response:i.GetDebugLevelResponse.decode},BecomeInactive:{request:i.BecomeInactiveRequest.decode,response:i.BecomeInactiveResponse.decode},Rename:{request:i.RenameRequest.decode,response:i.RenameResponse.decode},OnEnablingLocalPlayback:{request:i.OnEnablingLocalPlaybackRequest.decode,response:i.OnEnablingLocalPlaybackResponse.decode},SetPreferredZeroconf:{request:i.SetPreferredZeroconfRequest.decode,response:i.SetPreferredZeroconfResponse.decode}}}t.ConnectServiceClient=r},43364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnboardingServiceClient=void 0;const o=n(33892),i=n(95866);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}onOnboarding(e,t){const n="spotify.connect.esperanto.proto.OnboardingService",r="OnOnboarding",a=i.OnOnboardingRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.OnOnboardingResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}reportFlow(e){const t="spotify.connect.esperanto.proto.OnboardingService",n="ReportFlow",r=i.ReportFlowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.ReportFlowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}clearFlow(e){const t="spotify.connect.esperanto.proto.OnboardingService",n="ClearFlow",r=i.ClearFlowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.ClearFlowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}triggerFlow(e){const t="spotify.connect.esperanto.proto.OnboardingService",n="TriggerFlow",r=i.TriggerFlowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.TriggerFlowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.connect.esperanto.proto.OnboardingService";static DECODERS={OnOnboarding:{request:i.OnOnboardingRequest.decode,response:i.OnOnboardingResponse.decode},ReportFlow:{request:i.ReportFlowRequest.decode,response:i.ReportFlowResponse.decode},ClearFlow:{request:i.ClearFlowRequest.decode,response:i.ClearFlowResponse.decode},TriggerFlow:{request:i.TriggerFlowRequest.decode,response:i.TriggerFlowResponse.decode}}}t.OnboardingServiceClient=r},49264:(e,t,n)=>{"use strict";t.M$=t.iu=t.Qb=t.bU=void 0;var o=n(95866);Object.defineProperty(t,"bU",{enumerable:!0,get:function(){return o.StartDiscoveryRequest}}),Object.defineProperty(t,"Qb",{enumerable:!0,get:function(){return o.ForceDiscoverRequest}}),Object.defineProperty(t,"iu",{enumerable:!0,get:function(){return o.LogoutRequest}});var i=n(90354);Object.defineProperty(t,"M$",{enumerable:!0,get:function(){return i.ConnectServiceClient}});var r=n(43364)},95866:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OnEnablingLocalPlaybackResponse=t.OnEnablingLocalPlaybackRequest=t.RenameResponse=t.RenameRequest=t.BecomeInactiveResponse=t.BecomeInactiveRequest=t.GetDebugLevelResponse=t.GetDebugLevelRequest=t.SetDebugLevelResponse=t.SetDebugLevelRequest=t.StateResponse_Device_Incarnation=t.StateResponse_Device_Hifi=t.StateResponse_Device=t.StateResponse=t.StateRequest=t.VolumeResponse=t.VolumeRequest=t.VolumeSetResponse=t.VolumeSetRequest=t.VolumeDownResponse=t.VolumeDownRequest=t.VolumeUpResponse=t.VolumeUpRequest=t.PullResponse=t.PullRequest=t.CancelTransferResponse=t.CancelTransferRequest=t.TransferResponse=t.TransferRequest=t.LogoutResponse=t.LogoutRequest=t.PickerOpenedResponse=t.PickerOpenedRequest=t.PerformDiscoveryResponse=t.PerformDiscoveryRequest=t.StartDiscoveryResponse=t.StartDiscoveryRequest=t.ForceDiscoverResponse=t.ForceDiscoverRequest=t.LoggingParams=t.localVolumeResponse_ReasonToJSON=t.localVolumeResponse_ReasonFromJSON=t.LocalVolumeResponse_Reason=t.loginTypeToJSON=t.loginTypeFromJSON=t.LoginType=t.statusToJSON=t.statusFromJSON=t.Status=t.protobufPackage=void 0,t.TriggerFlowResponse=t.TriggerFlowRequest=t.ClearFlowResponse=t.ClearFlowRequest=t.ReportFlowResponse=t.ReportFlowRequest=t.OnOnboardingResponse=t.OnOnboardingRequest=t.LocalVolumeResponse=t.LocalVolumeRequest=t.SetPreferredZeroconfResponse=t.SetPreferredZeroconfRequest=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l;function c(e){switch(e){case 0:case"OK":return a.OK;case 1:case"NOT_FOUND":return a.NOT_FOUND;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.OK:return"OK";case a.NOT_FOUND:return"NOT_FOUND";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"CONNECT":return s.CONNECT;case 1:case"CAST":return s.CAST;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.CONNECT:return"CONNECT";case s.CAST:return"CAST";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"USER":return l.USER;case 1:case"SYSTEM":return l.SYSTEM;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.USER:return"USER";case l.SYSTEM:return"SYSTEM";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){return e.toString()}function g(e){return null!=e}t.protobufPackage="spotify.connect.esperanto.proto",function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Status||(t.Status={})),t.statusFromJSON=c,t.statusToJSON=u,function(e){e[e.CONNECT=0]="CONNECT",e[e.CAST=1]="CAST",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.LoginType||(t.LoginType={})),t.loginTypeFromJSON=d,t.loginTypeToJSON=p,function(e){e[e.USER=0]="USER",e[e.SYSTEM=1]="SYSTEM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.LocalVolumeResponse_Reason||(t.LocalVolumeResponse_Reason={})),t.localVolumeResponse_ReasonFromJSON=f,t.localVolumeResponse_ReasonToJSON=h,t.LoggingParams={encode(e,t=r.default.Writer.create()){void 0!==e.commandInitiatedTime&&t.uint32(8).int64(e.commandInitiatedTime),void 0!==e.commandReceivedTime&&t.uint32(16).int64(e.commandReceivedTime);for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.commandInitiatedTime=m(n.int64());break;case 2:i.commandReceivedTime=m(n.int64());break;case 3:i.pageInstanceIds.push(n.string());break;case 4:i.interactionIds.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({commandInitiatedTime:g(e.commandInitiatedTime)?String(e.commandInitiatedTime):void 0,commandReceivedTime:g(e.commandReceivedTime)?String(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime),e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],t},fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[]};return t.commandInitiatedTime=e.commandInitiatedTime??void 0,t.commandReceivedTime=e.commandReceivedTime??void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t}},t.ForceDiscoverRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.ForceDiscoverResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.StartDiscoveryRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.StartDiscoveryResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.PerformDiscoveryRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.PerformDiscoveryResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.PickerOpenedRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.PickerOpenedResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.LogoutRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.connectDeviceIdentifier&&t.uint32(10).string(e.connectDeviceIdentifier),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={connectDeviceIdentifier:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.connectDeviceIdentifier=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({connectDeviceIdentifier:g(e.connectDeviceIdentifier)?String(e.connectDeviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.connectDeviceIdentifier&&(t.connectDeviceIdentifier=e.connectDeviceIdentifier),t},fromPartial(e){const t={connectDeviceIdentifier:""};return t.connectDeviceIdentifier=e.connectDeviceIdentifier??"",t}},t.LogoutResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.TransferRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),""!==e.connectDeviceIdentifier&&n.uint32(18).string(e.connectDeviceIdentifier),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0,connectDeviceIdentifier:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.loggingParams=t.LoggingParams.decode(o,o.uint32());break;case 2:a.connectDeviceIdentifier=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({loggingParams:g(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0,connectDeviceIdentifier:g(e.connectDeviceIdentifier)?String(e.connectDeviceIdentifier):""}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.connectDeviceIdentifier&&(n.connectDeviceIdentifier=e.connectDeviceIdentifier),n},fromPartial(e){const n={loggingParams:void 0,connectDeviceIdentifier:""};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n.connectDeviceIdentifier=e.connectDeviceIdentifier??"",n}},t.TransferResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.CancelTransferRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.CancelTransferResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.PullRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.loggingParams=t.LoggingParams.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({loggingParams:g(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){const n={loggingParams:void 0};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.PullResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeUpRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.loggingParams=t.LoggingParams.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({loggingParams:g(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){const n={loggingParams:void 0};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.VolumeUpResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeDownRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.loggingParams=t.LoggingParams.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({loggingParams:g(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){const n={loggingParams:void 0};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.VolumeDownResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeSetRequest={encode:(e,n=r.default.Writer.create())=>(0!==e.volume&&n.uint32(8).int32(e.volume),void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={volume:0,loggingParams:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.volume=o.int32();break;case 2:a.loggingParams=t.LoggingParams.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({volume:g(e.volume)?Number(e.volume):0,loggingParams:g(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.volume&&(n.volume=Math.round(e.volume)),void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){const n={volume:0,loggingParams:void 0};return n.volume=e.volume??0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.VolumeSetResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.VolumeResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.volume&&t.uint32(8).int32(e.volume),0!==e.status&&t.uint32(16).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={volume:void 0,status:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.volume=n.int32();break;case 2:i.status=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({volume:g(e.volume)?Number(e.volume):void 0,status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.volume&&(t.volume=Math.round(e.volume)),void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={volume:void 0,status:0};return t.volume=e.volume??void 0,t.status=e.status??0,t}},t.StateRequest={encode:(e,t=r.default.Writer.create())=>(!0===e.showOfflineDevicesInCore&&t.uint32(8).bool(e.showOfflineDevicesInCore),!0===e.showOfflineAmazonDevicesAsOnline&&t.uint32(16).bool(e.showOfflineAmazonDevicesAsOnline),!0===e.includeLocalDevice&&t.uint32(24).bool(e.includeLocalDevice),!0===e.excludeNonLocalDevices&&t.uint32(32).bool(e.excludeNonLocalDevices),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showOfflineDevicesInCore:!1,showOfflineAmazonDevicesAsOnline:!1,includeLocalDevice:!1,excludeNonLocalDevices:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.showOfflineDevicesInCore=n.bool();break;case 2:i.showOfflineAmazonDevicesAsOnline=n.bool();break;case 3:i.includeLocalDevice=n.bool();break;case 4:i.excludeNonLocalDevices=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showOfflineDevicesInCore:!!g(e.showOfflineDevicesInCore)&&Boolean(e.showOfflineDevicesInCore),showOfflineAmazonDevicesAsOnline:!!g(e.showOfflineAmazonDevicesAsOnline)&&Boolean(e.showOfflineAmazonDevicesAsOnline),includeLocalDevice:!!g(e.includeLocalDevice)&&Boolean(e.includeLocalDevice),excludeNonLocalDevices:!!g(e.excludeNonLocalDevices)&&Boolean(e.excludeNonLocalDevices)}),toJSON(e){const t={};return void 0!==e.showOfflineDevicesInCore&&(t.showOfflineDevicesInCore=e.showOfflineDevicesInCore),void 0!==e.showOfflineAmazonDevicesAsOnline&&(t.showOfflineAmazonDevicesAsOnline=e.showOfflineAmazonDevicesAsOnline),void 0!==e.includeLocalDevice&&(t.includeLocalDevice=e.includeLocalDevice),void 0!==e.excludeNonLocalDevices&&(t.excludeNonLocalDevices=e.excludeNonLocalDevices),t},fromPartial(e){const t={showOfflineDevicesInCore:!1,showOfflineAmazonDevicesAsOnline:!1,includeLocalDevice:!1,excludeNonLocalDevices:!1};return t.showOfflineDevicesInCore=e.showOfflineDevicesInCore??!1,t.showOfflineAmazonDevicesAsOnline=e.showOfflineAmazonDevicesAsOnline??!1,t.includeLocalDevice=e.includeLocalDevice??!1,t.excludeNonLocalDevices=e.excludeNonLocalDevices??!1,t}},t.StateResponse={encode(e,n=r.default.Writer.create()){!0===e.isRunning&&n.uint32(8).bool(e.isRunning),!0===e.isConnected&&n.uint32(16).bool(e.isConnected),""!==e.localName&&n.uint32(26).string(e.localName),!0===e.shouldUseLocalPlayback&&n.uint32(32).bool(e.shouldUseLocalPlayback);for(const o of e.devices)t.StateResponse_Device.encode(o,n.uint32(42).fork()).ldelim();return!0===e.isActive&&n.uint32(48).bool(e.isActive),!0===e.isActiveOnSameDevice&&n.uint32(56).bool(e.isActiveOnSameDevice),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={isRunning:!1,isConnected:!1,localName:"",shouldUseLocalPlayback:!1,devices:[],isActive:!1,isActiveOnSameDevice:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.isRunning=o.bool();break;case 2:a.isConnected=o.bool();break;case 3:a.localName=o.string();break;case 4:a.shouldUseLocalPlayback=o.bool();break;case 5:a.devices.push(t.StateResponse_Device.decode(o,o.uint32()));break;case 6:a.isActive=o.bool();break;case 7:a.isActiveOnSameDevice=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({isRunning:!!g(e.isRunning)&&Boolean(e.isRunning),isConnected:!!g(e.isConnected)&&Boolean(e.isConnected),localName:g(e.localName)?String(e.localName):"",shouldUseLocalPlayback:!!g(e.shouldUseLocalPlayback)&&Boolean(e.shouldUseLocalPlayback),devices:Array.isArray(e?.devices)?e.devices.map((e=>t.StateResponse_Device.fromJSON(e))):[],isActive:!!g(e.isActive)&&Boolean(e.isActive),isActiveOnSameDevice:!!g(e.isActiveOnSameDevice)&&Boolean(e.isActiveOnSameDevice)}),toJSON(e){const n={};return void 0!==e.isRunning&&(n.isRunning=e.isRunning),void 0!==e.isConnected&&(n.isConnected=e.isConnected),void 0!==e.localName&&(n.localName=e.localName),void 0!==e.shouldUseLocalPlayback&&(n.shouldUseLocalPlayback=e.shouldUseLocalPlayback),e.devices?n.devices=e.devices.map((e=>e?t.StateResponse_Device.toJSON(e):void 0)):n.devices=[],void 0!==e.isActive&&(n.isActive=e.isActive),void 0!==e.isActiveOnSameDevice&&(n.isActiveOnSameDevice=e.isActiveOnSameDevice),n},fromPartial(e){const n={isRunning:!1,isConnected:!1,localName:"",shouldUseLocalPlayback:!1,devices:[],isActive:!1,isActiveOnSameDevice:!1};return n.isRunning=e.isRunning??!1,n.isConnected=e.isConnected??!1,n.localName=e.localName??"",n.shouldUseLocalPlayback=e.shouldUseLocalPlayback??!1,n.devices=e.devices?.map((e=>t.StateResponse_Device.fromPartial(e)))||[],n.isActive=e.isActive??!1,n.isActiveOnSameDevice=e.isActiveOnSameDevice??!1,n}},t.StateResponse_Device={encode(e,n=r.default.Writer.create()){!0===e.isSelf&&n.uint32(8).bool(e.isSelf),""!==e.localIdentifier&&n.uint32(18).string(e.localIdentifier),""!==e.deduplicationId&&n.uint32(26).string(e.deduplicationId),""!==e.connectStateIdentifier&&n.uint32(34).string(e.connectStateIdentifier),""!==e.name&&n.uint32(42).string(e.name),""!==e.type&&n.uint32(50).string(e.type),""!==e.state&&n.uint32(58).string(e.state),!0===e.isDisabled&&n.uint32(64).bool(e.isDisabled),!0===e.isActive&&n.uint32(72).bool(e.isActive),!0===e.isBeingActivated&&n.uint32(80).bool(e.isBeingActivated),!0===e.isZeroconf&&n.uint32(88).bool(e.isZeroconf),!0===e.isWebapp&&n.uint32(96).bool(e.isWebapp),!0===e.isConnect&&n.uint32(104).bool(e.isConnect),!0===e.isLocal&&n.uint32(112).bool(e.isLocal),!0===e.isGroup&&n.uint32(120).bool(e.isGroup),!0===e.isOffline&&n.uint32(128).bool(e.isOffline),!0===e.isSocialConnect&&n.uint32(136).bool(e.isSocialConnect),"0"!==e.creationTimeMs&&n.uint32(144).uint64(e.creationTimeMs),0!==e.volume&&n.uint32(152).uint32(e.volume),void 0!==e.hifi&&t.StateResponse_Device_Hifi.encode(e.hifi,n.uint32(162).fork()).ldelim(),""!==e.license&&n.uint32(170).string(e.license),!0===e.supportsOnDemand&&n.uint32(176).bool(e.supportsOnDemand),!0===e.supportsVolume&&n.uint32(184).bool(e.supportsVolume),!0===e.supportsLogout&&n.uint32(192).bool(e.supportsLogout),!0===e.supportsRename&&n.uint32(200).bool(e.supportsRename),!0===e.supportsAlarm&&n.uint32(208).bool(e.supportsAlarm),!0===e.isVoiceEnabled&&n.uint32(216).bool(e.isVoiceEnabled),!0===e.isNewlyDiscovered&&n.uint32(224).bool(e.isNewlyDiscovered);for(const t of e.supportedMediaTypes)n.uint32(234).string(t);""!==e.brandDisplayName&&n.uint32(242).string(e.brandDisplayName),""!==e.modelDisplayName&&n.uint32(250).string(e.modelDisplayName),void 0!==e.volumeSteps&&n.uint32(256).uint32(e.volumeSteps),void 0!==e.capabilities&&n.uint32(266).string(e.capabilities);for(const o of e.incarnations)t.StateResponse_Device_Incarnation.encode(o,n.uint32(274).fork()).ldelim();return void 0!==e.aliasId&&n.uint32(280).uint32(e.aliasId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={isSelf:!1,localIdentifier:"",deduplicationId:"",connectStateIdentifier:"",name:"",type:"",state:"",isDisabled:!1,isActive:!1,isBeingActivated:!1,isZeroconf:!1,isWebapp:!1,isConnect:!1,isLocal:!1,isGroup:!1,isOffline:!1,isSocialConnect:!1,creationTimeMs:"0",volume:0,hifi:void 0,license:"",supportsOnDemand:!1,supportsVolume:!1,supportsLogout:!1,supportsRename:!1,supportsAlarm:!1,isVoiceEnabled:!1,isNewlyDiscovered:!1,supportedMediaTypes:[],brandDisplayName:"",modelDisplayName:"",volumeSteps:void 0,capabilities:void 0,incarnations:[],aliasId:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.isSelf=o.bool();break;case 2:a.localIdentifier=o.string();break;case 3:a.deduplicationId=o.string();break;case 4:a.connectStateIdentifier=o.string();break;case 5:a.name=o.string();break;case 6:a.type=o.string();break;case 7:a.state=o.string();break;case 8:a.isDisabled=o.bool();break;case 9:a.isActive=o.bool();break;case 10:a.isBeingActivated=o.bool();break;case 11:a.isZeroconf=o.bool();break;case 12:a.isWebapp=o.bool();break;case 13:a.isConnect=o.bool();break;case 14:a.isLocal=o.bool();break;case 15:a.isGroup=o.bool();break;case 16:a.isOffline=o.bool();break;case 17:a.isSocialConnect=o.bool();break;case 18:a.creationTimeMs=m(o.uint64());break;case 19:a.volume=o.uint32();break;case 20:a.hifi=t.StateResponse_Device_Hifi.decode(o,o.uint32());break;case 21:a.license=o.string();break;case 22:a.supportsOnDemand=o.bool();break;case 23:a.supportsVolume=o.bool();break;case 24:a.supportsLogout=o.bool();break;case 25:a.supportsRename=o.bool();break;case 26:a.supportsAlarm=o.bool();break;case 27:a.isVoiceEnabled=o.bool();break;case 28:a.isNewlyDiscovered=o.bool();break;case 29:a.supportedMediaTypes.push(o.string());break;case 30:a.brandDisplayName=o.string();break;case 31:a.modelDisplayName=o.string();break;case 32:a.volumeSteps=o.uint32();break;case 33:a.capabilities=o.string();break;case 34:a.incarnations.push(t.StateResponse_Device_Incarnation.decode(o,o.uint32()));break;case 35:a.aliasId=o.uint32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({isSelf:!!g(e.isSelf)&&Boolean(e.isSelf),localIdentifier:g(e.localIdentifier)?String(e.localIdentifier):"",deduplicationId:g(e.deduplicationId)?String(e.deduplicationId):"",connectStateIdentifier:g(e.connectStateIdentifier)?String(e.connectStateIdentifier):"",name:g(e.name)?String(e.name):"",type:g(e.type)?String(e.type):"",state:g(e.state)?String(e.state):"",isDisabled:!!g(e.isDisabled)&&Boolean(e.isDisabled),isActive:!!g(e.isActive)&&Boolean(e.isActive),isBeingActivated:!!g(e.isBeingActivated)&&Boolean(e.isBeingActivated),isZeroconf:!!g(e.isZeroconf)&&Boolean(e.isZeroconf),isWebapp:!!g(e.isWebapp)&&Boolean(e.isWebapp),isConnect:!!g(e.isConnect)&&Boolean(e.isConnect),isLocal:!!g(e.isLocal)&&Boolean(e.isLocal),isGroup:!!g(e.isGroup)&&Boolean(e.isGroup),isOffline:!!g(e.isOffline)&&Boolean(e.isOffline),isSocialConnect:!!g(e.isSocialConnect)&&Boolean(e.isSocialConnect),creationTimeMs:g(e.creationTimeMs)?String(e.creationTimeMs):"0",volume:g(e.volume)?Number(e.volume):0,hifi:g(e.hifi)?t.StateResponse_Device_Hifi.fromJSON(e.hifi):void 0,license:g(e.license)?String(e.license):"",supportsOnDemand:!!g(e.supportsOnDemand)&&Boolean(e.supportsOnDemand),supportsVolume:!!g(e.supportsVolume)&&Boolean(e.supportsVolume),supportsLogout:!!g(e.supportsLogout)&&Boolean(e.supportsLogout),supportsRename:!!g(e.supportsRename)&&Boolean(e.supportsRename),supportsAlarm:!!g(e.supportsAlarm)&&Boolean(e.supportsAlarm),isVoiceEnabled:!!g(e.isVoiceEnabled)&&Boolean(e.isVoiceEnabled),isNewlyDiscovered:!!g(e.isNewlyDiscovered)&&Boolean(e.isNewlyDiscovered),supportedMediaTypes:Array.isArray(e?.supportedMediaTypes)?e.supportedMediaTypes.map((e=>String(e))):[],brandDisplayName:g(e.brandDisplayName)?String(e.brandDisplayName):"",modelDisplayName:g(e.modelDisplayName)?String(e.modelDisplayName):"",volumeSteps:g(e.volumeSteps)?Number(e.volumeSteps):void 0,capabilities:g(e.capabilities)?String(e.capabilities):void 0,incarnations:Array.isArray(e?.incarnations)?e.incarnations.map((e=>t.StateResponse_Device_Incarnation.fromJSON(e))):[],aliasId:g(e.aliasId)?Number(e.aliasId):void 0}),toJSON(e){const n={};return void 0!==e.isSelf&&(n.isSelf=e.isSelf),void 0!==e.localIdentifier&&(n.localIdentifier=e.localIdentifier),void 0!==e.deduplicationId&&(n.deduplicationId=e.deduplicationId),void 0!==e.connectStateIdentifier&&(n.connectStateIdentifier=e.connectStateIdentifier),void 0!==e.name&&(n.name=e.name),void 0!==e.type&&(n.type=e.type),void 0!==e.state&&(n.state=e.state),void 0!==e.isDisabled&&(n.isDisabled=e.isDisabled),void 0!==e.isActive&&(n.isActive=e.isActive),void 0!==e.isBeingActivated&&(n.isBeingActivated=e.isBeingActivated),void 0!==e.isZeroconf&&(n.isZeroconf=e.isZeroconf),void 0!==e.isWebapp&&(n.isWebapp=e.isWebapp),void 0!==e.isConnect&&(n.isConnect=e.isConnect),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.isGroup&&(n.isGroup=e.isGroup),void 0!==e.isOffline&&(n.isOffline=e.isOffline),void 0!==e.isSocialConnect&&(n.isSocialConnect=e.isSocialConnect),void 0!==e.creationTimeMs&&(n.creationTimeMs=e.creationTimeMs),void 0!==e.volume&&(n.volume=Math.round(e.volume)),void 0!==e.hifi&&(n.hifi=e.hifi?t.StateResponse_Device_Hifi.toJSON(e.hifi):void 0),void 0!==e.license&&(n.license=e.license),void 0!==e.supportsOnDemand&&(n.supportsOnDemand=e.supportsOnDemand),void 0!==e.supportsVolume&&(n.supportsVolume=e.supportsVolume),void 0!==e.supportsLogout&&(n.supportsLogout=e.supportsLogout),void 0!==e.supportsRename&&(n.supportsRename=e.supportsRename),void 0!==e.supportsAlarm&&(n.supportsAlarm=e.supportsAlarm),void 0!==e.isVoiceEnabled&&(n.isVoiceEnabled=e.isVoiceEnabled),void 0!==e.isNewlyDiscovered&&(n.isNewlyDiscovered=e.isNewlyDiscovered),e.supportedMediaTypes?n.supportedMediaTypes=e.supportedMediaTypes.map((e=>e)):n.supportedMediaTypes=[],void 0!==e.brandDisplayName&&(n.brandDisplayName=e.brandDisplayName),void 0!==e.modelDisplayName&&(n.modelDisplayName=e.modelDisplayName),void 0!==e.volumeSteps&&(n.volumeSteps=Math.round(e.volumeSteps)),void 0!==e.capabilities&&(n.capabilities=e.capabilities),e.incarnations?n.incarnations=e.incarnations.map((e=>e?t.StateResponse_Device_Incarnation.toJSON(e):void 0)):n.incarnations=[],void 0!==e.aliasId&&(n.aliasId=Math.round(e.aliasId)),n},fromPartial(e){const n={isSelf:!1,localIdentifier:"",deduplicationId:"",connectStateIdentifier:"",name:"",type:"",state:"",isDisabled:!1,isActive:!1,isBeingActivated:!1,isZeroconf:!1,isWebapp:!1,isConnect:!1,isLocal:!1,isGroup:!1,isOffline:!1,isSocialConnect:!1,creationTimeMs:"0",volume:0,hifi:void 0,license:"",supportsOnDemand:!1,supportsVolume:!1,supportsLogout:!1,supportsRename:!1,supportsAlarm:!1,isVoiceEnabled:!1,isNewlyDiscovered:!1,supportedMediaTypes:[],brandDisplayName:"",modelDisplayName:"",volumeSteps:void 0,capabilities:void 0,incarnations:[],aliasId:void 0};return n.isSelf=e.isSelf??!1,n.localIdentifier=e.localIdentifier??"",n.deduplicationId=e.deduplicationId??"",n.connectStateIdentifier=e.connectStateIdentifier??"",n.name=e.name??"",n.type=e.type??"",n.state=e.state??"",n.isDisabled=e.isDisabled??!1,n.isActive=e.isActive??!1,n.isBeingActivated=e.isBeingActivated??!1,n.isZeroconf=e.isZeroconf??!1,n.isWebapp=e.isWebapp??!1,n.isConnect=e.isConnect??!1,n.isLocal=e.isLocal??!1,n.isGroup=e.isGroup??!1,n.isOffline=e.isOffline??!1,n.isSocialConnect=e.isSocialConnect??!1,n.creationTimeMs=e.creationTimeMs??"0",n.volume=e.volume??0,n.hifi=void 0!==e.hifi&&null!==e.hifi?t.StateResponse_Device_Hifi.fromPartial(e.hifi):void 0,n.license=e.license??"",n.supportsOnDemand=e.supportsOnDemand??!1,n.supportsVolume=e.supportsVolume??!1,n.supportsLogout=e.supportsLogout??!1,n.supportsRename=e.supportsRename??!1,n.supportsAlarm=e.supportsAlarm??!1,n.isVoiceEnabled=e.isVoiceEnabled??!1,n.isNewlyDiscovered=e.isNewlyDiscovered??!1,n.supportedMediaTypes=e.supportedMediaTypes?.map((e=>e))||[],n.brandDisplayName=e.brandDisplayName??"",n.modelDisplayName=e.modelDisplayName??"",n.volumeSteps=e.volumeSteps??void 0,n.capabilities=e.capabilities??void 0,n.incarnations=e.incarnations?.map((e=>t.StateResponse_Device_Incarnation.fromPartial(e)))||[],n.aliasId=e.aliasId??void 0,n}},t.StateResponse_Device_Hifi={encode:(e,t=r.default.Writer.create())=>(!0===e.fullySupported&&t.uint32(8).bool(e.fullySupported),!0===e.userEligible&&t.uint32(16).bool(e.userEligible),!0===e.deviceSupported&&t.uint32(24).bool(e.deviceSupported),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={fullySupported:!1,userEligible:!1,deviceSupported:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.fullySupported=n.bool();break;case 2:i.userEligible=n.bool();break;case 3:i.deviceSupported=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fullySupported:!!g(e.fullySupported)&&Boolean(e.fullySupported),userEligible:!!g(e.userEligible)&&Boolean(e.userEligible),deviceSupported:!!g(e.deviceSupported)&&Boolean(e.deviceSupported)}),toJSON(e){const t={};return void 0!==e.fullySupported&&(t.fullySupported=e.fullySupported),void 0!==e.userEligible&&(t.userEligible=e.userEligible),void 0!==e.deviceSupported&&(t.deviceSupported=e.deviceSupported),t},fromPartial(e){const t={fullySupported:!1,userEligible:!1,deviceSupported:!1};return t.fullySupported=e.fullySupported??!1,t.userEligible=e.userEligible??!1,t.deviceSupported=e.deviceSupported??!1,t}},t.StateResponse_Device_Incarnation={encode:(e,t=r.default.Writer.create())=>(0!==e.loginType&&t.uint32(8).int32(e.loginType),""!==e.identifier&&t.uint32(18).string(e.identifier),!0===e.preferred&&t.uint32(24).bool(e.preferred),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={loginType:0,identifier:"",preferred:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.loginType=n.int32();break;case 2:i.identifier=n.string();break;case 3:i.preferred=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({loginType:g(e.loginType)?d(e.loginType):0,identifier:g(e.identifier)?String(e.identifier):"",preferred:!!g(e.preferred)&&Boolean(e.preferred)}),toJSON(e){const t={};return void 0!==e.loginType&&(t.loginType=p(e.loginType)),void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.preferred&&(t.preferred=e.preferred),t},fromPartial(e){const t={loginType:0,identifier:"",preferred:!1};return t.loginType=e.loginType??0,t.identifier=e.identifier??"",t.preferred=e.preferred??!1,t}},t.SetDebugLevelRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.debugLevel&&t.uint32(8).int32(e.debugLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={debugLevel:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.debugLevel=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({debugLevel:g(e.debugLevel)?Number(e.debugLevel):0}),toJSON(e){const t={};return void 0!==e.debugLevel&&(t.debugLevel=Math.round(e.debugLevel)),t},fromPartial(e){const t={debugLevel:0};return t.debugLevel=e.debugLevel??0,t}},t.SetDebugLevelResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetDebugLevelRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetDebugLevelResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.debugLevel&&t.uint32(8).int32(e.debugLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={debugLevel:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.debugLevel=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({debugLevel:g(e.debugLevel)?Number(e.debugLevel):0}),toJSON(e){const t={};return void 0!==e.debugLevel&&(t.debugLevel=Math.round(e.debugLevel)),t},fromPartial(e){const t={debugLevel:0};return t.debugLevel=e.debugLevel??0,t}},t.BecomeInactiveRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.BecomeInactiveResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.RenameRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.newName&&t.uint32(18).string(e.newName),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",newName:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.deviceId=n.string();break;case 2:i.newName=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",newName:g(e.newName)?String(e.newName):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.newName&&(t.newName=e.newName),t},fromPartial(e){const t={deviceId:"",newName:""};return t.deviceId=e.deviceId??"",t.newName=e.newName??"",t}},t.RenameResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.OnEnablingLocalPlaybackRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.OnEnablingLocalPlaybackResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.SetPreferredZeroconfRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),0!==e.preferredLoginType&&t.uint32(16).int32(e.preferredLoginType),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",preferredLoginType:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.deviceId=n.string();break;case 2:i.preferredLoginType=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",preferredLoginType:g(e.preferredLoginType)?d(e.preferredLoginType):0}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.preferredLoginType&&(t.preferredLoginType=p(e.preferredLoginType)),t},fromPartial(e){const t={deviceId:"",preferredLoginType:0};return t.deviceId=e.deviceId??"",t.preferredLoginType=e.preferredLoginType??0,t}},t.SetPreferredZeroconfResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.LocalVolumeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.LocalVolumeResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.volume&&t.uint32(8).int32(e.volume),0!==e.reason&&t.uint32(16).int32(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={volume:0,reason:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.volume=n.int32();break;case 2:i.reason=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({volume:g(e.volume)?Number(e.volume):0,reason:g(e.reason)?f(e.reason):0}),toJSON(e){const t={};return void 0!==e.volume&&(t.volume=Math.round(e.volume)),void 0!==e.reason&&(t.reason=h(e.reason)),t},fromPartial(e){const t={volume:0,reason:0};return t.volume=e.volume??0,t.reason=e.reason??0,t}},t.OnOnboardingRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.OnOnboardingResponse={encode:(e,t=r.default.Writer.create())=>(""!==e.onboardingDevice&&t.uint32(10).string(e.onboardingDevice),!0===e.onboardingEnabled&&t.uint32(16).bool(e.onboardingEnabled),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={onboardingDevice:"",onboardingEnabled:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.onboardingDevice=n.string();break;case 2:i.onboardingEnabled=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({onboardingDevice:g(e.onboardingDevice)?String(e.onboardingDevice):"",onboardingEnabled:!!g(e.onboardingEnabled)&&Boolean(e.onboardingEnabled)}),toJSON(e){const t={};return void 0!==e.onboardingDevice&&(t.onboardingDevice=e.onboardingDevice),void 0!==e.onboardingEnabled&&(t.onboardingEnabled=e.onboardingEnabled),t},fromPartial(e){const t={onboardingDevice:"",onboardingEnabled:!1};return t.onboardingDevice=e.onboardingDevice??"",t.onboardingEnabled=e.onboardingEnabled??!1,t}},t.ReportFlowRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),!0===e.didComplete&&t.uint32(16).bool(e.didComplete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",didComplete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.deviceId=n.string();break;case 2:i.didComplete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",didComplete:!!g(e.didComplete)&&Boolean(e.didComplete)}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.didComplete&&(t.didComplete=e.didComplete),t},fromPartial(e){const t={deviceId:"",didComplete:!1};return t.deviceId=e.deviceId??"",t.didComplete=e.didComplete??!1,t}},t.ReportFlowResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.ClearFlowRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.ClearFlowResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.TriggerFlowRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.deviceId=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),t},fromPartial(e){const t={deviceId:""};return t.deviceId=e.deviceId??"",t}},t.TriggerFlowResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},9029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdsClient=void 0;const o=n(33892),i=n(43086);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getAds(e){const t="spotify.ads.esperanto.ads.proto.Ads",n="GetAds",r=i.GetAdsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetAdsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.ads.esperanto.ads.proto.Ads";static DECODERS={GetAds:{request:i.GetAdsRequest.decode,response:i.GetAdsResponse.decode}}}t.AdsClient=r},58985:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.AdsClient=void 0;var r=n(9029);Object.defineProperty(t,"AdsClient",{enumerable:!0,get:function(){return r.AdsClient}}),i(n(43086),t)},69383:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdQueue=t.AdSlot=t.AdSlotEvent=t.Ad_TrackingEventsEntry=t.Ad_MetadataEntry=t.Ad=t.AdMedia=t.UrlArray=t.adSlotEvent_AdSlotEventTypeToJSON=t.adSlotEvent_AdSlotEventTypeFromJSON=t.AdSlotEvent_AdSlotEventType=t.adFormatToJSON=t.adFormatFromJSON=t.AdFormat=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s;function l(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"AUDIO":return a.AUDIO;case 2:case"VIDEO":return a.VIDEO;case 3:case"DISPLAY":return a.DISPLAY;case 4:case"DUMMY":return a.DUMMY;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.AUDIO:return"AUDIO";case a.VIDEO:return"VIDEO";case a.DISPLAY:return"DISPLAY";case a.DUMMY:return"DUMMY";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"AVAILABLE":return s.AVAILABLE;case 1:case"PLAY":return s.PLAY;case 2:case"DISCARD":return s.DISCARD;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.AVAILABLE:return"AVAILABLE";case s.PLAY:return"PLAY";case s.DISCARD:return"DISCARD";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){return"object"==typeof e&&null!==e}function f(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.common.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.AdFormat||(t.AdFormat={})),t.adFormatFromJSON=l,t.adFormatToJSON=c,function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.AdSlotEvent_AdSlotEventType||(t.AdSlotEvent_AdSlotEventType={})),t.adSlotEvent_AdSlotEventTypeFromJSON=u,t.adSlotEvent_AdSlotEventTypeToJSON=d,t.UrlArray={encode(e,t=r.default.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={urls:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.urls.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?t.urls=e.urls.map((e=>e)):t.urls=[],t},fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}},t.AdMedia={encode:(e,t=r.default.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),"0"!==e.duration&&t.uint32(24).uint64(e.duration),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.mediaFileUrl&&t.uint32(50).string(e.mediaFileUrl),void 0!==e.mediaFileId&&t.uint32(58).string(e.mediaFileId),void 0!==e.mediaFileImageId&&t.uint32(66).string(e.mediaFileImageId),void 0!==e.mediaFileText&&t.uint32(74).string(e.mediaFileText),void 0!==e.mediaFileEpisodeId&&t.uint32(82).string(e.mediaFileEpisodeId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.mimeType=n.string();break;case 2:i.bitrate=n.int32();break;case 3:i.duration=n.uint64().toString();break;case 4:i.width=n.int32();break;case 5:i.height=n.int32();break;case 6:i.mediaFileUrl=n.string();break;case 7:i.mediaFileId=n.string();break;case 8:i.mediaFileImageId=n.string();break;case 9:i.mediaFileText=n.string();break;case 10:i.mediaFileEpisodeId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({mimeType:f(e.mimeType)?String(e.mimeType):"",bitrate:f(e.bitrate)?Number(e.bitrate):0,duration:f(e.duration)?String(e.duration):"0",width:f(e.width)?Number(e.width):0,height:f(e.height)?Number(e.height):0,mediaFileUrl:f(e.mediaFileUrl)?String(e.mediaFileUrl):void 0,mediaFileId:f(e.mediaFileId)?String(e.mediaFileId):void 0,mediaFileImageId:f(e.mediaFileImageId)?String(e.mediaFileImageId):void 0,mediaFileText:f(e.mediaFileText)?String(e.mediaFileText):void 0,mediaFileEpisodeId:f(e.mediaFileEpisodeId)?String(e.mediaFileEpisodeId):void 0}),toJSON(e){const t={};return void 0!==e.mimeType&&(t.mimeType=e.mimeType),void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.width&&(t.width=Math.round(e.width)),void 0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.mediaFileUrl&&(t.mediaFileUrl=e.mediaFileUrl),void 0!==e.mediaFileId&&(t.mediaFileId=e.mediaFileId),void 0!==e.mediaFileImageId&&(t.mediaFileImageId=e.mediaFileImageId),void 0!==e.mediaFileText&&(t.mediaFileText=e.mediaFileText),void 0!==e.mediaFileEpisodeId&&(t.mediaFileEpisodeId=e.mediaFileEpisodeId),t},fromPartial(e){const t={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??"0",t.width=e.width??0,t.height=e.height??0,t.mediaFileUrl=e.mediaFileUrl??void 0,t.mediaFileId=e.mediaFileId??void 0,t.mediaFileImageId=e.mediaFileImageId??void 0,t.mediaFileText=e.mediaFileText??void 0,t.mediaFileEpisodeId=e.mediaFileEpisodeId??void 0,t}},t.Ad={encode(e,n=r.default.Writer.create()){""!==e.adId&&n.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,o])=>{t.Ad_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),!0===e.isDummy&&n.uint32(24).bool(e.isDummy);for(const o of e.coverArt)t.AdMedia.encode(o,n.uint32(34).fork()).ldelim();for(const o of e.audio)t.AdMedia.encode(o,n.uint32(42).fork()).ldelim();for(const o of e.video)t.AdMedia.encode(o,n.uint32(50).fork()).ldelim();for(const o of e.display)t.AdMedia.encode(o,n.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&n.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,o])=>{t.Ad_TrackingEventsEntry.encode({key:e,value:o},n.uint32(74).fork()).ldelim()})),""!==e.triggeredSlot&&n.uint32(82).string(e.triggeredSlot),!0===e.linear&&n.uint32(96).bool(e.linear),""!==e.playbackId&&n.uint32(106).string(e.playbackId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.adId=o.string();break;case 2:const n=t.Ad_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;case 3:a.isDummy=o.bool();break;case 4:a.coverArt.push(t.AdMedia.decode(o,o.uint32()));break;case 5:a.audio.push(t.AdMedia.decode(o,o.uint32()));break;case 6:a.video.push(t.AdMedia.decode(o,o.uint32()));break;case 7:a.display.push(t.AdMedia.decode(o,o.uint32()));break;case 8:a.clickthroughUrl=o.string();break;case 9:const i=t.Ad_TrackingEventsEntry.decode(o,o.uint32());void 0!==i.value&&(a.trackingEvents[i.key]=i.value);break;case 10:a.triggeredSlot=o.string();break;case 12:a.linear=o.bool();break;case 13:a.playbackId=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({adId:f(e.adId)?String(e.adId):"",metadata:p(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!f(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>t.AdMedia.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>t.AdMedia.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>t.AdMedia.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>t.AdMedia.fromJSON(e))):[],clickthroughUrl:f(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:p(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[n,o])=>(e[n]=t.UrlArray.fromJSON(o),e)),{}):{},triggeredSlot:f(e.triggeredSlot)?String(e.triggeredSlot):"",linear:!!f(e.linear)&&Boolean(e.linear),playbackId:f(e.playbackId)?String(e.playbackId):""}),toJSON(e){const n={};return void 0!==e.adId&&(n.adId=e.adId),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,t])=>{n.metadata[e]=t})),void 0!==e.isDummy&&(n.isDummy=e.isDummy),e.coverArt?n.coverArt=e.coverArt.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.coverArt=[],e.audio?n.audio=e.audio.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.audio=[],e.video?n.video=e.video.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.video=[],e.display?n.display=e.display.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.display=[],void 0!==e.clickthroughUrl&&(n.clickthroughUrl=e.clickthroughUrl),n.trackingEvents={},e.trackingEvents&&Object.entries(e.trackingEvents).forEach((([e,o])=>{n.trackingEvents[e]=t.UrlArray.toJSON(o)})),void 0!==e.triggeredSlot&&(n.triggeredSlot=e.triggeredSlot),void 0!==e.linear&&(n.linear=e.linear),void 0!==e.playbackId&&(n.playbackId=e.playbackId),n},fromPartial(e){const n={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};return n.adId=e.adId??"",n.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.isDummy=e.isDummy??!1,n.coverArt=e.coverArt?.map((e=>t.AdMedia.fromPartial(e)))||[],n.audio=e.audio?.map((e=>t.AdMedia.fromPartial(e)))||[],n.video=e.video?.map((e=>t.AdMedia.fromPartial(e)))||[],n.display=e.display?.map((e=>t.AdMedia.fromPartial(e)))||[],n.clickthroughUrl=e.clickthroughUrl??"",n.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.UrlArray.fromPartial(o)),e)),{}),n.triggeredSlot=e.triggeredSlot??"",n.linear=e.linear??!1,n.playbackId=e.playbackId??"",n}},t.Ad_MetadataEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:f(e.key)?String(e.key):"",value:f(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Ad_TrackingEventsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.UrlArray.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.UrlArray.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:f(e.key)?String(e.key):"",value:f(e.value)?t.UrlArray.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.UrlArray.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.UrlArray.fromPartial(e.value):void 0,n}},t.AdSlotEvent={encode:(e,n=r.default.Writer.create())=>(0!==e.eventType&&n.uint32(8).int32(e.eventType),""!==e.slotId&&n.uint32(18).string(e.slotId),0!==e.format&&n.uint32(24).int32(e.format),void 0!==e.ad&&t.Ad.encode(e.ad,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={eventType:0,slotId:"",format:0,ad:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.eventType=o.int32();break;case 2:a.slotId=o.string();break;case 3:a.format=o.int32();break;case 4:a.ad=t.Ad.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({eventType:f(e.eventType)?u(e.eventType):0,slotId:f(e.slotId)?String(e.slotId):"",format:f(e.format)?l(e.format):0,ad:f(e.ad)?t.Ad.fromJSON(e.ad):void 0}),toJSON(e){const n={};return void 0!==e.eventType&&(n.eventType=d(e.eventType)),void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.format&&(n.format=c(e.format)),void 0!==e.ad&&(n.ad=e.ad?t.Ad.toJSON(e.ad):void 0),n},fromPartial(e){const n={eventType:0,slotId:"",format:0,ad:void 0};return n.eventType=e.eventType??0,n.slotId=e.slotId??"",n.format=e.format??0,n.ad=void 0!==e.ad&&null!==e.ad?t.Ad.fromPartial(e.ad):void 0,n}},t.AdSlot={encode(e,n=r.default.Writer.create()){""!==e.slotId&&n.uint32(10).string(e.slotId),!0===e.hasAvailableAds&&n.uint32(16).bool(e.hasAvailableAds),!0===e.hasActiveAd&&n.uint32(24).bool(e.hasActiveAd),!0===e.hasListeners&&n.uint32(32).bool(e.hasListeners),!0===e.hasAudioListeners&&n.uint32(40).bool(e.hasAudioListeners),!0===e.hasVideoListeners&&n.uint32(48).bool(e.hasVideoListeners),!0===e.hasDisplayListeners&&n.uint32(56).bool(e.hasDisplayListeners);for(const o of e.availableAds)t.Ad.encode(o,n.uint32(66).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.slotId=o.string();break;case 2:a.hasAvailableAds=o.bool();break;case 3:a.hasActiveAd=o.bool();break;case 4:a.hasListeners=o.bool();break;case 5:a.hasAudioListeners=o.bool();break;case 6:a.hasVideoListeners=o.bool();break;case 7:a.hasDisplayListeners=o.bool();break;case 8:a.availableAds.push(t.Ad.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({slotId:f(e.slotId)?String(e.slotId):"",hasAvailableAds:!!f(e.hasAvailableAds)&&Boolean(e.hasAvailableAds),hasActiveAd:!!f(e.hasActiveAd)&&Boolean(e.hasActiveAd),hasListeners:!!f(e.hasListeners)&&Boolean(e.hasListeners),hasAudioListeners:!!f(e.hasAudioListeners)&&Boolean(e.hasAudioListeners),hasVideoListeners:!!f(e.hasVideoListeners)&&Boolean(e.hasVideoListeners),hasDisplayListeners:!!f(e.hasDisplayListeners)&&Boolean(e.hasDisplayListeners),availableAds:Array.isArray(e?.availableAds)?e.availableAds.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.hasAvailableAds&&(n.hasAvailableAds=e.hasAvailableAds),void 0!==e.hasActiveAd&&(n.hasActiveAd=e.hasActiveAd),void 0!==e.hasListeners&&(n.hasListeners=e.hasListeners),void 0!==e.hasAudioListeners&&(n.hasAudioListeners=e.hasAudioListeners),void 0!==e.hasVideoListeners&&(n.hasVideoListeners=e.hasVideoListeners),void 0!==e.hasDisplayListeners&&(n.hasDisplayListeners=e.hasDisplayListeners),e.availableAds?n.availableAds=e.availableAds.map((e=>e?t.Ad.toJSON(e):void 0)):n.availableAds=[],n},fromPartial(e){const n={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};return n.slotId=e.slotId??"",n.hasAvailableAds=e.hasAvailableAds??!1,n.hasActiveAd=e.hasActiveAd??!1,n.hasListeners=e.hasListeners??!1,n.hasAudioListeners=e.hasAudioListeners??!1,n.hasVideoListeners=e.hasVideoListeners??!1,n.hasDisplayListeners=e.hasDisplayListeners??!1,n.availableAds=e.availableAds?.map((e=>t.Ad.fromPartial(e)))||[],n}},t.AdQueue={encode(e,n=r.default.Writer.create()){for(const o of e.ads)t.Ad.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={ads:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.ads.push(t.Ad.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({ads:Array.isArray(e?.ads)?e.ads.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return e.ads?n.ads=e.ads.map((e=>e?t.Ad.toJSON(e):void 0)):n.ads=[],n},fromPartial(e){const n={ads:[]};return n.ads=e.ads?.map((e=>t.Ad.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},43086:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAdsResponse_AdPackageEntry=t.GetAdsResponse=t.GetAdsRequest_TargetingEntry=t.GetAdsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(69383);function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.ads.proto",t.GetAdsRequest={encode:(e,n=i.default.Writer.create())=>(""!==e.slotId&&n.uint32(10).string(e.slotId),Object.entries(e.targeting).forEach((([e,o])=>{t.GetAdsRequest_TargetingEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={slotId:"",targeting:{}};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.slotId=o.string();break;case 2:const n=t.GetAdsRequest_TargetingEntry.decode(o,o.uint32());void 0!==n.value&&(a.targeting[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON:e=>({slotId:s(e.slotId)?String(e.slotId):"",targeting:a(e.targeting)?Object.entries(e.targeting).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};return void 0!==e.slotId&&(t.slotId=e.slotId),t.targeting={},e.targeting&&Object.entries(e.targeting).forEach((([e,n])=>{t.targeting[e]=n})),t},fromPartial(e){const t={slotId:"",targeting:{}};return t.slotId=e.slotId??"",t.targeting=Object.entries(e.targeting??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.GetAdsRequest_TargetingEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.GetAdsResponse={encode:(e,n=i.default.Writer.create())=>(Object.entries(e.adPackage).forEach((([e,o])=>{t.GetAdsResponse_AdPackageEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),void 0!==e.error&&n.uint32(18).string(e.error),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={adPackage:{},error:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:const n=t.GetAdsResponse_AdPackageEntry.decode(o,o.uint32());void 0!==n.value&&(a.adPackage[n.key]=n.value);break;case 2:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({adPackage:a(e.adPackage)?Object.entries(e.adPackage).reduce(((e,[t,n])=>(e[t]=r.AdQueue.fromJSON(n),e)),{}):{},error:s(e.error)?String(e.error):void 0}),toJSON(e){const t={adPackage:{}};return e.adPackage&&Object.entries(e.adPackage).forEach((([e,n])=>{t.adPackage[e]=r.AdQueue.toJSON(n)})),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={adPackage:{},error:void 0};return t.adPackage=Object.entries(e.adPackage??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=r.AdQueue.fromPartial(n)),e)),{}),t.error=e.error??void 0,t}},t.GetAdsResponse_AdPackageEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&r.AdQueue.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={key:"",value:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.key=n.string();break;case 2:a.value=r.AdQueue.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?r.AdQueue.fromJSON(e.value):void 0}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value?r.AdQueue.toJSON(e.value):void 0),t},fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?r.AdQueue.fromPartial(e.value):void 0,t}}},62976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsClient=void 0;const o=n(33892),i=n(95021);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}postEvent(e){const t="spotify.ads.esperanto.events.proto.Events",n="postEvent",r=i.EventRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.EventResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}postUnmanagedEvent(e){const t="spotify.ads.esperanto.events.proto.Events",n="postUnmanagedEvent",r=i.UnmanagedEventRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.UnmanagedEventResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subEvent(e,t){const n="spotify.ads.esperanto.events.proto.Events",r="subEvent",a=i.SubEventRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.SubEventResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.ads.esperanto.events.proto.Events";static DECODERS={postEvent:{request:i.EventRequest.decode,response:i.EventResponse.decode},postUnmanagedEvent:{request:i.UnmanagedEventRequest.decode,response:i.UnmanagedEventResponse.decode},subEvent:{request:i.SubEventRequest.decode,response:i.SubEventResponse.decode}}}t.EventsClient=r},8097:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.EventsClient=void 0;var r=n(62976);Object.defineProperty(t,"EventsClient",{enumerable:!0,get:function(){return r.EventsClient}}),i(n(95021),t)},40131:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdQueue=t.AdSlot=t.AdSlotEvent=t.Ad_TrackingEventsEntry=t.Ad_MetadataEntry=t.Ad=t.AdMedia=t.UrlArray=t.adSlotEvent_AdSlotEventTypeToJSON=t.adSlotEvent_AdSlotEventTypeFromJSON=t.AdSlotEvent_AdSlotEventType=t.adFormatToJSON=t.adFormatFromJSON=t.AdFormat=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s;function l(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"AUDIO":return a.AUDIO;case 2:case"VIDEO":return a.VIDEO;case 3:case"DISPLAY":return a.DISPLAY;case 4:case"DUMMY":return a.DUMMY;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.AUDIO:return"AUDIO";case a.VIDEO:return"VIDEO";case a.DISPLAY:return"DISPLAY";case a.DUMMY:return"DUMMY";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"AVAILABLE":return s.AVAILABLE;case 1:case"PLAY":return s.PLAY;case 2:case"DISCARD":return s.DISCARD;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.AVAILABLE:return"AVAILABLE";case s.PLAY:return"PLAY";case s.DISCARD:return"DISCARD";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){return"object"==typeof e&&null!==e}function f(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.common.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.AdFormat||(t.AdFormat={})),t.adFormatFromJSON=l,t.adFormatToJSON=c,function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.AdSlotEvent_AdSlotEventType||(t.AdSlotEvent_AdSlotEventType={})),t.adSlotEvent_AdSlotEventTypeFromJSON=u,t.adSlotEvent_AdSlotEventTypeToJSON=d,t.UrlArray={encode(e,t=r.default.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={urls:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.urls.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?t.urls=e.urls.map((e=>e)):t.urls=[],t},fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}},t.AdMedia={encode:(e,t=r.default.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),"0"!==e.duration&&t.uint32(24).uint64(e.duration),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.mediaFileUrl&&t.uint32(50).string(e.mediaFileUrl),void 0!==e.mediaFileId&&t.uint32(58).string(e.mediaFileId),void 0!==e.mediaFileImageId&&t.uint32(66).string(e.mediaFileImageId),void 0!==e.mediaFileText&&t.uint32(74).string(e.mediaFileText),void 0!==e.mediaFileEpisodeId&&t.uint32(82).string(e.mediaFileEpisodeId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.mimeType=n.string();break;case 2:i.bitrate=n.int32();break;case 3:i.duration=n.uint64().toString();break;case 4:i.width=n.int32();break;case 5:i.height=n.int32();break;case 6:i.mediaFileUrl=n.string();break;case 7:i.mediaFileId=n.string();break;case 8:i.mediaFileImageId=n.string();break;case 9:i.mediaFileText=n.string();break;case 10:i.mediaFileEpisodeId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({mimeType:f(e.mimeType)?String(e.mimeType):"",bitrate:f(e.bitrate)?Number(e.bitrate):0,duration:f(e.duration)?String(e.duration):"0",width:f(e.width)?Number(e.width):0,height:f(e.height)?Number(e.height):0,mediaFileUrl:f(e.mediaFileUrl)?String(e.mediaFileUrl):void 0,mediaFileId:f(e.mediaFileId)?String(e.mediaFileId):void 0,mediaFileImageId:f(e.mediaFileImageId)?String(e.mediaFileImageId):void 0,mediaFileText:f(e.mediaFileText)?String(e.mediaFileText):void 0,mediaFileEpisodeId:f(e.mediaFileEpisodeId)?String(e.mediaFileEpisodeId):void 0}),toJSON(e){const t={};return void 0!==e.mimeType&&(t.mimeType=e.mimeType),void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.width&&(t.width=Math.round(e.width)),void 0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.mediaFileUrl&&(t.mediaFileUrl=e.mediaFileUrl),void 0!==e.mediaFileId&&(t.mediaFileId=e.mediaFileId),void 0!==e.mediaFileImageId&&(t.mediaFileImageId=e.mediaFileImageId),void 0!==e.mediaFileText&&(t.mediaFileText=e.mediaFileText),void 0!==e.mediaFileEpisodeId&&(t.mediaFileEpisodeId=e.mediaFileEpisodeId),t},fromPartial(e){const t={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??"0",t.width=e.width??0,t.height=e.height??0,t.mediaFileUrl=e.mediaFileUrl??void 0,t.mediaFileId=e.mediaFileId??void 0,t.mediaFileImageId=e.mediaFileImageId??void 0,t.mediaFileText=e.mediaFileText??void 0,t.mediaFileEpisodeId=e.mediaFileEpisodeId??void 0,t}},t.Ad={encode(e,n=r.default.Writer.create()){""!==e.adId&&n.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,o])=>{t.Ad_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),!0===e.isDummy&&n.uint32(24).bool(e.isDummy);for(const o of e.coverArt)t.AdMedia.encode(o,n.uint32(34).fork()).ldelim();for(const o of e.audio)t.AdMedia.encode(o,n.uint32(42).fork()).ldelim();for(const o of e.video)t.AdMedia.encode(o,n.uint32(50).fork()).ldelim();for(const o of e.display)t.AdMedia.encode(o,n.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&n.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,o])=>{t.Ad_TrackingEventsEntry.encode({key:e,value:o},n.uint32(74).fork()).ldelim()})),""!==e.triggeredSlot&&n.uint32(82).string(e.triggeredSlot),!0===e.linear&&n.uint32(96).bool(e.linear),""!==e.playbackId&&n.uint32(106).string(e.playbackId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.adId=o.string();break;case 2:const n=t.Ad_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;case 3:a.isDummy=o.bool();break;case 4:a.coverArt.push(t.AdMedia.decode(o,o.uint32()));break;case 5:a.audio.push(t.AdMedia.decode(o,o.uint32()));break;case 6:a.video.push(t.AdMedia.decode(o,o.uint32()));break;case 7:a.display.push(t.AdMedia.decode(o,o.uint32()));break;case 8:a.clickthroughUrl=o.string();break;case 9:const i=t.Ad_TrackingEventsEntry.decode(o,o.uint32());void 0!==i.value&&(a.trackingEvents[i.key]=i.value);break;case 10:a.triggeredSlot=o.string();break;case 12:a.linear=o.bool();break;case 13:a.playbackId=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({adId:f(e.adId)?String(e.adId):"",metadata:p(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!f(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>t.AdMedia.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>t.AdMedia.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>t.AdMedia.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>t.AdMedia.fromJSON(e))):[],clickthroughUrl:f(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:p(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[n,o])=>(e[n]=t.UrlArray.fromJSON(o),e)),{}):{},triggeredSlot:f(e.triggeredSlot)?String(e.triggeredSlot):"",linear:!!f(e.linear)&&Boolean(e.linear),playbackId:f(e.playbackId)?String(e.playbackId):""}),toJSON(e){const n={};return void 0!==e.adId&&(n.adId=e.adId),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,t])=>{n.metadata[e]=t})),void 0!==e.isDummy&&(n.isDummy=e.isDummy),e.coverArt?n.coverArt=e.coverArt.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.coverArt=[],e.audio?n.audio=e.audio.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.audio=[],e.video?n.video=e.video.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.video=[],e.display?n.display=e.display.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.display=[],void 0!==e.clickthroughUrl&&(n.clickthroughUrl=e.clickthroughUrl),n.trackingEvents={},e.trackingEvents&&Object.entries(e.trackingEvents).forEach((([e,o])=>{n.trackingEvents[e]=t.UrlArray.toJSON(o)})),void 0!==e.triggeredSlot&&(n.triggeredSlot=e.triggeredSlot),void 0!==e.linear&&(n.linear=e.linear),void 0!==e.playbackId&&(n.playbackId=e.playbackId),n},fromPartial(e){const n={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};return n.adId=e.adId??"",n.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.isDummy=e.isDummy??!1,n.coverArt=e.coverArt?.map((e=>t.AdMedia.fromPartial(e)))||[],n.audio=e.audio?.map((e=>t.AdMedia.fromPartial(e)))||[],n.video=e.video?.map((e=>t.AdMedia.fromPartial(e)))||[],n.display=e.display?.map((e=>t.AdMedia.fromPartial(e)))||[],n.clickthroughUrl=e.clickthroughUrl??"",n.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.UrlArray.fromPartial(o)),e)),{}),n.triggeredSlot=e.triggeredSlot??"",n.linear=e.linear??!1,n.playbackId=e.playbackId??"",n}},t.Ad_MetadataEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:f(e.key)?String(e.key):"",value:f(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Ad_TrackingEventsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.UrlArray.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.UrlArray.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:f(e.key)?String(e.key):"",value:f(e.value)?t.UrlArray.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.UrlArray.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.UrlArray.fromPartial(e.value):void 0,n}},t.AdSlotEvent={encode:(e,n=r.default.Writer.create())=>(0!==e.eventType&&n.uint32(8).int32(e.eventType),""!==e.slotId&&n.uint32(18).string(e.slotId),0!==e.format&&n.uint32(24).int32(e.format),void 0!==e.ad&&t.Ad.encode(e.ad,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={eventType:0,slotId:"",format:0,ad:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.eventType=o.int32();break;case 2:a.slotId=o.string();break;case 3:a.format=o.int32();break;case 4:a.ad=t.Ad.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({eventType:f(e.eventType)?u(e.eventType):0,slotId:f(e.slotId)?String(e.slotId):"",format:f(e.format)?l(e.format):0,ad:f(e.ad)?t.Ad.fromJSON(e.ad):void 0}),toJSON(e){const n={};return void 0!==e.eventType&&(n.eventType=d(e.eventType)),void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.format&&(n.format=c(e.format)),void 0!==e.ad&&(n.ad=e.ad?t.Ad.toJSON(e.ad):void 0),n},fromPartial(e){const n={eventType:0,slotId:"",format:0,ad:void 0};return n.eventType=e.eventType??0,n.slotId=e.slotId??"",n.format=e.format??0,n.ad=void 0!==e.ad&&null!==e.ad?t.Ad.fromPartial(e.ad):void 0,n}},t.AdSlot={encode(e,n=r.default.Writer.create()){""!==e.slotId&&n.uint32(10).string(e.slotId),!0===e.hasAvailableAds&&n.uint32(16).bool(e.hasAvailableAds),!0===e.hasActiveAd&&n.uint32(24).bool(e.hasActiveAd),!0===e.hasListeners&&n.uint32(32).bool(e.hasListeners),!0===e.hasAudioListeners&&n.uint32(40).bool(e.hasAudioListeners),!0===e.hasVideoListeners&&n.uint32(48).bool(e.hasVideoListeners),!0===e.hasDisplayListeners&&n.uint32(56).bool(e.hasDisplayListeners);for(const o of e.availableAds)t.Ad.encode(o,n.uint32(66).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.slotId=o.string();break;case 2:a.hasAvailableAds=o.bool();break;case 3:a.hasActiveAd=o.bool();break;case 4:a.hasListeners=o.bool();break;case 5:a.hasAudioListeners=o.bool();break;case 6:a.hasVideoListeners=o.bool();break;case 7:a.hasDisplayListeners=o.bool();break;case 8:a.availableAds.push(t.Ad.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({slotId:f(e.slotId)?String(e.slotId):"",hasAvailableAds:!!f(e.hasAvailableAds)&&Boolean(e.hasAvailableAds),hasActiveAd:!!f(e.hasActiveAd)&&Boolean(e.hasActiveAd),hasListeners:!!f(e.hasListeners)&&Boolean(e.hasListeners),hasAudioListeners:!!f(e.hasAudioListeners)&&Boolean(e.hasAudioListeners),hasVideoListeners:!!f(e.hasVideoListeners)&&Boolean(e.hasVideoListeners),hasDisplayListeners:!!f(e.hasDisplayListeners)&&Boolean(e.hasDisplayListeners),availableAds:Array.isArray(e?.availableAds)?e.availableAds.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.hasAvailableAds&&(n.hasAvailableAds=e.hasAvailableAds),void 0!==e.hasActiveAd&&(n.hasActiveAd=e.hasActiveAd),void 0!==e.hasListeners&&(n.hasListeners=e.hasListeners),void 0!==e.hasAudioListeners&&(n.hasAudioListeners=e.hasAudioListeners),void 0!==e.hasVideoListeners&&(n.hasVideoListeners=e.hasVideoListeners),void 0!==e.hasDisplayListeners&&(n.hasDisplayListeners=e.hasDisplayListeners),e.availableAds?n.availableAds=e.availableAds.map((e=>e?t.Ad.toJSON(e):void 0)):n.availableAds=[],n},fromPartial(e){const n={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};return n.slotId=e.slotId??"",n.hasAvailableAds=e.hasAvailableAds??!1,n.hasActiveAd=e.hasActiveAd??!1,n.hasListeners=e.hasListeners??!1,n.hasAudioListeners=e.hasAudioListeners??!1,n.hasVideoListeners=e.hasVideoListeners??!1,n.hasDisplayListeners=e.hasDisplayListeners??!1,n.availableAds=e.availableAds?.map((e=>t.Ad.fromPartial(e)))||[],n}},t.AdQueue={encode(e,n=r.default.Writer.create()){for(const o of e.ads)t.Ad.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={ads:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.ads.push(t.Ad.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({ads:Array.isArray(e?.ads)?e.ads.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return e.ads?n.ads=e.ads.map((e=>e?t.Ad.toJSON(e):void 0)):n.ads=[],n},fromPartial(e){const n={ads:[]};return n.ads=e.ads?.map((e=>t.Ad.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95021:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubEventResponse=t.AdEvent=t.SubEventRequest=t.UnmanagedEventResponse=t.UnmanagedEventRequest=t.EventResponse=t.EventRequest=t.subEventResponse_StatusToJSON=t.subEventResponse_StatusFromJSON=t.SubEventResponse_Status=t.eventResponse_StatusToJSON=t.eventResponse_StatusFromJSON=t.EventResponse_Status=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(40131);var s,l;function c(e){switch(e){case 0:case"ACCEPTED":return s.ACCEPTED;case 1:case"AD_NOT_FOUND":return s.AD_NOT_FOUND;default:return s.UNRECOGNIZED}}function u(e){switch(e){case s.ACCEPTED:return"ACCEPTED";case s.AD_NOT_FOUND:return"AD_NOT_FOUND";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"OK":return l.OK;case 1:case"INVALID_SLOT":return l.INVALID_SLOT;case 2:case"INVALID_FORMAT":return l.INVALID_FORMAT;default:return l.UNRECOGNIZED}}function p(e){switch(e){case l.OK:return"OK";case l.INVALID_SLOT:return"INVALID_SLOT";case l.INVALID_FORMAT:return"INVALID_FORMAT";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){return e.toString()}function h(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.events.proto",function(e){e[e.ACCEPTED=0]="ACCEPTED",e[e.AD_NOT_FOUND=1]="AD_NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.EventResponse_Status||(t.EventResponse_Status={})),t.eventResponse_StatusFromJSON=c,t.eventResponse_StatusToJSON=u,function(e){e[e.OK=0]="OK",e[e.INVALID_SLOT=1]="INVALID_SLOT",e[e.INVALID_FORMAT=2]="INVALID_FORMAT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.SubEventResponse_Status||(t.SubEventResponse_Status={})),t.subEventResponse_StatusFromJSON=d,t.subEventResponse_StatusToJSON=p,t.EventRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.adId&&t.uint32(10).string(e.adId),""!==e.eventType&&t.uint32(18).string(e.eventType),void 0!==e.playbackPosition&&t.uint32(24).uint64(e.playbackPosition),void 0!==e.eventReason&&t.uint32(34).string(e.eventReason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.adId=n.string();break;case 2:i.eventType=n.string();break;case 3:i.playbackPosition=f(n.uint64());break;case 4:i.eventReason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({adId:h(e.adId)?String(e.adId):"",eventType:h(e.eventType)?String(e.eventType):"",playbackPosition:h(e.playbackPosition)?String(e.playbackPosition):void 0,eventReason:h(e.eventReason)?String(e.eventReason):void 0}),toJSON(e){const t={};return void 0!==e.adId&&(t.adId=e.adId),void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.playbackPosition&&(t.playbackPosition=e.playbackPosition),void 0!==e.eventReason&&(t.eventReason=e.eventReason),t},fromPartial(e){const t={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0};return t.adId=e.adId??"",t.eventType=e.eventType??"",t.playbackPosition=e.playbackPosition??void 0,t.eventReason=e.eventReason??void 0,t}},t.EventResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:h(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.UnmanagedEventRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.adId&&t.uint32(10).string(e.adId),""!==e.eventType&&t.uint32(18).string(e.eventType),void 0!==e.playbackPosition&&t.uint32(24).uint64(e.playbackPosition),void 0!==e.eventReason&&t.uint32(34).string(e.eventReason),""!==e.lineitemId&&t.uint32(42).string(e.lineitemId),""!==e.creativeId&&t.uint32(50).string(e.creativeId),""!==e.playbackId&&t.uint32(58).string(e.playbackId),""!==e.productName&&t.uint32(66).string(e.productName),""!==e.slotId&&t.uint32(74).string(e.slotId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,lineitemId:"",creativeId:"",playbackId:"",productName:"",slotId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.adId=n.string();break;case 2:i.eventType=n.string();break;case 3:i.playbackPosition=f(n.uint64());break;case 4:i.eventReason=n.string();break;case 5:i.lineitemId=n.string();break;case 6:i.creativeId=n.string();break;case 7:i.playbackId=n.string();break;case 8:i.productName=n.string();break;case 9:i.slotId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({adId:h(e.adId)?String(e.adId):"",eventType:h(e.eventType)?String(e.eventType):"",playbackPosition:h(e.playbackPosition)?String(e.playbackPosition):void 0,eventReason:h(e.eventReason)?String(e.eventReason):void 0,lineitemId:h(e.lineitemId)?String(e.lineitemId):"",creativeId:h(e.creativeId)?String(e.creativeId):"",playbackId:h(e.playbackId)?String(e.playbackId):"",productName:h(e.productName)?String(e.productName):"",slotId:h(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return void 0!==e.adId&&(t.adId=e.adId),void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.playbackPosition&&(t.playbackPosition=e.playbackPosition),void 0!==e.eventReason&&(t.eventReason=e.eventReason),void 0!==e.lineitemId&&(t.lineitemId=e.lineitemId),void 0!==e.creativeId&&(t.creativeId=e.creativeId),void 0!==e.playbackId&&(t.playbackId=e.playbackId),void 0!==e.productName&&(t.productName=e.productName),void 0!==e.slotId&&(t.slotId=e.slotId),t},fromPartial(e){const t={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,lineitemId:"",creativeId:"",playbackId:"",productName:"",slotId:""};return t.adId=e.adId??"",t.eventType=e.eventType??"",t.playbackPosition=e.playbackPosition??void 0,t.eventReason=e.eventReason??void 0,t.lineitemId=e.lineitemId??"",t.creativeId=e.creativeId??"",t.playbackId=e.playbackId??"",t.productName=e.productName??"",t.slotId=e.slotId??"",t}},t.UnmanagedEventResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubEventRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.eventType&&t.uint32(10).string(e.eventType),void 0!==e.format&&t.uint32(16).int32(e.format),void 0!==e.slotId&&t.uint32(26).string(e.slotId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={eventType:"",format:void 0,slotId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.eventType=n.string();break;case 2:i.format=n.int32();break;case 3:i.slotId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({eventType:h(e.eventType)?String(e.eventType):"",format:h(e.format)?(0,a.adFormatFromJSON)(e.format):void 0,slotId:h(e.slotId)?String(e.slotId):void 0}),toJSON(e){const t={};return void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.format&&(t.format=void 0!==e.format?(0,a.adFormatToJSON)(e.format):void 0),void 0!==e.slotId&&(t.slotId=e.slotId),t},fromPartial(e){const t={eventType:"",format:void 0,slotId:void 0};return t.eventType=e.eventType??"",t.format=e.format??void 0,t.slotId=e.slotId??void 0,t}},t.AdEvent={encode:(e,t=r.default.Writer.create())=>(""!==e.eventType&&t.uint32(10).string(e.eventType),""!==e.slotId&&t.uint32(18).string(e.slotId),void 0!==e.ad&&a.Ad.encode(e.ad,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={eventType:"",slotId:"",ad:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.eventType=n.string();break;case 2:i.slotId=n.string();break;case 3:i.ad=a.Ad.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({eventType:h(e.eventType)?String(e.eventType):"",slotId:h(e.slotId)?String(e.slotId):"",ad:h(e.ad)?a.Ad.fromJSON(e.ad):void 0}),toJSON(e){const t={};return void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.slotId&&(t.slotId=e.slotId),void 0!==e.ad&&(t.ad=e.ad?a.Ad.toJSON(e.ad):void 0),t},fromPartial(e){const t={eventType:"",slotId:"",ad:void 0};return t.eventType=e.eventType??"",t.slotId=e.slotId??"",t.ad=void 0!==e.ad&&null!==e.ad?a.Ad.fromPartial(e.ad):void 0,t}},t.SubEventResponse={encode:(e,n=r.default.Writer.create())=>(0!==e.status&&n.uint32(8).int32(e.status),void 0!==e.adEvent&&t.AdEvent.encode(e.adEvent,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:0,adEvent:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=o.int32();break;case 2:a.adEvent=t.AdEvent.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:h(e.status)?d(e.status):0,adEvent:h(e.adEvent)?t.AdEvent.fromJSON(e.adEvent):void 0}),toJSON(e){const n={};return void 0!==e.status&&(n.status=p(e.status)),void 0!==e.adEvent&&(n.adEvent=e.adEvent?t.AdEvent.toJSON(e.adEvent):void 0),n},fromPartial(e){const n={status:0,adEvent:void 0};return n.status=e.status??0,n.adEvent=void 0!==e.adEvent&&null!==e.adEvent?t.AdEvent.fromPartial(e.adEvent):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},83540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlatformServiceClient=void 0;const o=n(33892),i=n(93990),r=n(64337);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Contains",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamContains(e,t){const n="spotify.collection_platform_esperanto.proto.CollectionPlatformService",a="StreamContains",s=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.CollectionPlatformEsperantoContainsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}get(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Get",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamGet(e,t){const n="spotify.collection_platform_esperanto.proto.CollectionPlatformService",a="StreamGet",s=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}add(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Add",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}remove(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Remove",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.collection_platform_esperanto.proto.CollectionPlatformService";static DECODERS={Contains:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoContainsResponse.decode},StreamContains:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoContainsResponse.decode},Get:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode},StreamGet:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode},Add:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode},Remove:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode}}}t.CollectionPlatformServiceClient=a},13889:(e,t,n)=>{"use strict";t.Ht=t.hO=t.nW=void 0;var o=n(83540);Object.defineProperty(t,"nW",{enumerable:!0,get:function(){return o.CollectionPlatformServiceClient}});var i=n(93990);Object.defineProperty(t,"hO",{enumerable:!0,get:function(){return i.CollectionSet}}),Object.defineProperty(t,"Ht",{enumerable:!0,get:function(){return i.CollectionPlatformItemsRequest}});var r=n(64337)},93990:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlatformItemsRequest=t.collectionSetToJSON=t.collectionSetFromJSON=t.CollectionSet=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"UNKNOWN":return r.UNKNOWN;case 1:case"SHOW":return r.SHOW;case 2:case"BAN":return r.BAN;case 3:case"LISTENLATER":return r.LISTENLATER;case 4:case"IGNOREINRECS":return r.IGNOREINRECS;case 5:case"ENHANCED":return r.ENHANCED;case 6:case"COLLECTION":return r.COLLECTION;case 7:case"FOLLOWED_ARTISTS":return r.FOLLOWED_ARTISTS;case 8:case"BANNED_ARTISTS":return r.BANNED_ARTISTS;case 9:case"PINNED_YOUR_LIBRARY":return r.PINNED_YOUR_LIBRARY;case 10:case"CONCERTS":return r.CONCERTS;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.UNKNOWN:return"UNKNOWN";case r.SHOW:return"SHOW";case r.BAN:return"BAN";case r.LISTENLATER:return"LISTENLATER";case r.IGNOREINRECS:return"IGNOREINRECS";case r.ENHANCED:return"ENHANCED";case r.COLLECTION:return"COLLECTION";case r.FOLLOWED_ARTISTS:return"FOLLOWED_ARTISTS";case r.BANNED_ARTISTS:return"BANNED_ARTISTS";case r.PINNED_YOUR_LIBRARY:return"PINNED_YOUR_LIBRARY";case r.CONCERTS:return"CONCERTS";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}t.protobufPackage="spotify.collection_platform.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SHOW=1]="SHOW",e[e.BAN=2]="BAN",e[e.LISTENLATER=3]="LISTENLATER",e[e.IGNOREINRECS=4]="IGNOREINRECS",e[e.ENHANCED=5]="ENHANCED",e[e.COLLECTION=6]="COLLECTION",e[e.FOLLOWED_ARTISTS=7]="FOLLOWED_ARTISTS",e[e.BANNED_ARTISTS=8]="BANNED_ARTISTS",e[e.PINNED_YOUR_LIBRARY=9]="PINNED_YOUR_LIBRARY",e[e.CONCERTS=10]="CONCERTS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.CollectionSet||(t.CollectionSet={})),t.collectionSetFromJSON=a,t.collectionSetToJSON=s,t.CollectionPlatformItemsRequest={encode(e,t=i.default.Writer.create()){0!==e.set&&t.uint32(8).int32(e.set);for(const n of e.items)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={set:0,items:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.set=n.int32();break;case 2:r.items.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON(e){return{set:(t=e.set,null!=t?a(e.set):0),items:Array.isArray(e?.items)?e.items.map((e=>String(e))):[]};var t},toJSON(e){const t={};return void 0!==e.set&&(t.set=s(e.set)),e.items?t.items=e.items.map((e=>e)):t.items=[],t},fromPartial(e){const t={set:0,items:[]};return t.set=e.set??0,t.items=e.items?.map((e=>e))||[],t}}},64337:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlatformEsperantoItemsResponse=t.CollectionPlatformEsperantoContainsResponse=t.Status=t.CollectionPlatformContainsResponse=t.CollectionPlatformItemsResponse=t.CollectionPlatformItem=t.CollectionPlatformSimpleResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.collection_platform.proto",t.CollectionPlatformSimpleResponse={encode:(e,t=r.default.Writer.create())=>(""!==e.errorMsg&&t.uint32(10).string(e.errorMsg),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={errorMsg:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.errorMsg=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({errorMsg:a(e.errorMsg)?String(e.errorMsg):""}),toJSON(e){const t={};return void 0!==e.errorMsg&&(t.errorMsg=e.errorMsg),t},fromPartial(e){const t={errorMsg:""};return t.errorMsg=e.errorMsg??"",t}},t.CollectionPlatformItem={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),"0"!==e.addTime&&t.uint32(16).int64(e.addTime),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",addTime:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri=n.string();break;case 2:i.addTime=n.int64().toString();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",addTime:a(e.addTime)?String(e.addTime):"0"}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.addTime&&(t.addTime=e.addTime),t},fromPartial(e){const t={uri:"",addTime:"0"};return t.uri=e.uri??"",t.addTime=e.addTime??"0",t}},t.CollectionPlatformItemsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.items)t.CollectionPlatformItem.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={items:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.items.push(t.CollectionPlatformItem.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>t.CollectionPlatformItem.fromJSON(e))):[]}),toJSON(e){const n={};return e.items?n.items=e.items.map((e=>e?t.CollectionPlatformItem.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={items:[]};return n.items=e.items?.map((e=>t.CollectionPlatformItem.fromPartial(e)))||[],n}},t.CollectionPlatformContainsResponse={encode(e,t=r.default.Writer.create()){t.uint32(10).fork();for(const n of e.found)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={found:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.found.push(n.bool())}else i.found.push(n.bool());else n.skipType(7&e)}return i},fromJSON:e=>({found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return e.found?t.found=e.found.map((e=>e)):t.found=[],t},fromPartial(e){const t={found:[]};return t.found=e.found?.map((e=>e))||[],t}},t.Status={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.code=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({code:a(e.code)?Number(e.code):0,reason:a(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}},t.CollectionPlatformEsperantoContainsResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.status&&t.Status.encode(e.status,n.uint32(10).fork()).ldelim(),void 0!==e.contains&&t.CollectionPlatformContainsResponse.encode(e.contains,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,contains:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=t.Status.decode(o,o.uint32());break;case 2:a.contains=t.CollectionPlatformContainsResponse.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:a(e.status)?t.Status.fromJSON(e.status):void 0,contains:a(e.contains)?t.CollectionPlatformContainsResponse.fromJSON(e.contains):void 0}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),void 0!==e.contains&&(n.contains=e.contains?t.CollectionPlatformContainsResponse.toJSON(e.contains):void 0),n},fromPartial(e){const n={status:void 0,contains:void 0};return n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n.contains=void 0!==e.contains&&null!==e.contains?t.CollectionPlatformContainsResponse.fromPartial(e.contains):void 0,n}},t.CollectionPlatformEsperantoItemsResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&t.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.items)t.CollectionPlatformItem.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,items:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=t.Status.decode(o,o.uint32());break;case 2:a.items.push(t.CollectionPlatformItem.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:a(e.status)?t.Status.fromJSON(e.status):void 0,items:Array.isArray(e?.items)?e.items.map((e=>t.CollectionPlatformItem.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),e.items?n.items=e.items.map((e=>e?t.CollectionPlatformItem.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={status:void 0,items:[]};return n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n.items=e.items?.map((e=>t.CollectionPlatformItem.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySegmentsServiceClient=void 0;const o=n(33892),i=n(17183),r=n(44673);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getDisplaySegments(e){const t="spotify.display_segments_esperanto.proto.v1.DisplaySegmentsService",n="GetDisplaySegments",a=i.SegmentsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.SegmentsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.display_segments_esperanto.proto.v1.DisplaySegmentsService";static DECODERS={GetDisplaySegments:{request:i.SegmentsRequest.decode,response:r.SegmentsResponse.decode}}}t.DisplaySegmentsServiceClient=a},78820:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySegmentsServiceClient=void 0;var r=n(42302);Object.defineProperty(t,"DisplaySegmentsServiceClient",{enumerable:!0,get:function(){return r.DisplaySegmentsServiceClient}}),i(n(73894),t)},73894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.protobufPackage=void 0,t.protobufPackage="spotify.display_segments_esperanto.proto.v1"},43395:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 68:case"SKIP_PLAYED":return n.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.SKIP_PLAYED:return"SKIP_PLAYED";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},38775:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(12202),s=n(53571);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&s.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&s.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)a.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?s.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?s.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?a.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12202:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(33892)),r=n(43395);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function c(e){return null!=e}},53571:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=i.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},87612:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackMetadata=t.TrackDescriptor=t.TrackArtistMetadata=t.TrackAlbumMetadata=t.TrackAlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(12202),a=n(53571);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=i.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artist:s(e.artist)?t.TrackAlbumArtistMetadata.fromJSON(e.artist):void 0,link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",portraits:s(e.portraits)?a.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=i.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.name=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=i.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(162).fork()).ldelim();return!0===e.isCurated&&n.uint32(168).bool(e.isCurated),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:s.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:s.link=o.string();break;case 4:s.name=o.string();break;case 5:s.length=o.uint32();break;case 6:s.playable=o.bool();break;case 7:s.discNumber=o.uint32();break;case 8:s.trackNumber=o.uint32();break;case 9:s.isExplicit=o.bool();break;case 10:s.previewId=o.string();break;case 11:s.isLocal=o.bool();break;case 12:s.playableLocalTrack=o.bool();break;case 13:s.hasLyrics=o.bool();break;case 14:s.isPremiumOnly=o.bool();break;case 15:s.locallyPlayable=o.bool();break;case 16:s.playableTrackLink=o.string();break;case 17:s.popularity=o.uint32();break;case 18:s.is19PlusOnly=o.bool();break;case 19:s.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:s.extension.push(r.Extension.decode(o,o.uint32()));break;case 21:s.isCurated=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>t.TrackArtistMetadata.fromJSON(e))):[],link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",length:s(e.length)?Number(e.length):0,playable:!!s(e.playable)&&Boolean(e.playable),discNumber:s(e.discNumber)?Number(e.discNumber):0,trackNumber:s(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),previewId:s(e.previewId)?String(e.previewId):"",isLocal:!!s(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!s(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!s(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!s(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:s(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:s(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isCurated:!!s(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=Math.round(e.discNumber)),void 0!==e.trackNumber&&(n.trackNumber=Math.round(e.trackNumber)),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=Math.round(e.popularity)),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.isCurated=e.isCurated??!1,n}}},81409:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedSegment=t.PlaybackSegment=t.PodcastSegments=t.segmentTypeToJSON=t.segmentTypeFromJSON=t.SegmentType=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"UNKNOWN":return r.UNKNOWN;case 1:case"TALK":return r.TALK;case 2:case"MUSIC":return r.MUSIC;case 3:case"UPSELL":return r.UPSELL;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.UNKNOWN:return"UNKNOWN";case r.TALK:return"TALK";case r.MUSIC:return"MUSIC";case r.UPSELL:return"UPSELL";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.podcast_segments",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TALK=1]="TALK",e[e.MUSIC=2]="MUSIC",e[e.UPSELL=3]="UPSELL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.SegmentType||(t.SegmentType={})),t.segmentTypeFromJSON=a,t.segmentTypeToJSON=s,t.PodcastSegments={encode(e,n=i.default.Writer.create()){""!==e.episodeUri&&n.uint32(10).string(e.episodeUri);for(const o of e.playbackSegments)t.PlaybackSegment.encode(o,n.uint32(18).fork()).ldelim();for(const o of e.embeddedSegments)t.EmbeddedSegment.encode(o,n.uint32(26).fork()).ldelim();!0===e.canUpsell&&n.uint32(32).bool(e.canUpsell),""!==e.albumMosaicUri&&n.uint32(42).string(e.albumMosaicUri);for(const t of e.artists)n.uint32(50).string(t);return 0!==e.durationMs&&n.uint32(56).int32(e.durationMs),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={episodeUri:"",playbackSegments:[],embeddedSegments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.episodeUri=o.string();break;case 2:a.playbackSegments.push(t.PlaybackSegment.decode(o,o.uint32()));break;case 3:a.embeddedSegments.push(t.EmbeddedSegment.decode(o,o.uint32()));break;case 4:a.canUpsell=o.bool();break;case 5:a.albumMosaicUri=o.string();break;case 6:a.artists.push(o.string());break;case 7:a.durationMs=o.int32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeUri:l(e.episodeUri)?String(e.episodeUri):"",playbackSegments:Array.isArray(e?.playbackSegments)?e.playbackSegments.map((e=>t.PlaybackSegment.fromJSON(e))):[],embeddedSegments:Array.isArray(e?.embeddedSegments)?e.embeddedSegments.map((e=>t.EmbeddedSegment.fromJSON(e))):[],canUpsell:!!l(e.canUpsell)&&Boolean(e.canUpsell),albumMosaicUri:l(e.albumMosaicUri)?String(e.albumMosaicUri):"",artists:Array.isArray(e?.artists)?e.artists.map((e=>String(e))):[],durationMs:l(e.durationMs)?Number(e.durationMs):0}),toJSON(e){const n={};return void 0!==e.episodeUri&&(n.episodeUri=e.episodeUri),e.playbackSegments?n.playbackSegments=e.playbackSegments.map((e=>e?t.PlaybackSegment.toJSON(e):void 0)):n.playbackSegments=[],e.embeddedSegments?n.embeddedSegments=e.embeddedSegments.map((e=>e?t.EmbeddedSegment.toJSON(e):void 0)):n.embeddedSegments=[],void 0!==e.canUpsell&&(n.canUpsell=e.canUpsell),void 0!==e.albumMosaicUri&&(n.albumMosaicUri=e.albumMosaicUri),e.artists?n.artists=e.artists.map((e=>e)):n.artists=[],void 0!==e.durationMs&&(n.durationMs=Math.round(e.durationMs)),n},fromPartial(e){const n={episodeUri:"",playbackSegments:[],embeddedSegments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};return n.episodeUri=e.episodeUri??"",n.playbackSegments=e.playbackSegments?.map((e=>t.PlaybackSegment.fromPartial(e)))||[],n.embeddedSegments=e.embeddedSegments?.map((e=>t.EmbeddedSegment.fromPartial(e)))||[],n.canUpsell=e.canUpsell??!1,n.albumMosaicUri=e.albumMosaicUri??"",n.artists=e.artists?.map((e=>e))||[],n.durationMs=e.durationMs??0,n}},t.PlaybackSegment={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.startMs&&t.uint32(16).int32(e.startMs),0!==e.stopMs&&t.uint32(24).int32(e.stopMs),0!==e.durationMs&&t.uint32(32).int32(e.durationMs),0!==e.type&&t.uint32(40).int32(e.type),""!==e.title&&t.uint32(50).string(e.title),""!==e.subtitle&&t.uint32(58).string(e.subtitle),""!==e.imageUrl&&t.uint32(66).string(e.imageUrl),""!==e.actionUrl&&t.uint32(74).string(e.actionUrl),!0===e.isAbridged&&t.uint32(80).bool(e.isAbridged),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",startMs:0,stopMs:0,durationMs:0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",isAbridged:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.startMs=n.int32();break;case 3:r.stopMs=n.int32();break;case 4:r.durationMs=n.int32();break;case 5:r.type=n.int32();break;case 6:r.title=n.string();break;case 7:r.subtitle=n.string();break;case 8:r.imageUrl=n.string();break;case 9:r.actionUrl=n.string();break;case 10:r.isAbridged=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",startMs:l(e.startMs)?Number(e.startMs):0,stopMs:l(e.stopMs)?Number(e.stopMs):0,durationMs:l(e.durationMs)?Number(e.durationMs):0,type:l(e.type)?a(e.type):0,title:l(e.title)?String(e.title):"",subtitle:l(e.subtitle)?String(e.subtitle):"",imageUrl:l(e.imageUrl)?String(e.imageUrl):"",actionUrl:l(e.actionUrl)?String(e.actionUrl):"",isAbridged:!!l(e.isAbridged)&&Boolean(e.isAbridged)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.startMs&&(t.startMs=Math.round(e.startMs)),void 0!==e.stopMs&&(t.stopMs=Math.round(e.stopMs)),void 0!==e.durationMs&&(t.durationMs=Math.round(e.durationMs)),void 0!==e.type&&(t.type=s(e.type)),void 0!==e.title&&(t.title=e.title),void 0!==e.subtitle&&(t.subtitle=e.subtitle),void 0!==e.imageUrl&&(t.imageUrl=e.imageUrl),void 0!==e.actionUrl&&(t.actionUrl=e.actionUrl),void 0!==e.isAbridged&&(t.isAbridged=e.isAbridged),t},fromPartial(e){const t={uri:"",startMs:0,stopMs:0,durationMs:0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",isAbridged:!1};return t.uri=e.uri??"",t.startMs=e.startMs??0,t.stopMs=e.stopMs??0,t.durationMs=e.durationMs??0,t.type=e.type??0,t.title=e.title??"",t.subtitle=e.subtitle??"",t.imageUrl=e.imageUrl??"",t.actionUrl=e.actionUrl??"",t.isAbridged=e.isAbridged??!1,t}},t.EmbeddedSegment={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.absoluteStartMs&&t.uint32(16).int32(e.absoluteStartMs),0!==e.absoluteStopMs&&t.uint32(24).int32(e.absoluteStopMs),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",absoluteStartMs:0,absoluteStopMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.absoluteStartMs=n.int32();break;case 3:r.absoluteStopMs=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",absoluteStartMs:l(e.absoluteStartMs)?Number(e.absoluteStartMs):0,absoluteStopMs:l(e.absoluteStopMs)?Number(e.absoluteStopMs):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.absoluteStartMs&&(t.absoluteStartMs=Math.round(e.absoluteStartMs)),void 0!==e.absoluteStopMs&&(t.absoluteStopMs=Math.round(e.absoluteStopMs)),t},fromPartial(e){const t={uri:"",absoluteStartMs:0,absoluteStopMs:0};return t.uri=e.uri??"",t.absoluteStartMs=e.absoluteStartMs??0,t.absoluteStopMs=e.absoluteStopMs??0,t}}},17183:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeDecorationPolicy=t.SegmentsPolicy=t.TrackDecorationPolicy=t.SegmentsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(70659),a=n(97375),s=n(82137),l=n(37403),c=n(66927);function u(e){return null!=e}t.protobufPackage="spotify.podcast_segments.cosmos.proto",t.SegmentsRequest={encode(e,n=i.default.Writer.create()){for(const t of e.episodeUris)n.uint32(10).string(t);return void 0!==e.trackDecorationPolicy&&t.TrackDecorationPolicy.encode(e.trackDecorationPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.segmentsPolicy&&t.SegmentsPolicy.encode(e.segmentsPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.episodeDecorationPolicy&&t.EpisodeDecorationPolicy.encode(e.episodeDecorationPolicy,n.uint32(34).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={episodeUris:[],trackDecorationPolicy:void 0,segmentsPolicy:void 0,episodeDecorationPolicy:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.episodeUris.push(o.string());break;case 2:a.trackDecorationPolicy=t.TrackDecorationPolicy.decode(o,o.uint32());break;case 3:a.segmentsPolicy=t.SegmentsPolicy.decode(o,o.uint32());break;case 4:a.episodeDecorationPolicy=t.EpisodeDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeUris:Array.isArray(e?.episodeUris)?e.episodeUris.map((e=>String(e))):[],trackDecorationPolicy:u(e.trackDecorationPolicy)?t.TrackDecorationPolicy.fromJSON(e.trackDecorationPolicy):void 0,segmentsPolicy:u(e.segmentsPolicy)?t.SegmentsPolicy.fromJSON(e.segmentsPolicy):void 0,episodeDecorationPolicy:u(e.episodeDecorationPolicy)?t.EpisodeDecorationPolicy.fromJSON(e.episodeDecorationPolicy):void 0}),toJSON(e){const n={};return e.episodeUris?n.episodeUris=e.episodeUris.map((e=>e)):n.episodeUris=[],void 0!==e.trackDecorationPolicy&&(n.trackDecorationPolicy=e.trackDecorationPolicy?t.TrackDecorationPolicy.toJSON(e.trackDecorationPolicy):void 0),void 0!==e.segmentsPolicy&&(n.segmentsPolicy=e.segmentsPolicy?t.SegmentsPolicy.toJSON(e.segmentsPolicy):void 0),void 0!==e.episodeDecorationPolicy&&(n.episodeDecorationPolicy=e.episodeDecorationPolicy?t.EpisodeDecorationPolicy.toJSON(e.episodeDecorationPolicy):void 0),n},fromPartial(e){const n={episodeUris:[],trackDecorationPolicy:void 0,segmentsPolicy:void 0,episodeDecorationPolicy:void 0};return n.episodeUris=e.episodeUris?.map((e=>e))||[],n.trackDecorationPolicy=void 0!==e.trackDecorationPolicy&&null!==e.trackDecorationPolicy?t.TrackDecorationPolicy.fromPartial(e.trackDecorationPolicy):void 0,n.segmentsPolicy=void 0!==e.segmentsPolicy&&null!==e.segmentsPolicy?t.SegmentsPolicy.fromPartial(e.segmentsPolicy):void 0,n.episodeDecorationPolicy=void 0!==e.episodeDecorationPolicy&&null!==e.episodeDecorationPolicy?t.EpisodeDecorationPolicy.fromPartial(e.episodeDecorationPolicy):void 0,n}},t.TrackDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.trackPolicy&&c.TrackDecorationPolicy.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.artistsPolicy&&a.ArtistDecorationPolicy.encode(e.artistsPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.albumPolicy&&r.AlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.albumArtistPolicy&&a.ArtistDecorationPolicy.encode(e.albumArtistPolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={trackPolicy:void 0,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.trackPolicy=c.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:s.artistsPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 3:s.albumPolicy=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 4:s.albumArtistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({trackPolicy:u(e.trackPolicy)?c.TrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,artistsPolicy:u(e.artistsPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0,albumPolicy:u(e.albumPolicy)?r.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,albumArtistPolicy:u(e.albumArtistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.albumArtistPolicy):void 0}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?c.TrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.artistsPolicy&&(t.artistsPolicy=e.artistsPolicy?a.ArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.albumArtistPolicy&&(t.albumArtistPolicy=e.albumArtistPolicy?a.ArtistDecorationPolicy.toJSON(e.albumArtistPolicy):void 0),t},fromPartial(e){const t={trackPolicy:void 0,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?c.TrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.albumArtistPolicy=void 0!==e.albumArtistPolicy&&null!==e.albumArtistPolicy?a.ArtistDecorationPolicy.fromPartial(e.albumArtistPolicy):void 0,t}},t.SegmentsPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.playback&&t.uint32(8).bool(e.playback),!0===e.embedded&&t.uint32(16).bool(e.embedded),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playback:!1,embedded:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playback=n.bool();break;case 2:r.embedded=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playback:!!u(e.playback)&&Boolean(e.playback),embedded:!!u(e.embedded)&&Boolean(e.embedded)}),toJSON(e){const t={};return void 0!==e.playback&&(t.playback=e.playback),void 0!==e.embedded&&(t.embedded=e.embedded),t},fromPartial(e){const t={playback:!1,embedded:!1};return t.playback=e.playback??!1,t.embedded=e.embedded??!1,t}},t.EpisodeDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episodePolicy&&s.EpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.showDecorationPolicy&&l.ShowDecorationPolicy.encode(e.showDecorationPolicy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,showDecorationPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.episodePolicy=s.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:r.showDecorationPolicy=l.ShowDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({episodePolicy:u(e.episodePolicy)?s.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,showDecorationPolicy:u(e.showDecorationPolicy)?l.ShowDecorationPolicy.fromJSON(e.showDecorationPolicy):void 0}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?s.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.showDecorationPolicy&&(t.showDecorationPolicy=e.showDecorationPolicy?l.ShowDecorationPolicy.toJSON(e.showDecorationPolicy):void 0),t},fromPartial(e){const t={episodePolicy:void 0,showDecorationPolicy:void 0};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?s.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.showDecorationPolicy=void 0!==e.showDecorationPolicy&&null!==e.showDecorationPolicy?l.ShowDecorationPolicy.fromPartial(e.showDecorationPolicy):void 0,t}}},44673:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecoratedSegment=t.EpisodeSegments=t.SegmentsResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(38775),a=n(87612),s=n(81409);function l(e){return null!=e}t.protobufPackage="spotify.podcast_segments.cosmos.proto",t.SegmentsResponse={encode(e,n=i.default.Writer.create()){!0===e.success&&n.uint32(8).bool(e.success);for(const o of e.episodeSegments)t.EpisodeSegments.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={success:!1,episodeSegments:[]};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.success=o.bool();break;case 2:a.episodeSegments.push(t.EpisodeSegments.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({success:!!l(e.success)&&Boolean(e.success),episodeSegments:Array.isArray(e?.episodeSegments)?e.episodeSegments.map((e=>t.EpisodeSegments.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.success&&(n.success=e.success),e.episodeSegments?n.episodeSegments=e.episodeSegments.map((e=>e?t.EpisodeSegments.toJSON(e):void 0)):n.episodeSegments=[],n},fromPartial(e){const n={success:!1,episodeSegments:[]};return n.success=e.success??!1,n.episodeSegments=e.episodeSegments?.map((e=>t.EpisodeSegments.fromPartial(e)))||[],n}},t.EpisodeSegments={encode(e,n=i.default.Writer.create()){""!==e.episodeUri&&n.uint32(10).string(e.episodeUri);for(const o of e.segments)t.DecoratedSegment.encode(o,n.uint32(18).fork()).ldelim();!0===e.canUpsell&&n.uint32(24).bool(e.canUpsell),""!==e.albumMosaicUri&&n.uint32(34).string(e.albumMosaicUri);for(const t of e.artists)n.uint32(42).string(t);return 0!==e.durationMs&&n.uint32(48).int32(e.durationMs),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={episodeUri:"",segments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.episodeUri=o.string();break;case 2:a.segments.push(t.DecoratedSegment.decode(o,o.uint32()));break;case 3:a.canUpsell=o.bool();break;case 4:a.albumMosaicUri=o.string();break;case 5:a.artists.push(o.string());break;case 6:a.durationMs=o.int32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeUri:l(e.episodeUri)?String(e.episodeUri):"",segments:Array.isArray(e?.segments)?e.segments.map((e=>t.DecoratedSegment.fromJSON(e))):[],canUpsell:!!l(e.canUpsell)&&Boolean(e.canUpsell),albumMosaicUri:l(e.albumMosaicUri)?String(e.albumMosaicUri):"",artists:Array.isArray(e?.artists)?e.artists.map((e=>String(e))):[],durationMs:l(e.durationMs)?Number(e.durationMs):0}),toJSON(e){const n={};return void 0!==e.episodeUri&&(n.episodeUri=e.episodeUri),e.segments?n.segments=e.segments.map((e=>e?t.DecoratedSegment.toJSON(e):void 0)):n.segments=[],void 0!==e.canUpsell&&(n.canUpsell=e.canUpsell),void 0!==e.albumMosaicUri&&(n.albumMosaicUri=e.albumMosaicUri),e.artists?n.artists=e.artists.map((e=>e)):n.artists=[],void 0!==e.durationMs&&(n.durationMs=Math.round(e.durationMs)),n},fromPartial(e){const n={episodeUri:"",segments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};return n.episodeUri=e.episodeUri??"",n.segments=e.segments?.map((e=>t.DecoratedSegment.fromPartial(e)))||[],n.canUpsell=e.canUpsell??!1,n.albumMosaicUri=e.albumMosaicUri??"",n.artists=e.artists?.map((e=>e))||[],n.durationMs=e.durationMs??0,n}},t.DecoratedSegment={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.startMs&&t.uint32(16).int32(e.startMs),0!==e.stopMs&&t.uint32(24).int32(e.stopMs),void 0!==e.trackMetadata&&a.TrackMetadata.encode(e.trackMetadata,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).int32(e.type),""!==e.title&&t.uint32(50).string(e.title),""!==e.subtitle&&t.uint32(58).string(e.subtitle),""!==e.imageUrl&&t.uint32(66).string(e.imageUrl),""!==e.actionUrl&&t.uint32(74).string(e.actionUrl),void 0!==e.episodeMetadata&&r.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(82).fork()).ldelim(),!0===e.isAbridged&&t.uint32(88).bool(e.isAbridged),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={uri:"",startMs:0,stopMs:0,trackMetadata:void 0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",episodeMetadata:void 0,isAbridged:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.uri=n.string();break;case 2:s.startMs=n.int32();break;case 3:s.stopMs=n.int32();break;case 4:s.trackMetadata=a.TrackMetadata.decode(n,n.uint32());break;case 5:s.type=n.int32();break;case 6:s.title=n.string();break;case 7:s.subtitle=n.string();break;case 8:s.imageUrl=n.string();break;case 9:s.actionUrl=n.string();break;case 10:s.episodeMetadata=r.EpisodeMetadata.decode(n,n.uint32());break;case 11:s.isAbridged=n.bool();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",startMs:l(e.startMs)?Number(e.startMs):0,stopMs:l(e.stopMs)?Number(e.stopMs):0,trackMetadata:l(e.trackMetadata)?a.TrackMetadata.fromJSON(e.trackMetadata):void 0,type:l(e.type)?(0,s.segmentTypeFromJSON)(e.type):0,title:l(e.title)?String(e.title):"",subtitle:l(e.subtitle)?String(e.subtitle):"",imageUrl:l(e.imageUrl)?String(e.imageUrl):"",actionUrl:l(e.actionUrl)?String(e.actionUrl):"",episodeMetadata:l(e.episodeMetadata)?r.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,isAbridged:!!l(e.isAbridged)&&Boolean(e.isAbridged)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.startMs&&(t.startMs=Math.round(e.startMs)),void 0!==e.stopMs&&(t.stopMs=Math.round(e.stopMs)),void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?a.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.type&&(t.type=(0,s.segmentTypeToJSON)(e.type)),void 0!==e.title&&(t.title=e.title),void 0!==e.subtitle&&(t.subtitle=e.subtitle),void 0!==e.imageUrl&&(t.imageUrl=e.imageUrl),void 0!==e.actionUrl&&(t.actionUrl=e.actionUrl),void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?r.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.isAbridged&&(t.isAbridged=e.isAbridged),t},fromPartial(e){const t={uri:"",startMs:0,stopMs:0,trackMetadata:void 0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",episodeMetadata:void 0,isAbridged:!1};return t.uri=e.uri??"",t.startMs=e.startMs??0,t.stopMs=e.stopMs??0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?a.TrackMetadata.fromPartial(e.trackMetadata):void 0,t.type=e.type??0,t.title=e.title??"",t.subtitle=e.subtitle??"",t.imageUrl=e.imageUrl??"",t.actionUrl=e.actionUrl??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?r.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.isAbridged=e.isAbridged??!1,t}}},70659:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncDecorationPolicy=t.AlbumCollectionDecorationPolicy=t.AlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.copyrights=n.bool();break;case 4:r.covers=n.bool();break;case 5:r.year=n.bool();break;case 6:r.numDiscs=n.bool();break;case 7:r.numTracks=n.bool();break;case 8:r.playability=n.bool();break;case 9:r.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),copyrights:!!r(e.copyrights)&&Boolean(e.copyrights),covers:!!r(e.covers)&&Boolean(e.covers),year:!!r(e.year)&&Boolean(e.year),numDiscs:!!r(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!r(e.numTracks)&&Boolean(e.numTracks),playability:!!r(e.playability)&&Boolean(e.playability),isPremiumOnly:!!r(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.bool();break;case 2:r.numTracksInCollection=n.bool();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!r(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},97375:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncDecorationPolicy=t.ArtistCollectionDecorationPolicy=t.ArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.isVariousArtists=n.bool();break;case 4:r.portraits=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),isVariousArtists:!!r(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!r(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.bool();break;case 2:r.isFollowed=n.bool();break;case 3:r.numTracksInCollection=n.bool();break;case 4:r.numAlbumsInCollection=n.bool();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!r(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!r(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},82137:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(43395);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 22:r.is19PlusOnly=n.bool();break;case 23:r.isBookChapter=n.bool();break;case 24:r.isPodcastShort=n.bool();break;case 25:r.isCurated=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},37403:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(43395);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 17:r.isBook=n.bool();break;case 18:r.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},66927:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncDecorationPolicy=t.TrackCollectionDecorationPolicy=t.TrackPlayedStateDecorationPolicy=t.TrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(43395);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.hasLyrics=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.length=n.bool();break;case 5:r.playable=n.bool();break;case 6:r.isAvailableInMetadataCatalogue=n.bool();break;case 7:r.locallyPlayable=n.bool();break;case 8:r.playableLocalTrack=n.bool();break;case 9:r.discNumber=n.bool();break;case 10:r.trackNumber=n.bool();break;case 11:r.isExplicit=n.bool();break;case 12:r.previewId=n.bool();break;case 13:r.isLocal=n.bool();break;case 14:r.isPremiumOnly=n.bool();break;case 15:r.playableTrackLink=n.bool();break;case 16:r.popularity=n.bool();break;case 17:r.is19PlusOnly=n.bool();break;case 18:r.trackDescriptors=n.bool();break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 20:r.isCurated=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({hasLyrics:!!a(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),length:!!a(e.length)&&Boolean(e.length),playable:!!a(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!a(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!a(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!a(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!a(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!a(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!a(e.previewId)&&Boolean(e.previewId),isLocal:!!a(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!a(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!a(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!a(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playable=n.bool();break;case 2:r.isCurrentlyPlayable=n.bool();break;case 3:r.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playable:!!a(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!a(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},64103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokeServiceClient=void 0;const o=n(33892),i=n(5625),r=n(97011),a=n(26168),s=n(66903);class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}postVocalVolume(e){const t="spotify.karaoke_esperanto.proto.KaraokeService",n="PostVocalVolume",r=i.KaraokePostVocalVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.KaraokePostVocalVolumeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}postStatus(e){const t="spotify.karaoke_esperanto.proto.KaraokeService",n="PostStatus",i=r.KaraokePostStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.KaraokePostStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getStatus(e){const t="spotify.karaoke_esperanto.proto.KaraokeService",n="GetStatus",i=a.KaraokeGetStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.KaraokeGetStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeToEvents(e,t){const n="spotify.karaoke_esperanto.proto.KaraokeService",i="SubscribeToEvents",r=s.KaraokeSubEventsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=s.KaraokeSubEventsResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}static SERVICE_ID="spotify.karaoke_esperanto.proto.KaraokeService";static DECODERS={PostVocalVolume:{request:i.KaraokePostVocalVolumeRequest.decode,response:i.KaraokePostVocalVolumeResponse.decode},PostStatus:{request:r.KaraokePostStatusRequest.decode,response:r.KaraokePostStatusResponse.decode},GetStatus:{request:a.KaraokeGetStatusRequest.decode,response:a.KaraokeGetStatusResponse.decode},SubscribeToEvents:{request:s.KaraokeSubEventsRequest.decode,response:s.KaraokeSubEventsResponse.decode}}}t.KaraokeServiceClient=l},10260:(e,t,n)=>{"use strict";t.gw=void 0;var o=n(26168);var i=n(97011);var r=n(5625);var a=n(5734);var s=n(66903);var l=n(64103);Object.defineProperty(t,"gw",{enumerable:!0,get:function(){return l.KaraokeServiceClient}})},26168:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokeGetStatusResponse=t.KaraokeGetStatusRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(5734);t.protobufPackage="spotify.karaoke_esperanto.proto",t.KaraokeGetStatusRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.KaraokeGetStatusResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON(e){return{status:(t=e.status,null!=t?(0,a.karaokeStatusFromJSON)(e.status):0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=(0,a.karaokeStatusToJSON)(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},97011:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokePostStatusResponse=t.KaraokePostStatusRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(5734);function s(e){return null!=e}t.protobufPackage="spotify.karaoke_esperanto.proto",t.KaraokePostStatusRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:s(e.status)?(0,a.karaokeStatusFromJSON)(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=(0,a.karaokeStatusToJSON)(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.KaraokePostStatusResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={success:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.success=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({success:!!s(e.success)&&Boolean(e.success)}),toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),t},fromPartial(e){const t={success:!1};return t.success=e.success??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5625:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokePostVocalVolumeResponse=t.KaraokePostVocalVolumeRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.karaoke_esperanto.proto",t.KaraokePostVocalVolumeRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.volume&&t.uint32(13).float(e.volume),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={volume:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.volume=n.float();else n.skipType(7&e)}return i},fromJSON:e=>({volume:a(e.volume)?Number(e.volume):0}),toJSON(e){const t={};return void 0!==e.volume&&(t.volume=e.volume),t},fromPartial(e){const t={volume:0};return t.volume=e.volume??0,t}},t.KaraokePostVocalVolumeResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={success:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.success=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({success:!!a(e.success)&&Boolean(e.success)}),toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),t},fromPartial(e){const t={success:!1};return t.success=e.success??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5734:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.karaokeStatusToJSON=t.karaokeStatusFromJSON=t.KaraokeStatus=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.karaoke_esperanto.proto",function(e){e[e.ENABLED=0]="ENABLED",e[e.DISABLED=1]="DISABLED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.KaraokeStatus||(t.KaraokeStatus={})),t.karaokeStatusFromJSON=function(e){switch(e){case 0:case"ENABLED":return a.ENABLED;case 1:case"DISABLED":return a.DISABLED;default:return a.UNRECOGNIZED}},t.karaokeStatusToJSON=function(e){switch(e){case a.ENABLED:return"ENABLED";case a.DISABLED:return"DISABLED";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66903:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokeSubEventsResponse=t.KaraokeSubEventsRequest=t.karaokeSubEventsResponse_IdToJSON=t.karaokeSubEventsResponse_IdFromJSON=t.KaraokeSubEventsResponse_Id=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"MASK_READY":return a.MASK_READY;case 1:case"ERROR":return a.ERROR;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.MASK_READY:return"MASK_READY";case a.ERROR:return"ERROR";default:return"UNKNOWN"}}function c(e){return null!=e}t.protobufPackage="spotify.karaoke_esperanto.proto",function(e){e[e.MASK_READY=0]="MASK_READY",e[e.ERROR=1]="ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.KaraokeSubEventsResponse_Id||(t.KaraokeSubEventsResponse_Id={})),t.karaokeSubEventsResponse_IdFromJSON=s,t.karaokeSubEventsResponse_IdToJSON=l,t.KaraokeSubEventsRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.KaraokeSubEventsResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.id&&t.uint32(8).int32(e.id),""!==e.trackUri&&t.uint32(18).string(e.trackUri),""!==e.errorMessage&&t.uint32(26).string(e.errorMessage),0!==e.errorCode&&t.uint32(32).int32(e.errorCode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={id:0,trackUri:"",errorMessage:"",errorCode:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.id=n.int32();break;case 2:i.trackUri=n.string();break;case 3:i.errorMessage=n.string();break;case 4:i.errorCode=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({id:c(e.id)?s(e.id):0,trackUri:c(e.trackUri)?String(e.trackUri):"",errorMessage:c(e.errorMessage)?String(e.errorMessage):"",errorCode:c(e.errorCode)?Number(e.errorCode):0}),toJSON(e){const t={};return void 0!==e.id&&(t.id=l(e.id)),void 0!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.errorMessage&&(t.errorMessage=e.errorMessage),void 0!==e.errorCode&&(t.errorCode=Math.round(e.errorCode)),t},fromPartial(e){const t={id:0,trackUri:"",errorMessage:"",errorCode:0};return t.id=e.id??0,t.trackUri=e.trackUri??"",t.errorMessage=e.errorMessage??"",t.errorCode=e.errorCode??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},45363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterServiceClient=void 0;const o=n(33892),i=n(28289),r=n(44433),a=n(37480),s=n(29024);class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}episodes(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Episodes",a=i.ListenLaterGetEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.EpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamEpisodes(e,t){const n="spotify.listen_later_esperanto.proto.ListenLaterService",a="StreamEpisodes",s=i.ListenLaterGetEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.EpisodesResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}play(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Play",i=a.ListenLaterPlayEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.ListenLaterPlayEpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}add(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Add",i=s.ListenLaterRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ListenLaterResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}remove(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Remove",i=s.ListenLaterRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ListenLaterResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.listen_later_esperanto.proto.ListenLaterService";static DECODERS={Episodes:{request:i.ListenLaterGetEpisodesRequest.decode,response:r.EpisodesResponse.decode},StreamEpisodes:{request:i.ListenLaterGetEpisodesRequest.decode,response:r.EpisodesResponse.decode},Play:{request:a.ListenLaterPlayEpisodesRequest.decode,response:a.ListenLaterPlayEpisodesResponse.decode},Add:{request:s.ListenLaterRequest.decode,response:s.ListenLaterResponse.decode},Remove:{request:s.ListenLaterRequest.decode,response:s.ListenLaterResponse.decode}}}t.ListenLaterServiceClient=l},67188:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterServiceClient=void 0;var r=n(45363);Object.defineProperty(t,"ListenLaterServiceClient",{enumerable:!0,get:function(){return r.ListenLaterServiceClient}}),i(n(99234),t)},99695:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=i.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isNew=n.bool();break;case 3:r.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!r(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!r(e.isNew)&&Boolean(e.isNew),isInListenLater:!!r(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}}},31524:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context_MetadataEntry=t.Context=t.protobufPackage=void 0;const i=o(n(33892)),r=n(48442),a=n(18018);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=i.default.Writer.create()){for(const t of e.pages)r.ContextPage.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.Context_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&a.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let s=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:l.pages.push(r.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoading=o.bool();break;case 6:l.restrictions=a.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>r.ContextPage.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:s(e.uri)?String(e.uri):"",url:s(e.url)?String(e.url):"",isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),restrictions:s(e.restrictions)?a.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?r.ContextPage.toJSON(e):void 0)):t.pages=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.url&&(t.url=e.url),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=e.restrictions?a.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>r.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?a.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},48442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPage_MetadataEntry=t.ContextPage=t.protobufPackage=void 0;const i=o(n(33892)),r=n(677);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=i.default.Writer.create()){for(const t of e.tracks)r.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.tracks.push(r.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoading=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.ContextTrack.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:a(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:a(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.ContextTrack.toJSON(e):void 0)):t.tracks=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),void 0!==e.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:a(e.key)?String(e.key):"",value:a(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},70662:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerOptionOverrides=t.ContextPlayerOptions=t.protobufPackage=void 0;const i=o(n(33892)),r=n(437);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=i.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),!0===e.repeatingContext&&t.uint32(16).bool(e.repeatingContext),!0===e.repeatingTrack&&t.uint32(24).bool(e.repeatingTrack),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.shufflingContext=n.bool();break;case 2:r.repeatingContext=n.bool();break;case 3:r.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({shufflingContext:!!a(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!a(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!a(e.repeatingTrack)&&Boolean(e.repeatingTrack)}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),t},fromPartial(e){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=i.default.Writer.create())=>(void 0!==e.shufflingContext&&r.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&r.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&r.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.shufflingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 2:a.repeatingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 3:a.repeatingTrack=r.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({shufflingContext:a(e.shufflingContext)?r.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:a(e.repeatingContext)?r.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:a(e.repeatingTrack)?r.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?r.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?r.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?r.OptionalBoolean.toJSON(e.repeatingTrack):void 0),t},fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?r.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?r.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?r.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}}},677:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTrack_MetadataEntry=t.ContextTrack=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=i.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),""!==e.uid&&n.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{uri:r(e.uri)?String(e.uri):"",uid:r(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.uid&&(t.uid=e.uid),t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),t},fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:r(e.key)?String(e.key):"",value:r(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},31215:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingParams=t.protobufPackage=void 0;const i=o(n(33892)),r=n(437);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=i.default.Writer.create()){void 0!==e.commandInitiatedTime&&r.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&r.OptionalInt64.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.commandInitiatedTime=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.commandReceivedTime=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.pageInstanceIds.push(n.string());break;case 4:a.interactionIds.push(n.string());break;case 5:a.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({commandInitiatedTime:a(e.commandInitiatedTime)?r.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:a(e.commandReceivedTime)?r.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?r.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?r.OptionalInt64.toJSON(e.commandReceivedTime):void 0),e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),t},fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?r.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?r.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}}},437:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBoolean=t.OptionalDouble=t.OptionalInt64=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.int64().toString();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?String(e.value):"0"}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.double();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!a(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},54477:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOptions=t.playOptions_TriggerToJSON=t.playOptions_TriggerFromJSON=t.PlayOptions_Trigger=t.playOptions_OperationToJSON=t.playOptions_OperationFromJSON=t.PlayOptions_Operation=t.playOptions_ReasonToJSON=t.playOptions_ReasonFromJSON=t.PlayOptions_Reason=t.protobufPackage=void 0;const i=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"INTERACTIVE":return r.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return r.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.INTERACTIVE:return"INTERACTIVE";case r.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"REPLACE":return a.REPLACE;case 1:case"ENQUEUE":return a.ENQUEUE;case 2:case"PUSH":return a.PUSH;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.REPLACE:return"REPLACE";case a.ENQUEUE:return"ENQUEUE";case a.PUSH:return"PUSH";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"IMMEDIATELY":return s.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return s.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return s.ADVANCED_PAST_CONTEXT;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.IMMEDIATELY:return"IMMEDIATELY";case s.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case s.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=l,t.playOptions_ReasonToJSON=c,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=u,t.playOptions_OperationToJSON=d,function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=p,t.playOptions_TriggerToJSON=f,t.PlayOptions={encode:(e,t=i.default.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.reason=n.int32();break;case 2:r.operation=n.int32();break;case 3:r.trigger=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({reason:h(e.reason)?l(e.reason):0,operation:h(e.operation)?u(e.operation):0,trigger:h(e.trigger)?p(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.operation&&(t.operation=d(e.operation)),void 0!==e.trigger&&(t.trigger=f(e.trigger)),t},fromPartial(e){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}}},11694:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOrigin=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=i.default.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.featureIdentifier=n.string();break;case 2:r.featureVersion=n.string();break;case 3:r.viewUri=n.string();break;case 4:r.externalReferrer=n.string();break;case 5:r.referrerIdentifier=n.string();break;case 6:r.deviceIdentifier=n.string();break;case 7:r.featureClasses.push(n.string());break;case 8:r.restrictionIdentifier=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({featureIdentifier:r(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:r(e.featureVersion)?String(e.featureVersion):"",viewUri:r(e.viewUri)?String(e.viewUri):"",externalReferrer:r(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:r(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:r(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:r(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),void 0!==e.featureVersion&&(t.featureVersion=e.featureVersion),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),void 0!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?t.featureClasses=e.featureClasses.map((e=>e)):t.featureClasses=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}}},43920:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreparePlayOptions_ConfigurationOverrideEntry=t.PreparePlayOptions=t.preparePlayOptions_AudioStreamToJSON=t.preparePlayOptions_AudioStreamFromJSON=t.PreparePlayOptions_AudioStream=t.preparePlayOptions_PrefetchLevelToJSON=t.preparePlayOptions_PrefetchLevelFromJSON=t.PreparePlayOptions_PrefetchLevel=t.protobufPackage=void 0;const i=o(n(33892)),r=n(70662),a=n(437),s=n(65928);var l,c;function u(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"MEDIA":return l.MEDIA;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.NONE:return"NONE";case l.MEDIA:return"MEDIA";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"DEFAULT":return c.DEFAULT;case 1:case"ALARM":return c.ALARM;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.DEFAULT:return"DEFAULT";case c.ALARM:return"ALARM";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(){return{playbackId:new Uint8Array,alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=u,t.preparePlayOptions_PrefetchLevelToJSON=d,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=p,t.preparePlayOptions_AudioStreamToJSON=f,t.PreparePlayOptions={encode(e,n=i.default.Writer.create()){0!==e.playbackId.length&&n.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&n.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&s.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&a.OptionalInt64.encode(e.seekTo,n.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&n.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&n.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&r.ContextPlayerOptionOverrides.encode(e.playerOptionsOverride,n.uint32(58).fork()).ldelim();for(const t of e.suppressions)n.uint32(66).string(t);return 0!==e.prefetchLevel&&n.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&n.uint32(80).int32(e.audioStream),""!==e.sessionId&&n.uint32(90).string(e.sessionId),""!==e.license&&n.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c=h();for(;o.pos<l;){const e=o.uint32();switch(e>>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=s.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=a.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=r.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.skipType(7&e)}}return c},fromJSON(e){return{playbackId:v(e.playbackId)?g(e.playbackId):new Uint8Array,alwaysPlaySomething:!!v(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:v(e.skipTo)?s.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:v(e.seekTo)?a.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!v(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!v(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:v(e.playerOptionsOverride)?r.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:v(e.prefetchLevel)?u(e.prefetchLevel):0,audioStream:v(e.audioStream)?p(e.audioStream):0,sessionId:v(e.sessionId)?String(e.sessionId):"",license:v(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=function(e){if(m.Buffer)return m.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),m.btoa(t.join(""))}}(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=e.skipTo?s.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?a.OptionalInt64.toJSON(e.seekTo):void 0),void 0!==e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),void 0!==e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=e.playerOptionsOverride?r.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=d(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=f(e.audioStream)),void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.license&&(t.license=e.license),t.configurationOverride={},e.configurationOverride&&Object.entries(e.configurationOverride).forEach((([e,n])=>{t.configurationOverride[e]=n})),t},fromPartial(e){const t=h();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?s.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?a.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?r.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var m=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function g(e){if(m.Buffer)return Uint8Array.from(m.Buffer.from(e,"base64"));{const t=m.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function v(e){return null!=e}},18018:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Restrictions=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.Restrictions={encode(e,t=i.default.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.disallowPausingReasons.push(n.string());break;case 2:r.disallowResumingReasons.push(n.string());break;case 3:r.disallowSeekingReasons.push(n.string());break;case 4:r.disallowPeekingPrevReasons.push(n.string());break;case 5:r.disallowPeekingNextReasons.push(n.string());break;case 6:r.disallowSkippingPrevReasons.push(n.string());break;case 7:r.disallowSkippingNextReasons.push(n.string());break;case 8:r.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:r.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:r.disallowTogglingShuffleReasons.push(n.string());break;case 11:r.disallowSetQueueReasons.push(n.string());break;case 12:r.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:r.disallowTransferringPlaybackReasons.push(n.string());break;case 14:r.disallowRemoteControlReasons.push(n.string());break;case 15:r.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:r.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:r.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:r.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:r.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:r.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:r.disallowUpdatingContextReasons.push(n.string());break;case 22:r.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?t.disallowPausingReasons=e.disallowPausingReasons.map((e=>e)):t.disallowPausingReasons=[],e.disallowResumingReasons?t.disallowResumingReasons=e.disallowResumingReasons.map((e=>e)):t.disallowResumingReasons=[],e.disallowSeekingReasons?t.disallowSeekingReasons=e.disallowSeekingReasons.map((e=>e)):t.disallowSeekingReasons=[],e.disallowPeekingPrevReasons?t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons.map((e=>e)):t.disallowPeekingPrevReasons=[],e.disallowPeekingNextReasons?t.disallowPeekingNextReasons=e.disallowPeekingNextReasons.map((e=>e)):t.disallowPeekingNextReasons=[],e.disallowSkippingPrevReasons?t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons.map((e=>e)):t.disallowSkippingPrevReasons=[],e.disallowSkippingNextReasons?t.disallowSkippingNextReasons=e.disallowSkippingNextReasons.map((e=>e)):t.disallowSkippingNextReasons=[],e.disallowTogglingRepeatContextReasons?t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons.map((e=>e)):t.disallowTogglingRepeatContextReasons=[],e.disallowTogglingRepeatTrackReasons?t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons.map((e=>e)):t.disallowTogglingRepeatTrackReasons=[],e.disallowTogglingShuffleReasons?t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons.map((e=>e)):t.disallowTogglingShuffleReasons=[],e.disallowSetQueueReasons?t.disallowSetQueueReasons=e.disallowSetQueueReasons.map((e=>e)):t.disallowSetQueueReasons=[],e.disallowInterruptingPlaybackReasons?t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons.map((e=>e)):t.disallowInterruptingPlaybackReasons=[],e.disallowTransferringPlaybackReasons?t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons.map((e=>e)):t.disallowTransferringPlaybackReasons=[],e.disallowRemoteControlReasons?t.disallowRemoteControlReasons=e.disallowRemoteControlReasons.map((e=>e)):t.disallowRemoteControlReasons=[],e.disallowInsertingIntoNextTracksReasons?t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons.map((e=>e)):t.disallowInsertingIntoNextTracksReasons=[],e.disallowInsertingIntoContextTracksReasons?t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons.map((e=>e)):t.disallowInsertingIntoContextTracksReasons=[],e.disallowReorderingInNextTracksReasons?t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons.map((e=>e)):t.disallowReorderingInNextTracksReasons=[],e.disallowReorderingInContextTracksReasons?t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons.map((e=>e)):t.disallowReorderingInContextTracksReasons=[],e.disallowRemovingFromNextTracksReasons?t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons.map((e=>e)):t.disallowRemovingFromNextTracksReasons=[],e.disallowRemovingFromContextTracksReasons?t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons.map((e=>e)):t.disallowRemovingFromContextTracksReasons=[],e.disallowUpdatingContextReasons?t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons.map((e=>e)):t.disallowUpdatingContextReasons=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}}},65928:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipToTrack=t.protobufPackage=void 0;const i=o(n(33892)),r=n(437);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=i.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&r.OptionalInt64.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&r.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.pageUrl=n.string();break;case 2:a.pageIndex=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.trackUid=n.string();break;case 4:a.trackUri=n.string();break;case 5:a.trackIndex=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({pageUrl:a(e.pageUrl)?String(e.pageUrl):"",pageIndex:a(e.pageIndex)?r.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:a(e.trackUid)?String(e.trackUid):"",trackUri:a(e.trackUri)?String(e.trackUri):"",trackIndex:a(e.trackIndex)?r.OptionalInt64.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=e.pageIndex?r.OptionalInt64.toJSON(e.pageIndex):void 0),void 0!==e.trackUid&&(t.trackUid=e.trackUid),void 0!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=e.trackIndex?r.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?r.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?r.OptionalInt64.fromPartial(e.trackIndex):void 0,t}}},94168:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},44433:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodesResponse=t.Episode=t.protobufPackage=void 0;const i=o(n(33892)),r=n(99695),a=n(26961),s=n(22498),l=n(95030);function c(e){return null!=e}t.protobufPackage="spotify.listen_later_cosmos.proto",t.Episode={encode:(e,t=i.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episodeMetadata&&a.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.episodeCollectionState&&r.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(26).fork()).ldelim(),void 0!==e.episodeOfflineState&&l.EpisodeSyncState.encode(e.episodeOfflineState,t.uint32(34).fork()).ldelim(),void 0!==e.episodePlayedState&&s.EpisodePlayState.encode(e.episodePlayedState,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const c={header:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayedState:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:c.header=n.string();break;case 2:c.episodeMetadata=a.EpisodeMetadata.decode(n,n.uint32());break;case 3:c.episodeCollectionState=r.EpisodeCollectionState.decode(n,n.uint32());break;case 4:c.episodeOfflineState=l.EpisodeSyncState.decode(n,n.uint32());break;case 5:c.episodePlayedState=s.EpisodePlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return c},fromJSON:e=>({header:c(e.header)?String(e.header):"",episodeMetadata:c(e.episodeMetadata)?a.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:c(e.episodeCollectionState)?r.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:c(e.episodeOfflineState)?l.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodePlayedState:c(e.episodePlayedState)?s.EpisodePlayState.fromJSON(e.episodePlayedState):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?a.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?r.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?l.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayedState&&(t.episodePlayedState=e.episodePlayedState?s.EpisodePlayState.toJSON(e.episodePlayedState):void 0),t},fromPartial(e){const t={header:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayedState:void 0};return t.header=e.header??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?r.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?l.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayedState=void 0!==e.episodePlayedState&&null!==e.episodePlayedState?s.EpisodePlayState.fromPartial(e.episodePlayedState):void 0,t}},t.EpisodesResponse={encode(e,n=i.default.Writer.create()){0!==e.unfilteredLength&&n.uint32(8).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(16).uint32(e.unrangedLength);for(const o of e.episode)t.Episode.encode(o,n.uint32(26).fork()).ldelim();return""!==e.offlineAvailability&&n.uint32(42).string(e.offlineAvailability),0!==e.offlineProgress&&n.uint32(48).uint32(e.offlineProgress),0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={unfilteredLength:0,unrangedLength:0,episode:[],offlineAvailability:"",offlineProgress:0,statusCode:0,error:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.unfilteredLength=o.uint32();break;case 2:a.unrangedLength=o.uint32();break;case 3:a.episode.push(t.Episode.decode(o,o.uint32()));break;case 5:a.offlineAvailability=o.string();break;case 6:a.offlineProgress=o.uint32();break;case 98:a.statusCode=o.uint32();break;case 99:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,episode:Array.isArray(e?.episode)?e.episode.map((e=>t.Episode.fromJSON(e))):[],offlineAvailability:c(e.offlineAvailability)?String(e.offlineAvailability):"",offlineProgress:c(e.offlineProgress)?Number(e.offlineProgress):0,statusCode:c(e.statusCode)?Number(e.statusCode):0,error:c(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),e.episode?n.episode=e.episode.map((e=>e?t.Episode.toJSON(e):void 0)):n.episode=[],void 0!==e.offlineAvailability&&(n.offlineAvailability=e.offlineAvailability),void 0!==e.offlineProgress&&(n.offlineProgress=Math.round(e.offlineProgress)),void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={unfilteredLength:0,unrangedLength:0,episode:[],offlineAvailability:"",offlineProgress:0,statusCode:0,error:""};return n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.episode=e.episode?.map((e=>t.Episode.fromPartial(e)))||[],n.offlineAvailability=e.offlineAvailability??"",n.offlineProgress=e.offlineProgress??0,n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},29024:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterResponse=t.ListenLaterRequest=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.listen_later_esperanto.proto",t.ListenLaterRequest={encode(e,t=i.default.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uris:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.uris.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?t.uris=e.uris.map((e=>e)):t.uris=[],t},fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}},t.ListenLaterResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).uint32(e.statusCode),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,error:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.statusCode=n.uint32();break;case 2:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:r(e.statusCode)?Number(e.statusCode):0,error:r(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={statusCode:0,error:""};return t.statusCode=e.statusCode??0,t.error=e.error??"",t}}},37480:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterPlayEpisodesResponse=t.ListenLaterPlayEpisodesRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(31524),a=n(31215),s=n(54477),l=n(11694),c=n(43920);function u(e){return null!=e}t.protobufPackage="spotify.listen_later_esperanto.proto",t.ListenLaterPlayEpisodesRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sort&&t.uint32(10).string(e.sort),""!==e.filter&&t.uint32(18).string(e.filter),0!==e.start&&t.uint32(24).uint32(e.start),0!==e.length&&t.uint32(32).uint32(e.length),0!==e.updateThrottling&&t.uint32(40).uint32(e.updateThrottling),void 0!==e.context&&r.Context.encode(e.context,t.uint32(50).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(58).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(66).fork()).ldelim(),void 0!==e.preparePlayOptions&&c.PreparePlayOptions.encode(e.preparePlayOptions,t.uint32(74).fork()).ldelim(),void 0!==e.playOrigin&&l.PlayOrigin.encode(e.playOrigin,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const u={sort:"",filter:"",start:0,length:0,updateThrottling:0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:u.sort=n.string();break;case 2:u.filter=n.string();break;case 3:u.start=n.uint32();break;case 4:u.length=n.uint32();break;case 5:u.updateThrottling=n.uint32();break;case 6:u.context=r.Context.decode(n,n.uint32());break;case 7:u.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 8:u.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 9:u.preparePlayOptions=c.PreparePlayOptions.decode(n,n.uint32());break;case 10:u.playOrigin=l.PlayOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return u},fromJSON:e=>({sort:u(e.sort)?String(e.sort):"",filter:u(e.filter)?String(e.filter):"",start:u(e.start)?Number(e.start):0,length:u(e.length)?Number(e.length):0,updateThrottling:u(e.updateThrottling)?Number(e.updateThrottling):0,context:u(e.context)?r.Context.fromJSON(e.context):void 0,playOptions:u(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,loggingParams:u(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,preparePlayOptions:u(e.preparePlayOptions)?c.PreparePlayOptions.fromJSON(e.preparePlayOptions):void 0,playOrigin:u(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.context&&(t.context=e.context?r.Context.toJSON(e.context):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=e.preparePlayOptions?c.PreparePlayOptions.toJSON(e.preparePlayOptions):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?l.PlayOrigin.toJSON(e.playOrigin):void 0),t},fromPartial(e){const t={sort:"",filter:"",start:0,length:0,updateThrottling:0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};return t.sort=e.sort??"",t.filter=e.filter??"",t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t.context=void 0!==e.context&&null!==e.context?r.Context.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?c.PreparePlayOptions.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,t}},t.ListenLaterPlayEpisodesResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).uint32(e.statusCode),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,error:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.statusCode=n.uint32();break;case 2:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:u(e.statusCode)?Number(e.statusCode):0,error:u(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={statusCode:0,error:""};return t.statusCode=e.statusCode??0,t.error=e.error??"",t}}},28289:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterGetEpisodesRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(29788),a=n(18055);function s(e){return null!=e}t.protobufPackage="spotify.listen_later_esperanto.proto",t.ListenLaterGetEpisodesRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.showPolicy&&a.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&r.EpisodeCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.playedStatePolicy&&r.EpisodePlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(26).fork()).ldelim(),void 0!==e.syncPolicy&&r.EpisodeSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.episodePolicy&&r.EpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(42).fork()).ldelim(),""!==e.sort&&t.uint32(50).string(e.sort),""!==e.filter&&t.uint32(58).string(e.filter),!0===e.group&&t.uint32(64).bool(e.group),0!==e.start&&t.uint32(72).uint32(e.start),0!==e.length&&t.uint32(80).uint32(e.length),0!==e.updateThrottling&&t.uint32(88).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,syncPolicy:void 0,episodePolicy:void 0,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.showPolicy=a.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:s.collectionPolicy=r.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 3:s.playedStatePolicy=r.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 4:s.syncPolicy=r.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 5:s.episodePolicy=r.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 6:s.sort=n.string();break;case 7:s.filter=n.string();break;case 8:s.group=n.bool();break;case 9:s.start=n.uint32();break;case 10:s.length=n.uint32();break;case 11:s.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({showPolicy:s(e.showPolicy)?a.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,collectionPolicy:s(e.collectionPolicy)?r.EpisodeCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,playedStatePolicy:s(e.playedStatePolicy)?r.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,syncPolicy:s(e.syncPolicy)?r.EpisodeSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,episodePolicy:s(e.episodePolicy)?r.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,sort:s(e.sort)?String(e.sort):"",filter:s(e.filter)?String(e.filter):"",group:!!s(e.group)&&Boolean(e.group),start:s(e.start)?Number(e.start):0,length:s(e.length)?Number(e.length):0,updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?r.EpisodeCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?r.EpisodePlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?r.EpisodeSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?r.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,syncPolicy:void 0,episodePolicy:void 0,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?r.EpisodeCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?r.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?r.EpisodeSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?r.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t}}},99234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.protobufPackage=void 0,t.protobufPackage="spotify.listen_later_esperanto.proto"},26961:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(79982),s=n(26606);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&s.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&s.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)a.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?s.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?s.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?a.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},79982:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(33892)),r=n(94168);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function c(e){return null!=e}},26606:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=i.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},22498:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(33160);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=i.default.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.timeLeft=n.uint32();break;case 2:r.isPlayable=n.bool();break;case 3:r.isPlayed=n.bool();break;case 4:r.lastPlayedAt=n.uint32();break;case 5:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:a(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:a(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:a(e.playabilityRestriction)?(0,r.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}}},33160:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0,t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NO_RESTRICTION":return n.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return n.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return n.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return n.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return n.NOT_AVAILABLE_OFFLINE;default:return n.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NO_RESTRICTION:return"NO_RESTRICTION";case n.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case n.AGE_RESTRICTED:return"AGE_RESTRICTED";case n.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case n.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},29788:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(94168);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 22:r.is19PlusOnly=n.bool();break;case 23:r.isBookChapter=n.bool();break;case 24:r.isPodcastShort=n.bool();break;case 25:r.isCurated=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},18055:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(94168);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 17:r.isBook=n.bool();break;case 18:r.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},95030:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offlineState=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:r(e.offlineState)?String(e.offlineState):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}}},91645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalFilesClient=void 0;const o=n(33892),i=n(92732),r=n(88979);class a{transport;constructor(e){this.transport=e}getTracks(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetTracks",payload:i.GetTracksRequest.encode(e).finish()}).then((e=>i.GetTracksResponse.decode(o.Reader.create(e))))}subscribeTracks(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeTracks",payload:i.GetTracksRequest.encode(e).finish()},(e=>t(i.GetTracksResponse.decode(o.Reader.create(e)))))}getScannerStatus(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetScannerStatus",payload:r.Empty.encode(e).finish()}).then((e=>i.GetScannerStatusResponse.decode(o.Reader.create(e))))}subscribeScannerStatus(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeScannerStatus",payload:r.Empty.encode(e).finish()},(e=>t(i.GetScannerStatusResponse.decode(o.Reader.create(e)))))}getSources(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetSources",payload:r.Empty.encode(e).finish()}).then((e=>i.GetSourcesResponse.decode(o.Reader.create(e))))}subscribeSources(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeSources",payload:r.Empty.encode(e).finish()},(e=>t(i.GetSourcesResponse.decode(o.Reader.create(e)))))}mutateDefaultSource(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"MutateDefaultSource",payload:i.DefaultSource.encode(e).finish()}).then((e=>i.MutateSourceResponse.decode(o.Reader.create(e))))}addFolder(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"AddFolder",payload:i.Folder.encode(e).finish()}).then((e=>i.MutateSourceResponse.decode(o.Reader.create(e))))}removeFolder(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"RemoveFolder",payload:i.Folder.encode(e).finish()}).then((e=>i.MutateSourceResponse.decode(o.Reader.create(e))))}provideMediaStoreReader(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"ProvideMediaStoreReader",payload:i.JavaObjectValue.encode(e).finish()},(e=>t(r.Empty.decode(o.Reader.create(e)))))}notifyDefaultSources(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"NotifyDefaultSources",payload:r.Empty.encode(e).finish()}).then((e=>r.Empty.decode(o.Reader.create(e))))}static SERVICE_ID="spotify.local_files_esperanto.proto.LocalFiles";static DECODERS={GetTracks:{request:i.GetTracksRequest.decode,response:i.GetTracksResponse.decode},SubscribeTracks:{request:i.GetTracksRequest.decode,response:i.GetTracksResponse.decode},GetScannerStatus:{request:r.Empty.decode,response:i.GetScannerStatusResponse.decode},SubscribeScannerStatus:{request:r.Empty.decode,response:i.GetScannerStatusResponse.decode},GetSources:{request:r.Empty.decode,response:i.GetSourcesResponse.decode},SubscribeSources:{request:r.Empty.decode,response:i.GetSourcesResponse.decode},MutateDefaultSource:{request:i.DefaultSource.decode,response:i.MutateSourceResponse.decode},AddFolder:{request:i.Folder.decode,response:i.MutateSourceResponse.decode},RemoveFolder:{request:i.Folder.decode,response:i.MutateSourceResponse.decode},ProvideMediaStoreReader:{request:i.JavaObjectValue.decode,response:r.Empty.decode},NotifyDefaultSources:{request:r.Empty.decode,response:r.Empty.decode}}}t.LocalFilesClient=a},52249:(e,t,n)=>{"use strict";t._X=t.g1=t.Y=t.Jp=t.uh=void 0;var o=n(82884);var i=n(2294);var r=n(28344);var a=n(5033);var s=n(66681);var l=n(49129);var c=n(37174);var u=n(92732);Object.defineProperty(t,"uh",{enumerable:!0,get:function(){return u.Query_SortBy}}),Object.defineProperty(t,"Jp",{enumerable:!0,get:function(){return u.GetTracksRequest}}),Object.defineProperty(t,"Y",{enumerable:!0,get:function(){return u.DefaultSource_Id}}),Object.defineProperty(t,"g1",{enumerable:!0,get:function(){return u.MutateSourceResponse_Result}});var d=n(91645);Object.defineProperty(t,"_X",{enumerable:!0,get:function(){return d.LocalFilesClient}})},92732:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaObjectValue=t.MutateSourceResponse=t.GetSourcesResponse=t.Folder=t.DefaultSource=t.GetScannerStatusResponse=t.GetTracksResponse=t.GetTracksRequest=t.Query=t.Range=t.ResponseStatus=t.Response=t.Item=t.mutateSourceResponse_ResultToJSON=t.mutateSourceResponse_ResultFromJSON=t.MutateSourceResponse_Result=t.defaultSource_IdToJSON=t.defaultSource_IdFromJSON=t.DefaultSource_Id=t.getScannerStatusResponse_ScannerStatusToJSON=t.getScannerStatusResponse_ScannerStatusFromJSON=t.GetScannerStatusResponse_ScannerStatus=t.query_SortByToJSON=t.query_SortByFromJSON=t.Query_SortBy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(2294),s=n(37174),l=n(66681);var c,u,d,p;function f(e){switch(e){case 0:case"NO_SORT":return c.NO_SORT;case 1:case"ALBUM_ARTIST_NAME_ASC":return c.ALBUM_ARTIST_NAME_ASC;case 2:case"ALBUM_ARTIST_NAME_DESC":return c.ALBUM_ARTIST_NAME_DESC;case 3:case"TRACK_NUMBER_ASC":return c.TRACK_NUMBER_ASC;case 4:case"TRACK_NUMBER_DESC":return c.TRACK_NUMBER_DESC;case 5:case"DISC_NUMBER_ASC":return c.DISC_NUMBER_ASC;case 6:case"DISC_NUMBER_DESC":return c.DISC_NUMBER_DESC;case 7:case"ALBUM_NAME_ASC":return c.ALBUM_NAME_ASC;case 8:case"ALBUM_NAME_DESC":return c.ALBUM_NAME_DESC;case 9:case"ARTIST_NAME_ASC":return c.ARTIST_NAME_ASC;case 10:case"ARTIST_NAME_DESC":return c.ARTIST_NAME_DESC;case 11:case"NAME_ASC":return c.NAME_ASC;case 12:case"NAME_DESC":return c.NAME_DESC;case 13:case"ADD_TIME_ASC":return c.ADD_TIME_ASC;case 14:case"ADD_TIME_DESC":return c.ADD_TIME_DESC;case 15:case"LENGTH_ASC":return c.LENGTH_ASC;case 16:case"LENGTH_DESC":return c.LENGTH_DESC;default:return c.UNRECOGNIZED}}function h(e){switch(e){case c.NO_SORT:return"NO_SORT";case c.ALBUM_ARTIST_NAME_ASC:return"ALBUM_ARTIST_NAME_ASC";case c.ALBUM_ARTIST_NAME_DESC:return"ALBUM_ARTIST_NAME_DESC";case c.TRACK_NUMBER_ASC:return"TRACK_NUMBER_ASC";case c.TRACK_NUMBER_DESC:return"TRACK_NUMBER_DESC";case c.DISC_NUMBER_ASC:return"DISC_NUMBER_ASC";case c.DISC_NUMBER_DESC:return"DISC_NUMBER_DESC";case c.ALBUM_NAME_ASC:return"ALBUM_NAME_ASC";case c.ALBUM_NAME_DESC:return"ALBUM_NAME_DESC";case c.ARTIST_NAME_ASC:return"ARTIST_NAME_ASC";case c.ARTIST_NAME_DESC:return"ARTIST_NAME_DESC";case c.NAME_ASC:return"NAME_ASC";case c.NAME_DESC:return"NAME_DESC";case c.ADD_TIME_ASC:return"ADD_TIME_ASC";case c.ADD_TIME_DESC:return"ADD_TIME_DESC";case c.LENGTH_ASC:return"LENGTH_ASC";case c.LENGTH_DESC:return"LENGTH_DESC";default:return"UNKNOWN"}}function m(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"IDLE":return u.IDLE;case 2:case"IN_PROGRESS":return u.IN_PROGRESS;default:return u.UNRECOGNIZED}}function g(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.IDLE:return"IDLE";case u.IN_PROGRESS:return"IN_PROGRESS";default:return"UNKNOWN"}}function v(e){switch(e){case 0:case"UNKNOWN":return d.UNKNOWN;case 1:case"ITUNES":return d.ITUNES;case 2:case"DOWNLOADS":return d.DOWNLOADS;case 3:case"MY_MUSIC":return d.MY_MUSIC;case 4:case"WINDOWS_MUSIC_LIBRARY":return d.WINDOWS_MUSIC_LIBRARY;case 5:case"ANDROID_MEDIA_STORE":return d.ANDROID_MEDIA_STORE;default:return d.UNRECOGNIZED}}function y(e){switch(e){case d.UNKNOWN:return"UNKNOWN";case d.ITUNES:return"ITUNES";case d.DOWNLOADS:return"DOWNLOADS";case d.MY_MUSIC:return"MY_MUSIC";case d.WINDOWS_MUSIC_LIBRARY:return"WINDOWS_MUSIC_LIBRARY";case d.ANDROID_MEDIA_STORE:return"ANDROID_MEDIA_STORE";default:return"UNKNOWN"}}function _(e){switch(e){case 0:case"UNKNOWN":return p.UNKNOWN;case 1:case"SUCCESS":return p.SUCCESS;case 2:case"NOT_FOUND":return p.NOT_FOUND;case 3:case"NOT_CHANGED":return p.NOT_CHANGED;default:return p.UNRECOGNIZED}}function b(e){switch(e){case p.UNKNOWN:return"UNKNOWN";case p.SUCCESS:return"SUCCESS";case p.NOT_FOUND:return"NOT_FOUND";case p.NOT_CHANGED:return"NOT_CHANGED";default:return"UNKNOWN"}}function S(){return{javaObject:new Uint8Array}}t.protobufPackage="spotify.local_files_esperanto.proto",function(e){e[e.NO_SORT=0]="NO_SORT",e[e.ALBUM_ARTIST_NAME_ASC=1]="ALBUM_ARTIST_NAME_ASC",e[e.ALBUM_ARTIST_NAME_DESC=2]="ALBUM_ARTIST_NAME_DESC",e[e.TRACK_NUMBER_ASC=3]="TRACK_NUMBER_ASC",e[e.TRACK_NUMBER_DESC=4]="TRACK_NUMBER_DESC",e[e.DISC_NUMBER_ASC=5]="DISC_NUMBER_ASC",e[e.DISC_NUMBER_DESC=6]="DISC_NUMBER_DESC",e[e.ALBUM_NAME_ASC=7]="ALBUM_NAME_ASC",e[e.ALBUM_NAME_DESC=8]="ALBUM_NAME_DESC",e[e.ARTIST_NAME_ASC=9]="ARTIST_NAME_ASC",e[e.ARTIST_NAME_DESC=10]="ARTIST_NAME_DESC",e[e.NAME_ASC=11]="NAME_ASC",e[e.NAME_DESC=12]="NAME_DESC",e[e.ADD_TIME_ASC=13]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=14]="ADD_TIME_DESC",e[e.LENGTH_ASC=15]="LENGTH_ASC",e[e.LENGTH_DESC=16]="LENGTH_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.Query_SortBy||(t.Query_SortBy={})),t.query_SortByFromJSON=f,t.query_SortByToJSON=h,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.IDLE=1]="IDLE",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.GetScannerStatusResponse_ScannerStatus||(t.GetScannerStatusResponse_ScannerStatus={})),t.getScannerStatusResponse_ScannerStatusFromJSON=m,t.getScannerStatusResponse_ScannerStatusToJSON=g,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ITUNES=1]="ITUNES",e[e.DOWNLOADS=2]="DOWNLOADS",e[e.MY_MUSIC=3]="MY_MUSIC",e[e.WINDOWS_MUSIC_LIBRARY=4]="WINDOWS_MUSIC_LIBRARY",e[e.ANDROID_MEDIA_STORE=5]="ANDROID_MEDIA_STORE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=t.DefaultSource_Id||(t.DefaultSource_Id={})),t.defaultSource_IdFromJSON=v,t.defaultSource_IdToJSON=y,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SUCCESS=1]="SUCCESS",e[e.NOT_FOUND=2]="NOT_FOUND",e[e.NOT_CHANGED=3]="NOT_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(p=t.MutateSourceResponse_Result||(t.MutateSourceResponse_Result={})),t.mutateSourceResponse_ResultFromJSON=_,t.mutateSourceResponse_ResultToJSON=b,t.Item={encode:(e,t=r.default.Writer.create())=>(void 0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.metadata&&a.TrackMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.collectionState&&s.TrackCollectionState.encode(e.collectionState,t.uint32(26).fork()).ldelim(),void 0!==e.rowId&&t.uint32(34).string(e.rowId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.addTime=n.uint32();break;case 2:i.metadata=a.TrackMetadata.decode(n,n.uint32());break;case 3:i.collectionState=s.TrackCollectionState.decode(n,n.uint32());break;case 4:i.rowId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({addTime:O(e.addTime)?Number(e.addTime):void 0,metadata:O(e.metadata)?a.TrackMetadata.fromJSON(e.metadata):void 0,collectionState:O(e.collectionState)?s.TrackCollectionState.fromJSON(e.collectionState):void 0,rowId:O(e.rowId)?String(e.rowId):void 0}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.metadata&&(t.metadata=e.metadata?a.TrackMetadata.toJSON(e.metadata):void 0),void 0!==e.collectionState&&(t.collectionState=e.collectionState?s.TrackCollectionState.toJSON(e.collectionState):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),t},fromPartial(e){const t={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0};return t.addTime=e.addTime??void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?a.TrackMetadata.fromPartial(e.metadata):void 0,t.collectionState=void 0!==e.collectionState&&null!==e.collectionState?s.TrackCollectionState.fromPartial(e.collectionState):void 0,t.rowId=e.rowId??void 0,t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.unfilteredLength&&n.uint32(16).uint32(e.unfilteredLength),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],unfilteredLength:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.unfilteredLength=o.uint32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[],unfilteredLength:O(e.unfilteredLength)?Number(e.unfilteredLength):void 0}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),n},fromPartial(e){const n={item:[],unfilteredLength:void 0};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.unfilteredLength=e.unfilteredLength??void 0,n}},t.ResponseStatus={encode:(e,t=r.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={statusCode:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.statusCode=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({statusCode:O(e.statusCode)?Number(e.statusCode):0,reason:O(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}},t.Range={encode:(e,t=r.default.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={start:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.start=n.int32();break;case 2:i.length=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({start:O(e.start)?Number(e.start):0,length:O(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}},t.Query={encode:(e,n=r.default.Writer.create())=>(""!==e.textFilter&&n.uint32(10).string(e.textFilter),0!==e.sortBy&&n.uint32(16).int32(e.sortBy),void 0!==e.range&&t.Range.encode(e.range,n.uint32(26).fork()).ldelim(),0!==e.minLength&&n.uint32(32).uint32(e.minLength),!0===e.removeDuplicateLinks&&n.uint32(40).bool(e.removeDuplicateLinks),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.textFilter=o.string();break;case 2:a.sortBy=o.int32();break;case 3:a.range=t.Range.decode(o,o.uint32());break;case 4:a.minLength=o.uint32();break;case 5:a.removeDuplicateLinks=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({textFilter:O(e.textFilter)?String(e.textFilter):"",sortBy:O(e.sortBy)?f(e.sortBy):0,range:O(e.range)?t.Range.fromJSON(e.range):void 0,minLength:O(e.minLength)?Number(e.minLength):0,removeDuplicateLinks:!!O(e.removeDuplicateLinks)&&Boolean(e.removeDuplicateLinks)}),toJSON(e){const n={};return void 0!==e.textFilter&&(n.textFilter=e.textFilter),void 0!==e.sortBy&&(n.sortBy=h(e.sortBy)),void 0!==e.range&&(n.range=e.range?t.Range.toJSON(e.range):void 0),void 0!==e.minLength&&(n.minLength=Math.round(e.minLength)),void 0!==e.removeDuplicateLinks&&(n.removeDuplicateLinks=e.removeDuplicateLinks),n},fromPartial(e){const n={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};return n.textFilter=e.textFilter??"",n.sortBy=e.sortBy??0,n.range=void 0!==e.range&&null!==e.range?t.Range.fromPartial(e.range):void 0,n.minLength=e.minLength??0,n.removeDuplicateLinks=e.removeDuplicateLinks??!1,n}},t.GetTracksRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.query&&t.Query.encode(e.query,n.uint32(10).fork()).ldelim(),void 0!==e.policy&&l.PlaylistTrackDecorationPolicy.encode(e.policy,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={query:void 0,policy:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.query=t.Query.decode(o,o.uint32());break;case 2:a.policy=l.PlaylistTrackDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({query:O(e.query)?t.Query.fromJSON(e.query):void 0,policy:O(e.policy)?l.PlaylistTrackDecorationPolicy.fromJSON(e.policy):void 0}),toJSON(e){const n={};return void 0!==e.query&&(n.query=e.query?t.Query.toJSON(e.query):void 0),void 0!==e.policy&&(n.policy=e.policy?l.PlaylistTrackDecorationPolicy.toJSON(e.policy):void 0),n},fromPartial(e){const n={query:void 0,policy:void 0};return n.query=void 0!==e.query&&null!==e.query?t.Query.fromPartial(e.query):void 0,n.policy=void 0!==e.policy&&null!==e.policy?l.PlaylistTrackDecorationPolicy.fromPartial(e.policy):void 0,n}},t.GetTracksResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.status&&t.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.Response.encode(e.data,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,data:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=t.ResponseStatus.decode(o,o.uint32());break;case 2:a.data=t.Response.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:O(e.status)?t.ResponseStatus.fromJSON(e.status):void 0,data:O(e.data)?t.Response.fromJSON(e.data):void 0}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.ResponseStatus.toJSON(e.status):void 0),void 0!==e.data&&(n.data=e.data?t.Response.toJSON(e.data):void 0),n},fromPartial(e){const n={status:void 0,data:void 0};return n.status=void 0!==e.status&&null!==e.status?t.ResponseStatus.fromPartial(e.status):void 0,n.data=void 0!==e.data&&null!==e.data?t.Response.fromPartial(e.data):void 0,n}},t.GetScannerStatusResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.scannerStatus&&t.uint32(8).int32(e.scannerStatus),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={scannerStatus:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.scannerStatus=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({scannerStatus:O(e.scannerStatus)?m(e.scannerStatus):0}),toJSON(e){const t={};return void 0!==e.scannerStatus&&(t.scannerStatus=g(e.scannerStatus)),t},fromPartial(e){const t={scannerStatus:0};return t.scannerStatus=e.scannerStatus??0,t}},t.DefaultSource={encode:(e,t=r.default.Writer.create())=>(0!==e.id&&t.uint32(8).int32(e.id),!0===e.enabled&&t.uint32(16).bool(e.enabled),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={id:0,enabled:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.id=n.int32();break;case 2:i.enabled=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({id:O(e.id)?v(e.id):0,enabled:!!O(e.enabled)&&Boolean(e.enabled)}),toJSON(e){const t={};return void 0!==e.id&&(t.id=y(e.id)),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial(e){const t={id:0,enabled:!1};return t.id=e.id??0,t.enabled=e.enabled??!1,t}},t.Folder={encode:(e,t=r.default.Writer.create())=>(""!==e.path&&t.uint32(10).string(e.path),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={path:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.path=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({path:O(e.path)?String(e.path):""}),toJSON(e){const t={};return void 0!==e.path&&(t.path=e.path),t},fromPartial(e){const t={path:""};return t.path=e.path??"",t}},t.GetSourcesResponse={encode(e,n=r.default.Writer.create()){for(const o of e.defaultSources)t.DefaultSource.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.folders)t.Folder.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={defaultSources:[],folders:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.defaultSources.push(t.DefaultSource.decode(o,o.uint32()));break;case 2:a.folders.push(t.Folder.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({defaultSources:Array.isArray(e?.defaultSources)?e.defaultSources.map((e=>t.DefaultSource.fromJSON(e))):[],folders:Array.isArray(e?.folders)?e.folders.map((e=>t.Folder.fromJSON(e))):[]}),toJSON(e){const n={};return e.defaultSources?n.defaultSources=e.defaultSources.map((e=>e?t.DefaultSource.toJSON(e):void 0)):n.defaultSources=[],e.folders?n.folders=e.folders.map((e=>e?t.Folder.toJSON(e):void 0)):n.folders=[],n},fromPartial(e){const n={defaultSources:[],folders:[]};return n.defaultSources=e.defaultSources?.map((e=>t.DefaultSource.fromPartial(e)))||[],n.folders=e.folders?.map((e=>t.Folder.fromPartial(e)))||[],n}},t.MutateSourceResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={result:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.result=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({result:O(e.result)?_(e.result):0}),toJSON(e){const t={};return void 0!==e.result&&(t.result=b(e.result)),t},fromPartial(e){const t={result:0};return t.result=e.result??0,t}},t.JavaObjectValue={encode:(e,t=r.default.Writer.create())=>(0!==e.javaObject.length&&t.uint32(10).bytes(e.javaObject),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=S();for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.javaObject=n.bytes();else n.skipType(7&e)}return i},fromJSON:e=>({javaObject:O(e.javaObject)?T(e.javaObject):new Uint8Array}),toJSON(e){const t={};return void 0!==e.javaObject&&(t.javaObject=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return P(t.join(""))}(void 0!==e.javaObject?e.javaObject:new Uint8Array)),t},fromPartial(e){const t=S();return t.javaObject=e.javaObject??new Uint8Array,t}};var E=(()=>{if(void 0!==E)return E;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const A=E.atob||(e=>E.Buffer.from(e,"base64").toString("binary"));function T(e){const t=A(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const P=E.btoa||(e=>E.Buffer.from(e,"binary").toString("base64"));function O(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},88979:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82884:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=r.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.standardLink=n.string();break;case 2:i.smallLink=n.string();break;case 3:i.largeLink=n.string();break;case 4:i.xlargeLink=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({standardLink:a(e.standardLink)?String(e.standardLink):"",smallLink:a(e.smallLink)?String(e.smallLink):"",largeLink:a(e.largeLink)?String(e.largeLink):"",xlargeLink:a(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},2294:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackMetadata=t.TrackDescriptor=t.TrackArtistMetadata=t.TrackAlbumMetadata=t.TrackAlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(82884);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=r.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artist:s(e.artist)?t.TrackAlbumArtistMetadata.fromJSON(e.artist):void 0,link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",portraits:s(e.portraits)?a.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={name:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.name=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:a.link=o.string();break;case 4:a.name=o.string();break;case 5:a.length=o.uint32();break;case 6:a.playable=o.bool();break;case 7:a.discNumber=o.uint32();break;case 8:a.trackNumber=o.uint32();break;case 9:a.isExplicit=o.bool();break;case 10:a.previewId=o.string();break;case 11:a.isLocal=o.bool();break;case 12:a.playableLocalTrack=o.bool();break;case 13:a.hasLyrics=o.bool();break;case 14:a.isPremiumOnly=o.bool();break;case 15:a.locallyPlayable=o.bool();break;case 16:a.playableTrackLink=o.string();break;case 17:a.popularity=o.uint32();break;case 18:a.is19PlusOnly=o.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>t.TrackArtistMetadata.fromJSON(e))):[],link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",length:s(e.length)?Number(e.length):0,playable:!!s(e.playable)&&Boolean(e.playable),discNumber:s(e.discNumber)?Number(e.discNumber):0,trackNumber:s(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),previewId:s(e.previewId)?String(e.previewId):"",isLocal:!!s(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!s(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!s(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!s(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:s(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:s(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=Math.round(e.discNumber)),void 0!==e.trackNumber&&(n.trackNumber=Math.round(e.trackNumber)),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=Math.round(e.popularity)),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],n},fromPartial(e){const n={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[]};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},37174:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackOfflineState=t.TrackCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.TrackCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.offline=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({offline:a(e.offline)?String(e.offline):""}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){const t={offline:""};return t.offline=e.offline??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},28344:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncDecorationPolicy=t.AlbumCollectionDecorationPolicy=t.AlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.copyrights=n.bool();break;case 4:i.covers=n.bool();break;case 5:i.year=n.bool();break;case 6:i.numDiscs=n.bool();break;case 7:i.numTracks=n.bool();break;case 8:i.playability=n.bool();break;case 9:i.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),covers:!!a(e.covers)&&Boolean(e.covers),year:!!a(e.year)&&Boolean(e.year),numDiscs:!!a(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!a(e.numTracks)&&Boolean(e.numTracks),playability:!!a(e.playability)&&Boolean(e.playability),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.bool();break;case 2:i.numTracksInCollection=n.bool();break;case 3:i.complete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:!!a(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!a(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!a(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({inferredOffline:!!a(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5033:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncDecorationPolicy=t.ArtistCollectionDecorationPolicy=t.ArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.isVariousArtists=n.bool();break;case 4:i.portraits=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),isVariousArtists:!!a(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!a(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.bool();break;case 2:i.isFollowed=n.bool();break;case 3:i.numTracksInCollection=n.bool();break;case 4:i.numAlbumsInCollection=n.bool();break;case 5:i.isBanned=n.bool();break;case 6:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:!!a(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!a(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!a(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!a(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({inferredOffline:!!a(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},55482:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistAlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(28344),s=n(5033);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAlbumDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.album&&a.AlbumDecorationPolicy.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&s.ArtistDecorationPolicy.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={album:void 0,artist:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.album=a.AlbumDecorationPolicy.decode(n,n.uint32());break;case 2:i.artist=s.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({album:l(e.album)?a.AlbumDecorationPolicy.fromJSON(e.album):void 0,artist:l(e.artist)?s.ArtistDecorationPolicy.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.album&&(t.album=e.album?a.AlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?s.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t={album:void 0,artist:void 0};return t.album=void 0!==e.album&&null!==e.album?a.AlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?s.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66681:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistTrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(49129),s=n(70016),l=n(55482),c=n(5033);function u(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistTrackDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.track&&a.TrackDecorationPolicy.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&s.UserDecorationPolicy.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&l.PlaylistAlbumDecorationPolicy.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&c.ArtistDecorationPolicy.encode(e.artist,t.uint32(114).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.track=a.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.rowId=n.bool();break;case 3:i.addTime=n.bool();break;case 4:i.inCollection=n.bool();break;case 5:i.canAddToCollection=n.bool();break;case 6:i.isBanned=n.bool();break;case 7:i.canBan=n.bool();break;case 8:i.localFile=n.bool();break;case 9:i.offline=n.bool();break;case 10:i.formatListAttributes=n.bool();break;case 11:i.displayCovers=n.bool();break;case 12:i.addedBy=s.UserDecorationPolicy.decode(n,n.uint32());break;case 13:i.album=l.PlaylistAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:i.artist=c.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({track:u(e.track)?a.TrackDecorationPolicy.fromJSON(e.track):void 0,rowId:!!u(e.rowId)&&Boolean(e.rowId),addTime:!!u(e.addTime)&&Boolean(e.addTime),inCollection:!!u(e.inCollection)&&Boolean(e.inCollection),canAddToCollection:!!u(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!u(e.isBanned)&&Boolean(e.isBanned),canBan:!!u(e.canBan)&&Boolean(e.canBan),localFile:!!u(e.localFile)&&Boolean(e.localFile),offline:!!u(e.offline)&&Boolean(e.offline),formatListAttributes:!!u(e.formatListAttributes)&&Boolean(e.formatListAttributes),displayCovers:!!u(e.displayCovers)&&Boolean(e.displayCovers),addedBy:u(e.addedBy)?s.UserDecorationPolicy.fromJSON(e.addedBy):void 0,album:u(e.album)?l.PlaylistAlbumDecorationPolicy.fromJSON(e.album):void 0,artist:u(e.artist)?c.ArtistDecorationPolicy.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?a.TrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),void 0!==e.localFile&&(t.localFile=e.localFile),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.album&&(t.album=e.album?l.PlaylistAlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?c.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0};return t.track=void 0!==e.track&&null!==e.track?a.TrackDecorationPolicy.fromPartial(e.track):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.inCollection=e.inCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.localFile=e.localFile??!1,t.offline=e.offline??!1,t.formatListAttributes=e.formatListAttributes??!1,t.displayCovers=e.displayCovers??!1,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?s.UserDecorationPolicy.fromPartial(e.addedBy):void 0,t.album=void 0!==e.album&&null!==e.album?l.PlaylistAlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?c.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},49129:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncDecorationPolicy=t.TrackCollectionDecorationPolicy=t.TrackPlayedStateDecorationPolicy=t.TrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.hasLyrics=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.length=n.bool();break;case 5:i.playable=n.bool();break;case 6:i.isAvailableInMetadataCatalogue=n.bool();break;case 7:i.locallyPlayable=n.bool();break;case 8:i.playableLocalTrack=n.bool();break;case 9:i.discNumber=n.bool();break;case 10:i.trackNumber=n.bool();break;case 11:i.isExplicit=n.bool();break;case 12:i.previewId=n.bool();break;case 13:i.isLocal=n.bool();break;case 14:i.isPremiumOnly=n.bool();break;case 15:i.playableTrackLink=n.bool();break;case 16:i.popularity=n.bool();break;case 17:i.is19PlusOnly=n.bool();break;case 18:i.trackDescriptors=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({hasLyrics:!!a(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),length:!!a(e.length)&&Boolean(e.length),playable:!!a(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!a(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!a(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!a(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!a(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!a(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!a(e.previewId)&&Boolean(e.previewId),isLocal:!!a(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!a(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!a(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!a(e.trackDescriptors)&&Boolean(e.trackDescriptors)}),toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),t},fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playable=n.bool();break;case 2:i.isCurrentlyPlayable=n.bool();break;case 3:i.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({playable:!!a(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!a(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offlineState=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},70016:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollaboratingUsersDecorationPolicy=t.CollaboratorPolicy=t.UserDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.UserDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.username=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.image=n.bool();break;case 5:i.thumbnail=n.bool();break;case 6:i.color=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({username:!!a(e.username)&&Boolean(e.username),link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),image:!!a(e.image)&&Boolean(e.image),thumbnail:!!a(e.thumbnail)&&Boolean(e.thumbnail),color:!!a(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.image&&(t.image=e.image),void 0!==e.thumbnail&&(t.thumbnail=e.thumbnail),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}},t.CollaboratorPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.user&&t.UserDecorationPolicy.encode(e.user,n.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&n.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&n.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&n.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&n.uint32(40).bool(e.isOwner),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({user:a(e.user)?t.UserDecorationPolicy.fromJSON(e.user):void 0,numberOfItems:!!a(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!a(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!a(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!a(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const n={};return void 0!==e.user&&(n.user=e.user?t.UserDecorationPolicy.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(n.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(n.isOwner=e.isOwner),n},fromPartial(e){const n={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return n.user=void 0!==e.user&&null!==e.user?t.UserDecorationPolicy.fromPartial(e.user):void 0,n.numberOfItems=e.numberOfItems??!1,n.numberOfTracks=e.numberOfTracks??!1,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.isOwner=e.isOwner??!1,n}},t.CollaboratingUsersDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(!0===e.count&&n.uint32(8).bool(e.count),0!==e.limit&&n.uint32(16).int32(e.limit),void 0!==e.collaborator&&t.CollaboratorPolicy.encode(e.collaborator,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={count:!1,limit:0,collaborator:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({count:!!a(e.count)&&Boolean(e.count),limit:a(e.limit)?Number(e.limit):0,collaborator:a(e.collaborator)?t.CollaboratorPolicy.fromJSON(e.collaborator):void 0}),toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),void 0!==e.limit&&(n.limit=Math.round(e.limit)),void 0!==e.collaborator&&(n.collaborator=e.collaborator?t.CollaboratorPolicy.toJSON(e.collaborator):void 0),n},fromPartial(e){const n={count:!1,limit:0,collaborator:void 0};return n.count=e.count??!1,n.limit=e.limit??0,n.collaborator=void 0!==e.collaborator&&null!==e.collaborator?t.CollaboratorPolicy.fromPartial(e.collaborator):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},81973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OfflineDebugClient=void 0;const o=n(33892),i=n(16360),r=n(77579);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}onKeyStats(e,t){const n="spotify.offline_esperanto.proto.OfflineDebug",a="OnKeyStats",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.KeyStatsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}static SERVICE_ID="spotify.offline_esperanto.proto.OfflineDebug";static DECODERS={OnKeyStats:{request:i.Empty.decode,response:r.KeyStatsResponse.decode}}}t.OfflineDebugClient=a},98918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OfflineClient=void 0;const o=n(33892),i=n(16360),r=n(56375);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getOfflinePlaybackStatus(e){const t="spotify.offline_esperanto.proto.Offline",n="GetOfflinePlaybackStatus",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetOfflinePlaybackStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeOfflinePlaybackStatus(e,t){const n="spotify.offline_esperanto.proto.Offline",a="SubscribeOfflinePlaybackStatus",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.GetOfflinePlaybackStatusResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}setOfflinePlaybackAllowed(e){const t="spotify.offline_esperanto.proto.Offline",n="SetOfflinePlaybackAllowed",i=r.SetOfflinePlaybackAllowedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.SetOfflinePlaybackAllowedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeError(e,t){const n="spotify.offline_esperanto.proto.Offline",a="SubscribeError",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.Error.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}getContexts(e){const t="spotify.offline_esperanto.proto.Offline",n="GetContexts",i=r.GetContextsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetContextsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeContexts(e,t){const n="spotify.offline_esperanto.proto.Offline",i="SubscribeContexts",a=r.GetContextsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.GetContextsResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}getItems(e){const t="spotify.offline_esperanto.proto.Offline",n="GetItems",i=r.GetItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeItems(e,t){const n="spotify.offline_esperanto.proto.Offline",i="SubscribeItems",a=r.GetItemsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.GetItemsResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}addDownload(e){const t="spotify.offline_esperanto.proto.Offline",n="AddDownload",i=r.DownloadRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.DownloadResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeDownload(e){const t="spotify.offline_esperanto.proto.Offline",n="RemoveDownload",i=r.DownloadRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.DownloadResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeAllDownloads(e){const t="spotify.offline_esperanto.proto.Offline",n="RemoveAllDownloads",r=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getContextsProgress(e){const t="spotify.offline_esperanto.proto.Offline",n="GetContextsProgress",i=r.GetContextsProgressRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.ContextsProgressResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeContextsProgress(e,t){const n="spotify.offline_esperanto.proto.Offline",i="SubscribeContextsProgress",a=r.GetContextsProgressRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.ContextsProgressResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}getTotalProgress(e){const t="spotify.offline_esperanto.proto.Offline",n="GetTotalProgress",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.TotalProgressResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeTotalProgress(e,t){const n="spotify.offline_esperanto.proto.Offline",a="SubscribeTotalProgress",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.TotalProgressResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}getDevices(e){const t="spotify.offline_esperanto.proto.Offline",n="GetDevices",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetDevicesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getLocalDevice(e){const t="spotify.offline_esperanto.proto.Offline",n="GetLocalDevice",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Device.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getContextForDevices(e){const t="spotify.offline_esperanto.proto.Offline",n="GetContextForDevices",i=r.GetContextForDevicesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetContextForDevicesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.offline_esperanto.proto.Offline";static DECODERS={GetOfflinePlaybackStatus:{request:i.Empty.decode,response:r.GetOfflinePlaybackStatusResponse.decode},SubscribeOfflinePlaybackStatus:{request:i.Empty.decode,response:r.GetOfflinePlaybackStatusResponse.decode},SetOfflinePlaybackAllowed:{request:r.SetOfflinePlaybackAllowedRequest.decode,response:r.SetOfflinePlaybackAllowedResponse.decode},SubscribeError:{request:i.Empty.decode,response:r.Error.decode},GetContexts:{request:r.GetContextsRequest.decode,response:r.GetContextsResponse.decode},SubscribeContexts:{request:r.GetContextsRequest.decode,response:r.GetContextsResponse.decode},GetItems:{request:r.GetItemsRequest.decode,response:r.GetItemsResponse.decode},SubscribeItems:{request:r.GetItemsRequest.decode,response:r.GetItemsResponse.decode},AddDownload:{request:r.DownloadRequest.decode,response:r.DownloadResponse.decode},RemoveDownload:{request:r.DownloadRequest.decode,response:r.DownloadResponse.decode},RemoveAllDownloads:{request:i.Empty.decode,response:i.Empty.decode},GetContextsProgress:{request:r.GetContextsProgressRequest.decode,response:r.ContextsProgressResponse.decode},SubscribeContextsProgress:{request:r.GetContextsProgressRequest.decode,response:r.ContextsProgressResponse.decode},GetTotalProgress:{request:i.Empty.decode,response:r.TotalProgressResponse.decode},SubscribeTotalProgress:{request:i.Empty.decode,response:r.TotalProgressResponse.decode},GetDevices:{request:i.Empty.decode,response:r.GetDevicesResponse.decode},GetLocalDevice:{request:i.Empty.decode,response:r.Device.decode},GetContextForDevices:{request:r.GetContextForDevicesRequest.decode,response:r.GetContextForDevicesResponse.decode}}}t.OfflineClient=a},24780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OfflinePluginTestAdapterClient=void 0;const o=n(33892),i=n(16360),r=n(83836);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}openCommandChannel(e,t){const n="spotify.offline_esperanto.test.proto.OfflinePluginTestAdapter",a="OpenCommandChannel",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.TestPluginCommand.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}submitResponse(e){const t="spotify.offline_esperanto.test.proto.OfflinePluginTestAdapter",n="SubmitResponse",a=r.TestPluginResponse.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.offline_esperanto.test.proto.OfflinePluginTestAdapter";static DECODERS={OpenCommandChannel:{request:i.Empty.decode,response:r.TestPluginCommand.decode},SubmitResponse:{request:r.TestPluginResponse.decode,response:i.Empty.decode}}}t.OfflinePluginTestAdapterClient=a},88225:(e,t,n)=>{"use strict";t.BK=t.db=t.Jt=t.sK=t.Q8=void 0;var o=n(56375);Object.defineProperty(t,"Q8",{enumerable:!0,get:function(){return o.Error_ErrorCode}}),Object.defineProperty(t,"sK",{enumerable:!0,get:function(){return o.Context_State}}),Object.defineProperty(t,"Jt",{enumerable:!0,get:function(){return o.Item_State}}),Object.defineProperty(t,"db",{enumerable:!0,get:function(){return o.DownloadRequest}});var i=n(16360);var r=n(98918);Object.defineProperty(t,"BK",{enumerable:!0,get:function(){return r.OfflineClient}});var a=n(77579);var s=n(81973);var l=n(24780);var c=n(84883);var u=n(83836)},56375:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetContextForDevicesResponse=t.GetContextForDevicesRequest=t.GetDevicesResponse=t.Device=t.TotalProgressResponse=t.ContextsProgressResponse=t.ContextProgress=t.GetContextsProgressRequest=t.Progress=t.DownloadResponse=t.DownloadRequest=t.GetItemsResponse=t.GetItemsRequest=t.GetContextsResponse=t.GetContextsRequest_Filtering=t.GetContextsRequest=t.DeviceContextInfo=t.DeviceKey=t.ContextInfo=t.Item=t.Context=t.ContextInfoPolicy=t.Error=t.SetOfflinePlaybackAllowedResponse=t.SetOfflinePlaybackAllowedRequest=t.GetOfflinePlaybackStatusResponse=t.item_StateToJSON=t.item_StateFromJSON=t.Item_State=t.context_StateToJSON=t.context_StateFromJSON=t.Context_State=t.error_ErrorCodeToJSON=t.error_ErrorCodeFromJSON=t.Error_ErrorCode=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(26958);var s,l,c;function u(e){switch(e){case 0:case"SUCCESS":return s.SUCCESS;case 1:case"GENERIC":return s.GENERIC;case 8:case"DISK_FULL":return s.DISK_FULL;case 14:case"EXPIRED":return s.EXPIRED;case 19:case"TOO_MANY_TRACKS":return s.TOO_MANY_TRACKS;case 23:case"NOT_ALLOWED":return s.NOT_ALLOWED;case 36:case"CONNECTION_DISABLED":return s.CONNECTION_DISABLED;case 7028:case"DEVICE_LIMIT_REACHED":return s.DEVICE_LIMIT_REACHED;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.SUCCESS:return"SUCCESS";case s.GENERIC:return"GENERIC";case s.DISK_FULL:return"DISK_FULL";case s.EXPIRED:return"EXPIRED";case s.TOO_MANY_TRACKS:return"TOO_MANY_TRACKS";case s.NOT_ALLOWED:return"NOT_ALLOWED";case s.CONNECTION_DISABLED:return"CONNECTION_DISABLED";case s.DEVICE_LIMIT_REACHED:return"DEVICE_LIMIT_REACHED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"NOT_DOWNLOADED":return l.NOT_DOWNLOADED;case 1:case"ERROR":return l.ERROR;case 2:case"REQUESTED":return l.REQUESTED;case 3:case"DOWNLOADED":return l.DOWNLOADED;case 4:case"DOWNLOADING":return l.DOWNLOADING;case 5:case"WAITING":return l.WAITING;default:return l.UNRECOGNIZED}}function f(e){switch(e){case l.NOT_DOWNLOADED:return"NOT_DOWNLOADED";case l.ERROR:return"ERROR";case l.REQUESTED:return"REQUESTED";case l.DOWNLOADED:return"DOWNLOADED";case l.DOWNLOADING:return"DOWNLOADING";case l.WAITING:return"WAITING";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){switch(e){case 0:case"NOT_DOWNLOADED":return c.NOT_DOWNLOADED;case 1:case"ERROR":return c.ERROR;case 2:case"DOWNLOADED_EXPIRED":return c.DOWNLOADED_EXPIRED;case 3:case"DOWNLOADED":return c.DOWNLOADED;case 4:case"WAITING_FOR_REDOWNLOAD":return c.WAITING_FOR_REDOWNLOAD;case 5:case"DOWNLOADING":return c.DOWNLOADING;case 6:case"WAITING":return c.WAITING;case 7:case"WAITING_LIMIT_EXCEEDED":return c.WAITING_LIMIT_EXCEEDED;default:return c.UNRECOGNIZED}}function m(e){switch(e){case c.NOT_DOWNLOADED:return"NOT_DOWNLOADED";case c.ERROR:return"ERROR";case c.DOWNLOADED_EXPIRED:return"DOWNLOADED_EXPIRED";case c.DOWNLOADED:return"DOWNLOADED";case c.WAITING_FOR_REDOWNLOAD:return"WAITING_FOR_REDOWNLOAD";case c.DOWNLOADING:return"DOWNLOADING";case c.WAITING:return"WAITING";case c.WAITING_LIMIT_EXCEEDED:return"WAITING_LIMIT_EXCEEDED";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(e){let t=1e3*Number(e.seconds);return t+=e.nanos/1e6,new Date(t)}function v(e){return e instanceof Date?e:"string"==typeof e?new Date(e):g(a.Timestamp.fromJSON(e))}function y(e){return e.toString()}function _(e){return null!=e}t.protobufPackage="spotify.offline_esperanto.proto",function(e){e[e.SUCCESS=0]="SUCCESS",e[e.GENERIC=1]="GENERIC",e[e.DISK_FULL=8]="DISK_FULL",e[e.EXPIRED=14]="EXPIRED",e[e.TOO_MANY_TRACKS=19]="TOO_MANY_TRACKS",e[e.NOT_ALLOWED=23]="NOT_ALLOWED",e[e.CONNECTION_DISABLED=36]="CONNECTION_DISABLED",e[e.DEVICE_LIMIT_REACHED=7028]="DEVICE_LIMIT_REACHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.Error_ErrorCode||(t.Error_ErrorCode={})),t.error_ErrorCodeFromJSON=u,t.error_ErrorCodeToJSON=d,function(e){e[e.NOT_DOWNLOADED=0]="NOT_DOWNLOADED",e[e.ERROR=1]="ERROR",e[e.REQUESTED=2]="REQUESTED",e[e.DOWNLOADED=3]="DOWNLOADED",e[e.DOWNLOADING=4]="DOWNLOADING",e[e.WAITING=5]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.Context_State||(t.Context_State={})),t.context_StateFromJSON=p,t.context_StateToJSON=f,function(e){e[e.NOT_DOWNLOADED=0]="NOT_DOWNLOADED",e[e.ERROR=1]="ERROR",e[e.DOWNLOADED_EXPIRED=2]="DOWNLOADED_EXPIRED",e[e.DOWNLOADED=3]="DOWNLOADED",e[e.WAITING_FOR_REDOWNLOAD=4]="WAITING_FOR_REDOWNLOAD",e[e.DOWNLOADING=5]="DOWNLOADING",e[e.WAITING=6]="WAITING",e[e.WAITING_LIMIT_EXCEEDED=7]="WAITING_LIMIT_EXCEEDED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.Item_State||(t.Item_State={})),t.item_StateFromJSON=h,t.item_StateToJSON=m,t.GetOfflinePlaybackStatusResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.allowed&&t.uint32(8).bool(e.allowed),!0===e.explicitlyEnabled&&t.uint32(16).bool(e.explicitlyEnabled),!0===e.implicitlyEnabled&&t.uint32(24).bool(e.implicitlyEnabled),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={allowed:!1,explicitlyEnabled:!1,implicitlyEnabled:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.allowed=n.bool();break;case 2:i.explicitlyEnabled=n.bool();break;case 3:i.implicitlyEnabled=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({allowed:!!_(e.allowed)&&Boolean(e.allowed),explicitlyEnabled:!!_(e.explicitlyEnabled)&&Boolean(e.explicitlyEnabled),implicitlyEnabled:!!_(e.implicitlyEnabled)&&Boolean(e.implicitlyEnabled)}),toJSON(e){const t={};return void 0!==e.allowed&&(t.allowed=e.allowed),void 0!==e.explicitlyEnabled&&(t.explicitlyEnabled=e.explicitlyEnabled),void 0!==e.implicitlyEnabled&&(t.implicitlyEnabled=e.implicitlyEnabled),t},fromPartial(e){const t={allowed:!1,explicitlyEnabled:!1,implicitlyEnabled:!1};return t.allowed=e.allowed??!1,t.explicitlyEnabled=e.explicitlyEnabled??!1,t.implicitlyEnabled=e.implicitlyEnabled??!1,t}},t.SetOfflinePlaybackAllowedRequest={encode:(e,t=r.default.Writer.create())=>(!0===e.enable&&t.uint32(8).bool(e.enable),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={enable:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.enable=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({enable:!!_(e.enable)&&Boolean(e.enable)}),toJSON(e){const t={};return void 0!==e.enable&&(t.enable=e.enable),t},fromPartial(e){const t={enable:!1};return t.enable=e.enable??!1,t}},t.SetOfflinePlaybackAllowedResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.ok&&t.uint32(8).bool(e.ok),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={ok:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.ok=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({ok:!!_(e.ok)&&Boolean(e.ok)}),toJSON(e){const t={};return void 0!==e.ok&&(t.ok=e.ok),t},fromPartial(e){const t={ok:!1};return t.ok=e.ok??!1,t}},t.Error={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.code=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({code:_(e.code)?u(e.code):0}),toJSON(e){const t={};return void 0!==e.code&&(t.code=d(e.code)),t},fromPartial(e){const t={code:0};return t.code=e.code??0,t}},t.ContextInfoPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.items&&t.uint32(8).bool(e.items),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={items:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.items=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({items:!!_(e.items)&&Boolean(e.items)}),toJSON(e){const t={};return void 0!==e.items&&(t.items=e.items),t},fromPartial(e){const t={items:!1};return t.items=e.items??!1,t}},t.Context={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.state&&t.uint32(16).int32(e.state),0!==e.percentComplete&&t.uint32(29).float(e.percentComplete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",state:0,percentComplete:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri=n.string();break;case 2:i.state=n.int32();break;case 3:i.percentComplete=n.float();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):"",state:_(e.state)?p(e.state):0,percentComplete:_(e.percentComplete)?Number(e.percentComplete):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.state&&(t.state=f(e.state)),void 0!==e.percentComplete&&(t.percentComplete=e.percentComplete),t},fromPartial(e){const t={uri:"",state:0,percentComplete:0};return t.uri=e.uri??"",t.state=e.state??0,t.percentComplete=e.percentComplete??0,t}},t.Item={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",state:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri=n.string();break;case 2:i.state=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):"",state:_(e.state)?h(e.state):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.state&&(t.state=m(e.state)),t},fromPartial(e){const t={uri:"",state:0};return t.uri=e.uri??"",t.state=e.state??0,t}},t.ContextInfo={encode(e,n=r.default.Writer.create()){void 0!==e.context&&t.Context.encode(e.context,n.uint32(10).fork()).ldelim();for(const o of e.items)t.Item.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={context:void 0,items:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.context=t.Context.decode(o,o.uint32());break;case 2:a.items.push(t.Item.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({context:_(e.context)?t.Context.fromJSON(e.context):void 0,items:Array.isArray(e?.items)?e.items.map((e=>t.Item.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.context&&(n.context=e.context?t.Context.toJSON(e.context):void 0),e.items?n.items=e.items.map((e=>e?t.Item.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={context:void 0,items:[]};return n.context=void 0!==e.context&&null!==e.context?t.Context.fromPartial(e.context):void 0,n.items=e.items?.map((e=>t.Item.fromPartial(e)))||[],n}},t.DeviceKey={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.cacheId&&t.uint32(18).string(e.cacheId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",cacheId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.deviceId=n.string();break;case 2:i.cacheId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:_(e.deviceId)?String(e.deviceId):"",cacheId:_(e.cacheId)?String(e.cacheId):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.cacheId&&(t.cacheId=e.cacheId),t},fromPartial(e){const t={deviceId:"",cacheId:""};return t.deviceId=e.deviceId??"",t.cacheId=e.cacheId??"",t}},t.DeviceContextInfo={encode:(e,n=r.default.Writer.create())=>(void 0!==e.device&&t.DeviceKey.encode(e.device,n.uint32(10).fork()).ldelim(),void 0!==e.context&&t.Context.encode(e.context,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={device:void 0,context:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.device=t.DeviceKey.decode(o,o.uint32());break;case 2:a.context=t.Context.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({device:_(e.device)?t.DeviceKey.fromJSON(e.device):void 0,context:_(e.context)?t.Context.fromJSON(e.context):void 0}),toJSON(e){const n={};return void 0!==e.device&&(n.device=e.device?t.DeviceKey.toJSON(e.device):void 0),void 0!==e.context&&(n.context=e.context?t.Context.toJSON(e.context):void 0),n},fromPartial(e){const n={device:void 0,context:void 0};return n.device=void 0!==e.device&&null!==e.device?t.DeviceKey.fromPartial(e.device):void 0,n.context=void 0!==e.context&&null!==e.context?t.Context.fromPartial(e.context):void 0,n}},t.GetContextsRequest={encode(e,n=r.default.Writer.create()){void 0!==e.policy&&t.ContextInfoPolicy.encode(e.policy,n.uint32(10).fork()).ldelim(),void 0!==e.device&&t.DeviceKey.encode(e.device,n.uint32(18).fork()).ldelim();for(const t of e.uris)n.uint32(26).string(t);return void 0!==e.filtering&&t.GetContextsRequest_Filtering.encode(e.filtering,n.uint32(34).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={policy:void 0,device:void 0,uris:[],filtering:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.policy=t.ContextInfoPolicy.decode(o,o.uint32());break;case 2:a.device=t.DeviceKey.decode(o,o.uint32());break;case 3:a.uris.push(o.string());break;case 4:a.filtering=t.GetContextsRequest_Filtering.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({policy:_(e.policy)?t.ContextInfoPolicy.fromJSON(e.policy):void 0,device:_(e.device)?t.DeviceKey.fromJSON(e.device):void 0,uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[],filtering:_(e.filtering)?t.GetContextsRequest_Filtering.fromJSON(e.filtering):void 0}),toJSON(e){const n={};return void 0!==e.policy&&(n.policy=e.policy?t.ContextInfoPolicy.toJSON(e.policy):void 0),void 0!==e.device&&(n.device=e.device?t.DeviceKey.toJSON(e.device):void 0),e.uris?n.uris=e.uris.map((e=>e)):n.uris=[],void 0!==e.filtering&&(n.filtering=e.filtering?t.GetContextsRequest_Filtering.toJSON(e.filtering):void 0),n},fromPartial(e){const n={policy:void 0,device:void 0,uris:[],filtering:void 0};return n.policy=void 0!==e.policy&&null!==e.policy?t.ContextInfoPolicy.fromPartial(e.policy):void 0,n.device=void 0!==e.device&&null!==e.device?t.DeviceKey.fromPartial(e.device):void 0,n.uris=e.uris?.map((e=>e))||[],n.filtering=void 0!==e.filtering&&null!==e.filtering?t.GetContextsRequest_Filtering.fromPartial(e.filtering):void 0,n}},t.GetContextsRequest_Filtering={encode(e,t=r.default.Writer.create()){for(const n of e.itemUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={itemUris:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.itemUris.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({itemUris:Array.isArray(e?.itemUris)?e.itemUris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.itemUris?t.itemUris=e.itemUris.map((e=>e)):t.itemUris=[],t},fromPartial(e){const t={itemUris:[]};return t.itemUris=e.itemUris?.map((e=>e))||[],t}},t.GetContextsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.contexts)t.ContextInfo.encode(o,n.uint32(10).fork()).ldelim();return"0"!==e.error&&n.uint32(16).int64(e.error),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={contexts:[],error:"0"};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.contexts.push(t.ContextInfo.decode(o,o.uint32()));break;case 2:a.error=y(o.int64());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({contexts:Array.isArray(e?.contexts)?e.contexts.map((e=>t.ContextInfo.fromJSON(e))):[],error:_(e.error)?String(e.error):"0"}),toJSON(e){const n={};return e.contexts?n.contexts=e.contexts.map((e=>e?t.ContextInfo.toJSON(e):void 0)):n.contexts=[],void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={contexts:[],error:"0"};return n.contexts=e.contexts?.map((e=>t.ContextInfo.fromPartial(e)))||[],n.error=e.error??"0",n}},t.GetItemsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uris:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.uris.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?t.uris=e.uris.map((e=>e)):t.uris=[],t},fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}},t.GetItemsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.items)t.Item.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={items:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.items.push(t.Item.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>t.Item.fromJSON(e))):[]}),toJSON(e){const n={};return e.items?n.items=e.items.map((e=>e?t.Item.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={items:[]};return n.items=e.items?.map((e=>t.Item.fromPartial(e)))||[],n}},t.DownloadRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.device&&t.DeviceKey.encode(e.device,n.uint32(10).fork()).ldelim(),""!==e.uri&&n.uint32(18).string(e.uri),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={device:void 0,uri:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.device=t.DeviceKey.decode(o,o.uint32());break;case 2:a.uri=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({device:_(e.device)?t.DeviceKey.fromJSON(e.device):void 0,uri:_(e.uri)?String(e.uri):""}),toJSON(e){const n={};return void 0!==e.device&&(n.device=e.device?t.DeviceKey.toJSON(e.device):void 0),void 0!==e.uri&&(n.uri=e.uri),n},fromPartial(e){const n={device:void 0,uri:""};return n.device=void 0!==e.device&&null!==e.device?t.DeviceKey.fromPartial(e.device):void 0,n.uri=e.uri??"",n}},t.DownloadResponse={encode:(e,t=r.default.Writer.create())=>("0"!==e.error&&t.uint32(8).int64(e.error),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={error:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.error=y(n.int64());else n.skipType(7&e)}return i},fromJSON:e=>({error:_(e.error)?String(e.error):"0"}),toJSON(e){const t={};return void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={error:"0"};return t.error=e.error??"0",t}},t.Progress={encode:(e,t=r.default.Writer.create())=>("0"!==e.queuedTracks&&t.uint32(8).int64(e.queuedTracks),"0"!==e.queuedBytes&&t.uint32(16).int64(e.queuedBytes),"0"!==e.downloadedTracks&&t.uint32(24).int64(e.downloadedTracks),"0"!==e.downloadedBytes&&t.uint32(32).int64(e.downloadedBytes),"0"!==e.totalTracks&&t.uint32(40).int64(e.totalTracks),"0"!==e.totalBytes&&t.uint32(48).int64(e.totalBytes),!0===e.downloading&&t.uint32(56).bool(e.downloading),"0"!==e.downloadSpeed&&t.uint32(64).int64(e.downloadSpeed),0!==e.percentComplete&&t.uint32(77).float(e.percentComplete),"0"!==e.secondsLeft&&t.uint32(80).int64(e.secondsLeft),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={queuedTracks:"0",queuedBytes:"0",downloadedTracks:"0",downloadedBytes:"0",totalTracks:"0",totalBytes:"0",downloading:!1,downloadSpeed:"0",percentComplete:0,secondsLeft:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.queuedTracks=y(n.int64());break;case 2:i.queuedBytes=y(n.int64());break;case 3:i.downloadedTracks=y(n.int64());break;case 4:i.downloadedBytes=y(n.int64());break;case 5:i.totalTracks=y(n.int64());break;case 6:i.totalBytes=y(n.int64());break;case 7:i.downloading=n.bool();break;case 8:i.downloadSpeed=y(n.int64());break;case 9:i.percentComplete=n.float();break;case 10:i.secondsLeft=y(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({queuedTracks:_(e.queuedTracks)?String(e.queuedTracks):"0",queuedBytes:_(e.queuedBytes)?String(e.queuedBytes):"0",downloadedTracks:_(e.downloadedTracks)?String(e.downloadedTracks):"0",downloadedBytes:_(e.downloadedBytes)?String(e.downloadedBytes):"0",totalTracks:_(e.totalTracks)?String(e.totalTracks):"0",totalBytes:_(e.totalBytes)?String(e.totalBytes):"0",downloading:!!_(e.downloading)&&Boolean(e.downloading),downloadSpeed:_(e.downloadSpeed)?String(e.downloadSpeed):"0",percentComplete:_(e.percentComplete)?Number(e.percentComplete):0,secondsLeft:_(e.secondsLeft)?String(e.secondsLeft):"0"}),toJSON(e){const t={};return void 0!==e.queuedTracks&&(t.queuedTracks=e.queuedTracks),void 0!==e.queuedBytes&&(t.queuedBytes=e.queuedBytes),void 0!==e.downloadedTracks&&(t.downloadedTracks=e.downloadedTracks),void 0!==e.downloadedBytes&&(t.downloadedBytes=e.downloadedBytes),void 0!==e.totalTracks&&(t.totalTracks=e.totalTracks),void 0!==e.totalBytes&&(t.totalBytes=e.totalBytes),void 0!==e.downloading&&(t.downloading=e.downloading),void 0!==e.downloadSpeed&&(t.downloadSpeed=e.downloadSpeed),void 0!==e.percentComplete&&(t.percentComplete=e.percentComplete),void 0!==e.secondsLeft&&(t.secondsLeft=e.secondsLeft),t},fromPartial(e){const t={queuedTracks:"0",queuedBytes:"0",downloadedTracks:"0",downloadedBytes:"0",totalTracks:"0",totalBytes:"0",downloading:!1,downloadSpeed:"0",percentComplete:0,secondsLeft:"0"};return t.queuedTracks=e.queuedTracks??"0",t.queuedBytes=e.queuedBytes??"0",t.downloadedTracks=e.downloadedTracks??"0",t.downloadedBytes=e.downloadedBytes??"0",t.totalTracks=e.totalTracks??"0",t.totalBytes=e.totalBytes??"0",t.downloading=e.downloading??!1,t.downloadSpeed=e.downloadSpeed??"0",t.percentComplete=e.percentComplete??0,t.secondsLeft=e.secondsLeft??"0",t}},t.GetContextsProgressRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uris:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.uris.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?t.uris=e.uris.map((e=>e)):t.uris=[],t},fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}},t.ContextProgress={encode:(e,n=r.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),void 0!==e.progress&&t.Progress.encode(e.progress,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={uri:"",progress:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.progress=t.Progress.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:_(e.uri)?String(e.uri):"",progress:_(e.progress)?t.Progress.fromJSON(e.progress):void 0}),toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),void 0!==e.progress&&(n.progress=e.progress?t.Progress.toJSON(e.progress):void 0),n},fromPartial(e){const n={uri:"",progress:void 0};return n.uri=e.uri??"",n.progress=void 0!==e.progress&&null!==e.progress?t.Progress.fromPartial(e.progress):void 0,n}},t.ContextsProgressResponse={encode(e,n=r.default.Writer.create()){for(const o of e.progresses)t.ContextProgress.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={progresses:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.progresses.push(t.ContextProgress.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({progresses:Array.isArray(e?.progresses)?e.progresses.map((e=>t.ContextProgress.fromJSON(e))):[]}),toJSON(e){const n={};return e.progresses?n.progresses=e.progresses.map((e=>e?t.ContextProgress.toJSON(e):void 0)):n.progresses=[],n},fromPartial(e){const n={progresses:[]};return n.progresses=e.progresses?.map((e=>t.ContextProgress.fromPartial(e)))||[],n}},t.TotalProgressResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.progress&&t.Progress.encode(e.progress,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={progress:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.progress=t.Progress.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({progress:_(e.progress)?t.Progress.fromJSON(e.progress):void 0}),toJSON(e){const n={};return void 0!==e.progress&&(n.progress=e.progress?t.Progress.toJSON(e.progress):void 0),n},fromPartial(e){const n={progress:void 0};return n.progress=void 0!==e.progress&&null!==e.progress?t.Progress.fromPartial(e.progress):void 0,n}},t.Device={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.cacheId&&t.uint32(18).string(e.cacheId),""!==e.name&&t.uint32(26).string(e.name),0!==e.type&&t.uint32(32).int32(e.type),0!==e.platform&&t.uint32(40).int32(e.platform),void 0!==e.lastSeenAt&&a.Timestamp.encode(function(e){const t=Math.trunc(e.getTime()/1e3).toString(),n=e.getTime()%1e3*1e6;return{seconds:t,nanos:n}}(e.lastSeenAt),t.uint32(50).fork()).ldelim(),!0===e.isLocal&&t.uint32(56).bool(e.isLocal),""!==e.clientId&&t.uint32(66).string(e.clientId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",cacheId:"",name:"",type:0,platform:0,lastSeenAt:void 0,isLocal:!1,clientId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.deviceId=n.string();break;case 2:i.cacheId=n.string();break;case 3:i.name=n.string();break;case 4:i.type=n.int32();break;case 5:i.platform=n.int32();break;case 6:i.lastSeenAt=g(a.Timestamp.decode(n,n.uint32()));break;case 7:i.isLocal=n.bool();break;case 8:i.clientId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:_(e.deviceId)?String(e.deviceId):"",cacheId:_(e.cacheId)?String(e.cacheId):"",name:_(e.name)?String(e.name):"",type:_(e.type)?Number(e.type):0,platform:_(e.platform)?Number(e.platform):0,lastSeenAt:_(e.lastSeenAt)?v(e.lastSeenAt):void 0,isLocal:!!_(e.isLocal)&&Boolean(e.isLocal),clientId:_(e.clientId)?String(e.clientId):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.cacheId&&(t.cacheId=e.cacheId),void 0!==e.name&&(t.name=e.name),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.platform&&(t.platform=Math.round(e.platform)),void 0!==e.lastSeenAt&&(t.lastSeenAt=e.lastSeenAt.toISOString()),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.clientId&&(t.clientId=e.clientId),t},fromPartial(e){const t={deviceId:"",cacheId:"",name:"",type:0,platform:0,lastSeenAt:void 0,isLocal:!1,clientId:""};return t.deviceId=e.deviceId??"",t.cacheId=e.cacheId??"",t.name=e.name??"",t.type=e.type??0,t.platform=e.platform??0,t.lastSeenAt=e.lastSeenAt??void 0,t.isLocal=e.isLocal??!1,t.clientId=e.clientId??"",t}},t.GetDevicesResponse={encode(e,n=r.default.Writer.create()){for(const o of e.devices)t.Device.encode(o,n.uint32(10).fork()).ldelim();return"0"!==e.error&&n.uint32(16).int64(e.error),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={devices:[],error:"0"};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.devices.push(t.Device.decode(o,o.uint32()));break;case 2:a.error=y(o.int64());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>t.Device.fromJSON(e))):[],error:_(e.error)?String(e.error):"0"}),toJSON(e){const n={};return e.devices?n.devices=e.devices.map((e=>e?t.Device.toJSON(e):void 0)):n.devices=[],void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={devices:[],error:"0"};return n.devices=e.devices?.map((e=>t.Device.fromPartial(e)))||[],n.error=e.error??"0",n}},t.GetContextForDevicesRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.uri=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}},t.GetContextForDevicesResponse={encode(e,n=r.default.Writer.create()){for(const o of e.devices)t.Device.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.contexts)t.DeviceContextInfo.encode(o,n.uint32(18).fork()).ldelim();return"0"!==e.error&&n.uint32(24).int64(e.error),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={devices:[],contexts:[],error:"0"};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.devices.push(t.Device.decode(o,o.uint32()));break;case 2:a.contexts.push(t.DeviceContextInfo.decode(o,o.uint32()));break;case 3:a.error=y(o.int64());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>t.Device.fromJSON(e))):[],contexts:Array.isArray(e?.contexts)?e.contexts.map((e=>t.DeviceContextInfo.fromJSON(e))):[],error:_(e.error)?String(e.error):"0"}),toJSON(e){const n={};return e.devices?n.devices=e.devices.map((e=>e?t.Device.toJSON(e):void 0)):n.devices=[],e.contexts?n.contexts=e.contexts.map((e=>e?t.DeviceContextInfo.toJSON(e):void 0)):n.contexts=[],void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={devices:[],contexts:[],error:"0"};return n.devices=e.devices?.map((e=>t.Device.fromPartial(e)))||[],n.contexts=e.contexts?.map((e=>t.DeviceContextInfo.fromPartial(e)))||[],n.error=e.error??"0",n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},77579:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyStatsResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return e.toString()}function s(e){return null!=e}t.protobufPackage="spotify.offline_esperanto.proto",t.KeyStatsResponse={encode:(e,t=r.default.Writer.create())=>("0"!==e.cached&&t.uint32(8).int64(e.cached),"0"!==e.offline&&t.uint32(16).int64(e.offline),"0"!==e.memory&&t.uint32(24).int64(e.memory),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={cached:"0",offline:"0",memory:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.cached=a(n.int64());break;case 2:i.offline=a(n.int64());break;case 3:i.memory=a(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({cached:s(e.cached)?String(e.cached):"0",offline:s(e.offline)?String(e.offline):"0",memory:s(e.memory)?String(e.memory):"0"}),toJSON(e){const t={};return void 0!==e.cached&&(t.cached=e.cached),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.memory&&(t.memory=e.memory),t},fromPartial(e){const t={cached:"0",offline:"0",memory:"0"};return t.cached=e.cached??"0",t.offline=e.offline??"0",t.memory=e.memory??"0",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},84883:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PluginMetadata=t.RemoveCommand_Query=t.RemoveCommand_Header=t.RemoveCommand=t.StopDownloadCommand=t.DownloadResponse=t.DownloadCommand_MetadataEntry=t.DownloadCommand=t.IdentifyResponse_ResultsEntry=t.IdentifyResponse_Result=t.IdentifyResponse=t.IdentifyCommand_Query_MetadataEntry=t.IdentifyCommand_Query=t.IdentifyCommand_Header=t.IdentifyCommand=t.Metadata_Header=t.Metadata=t.TargetFormat=t.downloadResponse_ErrorToJSON=t.downloadResponse_ErrorFromJSON=t.DownloadResponse_Error=t.identifyResponse_Result_StatusToJSON=t.identifyResponse_Result_StatusFromJSON=t.IdentifyResponse_Result_Status=t.resourceTypeToJSON=t.resourceTypeFromJSON=t.ResourceType=t.linkTypeToJSON=t.linkTypeFromJSON=t.LinkType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(7205),s=n(46143);var l,c,u,d;function p(e){switch(e){case 0:case"EMPTY":return l.EMPTY;case 1:case"TRACK":return l.TRACK;case 2:case"EPISODE":return l.EPISODE;default:return l.UNRECOGNIZED}}function f(e){switch(e){case l.EMPTY:return"EMPTY";case l.TRACK:return"TRACK";case l.EPISODE:return"EPISODE";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){switch(e){case 0:case"OTHER":return c.OTHER;case 1:case"AUDIO":return c.AUDIO;case 2:case"DRM":return c.DRM;case 3:case"IMAGE":return c.IMAGE;case 4:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function m(e){switch(e){case c.OTHER:return"OTHER";case c.AUDIO:return"AUDIO";case c.DRM:return"DRM";case c.IMAGE:return"IMAGE";case c.VIDEO:return"VIDEO";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"MISSING":return u.MISSING;case 2:case"COMPLETE":return u.COMPLETE;case 3:case"NOT_APPLICABLE":return u.NOT_APPLICABLE;default:return u.UNRECOGNIZED}}function v(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.MISSING:return"MISSING";case u.COMPLETE:return"COMPLETE";case u.NOT_APPLICABLE:return"NOT_APPLICABLE";case u.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function y(e){switch(e){case 0:case"OK":return d.OK;case 1:case"TEMPORARY_ERROR":return d.TEMPORARY_ERROR;case 2:case"PERMANENT_ERROR":return d.PERMANENT_ERROR;case 3:case"DISK_FULL":return d.DISK_FULL;default:return d.UNRECOGNIZED}}function _(e){switch(e){case d.OK:return"OK";case d.TEMPORARY_ERROR:return"TEMPORARY_ERROR";case d.PERMANENT_ERROR:return"PERMANENT_ERROR";case d.DISK_FULL:return"DISK_FULL";case d.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function b(e){return e.toString()}function S(e){return"object"==typeof e&&null!==e}function E(e){return null!=e}t.protobufPackage="spotify.offline.proto.v2",function(e){e[e.EMPTY=0]="EMPTY",e[e.TRACK=1]="TRACK",e[e.EPISODE=2]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.LinkType||(t.LinkType={})),t.linkTypeFromJSON=p,t.linkTypeToJSON=f,function(e){e[e.OTHER=0]="OTHER",e[e.AUDIO=1]="AUDIO",e[e.DRM=2]="DRM",e[e.IMAGE=3]="IMAGE",e[e.VIDEO=4]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.ResourceType||(t.ResourceType={})),t.resourceTypeFromJSON=h,t.resourceTypeToJSON=m,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.MISSING=1]="MISSING",e[e.COMPLETE=2]="COMPLETE",e[e.NOT_APPLICABLE=3]="NOT_APPLICABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.IdentifyResponse_Result_Status||(t.IdentifyResponse_Result_Status={})),t.identifyResponse_Result_StatusFromJSON=g,t.identifyResponse_Result_StatusToJSON=v,function(e){e[e.OK=0]="OK",e[e.TEMPORARY_ERROR=1]="TEMPORARY_ERROR",e[e.PERMANENT_ERROR=2]="PERMANENT_ERROR",e[e.DISK_FULL=3]="DISK_FULL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=t.DownloadResponse_Error||(t.DownloadResponse_Error={})),t.downloadResponse_ErrorFromJSON=y,t.downloadResponse_ErrorToJSON=_,t.TargetFormat={encode:(e,t=r.default.Writer.create())=>(0!==e.bitrate&&t.uint32(8).int32(e.bitrate),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={bitrate:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.bitrate=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({bitrate:E(e.bitrate)?Number(e.bitrate):0}),toJSON(e){const t={};return void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),t},fromPartial(e){const t={bitrate:0};return t.bitrate=e.bitrate??0,t}},t.Metadata={encode:(e,n=r.default.Writer.create())=>(void 0!==e.header&&t.Metadata_Header.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.extensionData&&s.Any.encode(e.extensionData,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={header:void 0,extensionData:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.header=t.Metadata_Header.decode(o,o.uint32());break;case 2:a.extensionData=s.Any.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:E(e.header)?t.Metadata_Header.fromJSON(e.header):void 0,extensionData:E(e.extensionData)?s.Any.fromJSON(e.extensionData):void 0}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.Metadata_Header.toJSON(e.header):void 0),void 0!==e.extensionData&&(n.extensionData=e.extensionData?s.Any.toJSON(e.extensionData):void 0),n},fromPartial(e){const n={header:void 0,extensionData:void 0};return n.header=void 0!==e.header&&null!==e.header?t.Metadata_Header.fromPartial(e.header):void 0,n.extensionData=void 0!==e.extensionData&&null!==e.extensionData?s.Any.fromPartial(e.extensionData):void 0,n}},t.Metadata_Header={encode:(e,t=r.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),!0===e.isEmpty&&t.uint32(16).bool(e.isEmpty),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={statusCode:0,isEmpty:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.statusCode=n.int32();break;case 2:i.isEmpty=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({statusCode:E(e.statusCode)?Number(e.statusCode):0,isEmpty:!!E(e.isEmpty)&&Boolean(e.isEmpty)}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.isEmpty&&(t.isEmpty=e.isEmpty),t},fromPartial(e){const t={statusCode:0,isEmpty:!1};return t.statusCode=e.statusCode??0,t.isEmpty=e.isEmpty??!1,t}},t.IdentifyCommand={encode(e,n=r.default.Writer.create()){void 0!==e.header&&t.IdentifyCommand_Header.encode(e.header,n.uint32(10).fork()).ldelim();for(const o of e.query)t.IdentifyCommand_Query.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={header:void 0,query:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.header=t.IdentifyCommand_Header.decode(o,o.uint32());break;case 2:a.query.push(t.IdentifyCommand_Query.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:E(e.header)?t.IdentifyCommand_Header.fromJSON(e.header):void 0,query:Array.isArray(e?.query)?e.query.map((e=>t.IdentifyCommand_Query.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.IdentifyCommand_Header.toJSON(e.header):void 0),e.query?n.query=e.query.map((e=>e?t.IdentifyCommand_Query.toJSON(e):void 0)):n.query=[],n},fromPartial(e){const n={header:void 0,query:[]};return n.header=void 0!==e.header&&null!==e.header?t.IdentifyCommand_Header.fromPartial(e.header):void 0,n.query=e.query?.map((e=>t.IdentifyCommand_Query.fromPartial(e)))||[],n}},t.IdentifyCommand_Header={encode:(e,n=r.default.Writer.create())=>(void 0!==e.targetFormat&&t.TargetFormat.encode(e.targetFormat,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={targetFormat:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.targetFormat=t.TargetFormat.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({targetFormat:E(e.targetFormat)?t.TargetFormat.fromJSON(e.targetFormat):void 0}),toJSON(e){const n={};return void 0!==e.targetFormat&&(n.targetFormat=e.targetFormat?t.TargetFormat.toJSON(e.targetFormat):void 0),n},fromPartial(e){const n={targetFormat:void 0};return n.targetFormat=void 0!==e.targetFormat&&null!==e.targetFormat?t.TargetFormat.fromPartial(e.targetFormat):void 0,n}},t.IdentifyCommand_Query={encode:(e,n=r.default.Writer.create())=>(""!==e.link&&n.uint32(10).string(e.link),Object.entries(e.metadata).forEach((([e,o])=>{t.IdentifyCommand_Query_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={link:"",metadata:{}};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.link=o.string();break;case 2:const n=t.IdentifyCommand_Query_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON:e=>({link:E(e.link)?String(e.link):"",metadata:S(e.metadata)?Object.entries(e.metadata).reduce(((e,[n,o])=>(e[Number(n)]=t.Metadata.fromJSON(o),e)),{}):{}}),toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,o])=>{n.metadata[e]=t.Metadata.toJSON(o)})),n},fromPartial(e){const n={link:"",metadata:{}};return n.link=e.link??"",n.metadata=Object.entries(e.metadata??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[Number(n)]=t.Metadata.fromPartial(o)),e)),{}),n}},t.IdentifyCommand_Query_MetadataEntry={encode:(e,n=r.default.Writer.create())=>(0!==e.key&&n.uint32(8).int32(e.key),void 0!==e.value&&t.Metadata.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:0,value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.int32();break;case 2:a.value=t.Metadata.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:E(e.key)?Number(e.key):0,value:E(e.value)?t.Metadata.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=Math.round(e.key)),void 0!==e.value&&(n.value=e.value?t.Metadata.toJSON(e.value):void 0),n},fromPartial(e){const n={key:0,value:void 0};return n.key=e.key??0,n.value=void 0!==e.value&&null!==e.value?t.Metadata.fromPartial(e.value):void 0,n}},t.IdentifyResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.results).forEach((([e,o])=>{t.IdentifyResponse_ResultsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={results:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.IdentifyResponse_ResultsEntry.decode(o,o.uint32());void 0!==e.value&&(a.results[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({results:S(e.results)?Object.entries(e.results).reduce(((e,[n,o])=>(e[n]=t.IdentifyResponse_Result.fromJSON(o),e)),{}):{}}),toJSON(e){const n={results:{}};return e.results&&Object.entries(e.results).forEach((([e,o])=>{n.results[e]=t.IdentifyResponse_Result.toJSON(o)})),n},fromPartial(e){const n={results:{}};return n.results=Object.entries(e.results??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.IdentifyResponse_Result.fromPartial(o)),e)),{}),n}},t.IdentifyResponse_Result={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),"0"!==e.estimatedFileSize&&t.uint32(16).int64(e.estimatedFileSize),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,estimatedFileSize:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=n.int32();break;case 2:i.estimatedFileSize=b(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:E(e.status)?g(e.status):0,estimatedFileSize:E(e.estimatedFileSize)?String(e.estimatedFileSize):"0"}),toJSON(e){const t={};return void 0!==e.status&&(t.status=v(e.status)),void 0!==e.estimatedFileSize&&(t.estimatedFileSize=e.estimatedFileSize),t},fromPartial(e){const t={status:0,estimatedFileSize:"0"};return t.status=e.status??0,t.estimatedFileSize=e.estimatedFileSize??"0",t}},t.IdentifyResponse_ResultsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.IdentifyResponse_Result.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.IdentifyResponse_Result.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:E(e.key)?String(e.key):"",value:E(e.value)?t.IdentifyResponse_Result.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.IdentifyResponse_Result.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.IdentifyResponse_Result.fromPartial(e.value):void 0,n}},t.DownloadCommand={encode:(e,n=r.default.Writer.create())=>(""!==e.link&&n.uint32(10).string(e.link),void 0!==e.targetFormat&&t.TargetFormat.encode(e.targetFormat,n.uint32(18).fork()).ldelim(),Object.entries(e.metadata).forEach((([e,o])=>{t.DownloadCommand_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={link:"",targetFormat:void 0,metadata:{}};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.link=o.string();break;case 2:a.targetFormat=t.TargetFormat.decode(o,o.uint32());break;case 3:const n=t.DownloadCommand_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON:e=>({link:E(e.link)?String(e.link):"",targetFormat:E(e.targetFormat)?t.TargetFormat.fromJSON(e.targetFormat):void 0,metadata:S(e.metadata)?Object.entries(e.metadata).reduce(((e,[n,o])=>(e[Number(n)]=t.Metadata.fromJSON(o),e)),{}):{}}),toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),void 0!==e.targetFormat&&(n.targetFormat=e.targetFormat?t.TargetFormat.toJSON(e.targetFormat):void 0),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,o])=>{n.metadata[e]=t.Metadata.toJSON(o)})),n},fromPartial(e){const n={link:"",targetFormat:void 0,metadata:{}};return n.link=e.link??"",n.targetFormat=void 0!==e.targetFormat&&null!==e.targetFormat?t.TargetFormat.fromPartial(e.targetFormat):void 0,n.metadata=Object.entries(e.metadata??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[Number(n)]=t.Metadata.fromPartial(o)),e)),{}),n}},t.DownloadCommand_MetadataEntry={encode:(e,n=r.default.Writer.create())=>(0!==e.key&&n.uint32(8).int32(e.key),void 0!==e.value&&t.Metadata.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:0,value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.int32();break;case 2:a.value=t.Metadata.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:E(e.key)?Number(e.key):0,value:E(e.value)?t.Metadata.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=Math.round(e.key)),void 0!==e.value&&(n.value=e.value?t.Metadata.toJSON(e.value):void 0),n},fromPartial(e){const n={key:0,value:void 0};return n.key=e.key??0,n.value=void 0!==e.value&&null!==e.value?t.Metadata.fromPartial(e.value):void 0,n}},t.DownloadResponse={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),!0===e.complete&&t.uint32(16).bool(e.complete),"0"!==e.fileSize&&t.uint32(24).int64(e.fileSize),"0"!==e.bytesDownloaded&&t.uint32(32).int64(e.bytesDownloaded),0!==e.error&&t.uint32(40).int32(e.error),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",complete:!1,fileSize:"0",bytesDownloaded:"0",error:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.complete=n.bool();break;case 3:i.fileSize=b(n.int64());break;case 4:i.bytesDownloaded=b(n.int64());break;case 5:i.error=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:E(e.link)?String(e.link):"",complete:!!E(e.complete)&&Boolean(e.complete),fileSize:E(e.fileSize)?String(e.fileSize):"0",bytesDownloaded:E(e.bytesDownloaded)?String(e.bytesDownloaded):"0",error:E(e.error)?y(e.error):0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.complete&&(t.complete=e.complete),void 0!==e.fileSize&&(t.fileSize=e.fileSize),void 0!==e.bytesDownloaded&&(t.bytesDownloaded=e.bytesDownloaded),void 0!==e.error&&(t.error=_(e.error)),t},fromPartial(e){const t={link:"",complete:!1,fileSize:"0",bytesDownloaded:"0",error:0};return t.link=e.link??"",t.complete=e.complete??!1,t.fileSize=e.fileSize??"0",t.bytesDownloaded=e.bytesDownloaded??"0",t.error=e.error??0,t}},t.StopDownloadCommand={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.link=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({link:E(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={link:""};return t.link=e.link??"",t}},t.RemoveCommand={encode(e,n=r.default.Writer.create()){void 0!==e.header&&t.RemoveCommand_Header.encode(e.header,n.uint32(10).fork()).ldelim();for(const o of e.query)t.RemoveCommand_Query.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={header:void 0,query:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.header=t.RemoveCommand_Header.decode(o,o.uint32());break;case 2:a.query.push(t.RemoveCommand_Query.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:E(e.header)?t.RemoveCommand_Header.fromJSON(e.header):void 0,query:Array.isArray(e?.query)?e.query.map((e=>t.RemoveCommand_Query.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.RemoveCommand_Header.toJSON(e.header):void 0),e.query?n.query=e.query.map((e=>e?t.RemoveCommand_Query.toJSON(e):void 0)):n.query=[],n},fromPartial(e){const n={header:void 0,query:[]};return n.header=void 0!==e.header&&null!==e.header?t.RemoveCommand_Header.fromPartial(e.header):void 0,n.query=e.query?.map((e=>t.RemoveCommand_Query.fromPartial(e)))||[],n}},t.RemoveCommand_Header={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.RemoveCommand_Query={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.link=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({link:E(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={link:""};return t.link=e.link??"",t}},t.PluginMetadata={encode(e,t=r.default.Writer.create()){""!==e.name&&t.uint32(10).string(e.name),t.uint32(18).fork();for(const n of e.supportedLinkTypes)t.int32(n);t.ldelim(),0!==e.resourceType&&t.uint32(24).int32(e.resourceType),t.uint32(34).fork();for(const n of e.extensionKinds)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={name:"",supportedLinkTypes:[],resourceType:0,extensionKinds:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.name=n.string();break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.supportedLinkTypes.push(n.int32())}else i.supportedLinkTypes.push(n.int32());break;case 3:i.resourceType=n.int32();break;case 4:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extensionKinds.push(n.int32())}else i.extensionKinds.push(n.int32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({name:E(e.name)?String(e.name):"",supportedLinkTypes:Array.isArray(e?.supportedLinkTypes)?e.supportedLinkTypes.map((e=>p(e))):[],resourceType:E(e.resourceType)?h(e.resourceType):0,extensionKinds:Array.isArray(e?.extensionKinds)?e.extensionKinds.map((e=>(0,a.extensionKindFromJSON)(e))):[]}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),e.supportedLinkTypes?t.supportedLinkTypes=e.supportedLinkTypes.map((e=>f(e))):t.supportedLinkTypes=[],void 0!==e.resourceType&&(t.resourceType=m(e.resourceType)),e.extensionKinds?t.extensionKinds=e.extensionKinds.map((e=>(0,a.extensionKindToJSON)(e))):t.extensionKinds=[],t},fromPartial(e){const t={name:"",supportedLinkTypes:[],resourceType:0,extensionKinds:[]};return t.name=e.name??"",t.supportedLinkTypes=e.supportedLinkTypes?.map((e=>e))||[],t.resourceType=e.resourceType??0,t.extensionKinds=e.extensionKinds?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},83836:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TestPluginResponse=t.TestPluginCommand=t.protobufPackage=void 0;const i=o(n(33892)),r=n(84883);function a(e){return null!=e}t.protobufPackage="spotify.offline_esperanto.test.proto",t.TestPluginCommand={encode:(e,t=i.default.Writer.create())=>(void 0!==e.identify&&r.IdentifyCommand.encode(e.identify,t.uint32(10).fork()).ldelim(),void 0!==e.download&&r.DownloadCommand.encode(e.download,t.uint32(18).fork()).ldelim(),void 0!==e.stopDownload&&r.StopDownloadCommand.encode(e.stopDownload,t.uint32(26).fork()).ldelim(),void 0!==e.remove&&r.RemoveCommand.encode(e.remove,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={identify:void 0,download:void 0,stopDownload:void 0,remove:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.identify=r.IdentifyCommand.decode(n,n.uint32());break;case 2:a.download=r.DownloadCommand.decode(n,n.uint32());break;case 3:a.stopDownload=r.StopDownloadCommand.decode(n,n.uint32());break;case 4:a.remove=r.RemoveCommand.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({identify:a(e.identify)?r.IdentifyCommand.fromJSON(e.identify):void 0,download:a(e.download)?r.DownloadCommand.fromJSON(e.download):void 0,stopDownload:a(e.stopDownload)?r.StopDownloadCommand.fromJSON(e.stopDownload):void 0,remove:a(e.remove)?r.RemoveCommand.fromJSON(e.remove):void 0}),toJSON(e){const t={};return void 0!==e.identify&&(t.identify=e.identify?r.IdentifyCommand.toJSON(e.identify):void 0),void 0!==e.download&&(t.download=e.download?r.DownloadCommand.toJSON(e.download):void 0),void 0!==e.stopDownload&&(t.stopDownload=e.stopDownload?r.StopDownloadCommand.toJSON(e.stopDownload):void 0),void 0!==e.remove&&(t.remove=e.remove?r.RemoveCommand.toJSON(e.remove):void 0),t},fromPartial(e){const t={identify:void 0,download:void 0,stopDownload:void 0,remove:void 0};return t.identify=void 0!==e.identify&&null!==e.identify?r.IdentifyCommand.fromPartial(e.identify):void 0,t.download=void 0!==e.download&&null!==e.download?r.DownloadCommand.fromPartial(e.download):void 0,t.stopDownload=void 0!==e.stopDownload&&null!==e.stopDownload?r.StopDownloadCommand.fromPartial(e.stopDownload):void 0,t.remove=void 0!==e.remove&&null!==e.remove?r.RemoveCommand.fromPartial(e.remove):void 0,t}},t.TestPluginResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.identify&&r.IdentifyResponse.encode(e.identify,t.uint32(10).fork()).ldelim(),void 0!==e.download&&r.DownloadResponse.encode(e.download,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={identify:void 0,download:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.identify=r.IdentifyResponse.decode(n,n.uint32());break;case 2:a.download=r.DownloadResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({identify:a(e.identify)?r.IdentifyResponse.fromJSON(e.identify):void 0,download:a(e.download)?r.DownloadResponse.fromJSON(e.download):void 0}),toJSON(e){const t={};return void 0!==e.identify&&(t.identify=e.identify?r.IdentifyResponse.toJSON(e.identify):void 0),void 0!==e.download&&(t.download=e.download?r.DownloadResponse.toJSON(e.download):void 0),t},fromPartial(e){const t={identify:void 0,download:void 0};return t.identify=void 0!==e.identify&&null!==e.identify?r.IdentifyResponse.fromPartial(e.identify):void 0,t.download=void 0!==e.download&&null!==e.download?r.DownloadResponse.fromPartial(e.download):void 0,t}}},7205:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;case 79:case"COVER_IMAGE":return n.COVER_IMAGE;case 80:case"SHARE_TRAIT":return n.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return n.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return n.ARTIST_TOUR;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.COVER_IMAGE:return"COVER_IMAGE";case n.SHARE_TRAIT:return"SHARE_TRAIT";case n.INSTANCE_SHARING:return"INSTANCE_SHARING";case n.ARTIST_TOUR:return"ARTIST_TOUR";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},46143:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;const i=o(n(33892));function r(){return{typeUrl:"",value:new Uint8Array}}t.protobufPackage="google.protobuf",t.Any={encode:(e,t=i.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({typeUrl:l(e.typeUrl)?String(e.typeUrl):"",value:l(e.value)?s(e.value):new Uint8Array}),toJSON(e){const t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){const t=r();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array,t}};var a=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function l(e){return null!=e}},16360:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},26958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="google.protobuf",t.Timestamp={encode:(e,t=r.default.Writer.create())=>("0"!==e.seconds&&t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={seconds:"0",nanos:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.seconds=n.int64().toString();break;case 2:i.nanos=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({seconds:a(e.seconds)?String(e.seconds):"0",nanos:a(e.nanos)?Number(e.nanos):0}),toJSON(e){const t={};return void 0!==e.seconds&&(t.seconds=e.seconds),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){const t={seconds:"0",nanos:0};return t.seconds=e.seconds??"0",t.nanos=e.nanos??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},53104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackServiceClient=void 0;const o=n(33892),i=n(50830),r=n(57118);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetVolume",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetVolumeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subVolume(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",a="SubVolume",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.SubVolumeResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}setVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="SetVolume",a=r.SetVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}raiseVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="RaiseVolume",a=r.NudgeVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}lowerVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="LowerVolume",a=r.NudgeVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getPlaybackInfo(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetPlaybackInfo",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.PlaybackInfoResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subPlaybackInfo(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",a="SubPlaybackInfo",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.PlaybackInfoResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}getFormats(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetFormats",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetFormatsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subPosition(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",i="SubPosition",a=r.SubPositionRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.SubPositionResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}getFiles(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetFiles",i=r.GetFilesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetFilesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}duck(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="Duck",i=r.DuckRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.DuckResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subBufferUnderrun(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",r="SubBufferUnderrun",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.Empty.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.playback_esperanto.proto.PlaybackService";static DECODERS={GetVolume:{request:i.Empty.decode,response:r.GetVolumeResponse.decode},SubVolume:{request:i.Empty.decode,response:r.SubVolumeResponse.decode},SetVolume:{request:r.SetVolumeRequest.decode,response:i.Empty.decode},RaiseVolume:{request:r.NudgeVolumeRequest.decode,response:i.Empty.decode},LowerVolume:{request:r.NudgeVolumeRequest.decode,response:i.Empty.decode},GetPlaybackInfo:{request:i.Empty.decode,response:r.PlaybackInfoResponse.decode},SubPlaybackInfo:{request:i.Empty.decode,response:r.PlaybackInfoResponse.decode},GetFormats:{request:i.Empty.decode,response:r.GetFormatsResponse.decode},SubPosition:{request:r.SubPositionRequest.decode,response:r.SubPositionResponse.decode},GetFiles:{request:r.GetFilesRequest.decode,response:r.GetFilesResponse.decode},Duck:{request:r.DuckRequest.decode,response:r.DuckResponse.decode},SubBufferUnderrun:{request:i.Empty.decode,response:i.Empty.decode}}}t.PlaybackServiceClient=a},74583:(e,t,n)=>{"use strict";t.tp=t.ao=t.No=void 0;var o=n(53104);Object.defineProperty(t,"No",{enumerable:!0,get:function(){return o.PlaybackServiceClient}});var i=n(57118);Object.defineProperty(t,"ao",{enumerable:!0,get:function(){return i.GetFilesStatus}}),Object.defineProperty(t,"tp",{enumerable:!0,get:function(){return i.VolumeChangeSource}})},50830:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},57118:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DuckResponse=t.DuckRequest=t.GetFilesResponse_File=t.GetFilesResponse=t.GetFilesRequest=t.SubPositionResponse=t.SubPositionRequest=t.GetFormatsResponse_Format=t.GetFormatsResponse=t.PlaybackInfoResponse=t.NudgeVolumeRequest=t.SetVolumeRequest=t.SubVolumeResponse=t.GetVolumeResponse=t.ConnectLoggingParams=t.duckRequest_ActionToJSON=t.duckRequest_ActionFromJSON=t.DuckRequest_Action=t.volumeChangeSourceToJSON=t.volumeChangeSourceFromJSON=t.VolumeChangeSource=t.getFilesStatusToJSON=t.getFilesStatusFromJSON=t.GetFilesStatus=t.statusToJSON=t.statusFromJSON=t.Status=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l,c;function u(e){switch(e){case 0:case"OK":return a.OK;case 1:case"NOT_AVAILABLE":return a.NOT_AVAILABLE;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.OK:return"OK";case a.NOT_AVAILABLE:return"NOT_AVAILABLE";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"GETFILES_OK":return s.GETFILES_OK;case 1:case"METADATA_CLIENT_NOT_AVAILABLE":return s.METADATA_CLIENT_NOT_AVAILABLE;case 2:case"FILES_NOT_FOUND":return s.FILES_NOT_FOUND;case 3:case"TRACK_NOT_AVAILABLE":return s.TRACK_NOT_AVAILABLE;case 4:case"EXTENDED_METADATA_ERROR":return s.EXTENDED_METADATA_ERROR;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.GETFILES_OK:return"GETFILES_OK";case s.METADATA_CLIENT_NOT_AVAILABLE:return"METADATA_CLIENT_NOT_AVAILABLE";case s.FILES_NOT_FOUND:return"FILES_NOT_FOUND";case s.TRACK_NOT_AVAILABLE:return"TRACK_NOT_AVAILABLE";case s.EXTENDED_METADATA_ERROR:return"EXTENDED_METADATA_ERROR";default:return"UNKNOWN"}}function h(e){switch(e){case 0:case"USER":return l.USER;case 1:case"SYSTEM":return l.SYSTEM;default:return l.UNRECOGNIZED}}function m(e){switch(e){case l.USER:return"USER";case l.SYSTEM:return"SYSTEM";default:return"UNKNOWN"}}function g(e){switch(e){case 0:case"START":return c.START;case 1:case"STOP":return c.STOP;default:return c.UNRECOGNIZED}}function v(e){switch(e){case c.START:return"START";case c.STOP:return"STOP";default:return"UNKNOWN"}}function y(e){return e.toString()}function _(e){return null!=e}t.protobufPackage="spotify.playback_esperanto.proto",function(e){e[e.OK=0]="OK",e[e.NOT_AVAILABLE=1]="NOT_AVAILABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Status||(t.Status={})),t.statusFromJSON=u,t.statusToJSON=d,function(e){e[e.GETFILES_OK=0]="GETFILES_OK",e[e.METADATA_CLIENT_NOT_AVAILABLE=1]="METADATA_CLIENT_NOT_AVAILABLE",e[e.FILES_NOT_FOUND=2]="FILES_NOT_FOUND",e[e.TRACK_NOT_AVAILABLE=3]="TRACK_NOT_AVAILABLE",e[e.EXTENDED_METADATA_ERROR=4]="EXTENDED_METADATA_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.GetFilesStatus||(t.GetFilesStatus={})),t.getFilesStatusFromJSON=p,t.getFilesStatusToJSON=f,function(e){e[e.USER=0]="USER",e[e.SYSTEM=1]="SYSTEM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.VolumeChangeSource||(t.VolumeChangeSource={})),t.volumeChangeSourceFromJSON=h,t.volumeChangeSourceToJSON=m,function(e){e[e.START=0]="START",e[e.STOP=1]="STOP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.DuckRequest_Action||(t.DuckRequest_Action={})),t.duckRequest_ActionFromJSON=g,t.duckRequest_ActionToJSON=v,t.ConnectLoggingParams={encode(e,t=r.default.Writer.create()){for(const n of e.interactionIds)t.uint32(10).string(n);for(const n of e.pageInstanceIds)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={interactionIds:[],pageInstanceIds:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.interactionIds.push(n.string());break;case 2:i.pageInstanceIds.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[]}),toJSON(e){const t={};return e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],t},fromPartial(e){const t={interactionIds:[],pageInstanceIds:[]};return t.interactionIds=e.interactionIds?.map((e=>e))||[],t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t}},t.GetVolumeResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(17).double(e.volume),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,volume:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=n.int32();break;case 2:i.volume=n.double();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:_(e.status)?u(e.status):0,volume:_(e.volume)?Number(e.volume):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),void 0!==e.volume&&(t.volume=e.volume),t},fromPartial(e){const t={status:0,volume:0};return t.status=e.status??0,t.volume=e.volume??0,t}},t.SubVolumeResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(17).double(e.volume),0!==e.source&&t.uint32(24).int32(e.source),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,volume:0,source:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=n.int32();break;case 2:i.volume=n.double();break;case 3:i.source=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:_(e.status)?u(e.status):0,volume:_(e.volume)?Number(e.volume):0,source:_(e.source)?h(e.source):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),void 0!==e.volume&&(t.volume=e.volume),void 0!==e.source&&(t.source=m(e.source)),t},fromPartial(e){const t={status:0,volume:0,source:0};return t.status=e.status??0,t.volume=e.volume??0,t.source=e.source??0,t}},t.SetVolumeRequest={encode:(e,n=r.default.Writer.create())=>(0!==e.source&&n.uint32(8).int32(e.source),0!==e.volume&&n.uint32(17).double(e.volume),void 0!==e.connectLoggingParams&&t.ConnectLoggingParams.encode(e.connectLoggingParams,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={source:0,volume:0,connectLoggingParams:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.source=o.int32();break;case 2:a.volume=o.double();break;case 3:a.connectLoggingParams=t.ConnectLoggingParams.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({source:_(e.source)?h(e.source):0,volume:_(e.volume)?Number(e.volume):0,connectLoggingParams:_(e.connectLoggingParams)?t.ConnectLoggingParams.fromJSON(e.connectLoggingParams):void 0}),toJSON(e){const n={};return void 0!==e.source&&(n.source=m(e.source)),void 0!==e.volume&&(n.volume=e.volume),void 0!==e.connectLoggingParams&&(n.connectLoggingParams=e.connectLoggingParams?t.ConnectLoggingParams.toJSON(e.connectLoggingParams):void 0),n},fromPartial(e){const n={source:0,volume:0,connectLoggingParams:void 0};return n.source=e.source??0,n.volume=e.volume??0,n.connectLoggingParams=void 0!==e.connectLoggingParams&&null!==e.connectLoggingParams?t.ConnectLoggingParams.fromPartial(e.connectLoggingParams):void 0,n}},t.NudgeVolumeRequest={encode:(e,n=r.default.Writer.create())=>(0!==e.source&&n.uint32(8).int32(e.source),void 0!==e.connectLoggingParams&&t.ConnectLoggingParams.encode(e.connectLoggingParams,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={source:0,connectLoggingParams:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.source=o.int32();break;case 2:a.connectLoggingParams=t.ConnectLoggingParams.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({source:_(e.source)?h(e.source):0,connectLoggingParams:_(e.connectLoggingParams)?t.ConnectLoggingParams.fromJSON(e.connectLoggingParams):void 0}),toJSON(e){const n={};return void 0!==e.source&&(n.source=m(e.source)),void 0!==e.connectLoggingParams&&(n.connectLoggingParams=e.connectLoggingParams?t.ConnectLoggingParams.toJSON(e.connectLoggingParams):void 0),n},fromPartial(e){const n={source:0,connectLoggingParams:void 0};return n.source=e.source??0,n.connectLoggingParams=void 0!==e.connectLoggingParams&&null!==e.connectLoggingParams?t.ConnectLoggingParams.fromPartial(e.connectLoggingParams):void 0,n}},t.PlaybackInfoResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),"0"!==e.lengthMs&&t.uint32(16).uint64(e.lengthMs),"0"!==e.positionMs&&t.uint32(24).uint64(e.positionMs),!0===e.playing&&t.uint32(32).bool(e.playing),!0===e.buffering&&t.uint32(40).bool(e.buffering),0!==e.error&&t.uint32(48).int32(e.error),""!==e.fileId&&t.uint32(58).string(e.fileId),""!==e.fileType&&t.uint32(66).string(e.fileType),""!==e.resolvedContentUrl&&t.uint32(74).string(e.resolvedContentUrl),0!==e.fileBitrate&&t.uint32(80).int32(e.fileBitrate),""!==e.codecName&&t.uint32(90).string(e.codecName),0!==e.playbackSpeed&&t.uint32(97).double(e.playbackSpeed),0!==e.gainAdjustment&&t.uint32(109).float(e.gainAdjustment),!0===e.hasLoudness&&t.uint32(112).bool(e.hasLoudness),0!==e.loudness&&t.uint32(125).float(e.loudness),""!==e.strategy&&t.uint32(138).string(e.strategy),0!==e.targetBitrate&&t.uint32(144).int32(e.targetBitrate),0!==e.advisedBitrate&&t.uint32(152).int32(e.advisedBitrate),!0===e.targetFileAvailable&&t.uint32(160).bool(e.targetFileAvailable),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,lengthMs:"0",positionMs:"0",playing:!1,buffering:!1,error:0,fileId:"",fileType:"",resolvedContentUrl:"",fileBitrate:0,codecName:"",playbackSpeed:0,gainAdjustment:0,hasLoudness:!1,loudness:0,strategy:"",targetBitrate:0,advisedBitrate:0,targetFileAvailable:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=n.int32();break;case 2:i.lengthMs=y(n.uint64());break;case 3:i.positionMs=y(n.uint64());break;case 4:i.playing=n.bool();break;case 5:i.buffering=n.bool();break;case 6:i.error=n.int32();break;case 7:i.fileId=n.string();break;case 8:i.fileType=n.string();break;case 9:i.resolvedContentUrl=n.string();break;case 10:i.fileBitrate=n.int32();break;case 11:i.codecName=n.string();break;case 12:i.playbackSpeed=n.double();break;case 13:i.gainAdjustment=n.float();break;case 14:i.hasLoudness=n.bool();break;case 15:i.loudness=n.float();break;case 17:i.strategy=n.string();break;case 18:i.targetBitrate=n.int32();break;case 19:i.advisedBitrate=n.int32();break;case 20:i.targetFileAvailable=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:_(e.status)?u(e.status):0,lengthMs:_(e.lengthMs)?String(e.lengthMs):"0",positionMs:_(e.positionMs)?String(e.positionMs):"0",playing:!!_(e.playing)&&Boolean(e.playing),buffering:!!_(e.buffering)&&Boolean(e.buffering),error:_(e.error)?Number(e.error):0,fileId:_(e.fileId)?String(e.fileId):"",fileType:_(e.fileType)?String(e.fileType):"",resolvedContentUrl:_(e.resolvedContentUrl)?String(e.resolvedContentUrl):"",fileBitrate:_(e.fileBitrate)?Number(e.fileBitrate):0,codecName:_(e.codecName)?String(e.codecName):"",playbackSpeed:_(e.playbackSpeed)?Number(e.playbackSpeed):0,gainAdjustment:_(e.gainAdjustment)?Number(e.gainAdjustment):0,hasLoudness:!!_(e.hasLoudness)&&Boolean(e.hasLoudness),loudness:_(e.loudness)?Number(e.loudness):0,strategy:_(e.strategy)?String(e.strategy):"",targetBitrate:_(e.targetBitrate)?Number(e.targetBitrate):0,advisedBitrate:_(e.advisedBitrate)?Number(e.advisedBitrate):0,targetFileAvailable:!!_(e.targetFileAvailable)&&Boolean(e.targetFileAvailable)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),void 0!==e.lengthMs&&(t.lengthMs=e.lengthMs),void 0!==e.positionMs&&(t.positionMs=e.positionMs),void 0!==e.playing&&(t.playing=e.playing),void 0!==e.buffering&&(t.buffering=e.buffering),void 0!==e.error&&(t.error=Math.round(e.error)),void 0!==e.fileId&&(t.fileId=e.fileId),void 0!==e.fileType&&(t.fileType=e.fileType),void 0!==e.resolvedContentUrl&&(t.resolvedContentUrl=e.resolvedContentUrl),void 0!==e.fileBitrate&&(t.fileBitrate=Math.round(e.fileBitrate)),void 0!==e.codecName&&(t.codecName=e.codecName),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),void 0!==e.gainAdjustment&&(t.gainAdjustment=e.gainAdjustment),void 0!==e.hasLoudness&&(t.hasLoudness=e.hasLoudness),void 0!==e.loudness&&(t.loudness=e.loudness),void 0!==e.strategy&&(t.strategy=e.strategy),void 0!==e.targetBitrate&&(t.targetBitrate=Math.round(e.targetBitrate)),void 0!==e.advisedBitrate&&(t.advisedBitrate=Math.round(e.advisedBitrate)),void 0!==e.targetFileAvailable&&(t.targetFileAvailable=e.targetFileAvailable),t},fromPartial(e){const t={status:0,lengthMs:"0",positionMs:"0",playing:!1,buffering:!1,error:0,fileId:"",fileType:"",resolvedContentUrl:"",fileBitrate:0,codecName:"",playbackSpeed:0,gainAdjustment:0,hasLoudness:!1,loudness:0,strategy:"",targetBitrate:0,advisedBitrate:0,targetFileAvailable:!1};return t.status=e.status??0,t.lengthMs=e.lengthMs??"0",t.positionMs=e.positionMs??"0",t.playing=e.playing??!1,t.buffering=e.buffering??!1,t.error=e.error??0,t.fileId=e.fileId??"",t.fileType=e.fileType??"",t.resolvedContentUrl=e.resolvedContentUrl??"",t.fileBitrate=e.fileBitrate??0,t.codecName=e.codecName??"",t.playbackSpeed=e.playbackSpeed??0,t.gainAdjustment=e.gainAdjustment??0,t.hasLoudness=e.hasLoudness??!1,t.loudness=e.loudness??0,t.strategy=e.strategy??"",t.targetBitrate=e.targetBitrate??0,t.advisedBitrate=e.advisedBitrate??0,t.targetFileAvailable=e.targetFileAvailable??!1,t}},t.GetFormatsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.formats)t.GetFormatsResponse_Format.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={formats:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.formats.push(t.GetFormatsResponse_Format.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({formats:Array.isArray(e?.formats)?e.formats.map((e=>t.GetFormatsResponse_Format.fromJSON(e))):[]}),toJSON(e){const n={};return e.formats?n.formats=e.formats.map((e=>e?t.GetFormatsResponse_Format.toJSON(e):void 0)):n.formats=[],n},fromPartial(e){const n={formats:[]};return n.formats=e.formats?.map((e=>t.GetFormatsResponse_Format.fromPartial(e)))||[],n}},t.GetFormatsResponse_Format={encode:(e,t=r.default.Writer.create())=>(""!==e.enumKey&&t.uint32(10).string(e.enumKey),0!==e.enumValue&&t.uint32(16).uint32(e.enumValue),!0===e.supported&&t.uint32(24).bool(e.supported),0!==e.bitrate&&t.uint32(32).uint32(e.bitrate),""!==e.mimeType&&t.uint32(42).string(e.mimeType),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={enumKey:"",enumValue:0,supported:!1,bitrate:0,mimeType:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.enumKey=n.string();break;case 2:i.enumValue=n.uint32();break;case 3:i.supported=n.bool();break;case 4:i.bitrate=n.uint32();break;case 5:i.mimeType=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({enumKey:_(e.enumKey)?String(e.enumKey):"",enumValue:_(e.enumValue)?Number(e.enumValue):0,supported:!!_(e.supported)&&Boolean(e.supported),bitrate:_(e.bitrate)?Number(e.bitrate):0,mimeType:_(e.mimeType)?String(e.mimeType):""}),toJSON(e){const t={};return void 0!==e.enumKey&&(t.enumKey=e.enumKey),void 0!==e.enumValue&&(t.enumValue=Math.round(e.enumValue)),void 0!==e.supported&&(t.supported=e.supported),void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),void 0!==e.mimeType&&(t.mimeType=e.mimeType),t},fromPartial(e){const t={enumKey:"",enumValue:0,supported:!1,bitrate:0,mimeType:""};return t.enumKey=e.enumKey??"",t.enumValue=e.enumValue??0,t.supported=e.supported??!1,t.bitrate=e.bitrate??0,t.mimeType=e.mimeType??"",t}},t.SubPositionRequest={encode:(e,t=r.default.Writer.create())=>("0"!==e.position&&t.uint32(8).uint64(e.position),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={position:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.position=y(n.uint64());else n.skipType(7&e)}return i},fromJSON:e=>({position:_(e.position)?String(e.position):"0"}),toJSON(e){const t={};return void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t={position:"0"};return t.position=e.position??"0",t}},t.SubPositionResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),"0"!==e.position&&t.uint32(16).uint64(e.position),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,position:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.status=n.int32();break;case 2:i.position=y(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:_(e.status)?u(e.status):0,position:_(e.position)?String(e.position):"0"}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t={status:0,position:"0"};return t.status=e.status??0,t.position=e.position??"0",t}},t.GetFilesRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.uri=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}},t.GetFilesResponse={encode(e,n=r.default.Writer.create()){0!==e.status&&n.uint32(8).int32(e.status);for(const o of e.files)t.GetFilesResponse_File.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:0,files:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=o.int32();break;case 2:a.files.push(t.GetFilesResponse_File.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:_(e.status)?p(e.status):0,files:Array.isArray(e?.files)?e.files.map((e=>t.GetFilesResponse_File.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=f(e.status)),e.files?n.files=e.files.map((e=>e?t.GetFilesResponse_File.toJSON(e):void 0)):n.files=[],n},fromPartial(e){const n={status:0,files:[]};return n.status=e.status??0,n.files=e.files?.map((e=>t.GetFilesResponse_File.fromPartial(e)))||[],n}},t.GetFilesResponse_File={encode:(e,t=r.default.Writer.create())=>(""!==e.fileId&&t.uint32(10).string(e.fileId),""!==e.format&&t.uint32(18).string(e.format),0!==e.bitrate&&t.uint32(24).uint32(e.bitrate),0!==e.formatEnum&&t.uint32(32).uint32(e.formatEnum),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={fileId:"",format:"",bitrate:0,formatEnum:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.fileId=n.string();break;case 2:i.format=n.string();break;case 3:i.bitrate=n.uint32();break;case 4:i.formatEnum=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fileId:_(e.fileId)?String(e.fileId):"",format:_(e.format)?String(e.format):"",bitrate:_(e.bitrate)?Number(e.bitrate):0,formatEnum:_(e.formatEnum)?Number(e.formatEnum):0}),toJSON(e){const t={};return void 0!==e.fileId&&(t.fileId=e.fileId),void 0!==e.format&&(t.format=e.format),void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),void 0!==e.formatEnum&&(t.formatEnum=Math.round(e.formatEnum)),t},fromPartial(e){const t={fileId:"",format:"",bitrate:0,formatEnum:0};return t.fileId=e.fileId??"",t.format=e.format??"",t.bitrate=e.bitrate??0,t.formatEnum=e.formatEnum??0,t}},t.DuckRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.action&&t.uint32(16).int32(e.action),0!==e.volume&&t.uint32(25).double(e.volume),0!==e.fadeDurationMs&&t.uint32(32).uint32(e.fadeDurationMs),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={action:0,volume:0,fadeDurationMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 2:i.action=n.int32();break;case 3:i.volume=n.double();break;case 4:i.fadeDurationMs=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({action:_(e.action)?g(e.action):0,volume:_(e.volume)?Number(e.volume):0,fadeDurationMs:_(e.fadeDurationMs)?Number(e.fadeDurationMs):0}),toJSON(e){const t={};return void 0!==e.action&&(t.action=v(e.action)),void 0!==e.volume&&(t.volume=e.volume),void 0!==e.fadeDurationMs&&(t.fadeDurationMs=Math.round(e.fadeDurationMs)),t},fromPartial(e){const t={action:0,volume:0,fadeDurationMs:0};return t.action=e.action??0,t.volume=e.volume??0,t.fadeDurationMs=e.fadeDurationMs??0,t}},t.DuckResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:_(e.status)?u(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsClient=void 0;const o=n(33892),i=n(37979);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}putShowSubscription(e){const t="spotify.podcast_paywalls_esperanto.proto.PodcastPaywalls",n="PutShowSubscription",r=i.PodcastPaywallsShowSubscriptionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PodcastPaywallsShowSubscriptionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.podcast_paywalls_esperanto.proto.PodcastPaywalls";static DECODERS={PutShowSubscription:{request:i.PodcastPaywallsShowSubscriptionRequest.decode,response:i.PodcastPaywallsShowSubscriptionResponse.decode}}}t.PodcastPaywallsClient=r},95758:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsClient=void 0;var r=n(82763);Object.defineProperty(t,"PodcastPaywallsClient",{enumerable:!0,get:function(){return r.PodcastPaywallsClient}}),i(n(37979),t)},37979:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsShowSubscriptionResponse=t.PodcastPaywallsShowSubscriptionRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.podcast_paywalls_esperanto.proto",t.PodcastPaywallsShowSubscriptionRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.showUri&&t.uint32(10).string(e.showUri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showUri:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.showUri=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({showUri:a(e.showUri)?String(e.showUri):""}),toJSON(e){const t={};return void 0!==e.showUri&&(t.showUri=e.showUri),t},fromPartial(e){const t={showUri:""};return t.showUri=e.showUri??"",t}},t.PodcastPaywallsShowSubscriptionResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.isUserSubscribed&&t.uint32(8).bool(e.isUserSubscribed),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isUserSubscribed:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.isUserSubscribed=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isUserSubscribed:!!a(e.isUserSubscribed)&&Boolean(e.isUserSubscribed)}),toJSON(e){const t={};return void 0!==e.isUserSubscribed&&(t.isUserSubscribed=e.isUserSubscribed),t},fromPartial(e){const t={isUserSubscribed:!1};return t.isUserSubscribed=e.isUserSubscribed??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},54277:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrefsClient=void 0;const o=n(33892),i=n(58781);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}get(e){const t="spotify.prefs.esperanto.proto.Prefs",n="Get",r=i.GetParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}sub(e,t){const n="spotify.prefs.esperanto.proto.Prefs",r="Sub",a=i.SubParams.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.PrefValues.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getAll(e){const t="spotify.prefs.esperanto.proto.Prefs",n="GetAll",r=i.GetAllParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subAll(e,t){const n="spotify.prefs.esperanto.proto.Prefs",r="SubAll",a=i.SubAllParams.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.PrefValues.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}set(e){const t="spotify.prefs.esperanto.proto.Prefs",n="Set",r=i.SetParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}create(e){const t="spotify.prefs.esperanto.proto.Prefs",n="Create",r=i.CreateParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.prefs.esperanto.proto.Prefs";static DECODERS={Get:{request:i.GetParams.decode,response:i.PrefValues.decode},Sub:{request:i.SubParams.decode,response:i.PrefValues.decode},GetAll:{request:i.GetAllParams.decode,response:i.PrefValues.decode},SubAll:{request:i.SubAllParams.decode,response:i.PrefValues.decode},Set:{request:i.SetParams.decode,response:i.PrefValues.decode},Create:{request:i.CreateParams.decode,response:i.PrefValues.decode}}}t.PrefsClient=r},31715:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.makePrefs=t.SimplePrefs=t.PrefsClient=void 0;const a=n(54277);Object.defineProperty(t,"PrefsClient",{enumerable:!0,get:function(){return a.PrefsClient}});const s=r(n(20997));t.SimplePrefs=s.default,i(n(58781),t),t.makePrefs=function(e){return new a.PrefsClient(e)}},20997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e=>"string"==typeof e?{string:e}:"boolean"==typeof e?{bool:e}:{number:String(e)},o=e=>Object.fromEntries(Object.entries(e.entries).map((([e,{string:t,bool:n,number:o}])=>[e,t??n??o])));t.default=class{prefs;constructor(e){this.prefs=e}getAll(){return this.prefs.getAll({}).then((e=>o(e)))}get(e){return this.prefs.get({key:e}).then((t=>o(t)[e]))}async set(e,t){await this.prefs.set({entries:{[e]:n(t)}})}}},58781:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrefValues_EntriesEntry=t.PrefValues=t.CreateParams_EntriesEntry=t.CreateParams=t.SetParams_EntriesEntry=t.SetParams=t.Value=t.SubAllParams=t.GetAllParams=t.SubParams=t.GetParams=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.prefs.esperanto.proto",t.GetParams={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.key=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({key:s(e.key)?String(e.key):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),t},fromPartial(e){const t={key:""};return t.key=e.key??"",t}},t.SubParams={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.key=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({key:s(e.key)?String(e.key):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),t},fromPartial(e){const t={key:""};return t.key=e.key??"",t}},t.GetAllParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubAllParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.Value={encode:(e,t=r.default.Writer.create())=>(void 0!==e.number&&t.uint32(8).int64(e.number),void 0!==e.bool&&t.uint32(16).bool(e.bool),void 0!==e.string&&t.uint32(26).string(e.string),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={number:void 0,bool:void 0,string:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.number=n.int64().toString();break;case 2:i.bool=n.bool();break;case 3:i.string=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({number:s(e.number)?String(e.number):void 0,bool:s(e.bool)?Boolean(e.bool):void 0,string:s(e.string)?String(e.string):void 0}),toJSON(e){const t={};return void 0!==e.number&&(t.number=e.number),void 0!==e.bool&&(t.bool=e.bool),void 0!==e.string&&(t.string=e.string),t},fromPartial(e){const t={number:void 0,bool:void 0,string:void 0};return t.number=e.number??void 0,t.bool=e.bool??void 0,t.string=e.string??void 0,t}},t.SetParams={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,o])=>{t.SetParams_EntriesEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entries:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.SetParams_EntriesEntry.decode(o,o.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,o])=>(e[n]=t.Value.fromJSON(o),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,o])=>{n.entries[e]=t.Value.toJSON(o)})),n},fromPartial(e){const n={entries:{}};return n.entries=Object.entries(e.entries??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Value.fromPartial(o)),e)),{}),n}},t.SetParams_EntriesEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Value.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.Value.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?t.Value.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Value.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,n}},t.CreateParams={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,o])=>{t.CreateParams_EntriesEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entries:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.CreateParams_EntriesEntry.decode(o,o.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,o])=>(e[n]=t.Value.fromJSON(o),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,o])=>{n.entries[e]=t.Value.toJSON(o)})),n},fromPartial(e){const n={entries:{}};return n.entries=Object.entries(e.entries??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Value.fromPartial(o)),e)),{}),n}},t.CreateParams_EntriesEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Value.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.Value.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?t.Value.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Value.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,n}},t.PrefValues={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,o])=>{t.PrefValues_EntriesEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entries:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.PrefValues_EntriesEntry.decode(o,o.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,o])=>(e[n]=t.Value.fromJSON(o),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,o])=>{n.entries[e]=t.Value.toJSON(o)})),n},fromPartial(e){const n={entries:{}};return n.entries=Object.entries(e.entries??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Value.fromPartial(o)),e)),{}),n}},t.PrefValues_EntriesEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Value.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.Value.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?t.Value.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Value.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},1914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;const o=n(33892),i=n(34001);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="GetValues",r=i.GetValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subValues(e,t){const n="spotify.product_state.esperanto.proto.ProductState",r="SubValues",a=i.SubValuesRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetValuesResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}putValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutValues",r=i.PutValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutOverridesValues",r=i.PutOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}delOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="DelOverridesValues",r=i.DelOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.DelOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.product_state.esperanto.proto.ProductState";static DECODERS={GetValues:{request:i.GetValuesRequest.decode,response:i.GetValuesResponse.decode},SubValues:{request:i.SubValuesRequest.decode,response:i.GetValuesResponse.decode},PutValues:{request:i.PutValuesRequest.decode,response:i.PutValuesResponse.decode},PutOverridesValues:{request:i.PutOverridesValuesRequest.decode,response:i.PutOverridesValuesResponse.decode},DelOverridesValues:{request:i.DelOverridesValuesRequest.decode,response:i.DelOverridesValuesResponse.decode}}}t.ProductStateClient=r},65875:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;var r=n(1914);Object.defineProperty(t,"ProductStateClient",{enumerable:!0,get:function(){return r.ProductStateClient}}),i(n(34001),t)},34001:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DelOverridesValuesResponse=t.PutOverridesValuesResponse=t.GetValuesResponse_PairsEntry=t.GetValuesResponse=t.PutValuesResponse=t.PutValuesRequest_PairsEntry=t.PutValuesRequest=t.DelOverridesValuesRequest=t.PutOverridesValuesRequest_PairsEntry=t.PutOverridesValuesRequest=t.SubValuesRequest=t.GetValuesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.product_state.esperanto.proto",t.GetValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.PutOverridesValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutOverridesValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.PutOverridesValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutOverridesValuesRequest_PairsEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.DelOverridesValuesRequest={encode(e,t=r.default.Writer.create()){for(const n of e.keys)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={keys:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.keys.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({keys:Array.isArray(e?.keys)?e.keys.map((e=>String(e))):[]}),toJSON(e){const t={};return e.keys?t.keys=e.keys.map((e=>e)):t.keys=[],t},fromPartial(e){const t={keys:[]};return t.keys=e.keys?.map((e=>e))||[],t}},t.PutValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.PutValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutValuesRequest_PairsEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetValuesResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.GetValuesResponse_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.GetValuesResponse_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.GetValuesResponse_PairsEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.DelOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;const o=n(33892),i=n(87323);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="GetValues",r=i.GetValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subValues(e,t){const n="spotify.product_state.esperanto.proto.ProductState",r="SubValues",a=i.SubValuesRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetValuesResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}putValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutValues",r=i.PutValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutOverridesValues",r=i.PutOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}delOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="DelOverridesValues",r=i.DelOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.DelOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.product_state.esperanto.proto.ProductState";static DECODERS={GetValues:{request:i.GetValuesRequest.decode,response:i.GetValuesResponse.decode},SubValues:{request:i.SubValuesRequest.decode,response:i.GetValuesResponse.decode},PutValues:{request:i.PutValuesRequest.decode,response:i.PutValuesResponse.decode},PutOverridesValues:{request:i.PutOverridesValuesRequest.decode,response:i.PutOverridesValuesResponse.decode},DelOverridesValues:{request:i.DelOverridesValuesRequest.decode,response:i.DelOverridesValuesResponse.decode}}}t.ProductStateClient=r},73229:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;var r=n(13414);Object.defineProperty(t,"ProductStateClient",{enumerable:!0,get:function(){return r.ProductStateClient}}),i(n(87323),t)},87323:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DelOverridesValuesResponse=t.PutOverridesValuesResponse=t.GetValuesResponse_PairsEntry=t.GetValuesResponse=t.PutValuesResponse=t.PutValuesRequest_PairsEntry=t.PutValuesRequest=t.DelOverridesValuesRequest=t.PutOverridesValuesRequest_PairsEntry=t.PutOverridesValuesRequest=t.SubValuesRequest=t.GetValuesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.product_state.esperanto.proto",t.GetValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.PutOverridesValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutOverridesValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.PutOverridesValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutOverridesValuesRequest_PairsEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.DelOverridesValuesRequest={encode(e,t=r.default.Writer.create()){for(const n of e.keys)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={keys:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.keys.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({keys:Array.isArray(e?.keys)?e.keys.map((e=>String(e))):[]}),toJSON(e){const t={};return e.keys?t.keys=e.keys.map((e=>e)):t.keys=[],t},fromPartial(e){const t={keys:[]};return t.keys=e.keys?.map((e=>e))||[],t}},t.PutValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.PutValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutValuesRequest_PairsEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetValuesResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.GetValuesResponse_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.GetValuesResponse_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.GetValuesResponse_PairsEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.DelOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},67935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecentlyPlayedServiceClient=void 0;const o=n(33892),i=n(23141),r=n(90872);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}get(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="Get",r=i.GetRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetRecentlyPlayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}stream(e,t){const n="spotify.recently_played_esperanto.proto.RecentlyPlayedService",r="Stream",a=i.GetRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetRecentlyPlayedResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}hide(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="Hide",r=i.HideRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.HideRecentlyPlayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}tracks(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="Tracks",i=r.GetRecentlyPlayedTracksRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetRecentlyPlayedTracksResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamTracks(e,t){const n="spotify.recently_played_esperanto.proto.RecentlyPlayedService",i="StreamTracks",a=r.GetRecentlyPlayedTracksRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.GetRecentlyPlayedTracksResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}hideTracks(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="HideTracks",r=i.HideRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.HideRecentlyPlayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.recently_played_esperanto.proto.RecentlyPlayedService";static DECODERS={Get:{request:i.GetRecentlyPlayedRequest.decode,response:i.GetRecentlyPlayedResponse.decode},Stream:{request:i.GetRecentlyPlayedRequest.decode,response:i.GetRecentlyPlayedResponse.decode},Hide:{request:i.HideRecentlyPlayedRequest.decode,response:i.HideRecentlyPlayedResponse.decode},Tracks:{request:r.GetRecentlyPlayedTracksRequest.decode,response:r.GetRecentlyPlayedTracksResponse.decode},StreamTracks:{request:r.GetRecentlyPlayedTracksRequest.decode,response:r.GetRecentlyPlayedTracksResponse.decode},HideTracks:{request:i.HideRecentlyPlayedRequest.decode,response:i.HideRecentlyPlayedResponse.decode}}}t.RecentlyPlayedServiceClient=a},96154:(e,t,n)=>{"use strict";t.Dq=t.HB=void 0;var o=n(67935);Object.defineProperty(t,"HB",{enumerable:!0,get:function(){return o.RecentlyPlayedServiceClient}});var i=n(23141);Object.defineProperty(t,"Dq",{enumerable:!0,get:function(){return i.GetRecentlyPlayedRequest}});var r=n(23141);var a=n(23141);var s=n(23141);var l=n(90872);var c=n(90872)},53144:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumCollectionState={encode:(e,t=i.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),0!==e.numTracksInCollection&&t.uint32(16).uint32(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",numTracksInCollection:0,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.string();break;case 2:r.numTracksInCollection=n.uint32();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:r(e.collectionLink)?String(e.collectionLink):"",numTracksInCollection:r(e.numTracksInCollection)?Number(e.numTracksInCollection):0,complete:!!r(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:"",numTracksInCollection:0,complete:!1};return t.collectionLink=e.collectionLink??"",t.numTracksInCollection=e.numTracksInCollection??0,t.complete=e.complete??!1,t}}},27640:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistCollectionState={encode:(e,t=i.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),!0===e.followed&&t.uint32(16).bool(e.followed),0!==e.numTracksInCollection&&t.uint32(24).uint32(e.numTracksInCollection),0!==e.numAlbumsInCollection&&t.uint32(32).uint32(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.string();break;case 2:r.followed=n.bool();break;case 3:r.numTracksInCollection=n.uint32();break;case 4:r.numAlbumsInCollection=n.uint32();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:r(e.collectionLink)?String(e.collectionLink):"",followed:!!r(e.followed)&&Boolean(e.followed),numTracksInCollection:r(e.numTracksInCollection)?Number(e.numTracksInCollection):0,numAlbumsInCollection:r(e.numAlbumsInCollection)?Number(e.numAlbumsInCollection):0,isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.followed&&(t.followed=e.followed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=Math.round(e.numAlbumsInCollection)),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??"",t.followed=e.followed??!1,t.numTracksInCollection=e.numTracksInCollection??0,t.numAlbumsInCollection=e.numAlbumsInCollection??0,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}}},96647:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=i.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isNew=n.bool();break;case 3:r.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!r(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!r(e.isNew)&&Boolean(e.isNew),isInListenLater:!!r(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}}},36421:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionState=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto",t.ShowCollectionState={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}}},90595:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackCollectionState={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isInCollection:!!r(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!r(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}}},36183:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 68:case"SKIP_PLAYED":return n.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.SKIP_PLAYED:return"SKIP_PLAYED";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},23141:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HideRecentlyPlayedResponse=t.HideRecentlyPlayedRequest=t.GetRecentlyPlayedResponse=t.RecentlyPlayedContext=t.GetRecentlyPlayedRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(63277),a=n(75468);function s(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.GetRecentlyPlayedRequest={encode:(e,t=i.default.Writer.create())=>(0!==e.limit&&t.uint32(8).uint32(e.limit),0!==e.playlistResyncLimit&&t.uint32(16).uint32(e.playlistResyncLimit),!0===e.excludeShowsMixed&&t.uint32(24).bool(e.excludeShowsMixed),!0===e.excludeShowsAudio&&t.uint32(32).bool(e.excludeShowsAudio),!0===e.excludeShowsVideo&&t.uint32(40).bool(e.excludeShowsVideo),!0===e.excludeTrackContexts&&t.uint32(48).bool(e.excludeTrackContexts),!0===e.includeHidden&&t.uint32(56).bool(e.includeHidden),!0===e.includeCollectionSongs&&t.uint32(64).bool(e.includeCollectionSongs),!0===e.includeYourEpisodes&&t.uint32(72).bool(e.includeYourEpisodes),!0===e.includeOwnDeletedPlaylists&&t.uint32(80).bool(e.includeOwnDeletedPlaylists),!0===e.includePodcastShorts&&t.uint32(88).bool(e.includePodcastShorts),void 0!==e.artistPolicy&&r.RecentlyPlayedArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(98).fork()).ldelim(),void 0!==e.albumPolicy&&r.RecentlyPlayedAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(106).fork()).ldelim(),void 0!==e.trackPolicy&&r.RecentlyPlayedTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(114).fork()).ldelim(),void 0!==e.showPolicy&&r.RecentlyPlayedShowDecorationPolicy.encode(e.showPolicy,t.uint32(122).fork()).ldelim(),void 0!==e.playlistPolicy&&r.RecentlyPlayedPlaylistDecorationPolicy.encode(e.playlistPolicy,t.uint32(130).fork()).ldelim(),void 0!==e.collectionTracksPolicy&&r.RecentlyPlayedCollectionTracksDecorationPolicy.encode(e.collectionTracksPolicy,t.uint32(138).fork()).ldelim(),void 0!==e.profilePolicy&&r.RecentlyPlayedProfileDecorationPolicy.encode(e.profilePolicy,t.uint32(146).fork()).ldelim(),void 0!==e.episodePolicy&&r.RecentlyPlayedEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(154).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(160).uint32(e.updateThrottling),!0===e.initialResponseFromCache&&t.uint32(168).bool(e.initialResponseFromCache),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={limit:0,playlistResyncLimit:0,excludeShowsMixed:!1,excludeShowsAudio:!1,excludeShowsVideo:!1,excludeTrackContexts:!1,includeHidden:!1,includeCollectionSongs:!1,includeYourEpisodes:!1,includeOwnDeletedPlaylists:!1,includePodcastShorts:!1,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,playlistPolicy:void 0,collectionTracksPolicy:void 0,profilePolicy:void 0,episodePolicy:void 0,updateThrottling:0,initialResponseFromCache:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.limit=n.uint32();break;case 2:a.playlistResyncLimit=n.uint32();break;case 3:a.excludeShowsMixed=n.bool();break;case 4:a.excludeShowsAudio=n.bool();break;case 5:a.excludeShowsVideo=n.bool();break;case 6:a.excludeTrackContexts=n.bool();break;case 7:a.includeHidden=n.bool();break;case 8:a.includeCollectionSongs=n.bool();break;case 9:a.includeYourEpisodes=n.bool();break;case 10:a.includeOwnDeletedPlaylists=n.bool();break;case 11:a.includePodcastShorts=n.bool();break;case 12:a.artistPolicy=r.RecentlyPlayedArtistDecorationPolicy.decode(n,n.uint32());break;case 13:a.albumPolicy=r.RecentlyPlayedAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:a.trackPolicy=r.RecentlyPlayedTrackDecorationPolicy.decode(n,n.uint32());break;case 15:a.showPolicy=r.RecentlyPlayedShowDecorationPolicy.decode(n,n.uint32());break;case 16:a.playlistPolicy=r.RecentlyPlayedPlaylistDecorationPolicy.decode(n,n.uint32());break;case 17:a.collectionTracksPolicy=r.RecentlyPlayedCollectionTracksDecorationPolicy.decode(n,n.uint32());break;case 18:a.profilePolicy=r.RecentlyPlayedProfileDecorationPolicy.decode(n,n.uint32());break;case 19:a.episodePolicy=r.RecentlyPlayedEpisodeDecorationPolicy.decode(n,n.uint32());break;case 20:a.updateThrottling=n.uint32();break;case 21:a.initialResponseFromCache=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({limit:s(e.limit)?Number(e.limit):0,playlistResyncLimit:s(e.playlistResyncLimit)?Number(e.playlistResyncLimit):0,excludeShowsMixed:!!s(e.excludeShowsMixed)&&Boolean(e.excludeShowsMixed),excludeShowsAudio:!!s(e.excludeShowsAudio)&&Boolean(e.excludeShowsAudio),excludeShowsVideo:!!s(e.excludeShowsVideo)&&Boolean(e.excludeShowsVideo),excludeTrackContexts:!!s(e.excludeTrackContexts)&&Boolean(e.excludeTrackContexts),includeHidden:!!s(e.includeHidden)&&Boolean(e.includeHidden),includeCollectionSongs:!!s(e.includeCollectionSongs)&&Boolean(e.includeCollectionSongs),includeYourEpisodes:!!s(e.includeYourEpisodes)&&Boolean(e.includeYourEpisodes),includeOwnDeletedPlaylists:!!s(e.includeOwnDeletedPlaylists)&&Boolean(e.includeOwnDeletedPlaylists),includePodcastShorts:!!s(e.includePodcastShorts)&&Boolean(e.includePodcastShorts),artistPolicy:s(e.artistPolicy)?r.RecentlyPlayedArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,albumPolicy:s(e.albumPolicy)?r.RecentlyPlayedAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:s(e.trackPolicy)?r.RecentlyPlayedTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,showPolicy:s(e.showPolicy)?r.RecentlyPlayedShowDecorationPolicy.fromJSON(e.showPolicy):void 0,playlistPolicy:s(e.playlistPolicy)?r.RecentlyPlayedPlaylistDecorationPolicy.fromJSON(e.playlistPolicy):void 0,collectionTracksPolicy:s(e.collectionTracksPolicy)?r.RecentlyPlayedCollectionTracksDecorationPolicy.fromJSON(e.collectionTracksPolicy):void 0,profilePolicy:s(e.profilePolicy)?r.RecentlyPlayedProfileDecorationPolicy.fromJSON(e.profilePolicy):void 0,episodePolicy:s(e.episodePolicy)?r.RecentlyPlayedEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0,initialResponseFromCache:!!s(e.initialResponseFromCache)&&Boolean(e.initialResponseFromCache)}),toJSON(e){const t={};return void 0!==e.limit&&(t.limit=Math.round(e.limit)),void 0!==e.playlistResyncLimit&&(t.playlistResyncLimit=Math.round(e.playlistResyncLimit)),void 0!==e.excludeShowsMixed&&(t.excludeShowsMixed=e.excludeShowsMixed),void 0!==e.excludeShowsAudio&&(t.excludeShowsAudio=e.excludeShowsAudio),void 0!==e.excludeShowsVideo&&(t.excludeShowsVideo=e.excludeShowsVideo),void 0!==e.excludeTrackContexts&&(t.excludeTrackContexts=e.excludeTrackContexts),void 0!==e.includeHidden&&(t.includeHidden=e.includeHidden),void 0!==e.includeCollectionSongs&&(t.includeCollectionSongs=e.includeCollectionSongs),void 0!==e.includeYourEpisodes&&(t.includeYourEpisodes=e.includeYourEpisodes),void 0!==e.includeOwnDeletedPlaylists&&(t.includeOwnDeletedPlaylists=e.includeOwnDeletedPlaylists),void 0!==e.includePodcastShorts&&(t.includePodcastShorts=e.includePodcastShorts),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?r.RecentlyPlayedArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.RecentlyPlayedAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?r.RecentlyPlayedShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.playlistPolicy&&(t.playlistPolicy=e.playlistPolicy?r.RecentlyPlayedPlaylistDecorationPolicy.toJSON(e.playlistPolicy):void 0),void 0!==e.collectionTracksPolicy&&(t.collectionTracksPolicy=e.collectionTracksPolicy?r.RecentlyPlayedCollectionTracksDecorationPolicy.toJSON(e.collectionTracksPolicy):void 0),void 0!==e.profilePolicy&&(t.profilePolicy=e.profilePolicy?r.RecentlyPlayedProfileDecorationPolicy.toJSON(e.profilePolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.initialResponseFromCache&&(t.initialResponseFromCache=e.initialResponseFromCache),t},fromPartial(e){const t={limit:0,playlistResyncLimit:0,excludeShowsMixed:!1,excludeShowsAudio:!1,excludeShowsVideo:!1,excludeTrackContexts:!1,includeHidden:!1,includeCollectionSongs:!1,includeYourEpisodes:!1,includeOwnDeletedPlaylists:!1,includePodcastShorts:!1,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,playlistPolicy:void 0,collectionTracksPolicy:void 0,profilePolicy:void 0,episodePolicy:void 0,updateThrottling:0,initialResponseFromCache:!1};return t.limit=e.limit??0,t.playlistResyncLimit=e.playlistResyncLimit??0,t.excludeShowsMixed=e.excludeShowsMixed??!1,t.excludeShowsAudio=e.excludeShowsAudio??!1,t.excludeShowsVideo=e.excludeShowsVideo??!1,t.excludeTrackContexts=e.excludeTrackContexts??!1,t.includeHidden=e.includeHidden??!1,t.includeCollectionSongs=e.includeCollectionSongs??!1,t.includeYourEpisodes=e.includeYourEpisodes??!1,t.includeOwnDeletedPlaylists=e.includeOwnDeletedPlaylists??!1,t.includePodcastShorts=e.includePodcastShorts??!1,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?r.RecentlyPlayedArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.RecentlyPlayedAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?r.RecentlyPlayedShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.playlistPolicy=void 0!==e.playlistPolicy&&null!==e.playlistPolicy?r.RecentlyPlayedPlaylistDecorationPolicy.fromPartial(e.playlistPolicy):void 0,t.collectionTracksPolicy=void 0!==e.collectionTracksPolicy&&null!==e.collectionTracksPolicy?r.RecentlyPlayedCollectionTracksDecorationPolicy.fromPartial(e.collectionTracksPolicy):void 0,t.profilePolicy=void 0!==e.profilePolicy&&null!==e.profilePolicy?r.RecentlyPlayedProfileDecorationPolicy.fromPartial(e.profilePolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.updateThrottling=e.updateThrottling??0,t.initialResponseFromCache=e.initialResponseFromCache??!1,t}},t.RecentlyPlayedContext={encode:(e,t=i.default.Writer.create())=>(void 0!==e.artist&&a.RecentlyPlayedArtist.encode(e.artist,t.uint32(10).fork()).ldelim(),void 0!==e.album&&a.RecentlyPlayedAlbum.encode(e.album,t.uint32(18).fork()).ldelim(),void 0!==e.track&&a.RecentlyPlayedTrack.encode(e.track,t.uint32(26).fork()).ldelim(),void 0!==e.show&&a.RecentlyPlayedShow.encode(e.show,t.uint32(34).fork()).ldelim(),void 0!==e.profile&&a.RecentlyPlayedProfile.encode(e.profile,t.uint32(42).fork()).ldelim(),void 0!==e.playlist&&a.RecentlyPlayedPlaylist.encode(e.playlist,t.uint32(50).fork()).ldelim(),void 0!==e.collectionTracks&&a.RecentlyPlayedCollectionTracks.encode(e.collectionTracks,t.uint32(58).fork()).ldelim(),void 0!==e.episode&&a.RecentlyPlayedEpisode.encode(e.episode,t.uint32(66).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={artist:void 0,album:void 0,track:void 0,show:void 0,profile:void 0,playlist:void 0,collectionTracks:void 0,episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.artist=a.RecentlyPlayedArtist.decode(n,n.uint32());break;case 2:r.album=a.RecentlyPlayedAlbum.decode(n,n.uint32());break;case 3:r.track=a.RecentlyPlayedTrack.decode(n,n.uint32());break;case 4:r.show=a.RecentlyPlayedShow.decode(n,n.uint32());break;case 5:r.profile=a.RecentlyPlayedProfile.decode(n,n.uint32());break;case 6:r.playlist=a.RecentlyPlayedPlaylist.decode(n,n.uint32());break;case 7:r.collectionTracks=a.RecentlyPlayedCollectionTracks.decode(n,n.uint32());break;case 8:r.episode=a.RecentlyPlayedEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({artist:s(e.artist)?a.RecentlyPlayedArtist.fromJSON(e.artist):void 0,album:s(e.album)?a.RecentlyPlayedAlbum.fromJSON(e.album):void 0,track:s(e.track)?a.RecentlyPlayedTrack.fromJSON(e.track):void 0,show:s(e.show)?a.RecentlyPlayedShow.fromJSON(e.show):void 0,profile:s(e.profile)?a.RecentlyPlayedProfile.fromJSON(e.profile):void 0,playlist:s(e.playlist)?a.RecentlyPlayedPlaylist.fromJSON(e.playlist):void 0,collectionTracks:s(e.collectionTracks)?a.RecentlyPlayedCollectionTracks.fromJSON(e.collectionTracks):void 0,episode:s(e.episode)?a.RecentlyPlayedEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=e.artist?a.RecentlyPlayedArtist.toJSON(e.artist):void 0),void 0!==e.album&&(t.album=e.album?a.RecentlyPlayedAlbum.toJSON(e.album):void 0),void 0!==e.track&&(t.track=e.track?a.RecentlyPlayedTrack.toJSON(e.track):void 0),void 0!==e.show&&(t.show=e.show?a.RecentlyPlayedShow.toJSON(e.show):void 0),void 0!==e.profile&&(t.profile=e.profile?a.RecentlyPlayedProfile.toJSON(e.profile):void 0),void 0!==e.playlist&&(t.playlist=e.playlist?a.RecentlyPlayedPlaylist.toJSON(e.playlist):void 0),void 0!==e.collectionTracks&&(t.collectionTracks=e.collectionTracks?a.RecentlyPlayedCollectionTracks.toJSON(e.collectionTracks):void 0),void 0!==e.episode&&(t.episode=e.episode?a.RecentlyPlayedEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={artist:void 0,album:void 0,track:void 0,show:void 0,profile:void 0,playlist:void 0,collectionTracks:void 0,episode:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?a.RecentlyPlayedArtist.fromPartial(e.artist):void 0,t.album=void 0!==e.album&&null!==e.album?a.RecentlyPlayedAlbum.fromPartial(e.album):void 0,t.track=void 0!==e.track&&null!==e.track?a.RecentlyPlayedTrack.fromPartial(e.track):void 0,t.show=void 0!==e.show&&null!==e.show?a.RecentlyPlayedShow.fromPartial(e.show):void 0,t.profile=void 0!==e.profile&&null!==e.profile?a.RecentlyPlayedProfile.fromPartial(e.profile):void 0,t.playlist=void 0!==e.playlist&&null!==e.playlist?a.RecentlyPlayedPlaylist.fromPartial(e.playlist):void 0,t.collectionTracks=void 0!==e.collectionTracks&&null!==e.collectionTracks?a.RecentlyPlayedCollectionTracks.fromPartial(e.collectionTracks):void 0,t.episode=void 0!==e.episode&&null!==e.episode?a.RecentlyPlayedEpisode.fromPartial(e.episode):void 0,t}},t.GetRecentlyPlayedResponse={encode(e,n=i.default.Writer.create()){for(const o of e.context)t.RecentlyPlayedContext.encode(o,n.uint32(10).fork()).ldelim();return!0===e.loaded&&n.uint32(16).bool(e.loaded),0!==e.status&&n.uint32(24).uint32(e.status),""!==e.error&&n.uint32(34).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={context:[],loaded:!1,status:0,error:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.context.push(t.RecentlyPlayedContext.decode(o,o.uint32()));break;case 2:a.loaded=o.bool();break;case 3:a.status=o.uint32();break;case 4:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({context:Array.isArray(e?.context)?e.context.map((e=>t.RecentlyPlayedContext.fromJSON(e))):[],loaded:!!s(e.loaded)&&Boolean(e.loaded),status:s(e.status)?Number(e.status):0,error:s(e.error)?String(e.error):""}),toJSON(e){const n={};return e.context?n.context=e.context.map((e=>e?t.RecentlyPlayedContext.toJSON(e):void 0)):n.context=[],void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.status&&(n.status=Math.round(e.status)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={context:[],loaded:!1,status:0,error:""};return n.context=e.context?.map((e=>t.RecentlyPlayedContext.fromPartial(e)))||[],n.loaded=e.loaded??!1,n.status=e.status??0,n.error=e.error??"",n}},t.HideRecentlyPlayedRequest={encode(e,t=i.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.uri.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.HideRecentlyPlayedResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.status&&t.uint32(8).uint32(e.status),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,error:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.status=n.uint32();break;case 2:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({status:s(e.status)?Number(e.status):0,error:s(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.status&&(t.status=Math.round(e.status)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={status:0,error:""};return t.status=e.status??0,t.error=e.error??"",t}}},90872:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRecentlyPlayedTracksResponse=t.RecentlyPlayedEntity=t.GetRecentlyPlayedTracksRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(63277),a=n(75468);function s(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.GetRecentlyPlayedTracksRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.includeHidden&&t.uint32(8).bool(e.includeHidden),!0===e.includeEpisodes&&t.uint32(16).bool(e.includeEpisodes),!0===e.includeLocalTracks&&t.uint32(24).bool(e.includeLocalTracks),0!==e.updateThrottling&&t.uint32(32).uint32(e.updateThrottling),void 0!==e.trackPolicy&&r.RecentlyPlayedTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.episodePolicy&&r.RecentlyPlayedEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={includeHidden:!1,includeEpisodes:!1,includeLocalTracks:!1,updateThrottling:0,trackPolicy:void 0,episodePolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.includeHidden=n.bool();break;case 2:a.includeEpisodes=n.bool();break;case 3:a.includeLocalTracks=n.bool();break;case 4:a.updateThrottling=n.uint32();break;case 5:a.trackPolicy=r.RecentlyPlayedTrackDecorationPolicy.decode(n,n.uint32());break;case 6:a.episodePolicy=r.RecentlyPlayedEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({includeHidden:!!s(e.includeHidden)&&Boolean(e.includeHidden),includeEpisodes:!!s(e.includeEpisodes)&&Boolean(e.includeEpisodes),includeLocalTracks:!!s(e.includeLocalTracks)&&Boolean(e.includeLocalTracks),updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0,trackPolicy:s(e.trackPolicy)?r.RecentlyPlayedTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,episodePolicy:s(e.episodePolicy)?r.RecentlyPlayedEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return void 0!==e.includeHidden&&(t.includeHidden=e.includeHidden),void 0!==e.includeEpisodes&&(t.includeEpisodes=e.includeEpisodes),void 0!==e.includeLocalTracks&&(t.includeLocalTracks=e.includeLocalTracks),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),t},fromPartial(e){const t={includeHidden:!1,includeEpisodes:!1,includeLocalTracks:!1,updateThrottling:0,trackPolicy:void 0,episodePolicy:void 0};return t.includeHidden=e.includeHidden??!1,t.includeEpisodes=e.includeEpisodes??!1,t.includeLocalTracks=e.includeLocalTracks??!1,t.updateThrottling=e.updateThrottling??0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t}},t.RecentlyPlayedEntity={encode:(e,t=i.default.Writer.create())=>(void 0!==e.track&&a.RecentlyPlayedTrack.encode(e.track,t.uint32(10).fork()).ldelim(),void 0!==e.episode&&a.RecentlyPlayedEpisode.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={track:void 0,episode:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.track=a.RecentlyPlayedTrack.decode(n,n.uint32());break;case 2:r.episode=a.RecentlyPlayedEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({track:s(e.track)?a.RecentlyPlayedTrack.fromJSON(e.track):void 0,episode:s(e.episode)?a.RecentlyPlayedEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?a.RecentlyPlayedTrack.toJSON(e.track):void 0),void 0!==e.episode&&(t.episode=e.episode?a.RecentlyPlayedEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={track:void 0,episode:void 0};return t.track=void 0!==e.track&&null!==e.track?a.RecentlyPlayedTrack.fromPartial(e.track):void 0,t.episode=void 0!==e.episode&&null!==e.episode?a.RecentlyPlayedEpisode.fromPartial(e.episode):void 0,t}},t.GetRecentlyPlayedTracksResponse={encode(e,n=i.default.Writer.create()){for(const o of e.entity)t.RecentlyPlayedEntity.encode(o,n.uint32(10).fork()).ldelim();return 0!==e.missingMetadataCount&&n.uint32(16).uint32(e.missingMetadataCount),!0===e.loaded&&n.uint32(24).bool(e.loaded),0!==e.originalLength&&n.uint32(32).uint32(e.originalLength),0!==e.unfilteredLength&&n.uint32(40).uint32(e.unfilteredLength),0!==e.status&&n.uint32(48).uint32(e.status),""!==e.error&&n.uint32(58).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={entity:[],missingMetadataCount:0,loaded:!1,originalLength:0,unfilteredLength:0,status:0,error:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.entity.push(t.RecentlyPlayedEntity.decode(o,o.uint32()));break;case 2:a.missingMetadataCount=o.uint32();break;case 3:a.loaded=o.bool();break;case 4:a.originalLength=o.uint32();break;case 5:a.unfilteredLength=o.uint32();break;case 6:a.status=o.uint32();break;case 7:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({entity:Array.isArray(e?.entity)?e.entity.map((e=>t.RecentlyPlayedEntity.fromJSON(e))):[],missingMetadataCount:s(e.missingMetadataCount)?Number(e.missingMetadataCount):0,loaded:!!s(e.loaded)&&Boolean(e.loaded),originalLength:s(e.originalLength)?Number(e.originalLength):0,unfilteredLength:s(e.unfilteredLength)?Number(e.unfilteredLength):0,status:s(e.status)?Number(e.status):0,error:s(e.error)?String(e.error):""}),toJSON(e){const n={};return e.entity?n.entity=e.entity.map((e=>e?t.RecentlyPlayedEntity.toJSON(e):void 0)):n.entity=[],void 0!==e.missingMetadataCount&&(n.missingMetadataCount=Math.round(e.missingMetadataCount)),void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.originalLength&&(n.originalLength=Math.round(e.originalLength)),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.status&&(n.status=Math.round(e.status)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={entity:[],missingMetadataCount:0,loaded:!1,originalLength:0,unfilteredLength:0,status:0,error:""};return n.entity=e.entity?.map((e=>t.RecentlyPlayedEntity.fromPartial(e)))||[],n.missingMetadataCount=e.missingMetadataCount??0,n.loaded=e.loaded??!1,n.originalLength=e.originalLength??0,n.unfilteredLength=e.unfilteredLength??0,n.status=e.status??0,n.error=e.error??"",n}}},59651:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumMetadata=t.AlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(98634);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:a(e.link)?String(e.link):"",name:a(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.AlbumMetadata={encode(e,n=i.default.Writer.create()){for(const o of e.artists)t.AlbumArtistMetadata.encode(o,n.uint32(10).fork()).ldelim();""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name);for(const t of e.copyright)n.uint32(34).string(t);return void 0!==e.covers&&r.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),0!==e.year&&n.uint32(48).uint32(e.year),0!==e.numDiscs&&n.uint32(56).uint32(e.numDiscs),0!==e.numTracks&&n.uint32(64).uint32(e.numTracks),!0===e.playability&&n.uint32(72).bool(e.playability),!0===e.isPremiumOnly&&n.uint32(80).bool(e.isPremiumOnly),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.artists.push(t.AlbumArtistMetadata.decode(o,o.uint32()));break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.copyright.push(o.string());break;case 5:s.covers=r.ImageGroup.decode(o,o.uint32());break;case 6:s.year=o.uint32();break;case 7:s.numDiscs=o.uint32();break;case 8:s.numTracks=o.uint32();break;case 9:s.playability=o.bool();break;case 10:s.isPremiumOnly=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artists:Array.isArray(e?.artists)?e.artists.map((e=>t.AlbumArtistMetadata.fromJSON(e))):[],link:a(e.link)?String(e.link):"",name:a(e.name)?String(e.name):"",copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],covers:a(e.covers)?r.ImageGroup.fromJSON(e.covers):void 0,year:a(e.year)?Number(e.year):0,numDiscs:a(e.numDiscs)?Number(e.numDiscs):0,numTracks:a(e.numTracks)?Number(e.numTracks):0,playability:!!a(e.playability)&&Boolean(e.playability),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const n={};return e.artists?n.artists=e.artists.map((e=>e?t.AlbumArtistMetadata.toJSON(e):void 0)):n.artists=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),e.copyright?n.copyright=e.copyright.map((e=>e)):n.copyright=[],void 0!==e.covers&&(n.covers=e.covers?r.ImageGroup.toJSON(e.covers):void 0),void 0!==e.year&&(n.year=Math.round(e.year)),void 0!==e.numDiscs&&(n.numDiscs=Math.round(e.numDiscs)),void 0!==e.numTracks&&(n.numTracks=Math.round(e.numTracks)),void 0!==e.playability&&(n.playability=e.playability),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),n},fromPartial(e){const n={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};return n.artists=e.artists?.map((e=>t.AlbumArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.copyright=e.copyright?.map((e=>e))||[],n.covers=void 0!==e.covers&&null!==e.covers?r.ImageGroup.fromPartial(e.covers):void 0,n.year=e.year??0,n.numDiscs=e.numDiscs??0,n.numTracks=e.numTracks??0,n.playability=e.playability??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n}}},7121:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(98634);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),void 0!==e.portraits&&r.ImageGroup.encode(e.portraits,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={link:"",name:"",isVariousArtists:!1,portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.link=n.string();break;case 2:a.name=n.string();break;case 3:a.isVariousArtists=n.bool();break;case 4:a.portraits=r.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({link:a(e.link)?String(e.link):"",name:a(e.name)?String(e.name):"",isVariousArtists:!!a(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:a(e.portraits)?r.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits?r.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",isVariousArtists:!1,portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.isVariousArtists=e.isVariousArtists??!1,t.portraits=void 0!==e.portraits&&null!==e.portraits?r.ImageGroup.fromPartial(e.portraits):void 0,t}}},95967:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(11742),s=n(98634);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&s.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&s.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)a.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?s.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?s.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?a.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},11742:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function c(e){return null!=e}},98634:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=i.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},89864:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(11742),a=n(98634);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowMetadata={encode(e,t=i.default.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)r.Extension.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.link=n.string();break;case 2:s.name=n.string();break;case 3:s.description=n.string();break;case 4:s.popularity=n.uint32();break;case 5:s.publisher=n.string();break;case 6:s.language=n.string();break;case 7:s.isExplicit=n.bool();break;case 8:s.covers=a.ImageGroup.decode(n,n.uint32());break;case 9:s.numEpisodes=n.uint32();break;case 10:s.consumptionOrder=n.string();break;case 11:s.mediaTypeEnum=n.int32();break;case 12:s.copyright.push(n.string());break;case 13:s.trailerUri=n.string();break;case 14:s.isMusicAndTalk=n.bool();break;case 15:s.extension.push(r.Extension.decode(n,n.uint32()));break;case 16:s.isBook=n.bool();break;case 17:s.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",description:s(e.description)?String(e.description):"",popularity:s(e.popularity)?Number(e.popularity):0,publisher:s(e.publisher)?String(e.publisher):"",language:s(e.language)?String(e.language):"",isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,numEpisodes:s(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:s(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:s(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:s(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isBook:!!s(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!s(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=Math.round(e.popularity)),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=Math.round(e.mediaTypeEnum)),e.copyright?t.copyright=e.copyright.map((e=>e)):t.copyright=[],void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}}},6469:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackMetadata=t.TrackDescriptor=t.TrackArtistMetadata=t.TrackAlbumMetadata=t.TrackAlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(11742),a=n(98634);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=i.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artist:s(e.artist)?t.TrackAlbumArtistMetadata.fromJSON(e.artist):void 0,link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",portraits:s(e.portraits)?a.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=i.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.name=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=i.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(162).fork()).ldelim();return!0===e.isCurated&&n.uint32(168).bool(e.isCurated),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:s.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:s.link=o.string();break;case 4:s.name=o.string();break;case 5:s.length=o.uint32();break;case 6:s.playable=o.bool();break;case 7:s.discNumber=o.uint32();break;case 8:s.trackNumber=o.uint32();break;case 9:s.isExplicit=o.bool();break;case 10:s.previewId=o.string();break;case 11:s.isLocal=o.bool();break;case 12:s.playableLocalTrack=o.bool();break;case 13:s.hasLyrics=o.bool();break;case 14:s.isPremiumOnly=o.bool();break;case 15:s.locallyPlayable=o.bool();break;case 16:s.playableTrackLink=o.string();break;case 17:s.popularity=o.uint32();break;case 18:s.is19PlusOnly=o.bool();break;case 19:s.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:s.extension.push(r.Extension.decode(o,o.uint32()));break;case 21:s.isCurated=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>t.TrackArtistMetadata.fromJSON(e))):[],link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",length:s(e.length)?Number(e.length):0,playable:!!s(e.playable)&&Boolean(e.playable),discNumber:s(e.discNumber)?Number(e.discNumber):0,trackNumber:s(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),previewId:s(e.previewId)?String(e.previewId):"",isLocal:!!s(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!s(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!s(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!s(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:s(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:s(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isCurated:!!s(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=Math.round(e.discNumber)),void 0!==e.trackNumber&&(n.trackNumber=Math.round(e.trackNumber)),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=Math.round(e.popularity)),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.isCurated=e.isCurated??!1,n}}},44968:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(15995);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=i.default.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.timeLeft=n.uint32();break;case 2:r.isPlayable=n.bool();break;case 3:r.isPlayed=n.bool();break;case 4:r.lastPlayedAt=n.uint32();break;case 5:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:a(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:a(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:a(e.playabilityRestriction)?(0,r.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}}},15995:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0,t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NO_RESTRICTION":return n.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return n.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return n.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return n.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return n.NOT_AVAILABLE_OFFLINE;default:return n.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NO_RESTRICTION:return"NO_RESTRICTION";case n.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case n.AGE_RESTRICTED:return"AGE_RESTRICTED";case n.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case n.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},77059:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayState=t.showPlayState_LabelToJSON=t.showPlayState_LabelFromJSON=t.ShowPlayState_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(15995);var s;function l(e){switch(e){case 0:case"UNKNOWN_LABEL":return s.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return s.NOT_STARTED;case 2:case"IN_PROGRESS":return s.IN_PROGRESS;case 3:case"COMPLETED":return s.COMPLETED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case s.NOT_STARTED:return"NOT_STARTED";case s.IN_PROGRESS:return"IN_PROGRESS";case s.COMPLETED:return"COMPLETED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.ShowPlayState_Label||(t.ShowPlayState_Label={})),t.showPlayState_LabelFromJSON=l,t.showPlayState_LabelToJSON=c,t.ShowPlayState={encode:(e,t=r.default.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),"0"!==e.playedTime&&t.uint32(16).uint64(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.latestPlayedEpisodeLink=n.string();break;case 2:i.playedTime=n.uint64().toString();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.int32();break;case 5:i.label=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:u(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:u(e.playedTime)?String(e.playedTime):"0",isPlayable:!!u(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:u(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0,label:u(e.label)?l(e.label):0}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),void 0!==e.label&&(t.label=c(e.label)),t},fromPartial(e){const t={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??"0",t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},10168:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(15995);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackPlayState={encode:(e,t=i.default.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isPlayable:!1,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isPlayable=n.bool();break;case 2:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:a(e.playabilityRestriction)?(0,r.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}}},50679:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineState=t.PlaylistMetadata=t.Allows=t.FormatListAttribute=t.protobufPackage=void 0;const i=o(n(33892)),r=n(11742),a=n(98634),s=n(37560);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FormatListAttribute={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:l(e.key)?String(e.key):"",value:l(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Allows={encode:(e,t=i.default.Writer.create())=>(!0===e.canInsert&&t.uint32(8).bool(e.canInsert),!0===e.canRemove&&t.uint32(16).bool(e.canRemove),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={canInsert:!1,canRemove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.canInsert=n.bool();break;case 2:r.canRemove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({canInsert:!!l(e.canInsert)&&Boolean(e.canInsert),canRemove:!!l(e.canRemove)&&Boolean(e.canRemove)}),toJSON(e){const t={};return void 0!==e.canInsert&&(t.canInsert=e.canInsert),void 0!==e.canRemove&&(t.canRemove=e.canRemove),t},fromPartial(e){const t={canInsert:!1,canRemove:!1};return t.canInsert=e.canInsert??!1,t.canRemove=e.canRemove??!1,t}},t.PlaylistMetadata={encode(e,n=i.default.Writer.create()){""!==e.link&&n.uint32(10).string(e.link),""!==e.name&&n.uint32(18).string(e.name),void 0!==e.owner&&s.User.encode(e.owner,n.uint32(26).fork()).ldelim(),!0===e.ownedBySelf&&n.uint32(32).bool(e.ownedBySelf),!0===e.collaborative&&n.uint32(40).bool(e.collaborative),0!==e.totalLength&&n.uint32(48).uint32(e.totalLength),""!==e.description&&n.uint32(58).string(e.description),void 0!==e.pictures&&a.ImageGroup.encode(e.pictures,n.uint32(66).fork()).ldelim(),!0===e.followed&&n.uint32(72).bool(e.followed),!0===e.published&&n.uint32(80).bool(e.published),!0===e.browsableOffline&&n.uint32(88).bool(e.browsableOffline),!0===e.descriptionFromAnnotate&&n.uint32(96).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(104).bool(e.pictureFromAnnotate),""!==e.formatListType&&n.uint32(114).string(e.formatListType);for(const o of e.formatListAttributes)t.FormatListAttribute.encode(o,n.uint32(122).fork()).ldelim();!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.isLoaded&&n.uint32(136).bool(e.isLoaded),void 0!==e.allows&&t.Allows.encode(e.allows,n.uint32(146).fork()).ldelim(),""!==e.loadState&&n.uint32(154).string(e.loadState),void 0!==e.madeFor&&s.User.encode(e.madeFor,n.uint32(162).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(170).fork()).ldelim();return 0!==e.lengthIgnoringTextFilter&&n.uint32(176).uint32(e.lengthIgnoringTextFilter),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};for(;o.pos<l;){const e=o.uint32();switch(e>>>3){case 1:c.link=o.string();break;case 2:c.name=o.string();break;case 3:c.owner=s.User.decode(o,o.uint32());break;case 4:c.ownedBySelf=o.bool();break;case 5:c.collaborative=o.bool();break;case 6:c.totalLength=o.uint32();break;case 7:c.description=o.string();break;case 8:c.pictures=a.ImageGroup.decode(o,o.uint32());break;case 9:c.followed=o.bool();break;case 10:c.published=o.bool();break;case 11:c.browsableOffline=o.bool();break;case 12:c.descriptionFromAnnotate=o.bool();break;case 13:c.pictureFromAnnotate=o.bool();break;case 14:c.formatListType=o.string();break;case 15:c.formatListAttributes.push(t.FormatListAttribute.decode(o,o.uint32()));break;case 16:c.canReportAnnotationAbuse=o.bool();break;case 17:c.isLoaded=o.bool();break;case 18:c.allows=t.Allows.decode(o,o.uint32());break;case 19:c.loadState=o.string();break;case 20:c.madeFor=s.User.decode(o,o.uint32());break;case 21:c.extension.push(r.Extension.decode(o,o.uint32()));break;case 22:c.lengthIgnoringTextFilter=o.uint32();break;default:o.skipType(7&e)}}return c},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",owner:l(e.owner)?s.User.fromJSON(e.owner):void 0,ownedBySelf:!!l(e.ownedBySelf)&&Boolean(e.ownedBySelf),collaborative:!!l(e.collaborative)&&Boolean(e.collaborative),totalLength:l(e.totalLength)?Number(e.totalLength):0,description:l(e.description)?String(e.description):"",pictures:l(e.pictures)?a.ImageGroup.fromJSON(e.pictures):void 0,followed:!!l(e.followed)&&Boolean(e.followed),published:!!l(e.published)&&Boolean(e.published),browsableOffline:!!l(e.browsableOffline)&&Boolean(e.browsableOffline),descriptionFromAnnotate:!!l(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!l(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),formatListType:l(e.formatListType)?String(e.formatListType):"",formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>t.FormatListAttribute.fromJSON(e))):[],canReportAnnotationAbuse:!!l(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),isLoaded:!!l(e.isLoaded)&&Boolean(e.isLoaded),allows:l(e.allows)?t.Allows.fromJSON(e.allows):void 0,loadState:l(e.loadState)?String(e.loadState):"",madeFor:l(e.madeFor)?s.User.fromJSON(e.madeFor):void 0,extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],lengthIgnoringTextFilter:l(e.lengthIgnoringTextFilter)?Number(e.lengthIgnoringTextFilter):0}),toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.owner&&(n.owner=e.owner?s.User.toJSON(e.owner):void 0),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.totalLength&&(n.totalLength=Math.round(e.totalLength)),void 0!==e.description&&(n.description=e.description),void 0!==e.pictures&&(n.pictures=e.pictures?a.ImageGroup.toJSON(e.pictures):void 0),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.formatListType&&(n.formatListType=e.formatListType),e.formatListAttributes?n.formatListAttributes=e.formatListAttributes.map((e=>e?t.FormatListAttribute.toJSON(e):void 0)):n.formatListAttributes=[],void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.isLoaded&&(n.isLoaded=e.isLoaded),void 0!==e.allows&&(n.allows=e.allows?t.Allows.toJSON(e.allows):void 0),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.madeFor&&(n.madeFor=e.madeFor?s.User.toJSON(e.madeFor):void 0),e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=Math.round(e.lengthIgnoringTextFilter)),n},fromPartial(e){const n={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};return n.link=e.link??"",n.name=e.name??"",n.owner=void 0!==e.owner&&null!==e.owner?s.User.fromPartial(e.owner):void 0,n.ownedBySelf=e.ownedBySelf??!1,n.collaborative=e.collaborative??!1,n.totalLength=e.totalLength??0,n.description=e.description??"",n.pictures=void 0!==e.pictures&&null!==e.pictures?a.ImageGroup.fromPartial(e.pictures):void 0,n.followed=e.followed??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.formatListType=e.formatListType??"",n.formatListAttributes=e.formatListAttributes?.map((e=>t.FormatListAttribute.fromPartial(e)))||[],n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.isLoaded=e.isLoaded??!1,n.allows=void 0!==e.allows&&null!==e.allows?t.Allows.fromPartial(e.allows):void 0,n.loadState=e.loadState??"",n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?s.User.fromPartial(e.madeFor):void 0,n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??0,n}},t.PlaylistOfflineState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:l(e.offline)?String(e.offline):"",syncProgress:l(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}}},37560:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.User={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.username&&t.uint32(18).string(e.username),""!==e.displayName&&t.uint32(26).string(e.displayName),""!==e.imageUri&&t.uint32(34).string(e.imageUri),""!==e.thumbnailUri&&t.uint32(42).string(e.thumbnailUri),0!==e.color&&t.uint32(48).int32(e.color),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.username=n.string();break;case 3:r.displayName=n.string();break;case 4:r.imageUri=n.string();break;case 5:r.thumbnailUri=n.string();break;case 6:r.color=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:r(e.link)?String(e.link):"",username:r(e.username)?String(e.username):"",displayName:r(e.displayName)?String(e.displayName):"",imageUri:r(e.imageUri)?String(e.imageUri):"",thumbnailUri:r(e.thumbnailUri)?String(e.thumbnailUri):"",color:r(e.color)?Number(e.color):0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.username&&(t.username=e.username),void 0!==e.displayName&&(t.displayName=e.displayName),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.thumbnailUri&&(t.thumbnailUri=e.thumbnailUri),void 0!==e.color&&(t.color=Math.round(e.color)),t},fromPartial(e){const t={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};return t.link=e.link??"",t.username=e.username??"",t.displayName=e.displayName??"",t.imageUri=e.imageUri??"",t.thumbnailUri=e.thumbnailUri??"",t.color=e.color??0,t}}},16606:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncDecorationPolicy=t.AlbumCollectionDecorationPolicy=t.AlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.copyrights=n.bool();break;case 4:r.covers=n.bool();break;case 5:r.year=n.bool();break;case 6:r.numDiscs=n.bool();break;case 7:r.numTracks=n.bool();break;case 8:r.playability=n.bool();break;case 9:r.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),copyrights:!!r(e.copyrights)&&Boolean(e.copyrights),covers:!!r(e.covers)&&Boolean(e.covers),year:!!r(e.year)&&Boolean(e.year),numDiscs:!!r(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!r(e.numTracks)&&Boolean(e.numTracks),playability:!!r(e.playability)&&Boolean(e.playability),isPremiumOnly:!!r(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.bool();break;case 2:r.numTracksInCollection=n.bool();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!r(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},76508:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncDecorationPolicy=t.ArtistCollectionDecorationPolicy=t.ArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.isVariousArtists=n.bool();break;case 4:r.portraits=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),isVariousArtists:!!r(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!r(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.bool();break;case 2:r.isFollowed=n.bool();break;case 3:r.numTracksInCollection=n.bool();break;case 4:r.numAlbumsInCollection=n.bool();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!r(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!r(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},23618:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 22:r.is19PlusOnly=n.bool();break;case 23:r.isBookChapter=n.bool();break;case 24:r.isPodcastShort=n.bool();break;case 25:r.isCurated=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},36531:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDecorationPolicy=t.PlaylistAllowsDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183),a=n(11248);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAllowsDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.insert&&t.uint32(8).bool(e.insert),!0===e.remove&&t.uint32(16).bool(e.remove),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={insert:!1,remove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.insert=n.bool();break;case 2:r.remove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({insert:!!s(e.insert)&&Boolean(e.insert),remove:!!s(e.remove)&&Boolean(e.remove)}),toJSON(e){const t={};return void 0!==e.insert&&(t.insert=e.insert),void 0!==e.remove&&(t.remove=e.remove),t},fromPartial(e){const t={insert:!1,remove:!1};return t.insert=e.insert??!1,t.remove=e.remove??!1,t}},t.PlaylistDecorationPolicy={encode(e,n=i.default.Writer.create()){!0===e.rowId&&n.uint32(8).bool(e.rowId),!0===e.link&&n.uint32(16).bool(e.link),!0===e.name&&n.uint32(24).bool(e.name),!0===e.loadState&&n.uint32(32).bool(e.loadState),!0===e.loaded&&n.uint32(40).bool(e.loaded),!0===e.collaborative&&n.uint32(48).bool(e.collaborative),!0===e.length&&n.uint32(56).bool(e.length),!0===e.lastModification&&n.uint32(64).bool(e.lastModification),!0===e.totalLength&&n.uint32(72).bool(e.totalLength),!0===e.duration&&n.uint32(80).bool(e.duration),!0===e.description&&n.uint32(88).bool(e.description),!0===e.picture&&n.uint32(96).bool(e.picture),!0===e.playable&&n.uint32(104).bool(e.playable),!0===e.descriptionFromAnnotate&&n.uint32(112).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(120).bool(e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.followed&&n.uint32(136).bool(e.followed),!0===e.followers&&n.uint32(144).bool(e.followers),!0===e.ownedBySelf&&n.uint32(152).bool(e.ownedBySelf),!0===e.offline&&n.uint32(160).bool(e.offline),!0===e.syncProgress&&n.uint32(168).bool(e.syncProgress),!0===e.published&&n.uint32(176).bool(e.published),!0===e.browsableOffline&&n.uint32(184).bool(e.browsableOffline),!0===e.formatListType&&n.uint32(192).bool(e.formatListType),!0===e.formatListAttributes&&n.uint32(200).bool(e.formatListAttributes),!0===e.hasExplicitContent&&n.uint32(208).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&n.uint32(216).bool(e.containsSpotifyTracks),!0===e.containsTracks&&n.uint32(224).bool(e.containsTracks),!0===e.containsEpisodes&&n.uint32(232).bool(e.containsEpisodes),!0===e.containsAudioEpisodes&&n.uint32(240).bool(e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&n.uint32(248).bool(e.onlyContainsExplicit),!0===e.isOnDemandInFree&&n.uint32(256).bool(e.isOnDemandInFree),void 0!==e.owner&&a.UserDecorationPolicy.encode(e.owner,n.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&a.UserDecorationPolicy.encode(e.madeFor,n.uint32(274).fork()).ldelim(),void 0!==e.allows&&t.PlaylistAllowsDecorationPolicy.encode(e.allows,n.uint32(282).fork()).ldelim(),!0===e.numberOfEpisodes&&n.uint32(288).bool(e.numberOfEpisodes),!0===e.numberOfTracks&&n.uint32(296).bool(e.numberOfTracks),!0===e.preferLinearPlayback&&n.uint32(304).bool(e.preferLinearPlayback),!0===e.onDemandInFreeReason&&n.uint32(312).bool(e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&a.CollaboratingUsersDecorationPolicy.encode(e.collaboratingUsers,n.uint32(322).fork()).ldelim(),!0===e.basePermission&&n.uint32(328).bool(e.basePermission),!0===e.userCapabilities&&n.uint32(336).bool(e.userCapabilities),n.uint32(346).fork();for(const t of e.extension)n.int32(t);return n.ldelim(),!0===e.lenses&&n.uint32(352).bool(e.lenses),!0===e.lengthIgnoringTextFilter&&n.uint32(360).bool(e.lengthIgnoringTextFilter),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.rowId=o.bool();break;case 2:s.link=o.bool();break;case 3:s.name=o.bool();break;case 4:s.loadState=o.bool();break;case 5:s.loaded=o.bool();break;case 6:s.collaborative=o.bool();break;case 7:s.length=o.bool();break;case 8:s.lastModification=o.bool();break;case 9:s.totalLength=o.bool();break;case 10:s.duration=o.bool();break;case 11:s.description=o.bool();break;case 12:s.picture=o.bool();break;case 13:s.playable=o.bool();break;case 14:s.descriptionFromAnnotate=o.bool();break;case 15:s.pictureFromAnnotate=o.bool();break;case 16:s.canReportAnnotationAbuse=o.bool();break;case 17:s.followed=o.bool();break;case 18:s.followers=o.bool();break;case 19:s.ownedBySelf=o.bool();break;case 20:s.offline=o.bool();break;case 21:s.syncProgress=o.bool();break;case 22:s.published=o.bool();break;case 23:s.browsableOffline=o.bool();break;case 24:s.formatListType=o.bool();break;case 25:s.formatListAttributes=o.bool();break;case 26:s.hasExplicitContent=o.bool();break;case 27:s.containsSpotifyTracks=o.bool();break;case 28:s.containsTracks=o.bool();break;case 29:s.containsEpisodes=o.bool();break;case 30:s.containsAudioEpisodes=o.bool();break;case 31:s.onlyContainsExplicit=o.bool();break;case 32:s.isOnDemandInFree=o.bool();break;case 33:s.owner=a.UserDecorationPolicy.decode(o,o.uint32());break;case 34:s.madeFor=a.UserDecorationPolicy.decode(o,o.uint32());break;case 35:s.allows=t.PlaylistAllowsDecorationPolicy.decode(o,o.uint32());break;case 36:s.numberOfEpisodes=o.bool();break;case 37:s.numberOfTracks=o.bool();break;case 38:s.preferLinearPlayback=o.bool();break;case 39:s.onDemandInFreeReason=o.bool();break;case 40:s.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.decode(o,o.uint32());break;case 41:s.basePermission=o.bool();break;case 42:s.userCapabilities=o.bool();break;case 43:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)s.extension.push(o.int32())}else s.extension.push(o.int32());break;case 44:s.lenses=o.bool();break;case 45:s.lengthIgnoringTextFilter=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({rowId:!!s(e.rowId)&&Boolean(e.rowId),link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),loadState:!!s(e.loadState)&&Boolean(e.loadState),loaded:!!s(e.loaded)&&Boolean(e.loaded),collaborative:!!s(e.collaborative)&&Boolean(e.collaborative),length:!!s(e.length)&&Boolean(e.length),lastModification:!!s(e.lastModification)&&Boolean(e.lastModification),totalLength:!!s(e.totalLength)&&Boolean(e.totalLength),duration:!!s(e.duration)&&Boolean(e.duration),description:!!s(e.description)&&Boolean(e.description),picture:!!s(e.picture)&&Boolean(e.picture),playable:!!s(e.playable)&&Boolean(e.playable),descriptionFromAnnotate:!!s(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!s(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),canReportAnnotationAbuse:!!s(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),followed:!!s(e.followed)&&Boolean(e.followed),followers:!!s(e.followers)&&Boolean(e.followers),ownedBySelf:!!s(e.ownedBySelf)&&Boolean(e.ownedBySelf),offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress),published:!!s(e.published)&&Boolean(e.published),browsableOffline:!!s(e.browsableOffline)&&Boolean(e.browsableOffline),formatListType:!!s(e.formatListType)&&Boolean(e.formatListType),formatListAttributes:!!s(e.formatListAttributes)&&Boolean(e.formatListAttributes),hasExplicitContent:!!s(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!s(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsTracks:!!s(e.containsTracks)&&Boolean(e.containsTracks),containsEpisodes:!!s(e.containsEpisodes)&&Boolean(e.containsEpisodes),containsAudioEpisodes:!!s(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),onlyContainsExplicit:!!s(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),isOnDemandInFree:!!s(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),owner:s(e.owner)?a.UserDecorationPolicy.fromJSON(e.owner):void 0,madeFor:s(e.madeFor)?a.UserDecorationPolicy.fromJSON(e.madeFor):void 0,allows:s(e.allows)?t.PlaylistAllowsDecorationPolicy.fromJSON(e.allows):void 0,numberOfEpisodes:!!s(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),numberOfTracks:!!s(e.numberOfTracks)&&Boolean(e.numberOfTracks),preferLinearPlayback:!!s(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:!!s(e.onDemandInFreeReason)&&Boolean(e.onDemandInFreeReason),collaboratingUsers:s(e.collaboratingUsers)?a.CollaboratingUsersDecorationPolicy.fromJSON(e.collaboratingUsers):void 0,basePermission:!!s(e.basePermission)&&Boolean(e.basePermission),userCapabilities:!!s(e.userCapabilities)&&Boolean(e.userCapabilities),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],lenses:!!s(e.lenses)&&Boolean(e.lenses),lengthIgnoringTextFilter:!!s(e.lengthIgnoringTextFilter)&&Boolean(e.lengthIgnoringTextFilter)}),toJSON(e){const n={};return void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.length&&(n.length=e.length),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.totalLength&&(n.totalLength=e.totalLength),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.description&&(n.description=e.description),void 0!==e.picture&&(n.picture=e.picture),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.followers&&(n.followers=e.followers),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.offline&&(n.offline=e.offline),void 0!==e.syncProgress&&(n.syncProgress=e.syncProgress),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.formatListType&&(n.formatListType=e.formatListType),void 0!==e.formatListAttributes&&(n.formatListAttributes=e.formatListAttributes),void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(n.owner=e.owner?a.UserDecorationPolicy.toJSON(e.owner):void 0),void 0!==e.madeFor&&(n.madeFor=e.madeFor?a.UserDecorationPolicy.toJSON(e.madeFor):void 0),void 0!==e.allows&&(n.allows=e.allows?t.PlaylistAllowsDecorationPolicy.toJSON(e.allows):void 0),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(n.collaboratingUsers=e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.toJSON(e.collaboratingUsers):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities),e.extension?n.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):n.extension=[],void 0!==e.lenses&&(n.lenses=e.lenses),void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter),n},fromPartial(e){const n={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1};return n.rowId=e.rowId??!1,n.link=e.link??!1,n.name=e.name??!1,n.loadState=e.loadState??!1,n.loaded=e.loaded??!1,n.collaborative=e.collaborative??!1,n.length=e.length??!1,n.lastModification=e.lastModification??!1,n.totalLength=e.totalLength??!1,n.duration=e.duration??!1,n.description=e.description??!1,n.picture=e.picture??!1,n.playable=e.playable??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.followed=e.followed??!1,n.followers=e.followers??!1,n.ownedBySelf=e.ownedBySelf??!1,n.offline=e.offline??!1,n.syncProgress=e.syncProgress??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.formatListType=e.formatListType??!1,n.formatListAttributes=e.formatListAttributes??!1,n.hasExplicitContent=e.hasExplicitContent??!1,n.containsSpotifyTracks=e.containsSpotifyTracks??!1,n.containsTracks=e.containsTracks??!1,n.containsEpisodes=e.containsEpisodes??!1,n.containsAudioEpisodes=e.containsAudioEpisodes??!1,n.onlyContainsExplicit=e.onlyContainsExplicit??!1,n.isOnDemandInFree=e.isOnDemandInFree??!1,n.owner=void 0!==e.owner&&null!==e.owner?a.UserDecorationPolicy.fromPartial(e.owner):void 0,n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?a.UserDecorationPolicy.fromPartial(e.madeFor):void 0,n.allows=void 0!==e.allows&&null!==e.allows?t.PlaylistAllowsDecorationPolicy.fromPartial(e.allows):void 0,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.numberOfTracks=e.numberOfTracks??!1,n.preferLinearPlayback=e.preferLinearPlayback??!1,n.onDemandInFreeReason=e.onDemandInFreeReason??!1,n.collaboratingUsers=void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.fromPartial(e.collaboratingUsers):void 0,n.basePermission=e.basePermission??!1,n.userCapabilities=e.userCapabilities??!1,n.extension=e.extension?.map((e=>e))||[],n.lenses=e.lenses??!1,n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??!1,n}}},22826:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 17:r.isBook=n.bool();break;case 18:r.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},8828:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncDecorationPolicy=t.TrackCollectionDecorationPolicy=t.TrackPlayedStateDecorationPolicy=t.TrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.hasLyrics=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.length=n.bool();break;case 5:r.playable=n.bool();break;case 6:r.isAvailableInMetadataCatalogue=n.bool();break;case 7:r.locallyPlayable=n.bool();break;case 8:r.playableLocalTrack=n.bool();break;case 9:r.discNumber=n.bool();break;case 10:r.trackNumber=n.bool();break;case 11:r.isExplicit=n.bool();break;case 12:r.previewId=n.bool();break;case 13:r.isLocal=n.bool();break;case 14:r.isPremiumOnly=n.bool();break;case 15:r.playableTrackLink=n.bool();break;case 16:r.popularity=n.bool();break;case 17:r.is19PlusOnly=n.bool();break;case 18:r.trackDescriptors=n.bool();break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 20:r.isCurated=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({hasLyrics:!!a(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),length:!!a(e.length)&&Boolean(e.length),playable:!!a(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!a(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!a(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!a(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!a(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!a(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!a(e.previewId)&&Boolean(e.previewId),isLocal:!!a(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!a(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!a(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!a(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playable=n.bool();break;case 2:r.isCurrentlyPlayable=n.bool();break;case 3:r.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playable:!!a(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!a(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},11248:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollaboratingUsersDecorationPolicy=t.CollaboratorPolicy=t.UserDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.UserDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.username=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.image=n.bool();break;case 5:r.thumbnail=n.bool();break;case 6:r.color=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({username:!!r(e.username)&&Boolean(e.username),link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),image:!!r(e.image)&&Boolean(e.image),thumbnail:!!r(e.thumbnail)&&Boolean(e.thumbnail),color:!!r(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.image&&(t.image=e.image),void 0!==e.thumbnail&&(t.thumbnail=e.thumbnail),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}},t.CollaboratorPolicy={encode:(e,n=i.default.Writer.create())=>(void 0!==e.user&&t.UserDecorationPolicy.encode(e.user,n.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&n.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&n.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&n.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&n.uint32(40).bool(e.isOwner),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({user:r(e.user)?t.UserDecorationPolicy.fromJSON(e.user):void 0,numberOfItems:!!r(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!r(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!r(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!r(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const n={};return void 0!==e.user&&(n.user=e.user?t.UserDecorationPolicy.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(n.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(n.isOwner=e.isOwner),n},fromPartial(e){const n={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return n.user=void 0!==e.user&&null!==e.user?t.UserDecorationPolicy.fromPartial(e.user):void 0,n.numberOfItems=e.numberOfItems??!1,n.numberOfTracks=e.numberOfTracks??!1,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.isOwner=e.isOwner??!1,n}},t.CollaboratingUsersDecorationPolicy={encode:(e,n=i.default.Writer.create())=>(!0===e.count&&n.uint32(8).bool(e.count),0!==e.limit&&n.uint32(16).int32(e.limit),void 0!==e.collaborator&&t.CollaboratorPolicy.encode(e.collaborator,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={count:!1,limit:0,collaborator:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({count:!!r(e.count)&&Boolean(e.count),limit:r(e.limit)?Number(e.limit):0,collaborator:r(e.collaborator)?t.CollaboratorPolicy.fromJSON(e.collaborator):void 0}),toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),void 0!==e.limit&&(n.limit=Math.round(e.limit)),void 0!==e.collaborator&&(n.collaborator=e.collaborator?t.CollaboratorPolicy.toJSON(e.collaborator):void 0),n},fromPartial(e){const n={count:!1,limit:0,collaborator:void 0};return n.count=e.count??!1,n.limit=e.limit??0,n.collaborator=void 0!==e.collaborator&&null!==e.collaborator?t.CollaboratorPolicy.fromPartial(e.collaborator):void 0,n}}},63277:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecentlyPlayedCollectionTracksDecorationPolicy=t.RecentlyPlayedPlaylistDecorationPolicy=t.RecentlyPlayedProfileDecorationPolicy=t.RecentlyPlayedEpisodeDecorationPolicy=t.RecentlyPlayedShowDecorationPolicy=t.RecentlyPlayedTrackDecorationPolicy=t.RecentlyPlayedAlbumDecorationPolicy=t.RecentlyPlayedArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16606),a=n(76508),s=n(23618),l=n(36531),c=n(22826),u=n(8828);function d(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.RecentlyPlayedArtistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.collectionPolicy&&a.ArtistCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&a.ArtistSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.artistPolicy&&a.ArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),!0===e.type&&t.uint32(32).bool(e.type),!0===e.timestamp&&t.uint32(40).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionPolicy=a.ArtistCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:r.syncPolicy=a.ArtistSyncDecorationPolicy.decode(n,n.uint32());break;case 3:r.artistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 4:r.type=n.bool();break;case 5:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?a.ArtistCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?a.ArtistSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,artistPolicy:d(e.artistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?a.ArtistCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?a.ArtistSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.ArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,type:!1,timestamp:!1};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?a.ArtistCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?a.ArtistSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedAlbumDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.collectionPolicy&&r.AlbumCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&r.AlbumSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.albumPolicy&&r.AlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.type&&t.uint32(56).bool(e.type),!0===e.timestamp&&t.uint32(64).bool(e.timestamp),void 0!==e.artistsPolicy&&a.ArtistDecorationPolicy.encode(e.artistsPolicy,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0,inCollection:!1,type:!1,timestamp:!1,artistsPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.collectionPolicy=r.AlbumCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:s.syncPolicy=r.AlbumSyncDecorationPolicy.decode(n,n.uint32());break;case 3:s.albumPolicy=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 4:s.inCollection=n.bool();break;case 7:s.type=n.bool();break;case 8:s.timestamp=n.bool();break;case 9:s.artistsPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?r.AlbumCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?r.AlbumSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,albumPolicy:d(e.albumPolicy)?r.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,inCollection:!!d(e.inCollection)&&Boolean(e.inCollection),type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp),artistsPolicy:d(e.artistsPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?r.AlbumCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?r.AlbumSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.artistsPolicy&&(t.artistsPolicy=e.artistsPolicy?a.ArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0,inCollection:!1,type:!1,timestamp:!1,artistsPolicy:void 0};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?r.AlbumCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?r.AlbumSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.inCollection=e.inCollection??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,t}},t.RecentlyPlayedTrackDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.collectionPolicy&&u.TrackCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&u.TrackSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.trackPolicy&&u.TrackDecorationPolicy.encode(e.trackPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&u.TrackPlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),!0===e.type&&t.uint32(56).bool(e.type),!0===e.timestamp&&t.uint32(64).bool(e.timestamp),void 0!==e.artistsPolicy&&a.ArtistDecorationPolicy.encode(e.artistsPolicy,t.uint32(74).fork()).ldelim(),void 0!==e.albumPolicy&&r.AlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(82).fork()).ldelim(),void 0!==e.albumArtistPolicy&&a.ArtistDecorationPolicy.encode(e.albumArtistPolicy,t.uint32(90).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.collectionPolicy=u.TrackCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:s.syncPolicy=u.TrackSyncDecorationPolicy.decode(n,n.uint32());break;case 3:s.trackPolicy=u.TrackDecorationPolicy.decode(n,n.uint32());break;case 4:s.playedStatePolicy=u.TrackPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 7:s.type=n.bool();break;case 8:s.timestamp=n.bool();break;case 9:s.artistsPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 10:s.albumPolicy=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 11:s.albumArtistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?u.TrackCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?u.TrackSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,trackPolicy:d(e.trackPolicy)?u.TrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?u.TrackPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp),artistsPolicy:d(e.artistsPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0,albumPolicy:d(e.albumPolicy)?r.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,albumArtistPolicy:d(e.albumArtistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.albumArtistPolicy):void 0}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?u.TrackCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?u.TrackSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?u.TrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?u.TrackPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.artistsPolicy&&(t.artistsPolicy=e.artistsPolicy?a.ArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.albumArtistPolicy&&(t.albumArtistPolicy=e.albumArtistPolicy?a.ArtistDecorationPolicy.toJSON(e.albumArtistPolicy):void 0),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?u.TrackCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?u.TrackSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?u.TrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?u.TrackPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.albumArtistPolicy=void 0!==e.albumArtistPolicy&&null!==e.albumArtistPolicy?a.ArtistDecorationPolicy.fromPartial(e.albumArtistPolicy):void 0,t}},t.RecentlyPlayedShowDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.showPolicy&&c.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&c.ShowCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.playedStatePolicy&&c.ShowPlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(26).fork()).ldelim(),!0===e.type&&t.uint32(32).bool(e.type),!0===e.timestamp&&t.uint32(40).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.showPolicy=c.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:r.collectionPolicy=c.ShowCollectionDecorationPolicy.decode(n,n.uint32());break;case 3:r.playedStatePolicy=c.ShowPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 4:r.type=n.bool();break;case 5:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({showPolicy:d(e.showPolicy)?c.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,collectionPolicy:d(e.collectionPolicy)?c.ShowCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?c.ShowPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?c.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?c.ShowCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?c.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?c.ShowCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedEpisodeDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episodePolicy&&s.EpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&s.EpisodeCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.syncPolicy&&s.EpisodeSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&s.EpisodePlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),void 0!==e.showPolicy&&c.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(42).fork()).ldelim(),!0===e.type&&t.uint32(48).bool(e.type),!0===e.timestamp&&t.uint32(56).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.episodePolicy=s.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:r.collectionPolicy=s.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 3:r.syncPolicy=s.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 4:r.playedStatePolicy=s.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 5:r.showPolicy=c.ShowDecorationPolicy.decode(n,n.uint32());break;case 6:r.type=n.bool();break;case 7:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({episodePolicy:d(e.episodePolicy)?s.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,collectionPolicy:d(e.collectionPolicy)?s.EpisodeCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?s.EpisodeSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?s.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,showPolicy:d(e.showPolicy)?c.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?s.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?s.EpisodeCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?s.EpisodeSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?s.EpisodePlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?c.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,type:!1,timestamp:!1};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?s.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?s.EpisodeCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?s.EpisodeSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?s.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?c.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedProfileDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.imageUri&&t.uint32(24).bool(e.imageUri),!0===e.offline&&t.uint32(32).bool(e.offline),!0===e.type&&t.uint32(40).bool(e.type),!0===e.timestamp&&t.uint32(48).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,imageUri:!1,offline:!1,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.imageUri=n.bool();break;case 4:r.offline=n.bool();break;case 5:r.type=n.bool();break;case 6:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!d(e.link)&&Boolean(e.link),name:!!d(e.name)&&Boolean(e.name),imageUri:!!d(e.imageUri)&&Boolean(e.imageUri),offline:!!d(e.offline)&&Boolean(e.offline),type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={link:!1,name:!1,imageUri:!1,offline:!1,type:!1,timestamp:!1};return t.link=e.link??!1,t.name=e.name??!1,t.imageUri=e.imageUri??!1,t.offline=e.offline??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedPlaylistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.playlistPolicy&&l.PlaylistDecorationPolicy.encode(e.playlistPolicy,t.uint32(10).fork()).ldelim(),!0===e.type&&t.uint32(16).bool(e.type),!0===e.timestamp&&t.uint32(24).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistPolicy:void 0,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playlistPolicy=l.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 2:r.type=n.bool();break;case 3:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistPolicy:d(e.playlistPolicy)?l.PlaylistDecorationPolicy.fromJSON(e.playlistPolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.playlistPolicy&&(t.playlistPolicy=e.playlistPolicy?l.PlaylistDecorationPolicy.toJSON(e.playlistPolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={playlistPolicy:void 0,type:!1,timestamp:!1};return t.playlistPolicy=void 0!==e.playlistPolicy&&null!==e.playlistPolicy?l.PlaylistDecorationPolicy.fromPartial(e.playlistPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedCollectionTracksDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.type&&t.uint32(16).bool(e.type),!0===e.timestamp&&t.uint32(24).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,type:!1,timestamp:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.type=n.bool();break;case 3:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!d(e.link)&&Boolean(e.link),type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={link:!1,type:!1,timestamp:!1};return t.link=e.link??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}}},75468:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecentlyPlayedCollectionTracks=t.RecentlyPlayedPlaylist=t.RecentlyPlayedProfile=t.RecentlyPlayedEpisode=t.RecentlyPlayedShow=t.RecentlyPlayedTrack=t.RecentlyPlayedAlbum=t.RecentlyPlayedArtist=t.protobufPackage=void 0;const i=o(n(33892)),r=n(53144),a=n(27640),s=n(96647),l=n(36421),c=n(90595),u=n(59651),d=n(7121),p=n(95967),f=n(89864),h=n(6469),m=n(44968),g=n(77059),v=n(10168),y=n(50679),_=n(18572),b=n(28259),S=n(74810),E=n(51295);function A(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.RecentlyPlayedArtist={encode:(e,t=i.default.Writer.create())=>(void 0!==e.artistMetadata&&d.ArtistMetadata.encode(e.artistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.artistCollectionState&&a.ArtistCollectionState.encode(e.artistCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.artistSyncState&&b.ArtistSyncState.encode(e.artistSyncState,t.uint32(26).fork()).ldelim(),0!==e.type&&t.uint32(32).uint32(e.type),0!==e.addTime&&t.uint32(40).uint32(e.addTime),""!==e.typeStr&&t.uint32(50).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.artistMetadata=d.ArtistMetadata.decode(n,n.uint32());break;case 2:r.artistCollectionState=a.ArtistCollectionState.decode(n,n.uint32());break;case 3:r.artistSyncState=b.ArtistSyncState.decode(n,n.uint32());break;case 4:r.type=n.uint32();break;case 5:r.addTime=n.uint32();break;case 6:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({artistMetadata:A(e.artistMetadata)?d.ArtistMetadata.fromJSON(e.artistMetadata):void 0,artistCollectionState:A(e.artistCollectionState)?a.ArtistCollectionState.fromJSON(e.artistCollectionState):void 0,artistSyncState:A(e.artistSyncState)?b.ArtistSyncState.fromJSON(e.artistSyncState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.artistMetadata&&(t.artistMetadata=e.artistMetadata?d.ArtistMetadata.toJSON(e.artistMetadata):void 0),void 0!==e.artistCollectionState&&(t.artistCollectionState=e.artistCollectionState?a.ArtistCollectionState.toJSON(e.artistCollectionState):void 0),void 0!==e.artistSyncState&&(t.artistSyncState=e.artistSyncState?b.ArtistSyncState.toJSON(e.artistSyncState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,type:0,addTime:0,typeStr:""};return t.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?d.ArtistMetadata.fromPartial(e.artistMetadata):void 0,t.artistCollectionState=void 0!==e.artistCollectionState&&null!==e.artistCollectionState?a.ArtistCollectionState.fromPartial(e.artistCollectionState):void 0,t.artistSyncState=void 0!==e.artistSyncState&&null!==e.artistSyncState?b.ArtistSyncState.fromPartial(e.artistSyncState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedAlbum={encode:(e,t=i.default.Writer.create())=>(void 0!==e.albumMetadata&&u.AlbumMetadata.encode(e.albumMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.albumCollectionState&&r.AlbumCollectionState.encode(e.albumCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.albumSyncState&&_.AlbumSyncState.encode(e.albumSyncState,t.uint32(26).fork()).ldelim(),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,inCollection:!1,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.albumMetadata=u.AlbumMetadata.decode(n,n.uint32());break;case 2:a.albumCollectionState=r.AlbumCollectionState.decode(n,n.uint32());break;case 3:a.albumSyncState=_.AlbumSyncState.decode(n,n.uint32());break;case 4:a.inCollection=n.bool();break;case 5:a.type=n.uint32();break;case 6:a.addTime=n.uint32();break;case 7:a.typeStr=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({albumMetadata:A(e.albumMetadata)?u.AlbumMetadata.fromJSON(e.albumMetadata):void 0,albumCollectionState:A(e.albumCollectionState)?r.AlbumCollectionState.fromJSON(e.albumCollectionState):void 0,albumSyncState:A(e.albumSyncState)?_.AlbumSyncState.fromJSON(e.albumSyncState):void 0,inCollection:!!A(e.inCollection)&&Boolean(e.inCollection),type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.albumMetadata&&(t.albumMetadata=e.albumMetadata?u.AlbumMetadata.toJSON(e.albumMetadata):void 0),void 0!==e.albumCollectionState&&(t.albumCollectionState=e.albumCollectionState?r.AlbumCollectionState.toJSON(e.albumCollectionState):void 0),void 0!==e.albumSyncState&&(t.albumSyncState=e.albumSyncState?_.AlbumSyncState.toJSON(e.albumSyncState):void 0),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,inCollection:!1,type:0,addTime:0,typeStr:""};return t.albumMetadata=void 0!==e.albumMetadata&&null!==e.albumMetadata?u.AlbumMetadata.fromPartial(e.albumMetadata):void 0,t.albumCollectionState=void 0!==e.albumCollectionState&&null!==e.albumCollectionState?r.AlbumCollectionState.fromPartial(e.albumCollectionState):void 0,t.albumSyncState=void 0!==e.albumSyncState&&null!==e.albumSyncState?_.AlbumSyncState.fromPartial(e.albumSyncState):void 0,t.inCollection=e.inCollection??!1,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedTrack={encode:(e,t=i.default.Writer.create())=>(void 0!==e.trackMetadata&&h.TrackMetadata.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&c.TrackCollectionState.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackPlayState&&v.TrackPlayState.encode(e.trackPlayState,t.uint32(26).fork()).ldelim(),void 0!==e.trackSyncState&&E.TrackSyncState.encode(e.trackSyncState,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.trackMetadata=h.TrackMetadata.decode(n,n.uint32());break;case 2:r.trackCollectionState=c.TrackCollectionState.decode(n,n.uint32());break;case 3:r.trackPlayState=v.TrackPlayState.decode(n,n.uint32());break;case 4:r.trackSyncState=E.TrackSyncState.decode(n,n.uint32());break;case 5:r.type=n.uint32();break;case 6:r.addTime=n.uint32();break;case 7:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({trackMetadata:A(e.trackMetadata)?h.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:A(e.trackCollectionState)?c.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackPlayState:A(e.trackPlayState)?v.TrackPlayState.fromJSON(e.trackPlayState):void 0,trackSyncState:A(e.trackSyncState)?E.TrackSyncState.fromJSON(e.trackSyncState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?h.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?c.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?v.TrackPlayState.toJSON(e.trackPlayState):void 0),void 0!==e.trackSyncState&&(t.trackSyncState=e.trackSyncState?E.TrackSyncState.toJSON(e.trackSyncState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,type:0,addTime:0,typeStr:""};return t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?h.TrackMetadata.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?c.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?v.TrackPlayState.fromPartial(e.trackPlayState):void 0,t.trackSyncState=void 0!==e.trackSyncState&&null!==e.trackSyncState?E.TrackSyncState.fromPartial(e.trackSyncState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedShow={encode:(e,t=i.default.Writer.create())=>(void 0!==e.showMetadata&&f.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&l.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&g.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),0!==e.type&&t.uint32(32).uint32(e.type),0!==e.addTime&&t.uint32(40).uint32(e.addTime),""!==e.typeStr&&t.uint32(50).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.showMetadata=f.ShowMetadata.decode(n,n.uint32());break;case 2:r.showCollectionState=l.ShowCollectionState.decode(n,n.uint32());break;case 3:r.showPlayState=g.ShowPlayState.decode(n,n.uint32());break;case 4:r.type=n.uint32();break;case 5:r.addTime=n.uint32();break;case 6:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({showMetadata:A(e.showMetadata)?f.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:A(e.showCollectionState)?l.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:A(e.showPlayState)?g.ShowPlayState.fromJSON(e.showPlayState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?f.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?l.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?g.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,type:0,addTime:0,typeStr:""};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?f.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?l.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?g.ShowPlayState.fromPartial(e.showPlayState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedEpisode={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episodeMetadata&&p.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&s.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&S.EpisodeSyncState.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&m.EpisodePlayState.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),void 0!==e.showMetadata&&f.ShowMetadata.encode(e.showMetadata,t.uint32(58).fork()).ldelim(),""!==e.typeStr&&t.uint32(66).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,type:0,addTime:0,showMetadata:void 0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.episodeMetadata=p.EpisodeMetadata.decode(n,n.uint32());break;case 2:r.episodeCollectionState=s.EpisodeCollectionState.decode(n,n.uint32());break;case 3:r.episodeOfflineState=S.EpisodeSyncState.decode(n,n.uint32());break;case 4:r.episodePlayState=m.EpisodePlayState.decode(n,n.uint32());break;case 5:r.type=n.uint32();break;case 6:r.addTime=n.uint32();break;case 7:r.showMetadata=f.ShowMetadata.decode(n,n.uint32());break;case 8:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({episodeMetadata:A(e.episodeMetadata)?p.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:A(e.episodeCollectionState)?s.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:A(e.episodeOfflineState)?S.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:A(e.episodePlayState)?m.EpisodePlayState.fromJSON(e.episodePlayState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,showMetadata:A(e.showMetadata)?f.ShowMetadata.fromJSON(e.showMetadata):void 0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?p.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?s.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?S.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?m.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?f.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,type:0,addTime:0,showMetadata:void 0,typeStr:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?p.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?S.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?m.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?f.ShowMetadata.fromPartial(e.showMetadata):void 0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedProfile={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.imageUri&&t.uint32(26).string(e.imageUri),0!==e.offlineState&&t.uint32(32).uint32(e.offlineState),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",imageUri:"",offlineState:0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.imageUri=n.string();break;case 4:r.offlineState=n.uint32();break;case 5:r.type=n.uint32();break;case 6:r.addTime=n.uint32();break;case 7:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:A(e.link)?String(e.link):"",name:A(e.name)?String(e.name):"",imageUri:A(e.imageUri)?String(e.imageUri):"",offlineState:A(e.offlineState)?Number(e.offlineState):0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.offlineState&&(t.offlineState=Math.round(e.offlineState)),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={link:"",name:"",imageUri:"",offlineState:0,type:0,addTime:0,typeStr:""};return t.link=e.link??"",t.name=e.name??"",t.imageUri=e.imageUri??"",t.offlineState=e.offlineState??0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedPlaylist={encode:(e,t=i.default.Writer.create())=>(void 0!==e.playlistMetadata&&y.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),0!==e.type&&t.uint32(16).uint32(e.type),0!==e.addTime&&t.uint32(24).uint32(e.addTime),""!==e.typeStr&&t.uint32(34).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistMetadata:void 0,type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playlistMetadata=y.PlaylistMetadata.decode(n,n.uint32());break;case 2:r.type=n.uint32();break;case 3:r.addTime=n.uint32();break;case 4:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistMetadata:A(e.playlistMetadata)?y.PlaylistMetadata.fromJSON(e.playlistMetadata):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?y.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={playlistMetadata:void 0,type:0,addTime:0,typeStr:""};return t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?y.PlaylistMetadata.fromPartial(e.playlistMetadata):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedCollectionTracks={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),0!==e.type&&t.uint32(16).uint32(e.type),0!==e.addTime&&t.uint32(24).uint32(e.addTime),""!==e.typeStr&&t.uint32(34).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",type:0,addTime:0,typeStr:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.type=n.uint32();break;case 3:r.addTime=n.uint32();break;case 4:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:A(e.link)?String(e.link):"",type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={link:"",type:0,addTime:0,typeStr:""};return t.link=e.link??"",t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}}},18572:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.string();break;case 2:r.inferredOffline=n.string();break;case 3:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):"",inferredOffline:r(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}}},28259:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.string();break;case 2:r.inferredOffline=n.string();break;case 3:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):"",inferredOffline:r(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}}},74810:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offlineState=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:r(e.offlineState)?String(e.offlineState):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}}},51295:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}}},75406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowServiceClient=void 0;const o=n(33892),i=n(25744);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getShow(e){const t="spotify.show_esperanto.proto.ShowService",n="GetShow",r=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetShowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subShow(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubShow",a=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetShowResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getShowEpisode(e){const t="spotify.show_esperanto.proto.ShowService",n="GetShowEpisode",r=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetShowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subShowEpisode(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubShowEpisode",a=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetShowResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getDecorate(e){const t="spotify.show_esperanto.proto.ShowService",n="GetDecorate",r=i.GetDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetDecorateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subDecorate(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubDecorate",a=i.GetDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetDecorateResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getUnfinishedEpisodes(e){const t="spotify.show_esperanto.proto.ShowService",n="GetUnfinishedEpisodes",r=i.GetUnfinishedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetUnfinishedEpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subUnfinishedEpisodes(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubUnfinishedEpisodes",a=i.GetUnfinishedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetUnfinishedEpisodesResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.show_esperanto.proto.ShowService";static DECODERS={GetShow:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},SubShow:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},GetShowEpisode:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},SubShowEpisode:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},GetDecorate:{request:i.GetDecorateRequest.decode,response:i.GetDecorateResponse.decode},SubDecorate:{request:i.GetDecorateRequest.decode,response:i.GetDecorateResponse.decode},GetUnfinishedEpisodes:{request:i.GetUnfinishedEpisodesRequest.decode,response:i.GetUnfinishedEpisodesResponse.decode},SubUnfinishedEpisodes:{request:i.GetUnfinishedEpisodesRequest.decode,response:i.GetUnfinishedEpisodesResponse.decode}}}t.ShowServiceClient=r},79221:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowServiceClient=void 0;var r=n(75406);Object.defineProperty(t,"ShowServiceClient",{enumerable:!0,get:function(){return r.ShowServiceClient}}),i(n(25744),t)},63804:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Episode=t.Show=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(86553),s=n(12158),l=n(46769),c=n(59516),u=n(30707),d=n(16293),p=n(35176);function f(e){return null!=e}t.protobufPackage="spotify.show_cosmos.decorate_request.proto",t.Show={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showMetadata&&a.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&s.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&l.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),""!==e.link&&t.uint32(34).string(e.link),void 0!==e.showOfflineState&&c.ShowOfflineState.encode(e.showOfflineState,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,link:"",showOfflineState:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.showMetadata=a.ShowMetadata.decode(n,n.uint32());break;case 2:i.showCollectionState=s.ShowCollectionState.decode(n,n.uint32());break;case 3:i.showPlayState=l.ShowPlayState.decode(n,n.uint32());break;case 4:i.link=n.string();break;case 7:i.showOfflineState=c.ShowOfflineState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showMetadata:f(e.showMetadata)?a.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:f(e.showCollectionState)?s.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:f(e.showPlayState)?l.ShowPlayState.fromJSON(e.showPlayState):void 0,link:f(e.link)?String(e.link):"",showOfflineState:f(e.showOfflineState)?c.ShowOfflineState.fromJSON(e.showOfflineState):void 0}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?a.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?s.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?l.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.link&&(t.link=e.link),void 0!==e.showOfflineState&&(t.showOfflineState=e.showOfflineState?c.ShowOfflineState.toJSON(e.showOfflineState):void 0),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,link:"",showOfflineState:void 0};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?a.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?s.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?l.ShowPlayState.fromPartial(e.showPlayState):void 0,t.link=e.link??"",t.showOfflineState=void 0!==e.showOfflineState&&null!==e.showOfflineState?c.ShowOfflineState.fromPartial(e.showOfflineState):void 0,t}},t.Episode={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episodeMetadata&&u.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&d.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&d.EpisodeOfflineState.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&p.EpisodePlayState.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.episodeMetadata=u.EpisodeMetadata.decode(n,n.uint32());break;case 2:i.episodeCollectionState=d.EpisodeCollectionState.decode(n,n.uint32());break;case 3:i.episodeOfflineState=d.EpisodeOfflineState.decode(n,n.uint32());break;case 4:i.episodePlayState=p.EpisodePlayState.decode(n,n.uint32());break;case 5:i.link=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({episodeMetadata:f(e.episodeMetadata)?u.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:f(e.episodeCollectionState)?d.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:f(e.episodeOfflineState)?d.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:f(e.episodePlayState)?p.EpisodePlayState.fromJSON(e.episodePlayState):void 0,link:f(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?u.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?d.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?d.EpisodeOfflineState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?p.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?u.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?d.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?d.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?p.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t.link=e.link??"",t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.show)t.Show.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.episode)t.Episode.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={show:[],episode:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.show.push(t.Show.decode(o,o.uint32()));break;case 2:a.episode.push(t.Episode.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({show:Array.isArray(e?.show)?e.show.map((e=>t.Show.fromJSON(e))):[],episode:Array.isArray(e?.episode)?e.episode.map((e=>t.Episode.fromJSON(e))):[]}),toJSON(e){const n={};return e.show?n.show=e.show.map((e=>e?t.Show.toJSON(e):void 0)):n.show=[],e.episode?n.episode=e.episode.map((e=>e?t.Episode.toJSON(e):void 0)):n.episode=[],n},fromPartial(e){const n={show:[],episode:[]};return n.show=e.show?.map((e=>t.Show.fromPartial(e)))||[],n.episode=e.episode?.map((e=>t.Episode.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},79396:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return a.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return a.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return a.CONTENT_WARNING;case 59:case"IMAGE_CUE":return a.IMAGE_CUE;case 60:case"STREAM_COUNT":return a.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case a.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case a.PLAY_TRAIT:return"PLAY_TRAIT";case a.CONTENT_WARNING:return"CONTENT_WARNING";case a.IMAGE_CUE:return"IMAGE_CUE";case a.STREAM_COUNT:return"STREAM_COUNT";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},30707:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(94553),s=n(6771);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";default:return"UNKNOWN"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&a.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)s.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=a.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(s.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?a.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?a.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),n},fromPartial(e){const n={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?a.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},6771:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(79396);function s(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=r.default.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.extensionKind=n.int32();break;case 2:i.data=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({extensionKind:p(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,data:p(e.data)?u(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return d(t.join(""))}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=s();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var l=(()=>{if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const c=l.atob||(e=>l.Buffer.from(e,"base64").toString("binary"));function u(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const d=l.btoa||(e=>l.Buffer.from(e,"binary").toString("base64"));function p(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94553:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=r.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.standardLink=n.string();break;case 2:i.smallLink=n.string();break;case 3:i.largeLink=n.string();break;case 4:i.xlargeLink=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({standardLink:a(e.standardLink)?String(e.standardLink):"",smallLink:a(e.smallLink)?String(e.smallLink):"",largeLink:a(e.largeLink)?String(e.largeLink):"",xlargeLink:a(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},86553:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(94553),s=n(6771);function l(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowMetadata={encode(e,t=r.default.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)s.Extension.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.description=n.string();break;case 4:i.popularity=n.uint32();break;case 5:i.publisher=n.string();break;case 6:i.language=n.string();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=a.ImageGroup.decode(n,n.uint32());break;case 9:i.numEpisodes=n.uint32();break;case 10:i.consumptionOrder=n.string();break;case 11:i.mediaTypeEnum=n.int32();break;case 12:i.copyright.push(n.string());break;case 13:i.trailerUri=n.string();break;case 14:i.isMusicAndTalk=n.bool();break;case 15:i.extension.push(s.Extension.decode(n,n.uint32()));break;case 16:i.isBook=n.bool();break;case 17:i.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",description:l(e.description)?String(e.description):"",popularity:l(e.popularity)?Number(e.popularity):0,publisher:l(e.publisher)?String(e.publisher):"",language:l(e.language)?String(e.language):"",isExplicit:!!l(e.isExplicit)&&Boolean(e.isExplicit),covers:l(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,numEpisodes:l(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:l(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:l(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:l(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!l(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[],isBook:!!l(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!l(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=Math.round(e.popularity)),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=Math.round(e.mediaTypeEnum)),e.copyright?t.copyright=e.copyright.map((e=>e)):t.copyright=[],void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},35176:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(53230);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=r.default.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.timeLeft=n.uint32();break;case 2:i.isPlayable=n.bool();break;case 3:i.isPlayed=n.bool();break;case 4:i.lastPlayedAt=n.uint32();break;case 5:i.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({timeLeft:s(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!s(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:s(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:s(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},53230:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"NO_RESTRICTION":return a.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return a.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return a.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return a.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return a.NOT_AVAILABLE_OFFLINE;default:return a.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.NO_RESTRICTION:return"NO_RESTRICTION";case a.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case a.AGE_RESTRICTED:return"AGE_RESTRICTED";case a.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case a.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},46769:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayState=t.showPlayState_LabelToJSON=t.showPlayState_LabelFromJSON=t.ShowPlayState_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(53230);var s;function l(e){switch(e){case 0:case"UNKNOWN_LABEL":return s.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return s.NOT_STARTED;case 2:case"IN_PROGRESS":return s.IN_PROGRESS;case 3:case"COMPLETED":return s.COMPLETED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case s.NOT_STARTED:return"NOT_STARTED";case s.IN_PROGRESS:return"IN_PROGRESS";case s.COMPLETED:return"COMPLETED";default:return"UNKNOWN"}}function u(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.ShowPlayState_Label||(t.ShowPlayState_Label={})),t.showPlayState_LabelFromJSON=l,t.showPlayState_LabelToJSON=c,t.ShowPlayState={encode:(e,t=r.default.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),"0"!==e.playedTime&&t.uint32(16).uint64(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.latestPlayedEpisodeLink=n.string();break;case 2:i.playedTime=n.uint64().toString();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.int32();break;case 5:i.label=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:u(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:u(e.playedTime)?String(e.playedTime):"0",isPlayable:!!u(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:u(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0,label:u(e.label)?l(e.label):0}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),void 0!==e.label&&(t.label=c(e.label)),t},fromPartial(e){const t={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??"0",t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},78230:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(79396);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.length=n.bool();break;case 3:i.name=n.bool();break;case 4:i.manifestId=n.bool();break;case 5:i.previewId=n.bool();break;case 6:i.previewManifestId=n.bool();break;case 7:i.description=n.bool();break;case 8:i.publishDate=n.bool();break;case 9:i.covers=n.bool();break;case 10:i.freezeFrames=n.bool();break;case 11:i.language=n.bool();break;case 12:i.available=n.bool();break;case 13:i.mediaTypeEnum=n.bool();break;case 14:i.number=n.bool();break;case 15:i.backgroundable=n.bool();break;case 16:i.isExplicit=n.bool();break;case 17:i.type=n.bool();break;case 18:i.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extension.push(n.int32())}else i.extension.push(n.int32());break;case 22:i.is19PlusOnly=n.bool();break;case 23:i.isBookChapter=n.bool();break;case 24:i.isPodcastShort=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!s(e.link)&&Boolean(e.link),length:!!s(e.length)&&Boolean(e.length),name:!!s(e.name)&&Boolean(e.name),manifestId:!!s(e.manifestId)&&Boolean(e.manifestId),previewId:!!s(e.previewId)&&Boolean(e.previewId),previewManifestId:!!s(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!s(e.description)&&Boolean(e.description),publishDate:!!s(e.publishDate)&&Boolean(e.publishDate),covers:!!s(e.covers)&&Boolean(e.covers),freezeFrames:!!s(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!s(e.language)&&Boolean(e.language),available:!!s(e.available)&&Boolean(e.available),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!s(e.number)&&Boolean(e.number),backgroundable:!!s(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),type:!!s(e.type)&&Boolean(e.type),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!s(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!s(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isInListenLater=n.bool();break;case 3:i.isNew=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isFollowingShow:!!s(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!s(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!s(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.timeLeft=n.bool();break;case 2:i.isPlayed=n.bool();break;case 3:i.playable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({timeLeft:!!s(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!s(e.isPlayed)&&Boolean(e.isPlayed),playable:!!s(e.playable)&&Boolean(e.playable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!s(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},761:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(79396);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.description=n.bool();break;case 4:i.popularity=n.bool();break;case 5:i.publisher=n.bool();break;case 6:i.language=n.bool();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=n.bool();break;case 9:i.numEpisodes=n.bool();break;case 10:i.consumptionOrder=n.bool();break;case 11:i.mediaTypeEnum=n.bool();break;case 12:i.copyrights=n.bool();break;case 13:i.trailerUri=n.bool();break;case 14:i.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extension.push(n.int32())}else i.extension.push(n.int32());break;case 17:i.isBook=n.bool();break;case 18:i.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),description:!!s(e.description)&&Boolean(e.description),popularity:!!s(e.popularity)&&Boolean(e.popularity),publisher:!!s(e.publisher)&&Boolean(e.publisher),language:!!s(e.language)&&Boolean(e.language),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),covers:!!s(e.covers)&&Boolean(e.covers),numEpisodes:!!s(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!s(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!s(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!s(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],isBook:!!s(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!s(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.latestPlayedEpisodeLink=n.bool();break;case 2:i.playedTime=n.bool();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.label=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:!!s(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!s(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!s(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isInCollection:!!s(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},16293:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeOfflineState=t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",t.EpisodeCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isNew=n.bool();break;case 3:i.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!a(e.isNew)&&Boolean(e.isNew),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}},t.EpisodeOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offlineState=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offlineState:a(e.offlineState)?String(e.offlineState):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},59516:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",t.ShowOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offlineState=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offlineState:a(e.offlineState)?String(e.offlineState):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},60606:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NextBestEpisodeSection=t.LatestUnplayedEpisodeSection=t.TrailerSection=t.ContinueListeningSection=t.AuxiliarySections=t.Response=t.Header=t.Item=t.nextBestEpisodeSection_LabelToJSON=t.nextBestEpisodeSection_LabelFromJSON=t.NextBestEpisodeSection_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(30707),s=n(16293),l=n(35176),c=n(86553),u=n(12158),d=n(46769),p=n(59516);var f;function h(e){switch(e){case 0:case"UNKNOWN":return f.UNKNOWN;case 1:case"TRAILER":return f.TRAILER;case 2:case"CONTINUE_LISTENING":return f.CONTINUE_LISTENING;case 3:case"LATEST_PUBLISHED":return f.LATEST_PUBLISHED;case 4:case"UP_NEXT":return f.UP_NEXT;case 5:case"FIRST_PUBLISHED":return f.FIRST_PUBLISHED;default:return f.UNRECOGNIZED}}function m(e){switch(e){case f.UNKNOWN:return"UNKNOWN";case f.TRAILER:return"TRAILER";case f.CONTINUE_LISTENING:return"CONTINUE_LISTENING";case f.LATEST_PUBLISHED:return"LATEST_PUBLISHED";case f.UP_NEXT:return"UP_NEXT";case f.FIRST_PUBLISHED:return"FIRST_PUBLISHED";default:return"UNKNOWN"}}function g(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TRAILER=1]="TRAILER",e[e.CONTINUE_LISTENING=2]="CONTINUE_LISTENING",e[e.LATEST_PUBLISHED=3]="LATEST_PUBLISHED",e[e.UP_NEXT=4]="UP_NEXT",e[e.FIRST_PUBLISHED=5]="FIRST_PUBLISHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.NextBestEpisodeSection_Label||(t.NextBestEpisodeSection_Label={})),t.nextBestEpisodeSection_LabelFromJSON=h,t.nextBestEpisodeSection_LabelToJSON=m,t.Item={encode:(e,t=r.default.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.episodeMetadata&&a.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.episodeCollectionState&&s.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(26).fork()).ldelim(),void 0!==e.episodeOfflineState&&s.EpisodeOfflineState.encode(e.episodeOfflineState,t.uint32(34).fork()).ldelim(),void 0!==e.episodePlayState&&l.EpisodePlayState.encode(e.episodePlayState,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={headerField:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.headerField=n.string();break;case 2:i.episodeMetadata=a.EpisodeMetadata.decode(n,n.uint32());break;case 3:i.episodeCollectionState=s.EpisodeCollectionState.decode(n,n.uint32());break;case 4:i.episodeOfflineState=s.EpisodeOfflineState.decode(n,n.uint32());break;case 5:i.episodePlayState=l.EpisodePlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({headerField:g(e.headerField)?String(e.headerField):"",episodeMetadata:g(e.episodeMetadata)?a.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:g(e.episodeCollectionState)?s.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:g(e.episodeOfflineState)?s.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:g(e.episodePlayState)?l.EpisodePlayState.fromJSON(e.episodePlayState):void 0}),toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?a.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?s.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?s.EpisodeOfflineState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?l.EpisodePlayState.toJSON(e.episodePlayState):void 0),t},fromPartial(e){const t={headerField:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0};return t.headerField=e.headerField??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?s.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?l.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t}},t.Header={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showMetadata&&c.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&u.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&d.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),void 0!==e.showOfflineState&&p.ShowOfflineState.encode(e.showOfflineState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,showOfflineState:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.showMetadata=c.ShowMetadata.decode(n,n.uint32());break;case 2:i.showCollectionState=u.ShowCollectionState.decode(n,n.uint32());break;case 3:i.showPlayState=d.ShowPlayState.decode(n,n.uint32());break;case 4:i.showOfflineState=p.ShowOfflineState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showMetadata:g(e.showMetadata)?c.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:g(e.showCollectionState)?u.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:g(e.showPlayState)?d.ShowPlayState.fromJSON(e.showPlayState):void 0,showOfflineState:g(e.showOfflineState)?p.ShowOfflineState.fromJSON(e.showOfflineState):void 0}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?c.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?u.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?d.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.showOfflineState&&(t.showOfflineState=e.showOfflineState?p.ShowOfflineState.toJSON(e.showOfflineState):void 0),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,showOfflineState:void 0};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?c.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?u.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?d.ShowPlayState.fromPartial(e.showPlayState):void 0,t.showOfflineState=void 0!==e.showOfflineState&&null!==e.showOfflineState?p.ShowOfflineState.fromPartial(e.showOfflineState):void 0,t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.header&&t.Header.encode(e.header,n.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(32).uint32(e.unfilteredLength),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.loadingContents&&n.uint32(48).bool(e.loadingContents),0!==e.unrangedLength&&n.uint32(56).uint32(e.unrangedLength),void 0!==e.auxiliarySections&&t.AuxiliarySections.encode(e.auxiliarySections,n.uint32(66).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],header:void 0,unfilteredLength:0,length:0,loadingContents:!1,unrangedLength:0,auxiliarySections:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.header=t.Header.decode(o,o.uint32());break;case 4:a.unfilteredLength=o.uint32();break;case 5:a.length=o.uint32();break;case 6:a.loadingContents=o.bool();break;case 7:a.unrangedLength=o.uint32();break;case 8:a.auxiliarySections=t.AuxiliarySections.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.items)?e.items.map((e=>t.Item.fromJSON(e))):[],header:g(e.header)?t.Header.fromJSON(e.header):void 0,unfilteredLength:g(e.unfilteredLength)?Number(e.unfilteredLength):0,length:g(e.length)?Number(e.length):0,loadingContents:!!g(e.loadingContents)&&Boolean(e.loadingContents),unrangedLength:g(e.unrangedLength)?Number(e.unrangedLength):0,auxiliarySections:g(e.auxiliarySections)?t.AuxiliarySections.fromJSON(e.auxiliarySections):void 0}),toJSON(e){const n={};return e.item?n.items=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.items=[],void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.auxiliarySections&&(n.auxiliarySections=e.auxiliarySections?t.AuxiliarySections.toJSON(e.auxiliarySections):void 0),n},fromPartial(e){const n={item:[],header:void 0,unfilteredLength:0,length:0,loadingContents:!1,unrangedLength:0,auxiliarySections:void 0};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.header=void 0!==e.header&&null!==e.header?t.Header.fromPartial(e.header):void 0,n.unfilteredLength=e.unfilteredLength??0,n.length=e.length??0,n.loadingContents=e.loadingContents??!1,n.unrangedLength=e.unrangedLength??0,n.auxiliarySections=void 0!==e.auxiliarySections&&null!==e.auxiliarySections?t.AuxiliarySections.fromPartial(e.auxiliarySections):void 0,n}},t.AuxiliarySections={encode:(e,n=r.default.Writer.create())=>(void 0!==e.continueListening&&t.ContinueListeningSection.encode(e.continueListening,n.uint32(10).fork()).ldelim(),void 0!==e.trailerSection&&t.TrailerSection.encode(e.trailerSection,n.uint32(26).fork()).ldelim(),void 0!==e.latestUnplayedEpisodeSection&&t.LatestUnplayedEpisodeSection.encode(e.latestUnplayedEpisodeSection,n.uint32(74).fork()).ldelim(),void 0!==e.nextBestEpisodeSection&&t.NextBestEpisodeSection.encode(e.nextBestEpisodeSection,n.uint32(82).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={continueListening:void 0,trailerSection:void 0,latestUnplayedEpisodeSection:void 0,nextBestEpisodeSection:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.continueListening=t.ContinueListeningSection.decode(o,o.uint32());break;case 3:a.trailerSection=t.TrailerSection.decode(o,o.uint32());break;case 9:a.latestUnplayedEpisodeSection=t.LatestUnplayedEpisodeSection.decode(o,o.uint32());break;case 10:a.nextBestEpisodeSection=t.NextBestEpisodeSection.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({continueListening:g(e.continueListening)?t.ContinueListeningSection.fromJSON(e.continueListening):void 0,trailerSection:g(e.trailerSection)?t.TrailerSection.fromJSON(e.trailerSection):void 0,latestUnplayedEpisodeSection:g(e.latestUnplayedEpisodeSection)?t.LatestUnplayedEpisodeSection.fromJSON(e.latestUnplayedEpisodeSection):void 0,nextBestEpisodeSection:g(e.nextBestEpisodeSection)?t.NextBestEpisodeSection.fromJSON(e.nextBestEpisodeSection):void 0}),toJSON(e){const n={};return void 0!==e.continueListening&&(n.continueListening=e.continueListening?t.ContinueListeningSection.toJSON(e.continueListening):void 0),void 0!==e.trailerSection&&(n.trailerSection=e.trailerSection?t.TrailerSection.toJSON(e.trailerSection):void 0),void 0!==e.latestUnplayedEpisodeSection&&(n.latestUnplayedEpisodeSection=e.latestUnplayedEpisodeSection?t.LatestUnplayedEpisodeSection.toJSON(e.latestUnplayedEpisodeSection):void 0),void 0!==e.nextBestEpisodeSection&&(n.nextBestEpisodeSection=e.nextBestEpisodeSection?t.NextBestEpisodeSection.toJSON(e.nextBestEpisodeSection):void 0),n},fromPartial(e){const n={continueListening:void 0,trailerSection:void 0,latestUnplayedEpisodeSection:void 0,nextBestEpisodeSection:void 0};return n.continueListening=void 0!==e.continueListening&&null!==e.continueListening?t.ContinueListeningSection.fromPartial(e.continueListening):void 0,n.trailerSection=void 0!==e.trailerSection&&null!==e.trailerSection?t.TrailerSection.fromPartial(e.trailerSection):void 0,n.latestUnplayedEpisodeSection=void 0!==e.latestUnplayedEpisodeSection&&null!==e.latestUnplayedEpisodeSection?t.LatestUnplayedEpisodeSection.fromPartial(e.latestUnplayedEpisodeSection):void 0,n.nextBestEpisodeSection=void 0!==e.nextBestEpisodeSection&&null!==e.nextBestEpisodeSection?t.NextBestEpisodeSection.fromPartial(e.nextBestEpisodeSection):void 0,n}},t.ContinueListeningSection={encode:(e,n=r.default.Writer.create())=>(void 0!==e.item&&t.Item.encode(e.item,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.item=t.Item.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({item:g(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={item:void 0};return n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},t.TrailerSection={encode:(e,n=r.default.Writer.create())=>(void 0!==e.item&&t.Item.encode(e.item,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.item=t.Item.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({item:g(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={item:void 0};return n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},t.LatestUnplayedEpisodeSection={encode:(e,n=r.default.Writer.create())=>(void 0!==e.item&&t.Item.encode(e.item,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.item=t.Item.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({item:g(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={item:void 0};return n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},t.NextBestEpisodeSection={encode:(e,n=r.default.Writer.create())=>(0!==e.label&&n.uint32(8).int32(e.label),void 0!==e.item&&t.Item.encode(e.item,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={label:0,item:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.label=o.int32();break;case 2:a.item=t.Item.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({label:g(e.label)?h(e.label):0,item:g(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.label&&(n.label=m(e.label)),void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={label:0,item:void 0};return n.label=e.label??0,n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},25744:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnfinishedEpisodesResponse=t.GetUnfinishedEpisodesRequest=t.GetDecorateResponse=t.GetDecorateRequest=t.GetShowResponse=t.GetShowRequest_QueryFilter=t.GetShowRequest_Range_Focus=t.GetShowRequest_Range=t.GetShowRequest=t.SectionsPolicy=t.ListPolicy=t.HeaderPolicy=t.Status=t.getShowRequest_QueryFilter_PlayedStateToJSON=t.getShowRequest_QueryFilter_PlayedStateFromJSON=t.GetShowRequest_QueryFilter_PlayedState=t.getShowRequest_QueryFilter_OfflineStatusToJSON=t.getShowRequest_QueryFilter_OfflineStatusFromJSON=t.GetShowRequest_QueryFilter_OfflineStatus=t.getShowRequest_QueryFilter_AvailabilityToJSON=t.getShowRequest_QueryFilter_AvailabilityFromJSON=t.GetShowRequest_QueryFilter_Availability=t.getShowRequest_Range_Focus_TypeToJSON=t.getShowRequest_Range_Focus_TypeFromJSON=t.GetShowRequest_Range_Focus_Type=t.status_CodeToJSON=t.status_CodeFromJSON=t.Status_Code=t.sortOrderToJSON=t.sortOrderFromJSON=t.SortOrder=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(761),s=n(78230),l=n(60606),c=n(63804),u=n(20565);var d,p,f,h,m,g;function v(e){switch(e){case 0:case"NONE":return d.NONE;case 1:case"CONSUMPTION_ORDER_ASC":return d.CONSUMPTION_ORDER_ASC;case 2:case"PUBLISH_DATE_ASC":return d.PUBLISH_DATE_ASC;case 3:case"PUBLISH_DATE_DESC":return d.PUBLISH_DATE_DESC;default:return d.UNRECOGNIZED}}function y(e){switch(e){case d.NONE:return"NONE";case d.CONSUMPTION_ORDER_ASC:return"CONSUMPTION_ORDER_ASC";case d.PUBLISH_DATE_ASC:return"PUBLISH_DATE_ASC";case d.PUBLISH_DATE_DESC:return"PUBLISH_DATE_DESC";default:return"UNKNOWN"}}function _(e){switch(e){case 0:case"SUCCESS":return p.SUCCESS;case 1:case"BAD_REQUEST":return p.BAD_REQUEST;case 2:case"INTERNAL_ERROR":return p.INTERNAL_ERROR;default:return p.UNRECOGNIZED}}function b(e){switch(e){case p.SUCCESS:return"SUCCESS";case p.BAD_REQUEST:return"BAD_REQUEST";case p.INTERNAL_ERROR:return"INTERNAL_ERROR";default:return"UNKNOWN"}}function S(e){switch(e){case 0:case"LATEST_PLAYED":return f.LATEST_PLAYED;case 1:case"CONTINUE_LISTENING":return f.CONTINUE_LISTENING;case 2:case"URI":return f.URI;default:return f.UNRECOGNIZED}}function E(e){switch(e){case f.LATEST_PLAYED:return"LATEST_PLAYED";case f.CONTINUE_LISTENING:return"CONTINUE_LISTENING";case f.URI:return"URI";default:return"UNKNOWN"}}function A(e){switch(e){case 0:case"AVAILABILITY_NONE":return h.AVAILABILITY_NONE;case 1:case"AVAILABILITY_AVAILABLE":return h.AVAILABILITY_AVAILABLE;default:return h.UNRECOGNIZED}}function T(e){switch(e){case h.AVAILABILITY_NONE:return"AVAILABILITY_NONE";case h.AVAILABILITY_AVAILABLE:return"AVAILABILITY_AVAILABLE";default:return"UNKNOWN"}}function P(e){switch(e){case 0:case"OFFLINE_STATUS_NONE":return m.OFFLINE_STATUS_NONE;case 1:case"OFFLINE_STATUS_AVAILABLE_OFFLINE":return m.OFFLINE_STATUS_AVAILABLE_OFFLINE;default:return m.UNRECOGNIZED}}function O(e){switch(e){case m.OFFLINE_STATUS_NONE:return"OFFLINE_STATUS_NONE";case m.OFFLINE_STATUS_AVAILABLE_OFFLINE:return"OFFLINE_STATUS_AVAILABLE_OFFLINE";default:return"UNKNOWN"}}function C(e){switch(e){case 0:case"PLAYED_STATE_NONE":return g.PLAYED_STATE_NONE;case 1:case"PLAYED_STATE_UNPLAYED":return g.PLAYED_STATE_UNPLAYED;case 2:case"PLAYED_STATE_IN_PROGRESS":return g.PLAYED_STATE_IN_PROGRESS;default:return g.UNRECOGNIZED}}function k(e){switch(e){case g.PLAYED_STATE_NONE:return"PLAYED_STATE_NONE";case g.PLAYED_STATE_UNPLAYED:return"PLAYED_STATE_UNPLAYED";case g.PLAYED_STATE_IN_PROGRESS:return"PLAYED_STATE_IN_PROGRESS";default:return"UNKNOWN"}}function R(e){return null!=e}t.protobufPackage="spotify.show_esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.CONSUMPTION_ORDER_ASC=1]="CONSUMPTION_ORDER_ASC",e[e.PUBLISH_DATE_ASC=2]="PUBLISH_DATE_ASC",e[e.PUBLISH_DATE_DESC=3]="PUBLISH_DATE_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=t.SortOrder||(t.SortOrder={})),t.sortOrderFromJSON=v,t.sortOrderToJSON=y,function(e){e[e.SUCCESS=0]="SUCCESS",e[e.BAD_REQUEST=1]="BAD_REQUEST",e[e.INTERNAL_ERROR=2]="INTERNAL_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(p=t.Status_Code||(t.Status_Code={})),t.status_CodeFromJSON=_,t.status_CodeToJSON=b,function(e){e[e.LATEST_PLAYED=0]="LATEST_PLAYED",e[e.CONTINUE_LISTENING=1]="CONTINUE_LISTENING",e[e.URI=2]="URI",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.GetShowRequest_Range_Focus_Type||(t.GetShowRequest_Range_Focus_Type={})),t.getShowRequest_Range_Focus_TypeFromJSON=S,t.getShowRequest_Range_Focus_TypeToJSON=E,function(e){e[e.AVAILABILITY_NONE=0]="AVAILABILITY_NONE",e[e.AVAILABILITY_AVAILABLE=1]="AVAILABILITY_AVAILABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(h=t.GetShowRequest_QueryFilter_Availability||(t.GetShowRequest_QueryFilter_Availability={})),t.getShowRequest_QueryFilter_AvailabilityFromJSON=A,t.getShowRequest_QueryFilter_AvailabilityToJSON=T,function(e){e[e.OFFLINE_STATUS_NONE=0]="OFFLINE_STATUS_NONE",e[e.OFFLINE_STATUS_AVAILABLE_OFFLINE=1]="OFFLINE_STATUS_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(m=t.GetShowRequest_QueryFilter_OfflineStatus||(t.GetShowRequest_QueryFilter_OfflineStatus={})),t.getShowRequest_QueryFilter_OfflineStatusFromJSON=P,t.getShowRequest_QueryFilter_OfflineStatusToJSON=O,function(e){e[e.PLAYED_STATE_NONE=0]="PLAYED_STATE_NONE",e[e.PLAYED_STATE_UNPLAYED=1]="PLAYED_STATE_UNPLAYED",e[e.PLAYED_STATE_IN_PROGRESS=2]="PLAYED_STATE_IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(g=t.GetShowRequest_QueryFilter_PlayedState||(t.GetShowRequest_QueryFilter_PlayedState={})),t.getShowRequest_QueryFilter_PlayedStateFromJSON=C,t.getShowRequest_QueryFilter_PlayedStateToJSON=k,t.Status={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.code=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({code:R(e.code)?_(e.code):0,reason:R(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=b(e.code)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}},t.HeaderPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showPolicy&&a.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.showPlayedStatePolicy&&a.ShowPlayedStateDecorationPolicy.encode(e.showPlayedStatePolicy,t.uint32(18).fork()).ldelim(),void 0!==e.showCollectionPolicy&&a.ShowCollectionDecorationPolicy.encode(e.showCollectionPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.showOfflineStatePolicy&&a.ShowOfflineStateDecorationPolicy.encode(e.showOfflineStatePolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showPolicy:void 0,showPlayedStatePolicy:void 0,showCollectionPolicy:void 0,showOfflineStatePolicy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.showPolicy=a.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:i.showPlayedStatePolicy=a.ShowPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 3:i.showCollectionPolicy=a.ShowCollectionDecorationPolicy.decode(n,n.uint32());break;case 4:i.showOfflineStatePolicy=a.ShowOfflineStateDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showPolicy:R(e.showPolicy)?a.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,showPlayedStatePolicy:R(e.showPlayedStatePolicy)?a.ShowPlayedStateDecorationPolicy.fromJSON(e.showPlayedStatePolicy):void 0,showCollectionPolicy:R(e.showCollectionPolicy)?a.ShowCollectionDecorationPolicy.fromJSON(e.showCollectionPolicy):void 0,showOfflineStatePolicy:R(e.showOfflineStatePolicy)?a.ShowOfflineStateDecorationPolicy.fromJSON(e.showOfflineStatePolicy):void 0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.showPlayedStatePolicy&&(t.showPlayedStatePolicy=e.showPlayedStatePolicy?a.ShowPlayedStateDecorationPolicy.toJSON(e.showPlayedStatePolicy):void 0),void 0!==e.showCollectionPolicy&&(t.showCollectionPolicy=e.showCollectionPolicy?a.ShowCollectionDecorationPolicy.toJSON(e.showCollectionPolicy):void 0),void 0!==e.showOfflineStatePolicy&&(t.showOfflineStatePolicy=e.showOfflineStatePolicy?a.ShowOfflineStateDecorationPolicy.toJSON(e.showOfflineStatePolicy):void 0),t},fromPartial(e){const t={showPolicy:void 0,showPlayedStatePolicy:void 0,showCollectionPolicy:void 0,showOfflineStatePolicy:void 0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.showPlayedStatePolicy=void 0!==e.showPlayedStatePolicy&&null!==e.showPlayedStatePolicy?a.ShowPlayedStateDecorationPolicy.fromPartial(e.showPlayedStatePolicy):void 0,t.showCollectionPolicy=void 0!==e.showCollectionPolicy&&null!==e.showCollectionPolicy?a.ShowCollectionDecorationPolicy.fromPartial(e.showCollectionPolicy):void 0,t.showOfflineStatePolicy=void 0!==e.showOfflineStatePolicy&&null!==e.showOfflineStatePolicy?a.ShowOfflineStateDecorationPolicy.fromPartial(e.showOfflineStatePolicy):void 0,t}},t.ListPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.episodePolicy&&s.EpisodeDecorationPolicy.encode(e.episodePolicy,n.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionPolicy&&s.EpisodeCollectionDecorationPolicy.encode(e.episodeCollectionPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.episodeSyncPolicy&&s.EpisodeSyncDecorationPolicy.encode(e.episodeSyncPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.episodePlayedStatePolicy&&s.EpisodePlayedStateDecorationPolicy.encode(e.episodePlayedStatePolicy,n.uint32(34).fork()).ldelim(),!0===e.progress&&n.uint32(40).bool(e.progress),void 0!==e.showPolicy&&t.HeaderPolicy.encode(e.showPolicy,n.uint32(50).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episodePolicy:void 0,episodeCollectionPolicy:void 0,episodeSyncPolicy:void 0,episodePlayedStatePolicy:void 0,progress:!1,showPolicy:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.episodePolicy=s.EpisodeDecorationPolicy.decode(o,o.uint32());break;case 2:a.episodeCollectionPolicy=s.EpisodeCollectionDecorationPolicy.decode(o,o.uint32());break;case 3:a.episodeSyncPolicy=s.EpisodeSyncDecorationPolicy.decode(o,o.uint32());break;case 4:a.episodePlayedStatePolicy=s.EpisodePlayedStateDecorationPolicy.decode(o,o.uint32());break;case 5:a.progress=o.bool();break;case 6:a.showPolicy=t.HeaderPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodePolicy:R(e.episodePolicy)?s.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,episodeCollectionPolicy:R(e.episodeCollectionPolicy)?s.EpisodeCollectionDecorationPolicy.fromJSON(e.episodeCollectionPolicy):void 0,episodeSyncPolicy:R(e.episodeSyncPolicy)?s.EpisodeSyncDecorationPolicy.fromJSON(e.episodeSyncPolicy):void 0,episodePlayedStatePolicy:R(e.episodePlayedStatePolicy)?s.EpisodePlayedStateDecorationPolicy.fromJSON(e.episodePlayedStatePolicy):void 0,progress:!!R(e.progress)&&Boolean(e.progress),showPolicy:R(e.showPolicy)?t.HeaderPolicy.fromJSON(e.showPolicy):void 0}),toJSON(e){const n={};return void 0!==e.episodePolicy&&(n.episodePolicy=e.episodePolicy?s.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.episodeCollectionPolicy&&(n.episodeCollectionPolicy=e.episodeCollectionPolicy?s.EpisodeCollectionDecorationPolicy.toJSON(e.episodeCollectionPolicy):void 0),void 0!==e.episodeSyncPolicy&&(n.episodeSyncPolicy=e.episodeSyncPolicy?s.EpisodeSyncDecorationPolicy.toJSON(e.episodeSyncPolicy):void 0),void 0!==e.episodePlayedStatePolicy&&(n.episodePlayedStatePolicy=e.episodePlayedStatePolicy?s.EpisodePlayedStateDecorationPolicy.toJSON(e.episodePlayedStatePolicy):void 0),void 0!==e.progress&&(n.progress=e.progress),void 0!==e.showPolicy&&(n.showPolicy=e.showPolicy?t.HeaderPolicy.toJSON(e.showPolicy):void 0),n},fromPartial(e){const n={episodePolicy:void 0,episodeCollectionPolicy:void 0,episodeSyncPolicy:void 0,episodePlayedStatePolicy:void 0,progress:!1,showPolicy:void 0};return n.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?s.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,n.episodeCollectionPolicy=void 0!==e.episodeCollectionPolicy&&null!==e.episodeCollectionPolicy?s.EpisodeCollectionDecorationPolicy.fromPartial(e.episodeCollectionPolicy):void 0,n.episodeSyncPolicy=void 0!==e.episodeSyncPolicy&&null!==e.episodeSyncPolicy?s.EpisodeSyncDecorationPolicy.fromPartial(e.episodeSyncPolicy):void 0,n.episodePlayedStatePolicy=void 0!==e.episodePlayedStatePolicy&&null!==e.episodePlayedStatePolicy?s.EpisodePlayedStateDecorationPolicy.fromPartial(e.episodePlayedStatePolicy):void 0,n.progress=e.progress??!1,n.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?t.HeaderPolicy.fromPartial(e.showPolicy):void 0,n}},t.SectionsPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.continueListening&&t.uint32(8).bool(e.continueListening),!0===e.trailerSection&&t.uint32(16).bool(e.trailerSection),!0===e.latestUnplayedEpisode&&t.uint32(24).bool(e.latestUnplayedEpisode),!0===e.nextBestEpisode&&t.uint32(32).bool(e.nextBestEpisode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={continueListening:!1,trailerSection:!1,latestUnplayedEpisode:!1,nextBestEpisode:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.continueListening=n.bool();break;case 2:i.trailerSection=n.bool();break;case 3:i.latestUnplayedEpisode=n.bool();break;case 4:i.nextBestEpisode=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({continueListening:!!R(e.continueListening)&&Boolean(e.continueListening),trailerSection:!!R(e.trailerSection)&&Boolean(e.trailerSection),latestUnplayedEpisode:!!R(e.latestUnplayedEpisode)&&Boolean(e.latestUnplayedEpisode),nextBestEpisode:!!R(e.nextBestEpisode)&&Boolean(e.nextBestEpisode)}),toJSON(e){const t={};return void 0!==e.continueListening&&(t.continueListening=e.continueListening),void 0!==e.trailerSection&&(t.trailerSection=e.trailerSection),void 0!==e.latestUnplayedEpisode&&(t.latestUnplayedEpisode=e.latestUnplayedEpisode),void 0!==e.nextBestEpisode&&(t.nextBestEpisode=e.nextBestEpisode),t},fromPartial(e){const t={continueListening:!1,trailerSection:!1,latestUnplayedEpisode:!1,nextBestEpisode:!1};return t.continueListening=e.continueListening??!1,t.trailerSection=e.trailerSection??!1,t.latestUnplayedEpisode=e.latestUnplayedEpisode??!1,t.nextBestEpisode=e.nextBestEpisode??!1,t}},t.GetShowRequest={encode:(e,n=r.default.Writer.create())=>(""!==e.showId&&n.uint32(10).string(e.showId),0!==e.updateThrottling&&n.uint32(16).uint32(e.updateThrottling),0!==e.rangeStart&&n.uint32(24).int32(e.rangeStart),void 0!==e.rangeLength&&n.uint32(32).int32(e.rangeLength),""!==e.sort&&n.uint32(42).string(e.sort),""!==e.filter&&n.uint32(50).string(e.filter),""!==e.includeInRange&&n.uint32(58).string(e.includeInRange),void 0!==e.forceIncludeContext&&n.uint32(64).int32(e.forceIncludeContext),void 0!==e.headerPolicy&&t.HeaderPolicy.encode(e.headerPolicy,n.uint32(74).fork()).ldelim(),void 0!==e.listPolicy&&t.ListPolicy.encode(e.listPolicy,n.uint32(82).fork()).ldelim(),void 0!==e.sectionsPolicy&&t.SectionsPolicy.encode(e.sectionsPolicy,n.uint32(90).fork()).ldelim(),0!==e.sortOrder&&n.uint32(96).int32(e.sortOrder),void 0!==e.range&&t.GetShowRequest_Range.encode(e.range,n.uint32(106).fork()).ldelim(),void 0!==e.queryFilter&&t.GetShowRequest_QueryFilter.encode(e.queryFilter,n.uint32(114).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={showId:"",updateThrottling:0,rangeStart:0,rangeLength:void 0,sort:"",filter:"",includeInRange:"",forceIncludeContext:void 0,headerPolicy:void 0,listPolicy:void 0,sectionsPolicy:void 0,sortOrder:0,range:void 0,queryFilter:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.showId=o.string();break;case 2:a.updateThrottling=o.uint32();break;case 3:a.rangeStart=o.int32();break;case 4:a.rangeLength=o.int32();break;case 5:a.sort=o.string();break;case 6:a.filter=o.string();break;case 7:a.includeInRange=o.string();break;case 8:a.forceIncludeContext=o.int32();break;case 9:a.headerPolicy=t.HeaderPolicy.decode(o,o.uint32());break;case 10:a.listPolicy=t.ListPolicy.decode(o,o.uint32());break;case 11:a.sectionsPolicy=t.SectionsPolicy.decode(o,o.uint32());break;case 12:a.sortOrder=o.int32();break;case 13:a.range=t.GetShowRequest_Range.decode(o,o.uint32());break;case 14:a.queryFilter=t.GetShowRequest_QueryFilter.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({showId:R(e.showId)?String(e.showId):"",updateThrottling:R(e.updateThrottling)?Number(e.updateThrottling):0,rangeStart:R(e.rangeStart)?Number(e.rangeStart):0,rangeLength:R(e.rangeLength)?Number(e.rangeLength):void 0,sort:R(e.sort)?String(e.sort):"",filter:R(e.filter)?String(e.filter):"",includeInRange:R(e.includeInRange)?String(e.includeInRange):"",forceIncludeContext:R(e.forceIncludeContext)?Number(e.forceIncludeContext):void 0,headerPolicy:R(e.headerPolicy)?t.HeaderPolicy.fromJSON(e.headerPolicy):void 0,listPolicy:R(e.listPolicy)?t.ListPolicy.fromJSON(e.listPolicy):void 0,sectionsPolicy:R(e.sectionsPolicy)?t.SectionsPolicy.fromJSON(e.sectionsPolicy):void 0,sortOrder:R(e.sortOrder)?v(e.sortOrder):0,range:R(e.range)?t.GetShowRequest_Range.fromJSON(e.range):void 0,queryFilter:R(e.queryFilter)?t.GetShowRequest_QueryFilter.fromJSON(e.queryFilter):void 0}),toJSON(e){const n={};return void 0!==e.showId&&(n.showId=e.showId),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.rangeStart&&(n.rangeStart=Math.round(e.rangeStart)),void 0!==e.rangeLength&&(n.rangeLength=Math.round(e.rangeLength)),void 0!==e.sort&&(n.sort=e.sort),void 0!==e.filter&&(n.filter=e.filter),void 0!==e.includeInRange&&(n.includeInRange=e.includeInRange),void 0!==e.forceIncludeContext&&(n.forceIncludeContext=Math.round(e.forceIncludeContext)),void 0!==e.headerPolicy&&(n.headerPolicy=e.headerPolicy?t.HeaderPolicy.toJSON(e.headerPolicy):void 0),void 0!==e.listPolicy&&(n.listPolicy=e.listPolicy?t.ListPolicy.toJSON(e.listPolicy):void 0),void 0!==e.sectionsPolicy&&(n.sectionsPolicy=e.sectionsPolicy?t.SectionsPolicy.toJSON(e.sectionsPolicy):void 0),void 0!==e.sortOrder&&(n.sortOrder=y(e.sortOrder)),void 0!==e.range&&(n.range=e.range?t.GetShowRequest_Range.toJSON(e.range):void 0),void 0!==e.queryFilter&&(n.queryFilter=e.queryFilter?t.GetShowRequest_QueryFilter.toJSON(e.queryFilter):void 0),n},fromPartial(e){const n={showId:"",updateThrottling:0,rangeStart:0,rangeLength:void 0,sort:"",filter:"",includeInRange:"",forceIncludeContext:void 0,headerPolicy:void 0,listPolicy:void 0,sectionsPolicy:void 0,sortOrder:0,range:void 0,queryFilter:void 0};return n.showId=e.showId??"",n.updateThrottling=e.updateThrottling??0,n.rangeStart=e.rangeStart??0,n.rangeLength=e.rangeLength??void 0,n.sort=e.sort??"",n.filter=e.filter??"",n.includeInRange=e.includeInRange??"",n.forceIncludeContext=e.forceIncludeContext??void 0,n.headerPolicy=void 0!==e.headerPolicy&&null!==e.headerPolicy?t.HeaderPolicy.fromPartial(e.headerPolicy):void 0,n.listPolicy=void 0!==e.listPolicy&&null!==e.listPolicy?t.ListPolicy.fromPartial(e.listPolicy):void 0,n.sectionsPolicy=void 0!==e.sectionsPolicy&&null!==e.sectionsPolicy?t.SectionsPolicy.fromPartial(e.sectionsPolicy):void 0,n.sortOrder=e.sortOrder??0,n.range=void 0!==e.range&&null!==e.range?t.GetShowRequest_Range.fromPartial(e.range):void 0,n.queryFilter=void 0!==e.queryFilter&&null!==e.queryFilter?t.GetShowRequest_QueryFilter.fromPartial(e.queryFilter):void 0,n}},t.GetShowRequest_Range={encode:(e,n=r.default.Writer.create())=>(void 0!==e.start&&n.uint32(8).uint32(e.start),void 0!==e.focus&&t.GetShowRequest_Range_Focus.encode(e.focus,n.uint32(18).fork()).ldelim(),0!==e.limit&&n.uint32(24).uint32(e.limit),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={start:void 0,focus:void 0,limit:0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.start=o.uint32();break;case 2:a.focus=t.GetShowRequest_Range_Focus.decode(o,o.uint32());break;case 3:a.limit=o.uint32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({start:R(e.start)?Number(e.start):void 0,focus:R(e.focus)?t.GetShowRequest_Range_Focus.fromJSON(e.focus):void 0,limit:R(e.limit)?Number(e.limit):0}),toJSON(e){const n={};return void 0!==e.start&&(n.start=Math.round(e.start)),void 0!==e.focus&&(n.focus=e.focus?t.GetShowRequest_Range_Focus.toJSON(e.focus):void 0),void 0!==e.limit&&(n.limit=Math.round(e.limit)),n},fromPartial(e){const n={start:void 0,focus:void 0,limit:0};return n.start=e.start??void 0,n.focus=void 0!==e.focus&&null!==e.focus?t.GetShowRequest_Range_Focus.fromPartial(e.focus):void 0,n.limit=e.limit??0,n}},t.GetShowRequest_Range_Focus={encode:(e,t=r.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),""!==e.data&&t.uint32(18).string(e.data),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={type:0,data:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.type=n.int32();break;case 2:i.data=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({type:R(e.type)?S(e.type):0,data:R(e.data)?String(e.data):""}),toJSON(e){const t={};return void 0!==e.type&&(t.type=E(e.type)),void 0!==e.data&&(t.data=e.data),t},fromPartial(e){const t={type:0,data:""};return t.type=e.type??0,t.data=e.data??"",t}},t.GetShowRequest_QueryFilter={encode:(e,t=r.default.Writer.create())=>(0!==e.availability&&t.uint32(8).int32(e.availability),0!==e.offlineStatus&&t.uint32(16).int32(e.offlineStatus),0!==e.playedState&&t.uint32(24).int32(e.playedState),void 0!==e.containsText&&t.uint32(34).string(e.containsText),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={availability:0,offlineStatus:0,playedState:0,containsText:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.availability=n.int32();break;case 2:i.offlineStatus=n.int32();break;case 3:i.playedState=n.int32();break;case 4:i.containsText=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({availability:R(e.availability)?A(e.availability):0,offlineStatus:R(e.offlineStatus)?P(e.offlineStatus):0,playedState:R(e.playedState)?C(e.playedState):0,containsText:R(e.containsText)?String(e.containsText):void 0}),toJSON(e){const t={};return void 0!==e.availability&&(t.availability=T(e.availability)),void 0!==e.offlineStatus&&(t.offlineStatus=O(e.offlineStatus)),void 0!==e.playedState&&(t.playedState=k(e.playedState)),void 0!==e.containsText&&(t.containsText=e.containsText),t},fromPartial(e){const t={availability:0,offlineStatus:0,playedState:0,containsText:void 0};return t.availability=e.availability??0,t.offlineStatus=e.offlineStatus??0,t.playedState=e.playedState??0,t.containsText=e.containsText??void 0,t}},t.GetShowResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.response&&l.Response.encode(e.response,n.uint32(10).fork()).ldelim(),void 0!==e.status&&t.Status.encode(e.status,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:void 0,status:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.response=l.Response.decode(o,o.uint32());break;case 2:a.status=t.Status.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({response:R(e.response)?l.Response.fromJSON(e.response):void 0,status:R(e.status)?t.Status.fromJSON(e.status):void 0}),toJSON(e){const n={};return void 0!==e.response&&(n.response=e.response?l.Response.toJSON(e.response):void 0),void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),n},fromPartial(e){const n={response:void 0,status:void 0};return n.response=void 0!==e.response&&null!==e.response?l.Response.fromPartial(e.response):void 0,n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n}},t.GetDecorateRequest={encode(e,n=r.default.Writer.create()){for(const t of e.item)n.uint32(10).string(t);return!0===e.preferCached&&n.uint32(16).bool(e.preferCached),0!==e.updateThrottling&&n.uint32(24).uint32(e.updateThrottling),void 0!==e.showPolicy&&t.HeaderPolicy.encode(e.showPolicy,n.uint32(34).fork()).ldelim(),void 0!==e.episodePolicy&&t.ListPolicy.encode(e.episodePolicy,n.uint32(42).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],preferCached:!1,updateThrottling:0,showPolicy:void 0,episodePolicy:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.item.push(o.string());break;case 2:a.preferCached=o.bool();break;case 3:a.updateThrottling=o.uint32();break;case 4:a.showPolicy=t.HeaderPolicy.decode(o,o.uint32());break;case 5:a.episodePolicy=t.ListPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>String(e))):[],preferCached:!!R(e.preferCached)&&Boolean(e.preferCached),updateThrottling:R(e.updateThrottling)?Number(e.updateThrottling):0,showPolicy:R(e.showPolicy)?t.HeaderPolicy.fromJSON(e.showPolicy):void 0,episodePolicy:R(e.episodePolicy)?t.ListPolicy.fromJSON(e.episodePolicy):void 0}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e)):n.item=[],void 0!==e.preferCached&&(n.preferCached=e.preferCached),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.showPolicy&&(n.showPolicy=e.showPolicy?t.HeaderPolicy.toJSON(e.showPolicy):void 0),void 0!==e.episodePolicy&&(n.episodePolicy=e.episodePolicy?t.ListPolicy.toJSON(e.episodePolicy):void 0),n},fromPartial(e){const n={item:[],preferCached:!1,updateThrottling:0,showPolicy:void 0,episodePolicy:void 0};return n.item=e.item?.map((e=>e))||[],n.preferCached=e.preferCached??!1,n.updateThrottling=e.updateThrottling??0,n.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?t.HeaderPolicy.fromPartial(e.showPolicy):void 0,n.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?t.ListPolicy.fromPartial(e.episodePolicy):void 0,n}},t.GetDecorateResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.response&&c.Response.encode(e.response,n.uint32(10).fork()).ldelim(),void 0!==e.status&&t.Status.encode(e.status,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:void 0,status:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.response=c.Response.decode(o,o.uint32());break;case 2:a.status=t.Status.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({response:R(e.response)?c.Response.fromJSON(e.response):void 0,status:R(e.status)?t.Status.fromJSON(e.status):void 0}),toJSON(e){const n={};return void 0!==e.response&&(n.response=e.response?c.Response.toJSON(e.response):void 0),void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),n},fromPartial(e){const n={response:void 0,status:void 0};return n.response=void 0!==e.response&&null!==e.response?c.Response.fromPartial(e.response):void 0,n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n}},t.GetUnfinishedEpisodesRequest={encode:(e,n=r.default.Writer.create())=>(0!==e.rangeStart&&n.uint32(8).int32(e.rangeStart),void 0!==e.rangeLength&&n.uint32(16).int32(e.rangeLength),""!==e.sort&&n.uint32(26).string(e.sort),""!==e.filter&&n.uint32(34).string(e.filter),0!==e.updateThrottling&&n.uint32(40).uint32(e.updateThrottling),0!==e.absTimeLeftTolerance&&n.uint32(48).uint32(e.absTimeLeftTolerance),0!==e.relTimeLeftTolerance&&n.uint32(57).double(e.relTimeLeftTolerance),!0===e.preferCached&&n.uint32(64).bool(e.preferCached),void 0!==e.policy&&t.ListPolicy.encode(e.policy,n.uint32(74).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={rangeStart:0,rangeLength:void 0,sort:"",filter:"",updateThrottling:0,absTimeLeftTolerance:0,relTimeLeftTolerance:0,preferCached:!1,policy:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.rangeStart=o.int32();break;case 2:a.rangeLength=o.int32();break;case 3:a.sort=o.string();break;case 4:a.filter=o.string();break;case 5:a.updateThrottling=o.uint32();break;case 6:a.absTimeLeftTolerance=o.uint32();break;case 7:a.relTimeLeftTolerance=o.double();break;case 8:a.preferCached=o.bool();break;case 9:a.policy=t.ListPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({rangeStart:R(e.rangeStart)?Number(e.rangeStart):0,rangeLength:R(e.rangeLength)?Number(e.rangeLength):void 0,sort:R(e.sort)?String(e.sort):"",filter:R(e.filter)?String(e.filter):"",updateThrottling:R(e.updateThrottling)?Number(e.updateThrottling):0,absTimeLeftTolerance:R(e.absTimeLeftTolerance)?Number(e.absTimeLeftTolerance):0,relTimeLeftTolerance:R(e.relTimeLeftTolerance)?Number(e.relTimeLeftTolerance):0,preferCached:!!R(e.preferCached)&&Boolean(e.preferCached),policy:R(e.policy)?t.ListPolicy.fromJSON(e.policy):void 0}),toJSON(e){const n={};return void 0!==e.rangeStart&&(n.rangeStart=Math.round(e.rangeStart)),void 0!==e.rangeLength&&(n.rangeLength=Math.round(e.rangeLength)),void 0!==e.sort&&(n.sort=e.sort),void 0!==e.filter&&(n.filter=e.filter),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.absTimeLeftTolerance&&(n.absTimeLeftTolerance=Math.round(e.absTimeLeftTolerance)),void 0!==e.relTimeLeftTolerance&&(n.relTimeLeftTolerance=e.relTimeLeftTolerance),void 0!==e.preferCached&&(n.preferCached=e.preferCached),void 0!==e.policy&&(n.policy=e.policy?t.ListPolicy.toJSON(e.policy):void 0),n},fromPartial(e){const n={rangeStart:0,rangeLength:void 0,sort:"",filter:"",updateThrottling:0,absTimeLeftTolerance:0,relTimeLeftTolerance:0,preferCached:!1,policy:void 0};return n.rangeStart=e.rangeStart??0,n.rangeLength=e.rangeLength??void 0,n.sort=e.sort??"",n.filter=e.filter??"",n.updateThrottling=e.updateThrottling??0,n.absTimeLeftTolerance=e.absTimeLeftTolerance??0,n.relTimeLeftTolerance=e.relTimeLeftTolerance??0,n.preferCached=e.preferCached??!1,n.policy=void 0!==e.policy&&null!==e.policy?t.ListPolicy.fromPartial(e.policy):void 0,n}},t.GetUnfinishedEpisodesResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.response&&u.Response.encode(e.response,n.uint32(10).fork()).ldelim(),void 0!==e.status&&t.Status.encode(e.status,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:void 0,status:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.response=u.Response.decode(o,o.uint32());break;case 2:a.status=t.Status.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({response:R(e.response)?u.Response.fromJSON(e.response):void 0,status:R(e.status)?t.Status.fromJSON(e.status):void 0}),toJSON(e){const n={};return void 0!==e.response&&(n.response=e.response?u.Response.toJSON(e.response):void 0),void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),n},fromPartial(e){const n={response:void 0,status:void 0};return n.response=void 0!==e.response&&null!==e.response?u.Response.fromPartial(e.response):void 0,n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12158:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.show_cosmos.proto",t.ShowCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},20565:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Episode=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(30707),s=n(16293),l=n(35176);function c(e){return null!=e}t.protobufPackage="spotify.show_cosmos.unfinished_episodes_request.proto",t.Episode={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episodeMetadata&&a.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&s.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&s.EpisodeOfflineState.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&l.EpisodePlayState.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.episodeMetadata=a.EpisodeMetadata.decode(n,n.uint32());break;case 2:i.episodeCollectionState=s.EpisodeCollectionState.decode(n,n.uint32());break;case 3:i.episodeOfflineState=s.EpisodeOfflineState.decode(n,n.uint32());break;case 4:i.episodePlayState=l.EpisodePlayState.decode(n,n.uint32());break;case 5:i.link=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({episodeMetadata:c(e.episodeMetadata)?a.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:c(e.episodeCollectionState)?s.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:c(e.episodeOfflineState)?s.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:c(e.episodePlayState)?l.EpisodePlayState.fromJSON(e.episodePlayState):void 0,link:c(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?a.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?s.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?s.EpisodeOfflineState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?l.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?s.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?l.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t.link=e.link??"",t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.episode)t.Episode.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episode:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==2)a.episode.push(t.Episode.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({episode:Array.isArray(e?.episode)?e.episode.map((e=>t.Episode.fromJSON(e))):[]}),toJSON(e){const n={};return e.episode?n.episode=e.episode.map((e=>e?t.Episode.toJSON(e):void 0)):n.episode=[],n},fromPartial(e){const n={episode:[]};return n.episode=e.episode?.map((e=>t.Episode.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},56050:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StorageClient=void 0;const o=n(33892),i=n(17816),r=n(61477);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getCacheSizeLimit(e){const t="spotify.storage.esperanto.proto.Storage",n="GetCacheSizeLimit",r=i.GetCacheSizeLimitParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CacheSizeLimit.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}setCacheSizeLimit(e){const t="spotify.storage.esperanto.proto.Storage",n="SetCacheSizeLimit",a=i.SetCacheSizeLimitParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}deleteExpiredItems(e){const t="spotify.storage.esperanto.proto.Storage",n="DeleteExpiredItems",a=i.DeleteExpiredItemsParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}deleteUnlockedItems(e){const t="spotify.storage.esperanto.proto.Storage",n="DeleteUnlockedItems",a=i.DeleteUnlockedItemsParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getStats(e){const t="spotify.storage.esperanto.proto.Storage",n="GetStats",r=i.GetStatsParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.Stats.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getFileRanges(e){const t="spotify.storage.esperanto.proto.Storage",n="GetFileRanges",r=i.GetFileRangesParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.FileRanges.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.storage.esperanto.proto.Storage";static DECODERS={GetCacheSizeLimit:{request:i.GetCacheSizeLimitParams.decode,response:i.CacheSizeLimit.decode},SetCacheSizeLimit:{request:i.SetCacheSizeLimitParams.decode,response:r.Empty.decode},DeleteExpiredItems:{request:i.DeleteExpiredItemsParams.decode,response:r.Empty.decode},DeleteUnlockedItems:{request:i.DeleteUnlockedItemsParams.decode,response:r.Empty.decode},GetStats:{request:i.GetStatsParams.decode,response:i.Stats.decode},GetFileRanges:{request:i.GetFileRangesParams.decode,response:i.FileRanges.decode}}}t.StorageClient=a},60259:(e,t,n)=>{"use strict";t.tu=t.KQ=void 0;const o=n(56050);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return o.StorageClient}}),t.tu=function(e){return new o.StorageClient(e)}},17816:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetFileRangesParams=t.FileRanges_Range=t.FileRanges=t.GetStatsParams=t.Stats=t.RealmStats=t.DeleteUnlockedItemsParams=t.DeleteExpiredItemsParams=t.SetCacheSizeLimitParams=t.GetCacheSizeLimitParams=t.CacheSizeLimit=t.realmToJSON=t.realmFromJSON=t.Realm=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"STREAM":return a.STREAM;case 1:case"COVER_ART":return a.COVER_ART;case 4:case"PLAYLIST":return a.PLAYLIST;case 5:case"AUDIO_SHOW":return a.AUDIO_SHOW;case 7:case"HEAD_FILES":return a.HEAD_FILES;case 8:case"EXTERNAL_AUDIO_SHOW":return a.EXTERNAL_AUDIO_SHOW;case 9:case"KARAOKE_MASK":return a.KARAOKE_MASK;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.STREAM:return"STREAM";case a.COVER_ART:return"COVER_ART";case a.PLAYLIST:return"PLAYLIST";case a.AUDIO_SHOW:return"AUDIO_SHOW";case a.HEAD_FILES:return"HEAD_FILES";case a.EXTERNAL_AUDIO_SHOW:return"EXTERNAL_AUDIO_SHOW";case a.KARAOKE_MASK:return"KARAOKE_MASK";default:return"UNKNOWN"}}function c(e){return e.toString()}function u(e){return null!=e}t.protobufPackage="spotify.storage.esperanto.proto",function(e){e[e.STREAM=0]="STREAM",e[e.COVER_ART=1]="COVER_ART",e[e.PLAYLIST=4]="PLAYLIST",e[e.AUDIO_SHOW=5]="AUDIO_SHOW",e[e.HEAD_FILES=7]="HEAD_FILES",e[e.EXTERNAL_AUDIO_SHOW=8]="EXTERNAL_AUDIO_SHOW",e[e.KARAOKE_MASK=9]="KARAOKE_MASK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Realm||(t.Realm={})),t.realmFromJSON=s,t.realmToJSON=l,t.CacheSizeLimit={encode:(e,t=r.default.Writer.create())=>("0"!==e.size&&t.uint32(8).int64(e.size),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={size:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.size=c(n.int64());else n.skipType(7&e)}return i},fromJSON:e=>({size:u(e.size)?String(e.size):"0"}),toJSON(e){const t={};return void 0!==e.size&&(t.size=e.size),t},fromPartial(e){const t={size:"0"};return t.size=e.size??"0",t}},t.GetCacheSizeLimitParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.SetCacheSizeLimitParams={encode:(e,n=r.default.Writer.create())=>(void 0!==e.limit&&t.CacheSizeLimit.encode(e.limit,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={limit:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.limit=t.CacheSizeLimit.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({limit:u(e.limit)?t.CacheSizeLimit.fromJSON(e.limit):void 0}),toJSON(e){const n={};return void 0!==e.limit&&(n.limit=e.limit?t.CacheSizeLimit.toJSON(e.limit):void 0),n},fromPartial(e){const n={limit:void 0};return n.limit=void 0!==e.limit&&null!==e.limit?t.CacheSizeLimit.fromPartial(e.limit):void 0,n}},t.DeleteExpiredItemsParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.DeleteUnlockedItemsParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.RealmStats={encode:(e,t=r.default.Writer.create())=>(0!==e.realm&&t.uint32(8).int32(e.realm),"0"!==e.size&&t.uint32(16).int64(e.size),"0"!==e.numEntries&&t.uint32(24).int64(e.numEntries),"0"!==e.numCompleteEntries&&t.uint32(32).int64(e.numCompleteEntries),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={realm:0,size:"0",numEntries:"0",numCompleteEntries:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.realm=n.int32();break;case 2:i.size=c(n.int64());break;case 3:i.numEntries=c(n.int64());break;case 4:i.numCompleteEntries=c(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({realm:u(e.realm)?s(e.realm):0,size:u(e.size)?String(e.size):"0",numEntries:u(e.numEntries)?String(e.numEntries):"0",numCompleteEntries:u(e.numCompleteEntries)?String(e.numCompleteEntries):"0"}),toJSON(e){const t={};return void 0!==e.realm&&(t.realm=l(e.realm)),void 0!==e.size&&(t.size=e.size),void 0!==e.numEntries&&(t.numEntries=e.numEntries),void 0!==e.numCompleteEntries&&(t.numCompleteEntries=e.numCompleteEntries),t},fromPartial(e){const t={realm:0,size:"0",numEntries:"0",numCompleteEntries:"0"};return t.realm=e.realm??0,t.size=e.size??"0",t.numEntries=e.numEntries??"0",t.numCompleteEntries=e.numCompleteEntries??"0",t}},t.Stats={encode(e,n=r.default.Writer.create()){""!==e.cacheId&&n.uint32(10).string(e.cacheId),"0"!==e.creationDateSec&&n.uint32(16).int64(e.creationDateSec),"0"!==e.maxCacheSize&&n.uint32(24).int64(e.maxCacheSize),"0"!==e.currentSize&&n.uint32(32).int64(e.currentSize),"0"!==e.currentLockedSize&&n.uint32(40).int64(e.currentLockedSize),"0"!==e.freeSpace&&n.uint32(48).int64(e.freeSpace),"0"!==e.totalSpace&&n.uint32(56).int64(e.totalSpace),"0"!==e.currentNumfiles&&n.uint32(64).int64(e.currentNumfiles);for(const o of e.realmStats)t.RealmStats.encode(o,n.uint32(74).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={cacheId:"",creationDateSec:"0",maxCacheSize:"0",currentSize:"0",currentLockedSize:"0",freeSpace:"0",totalSpace:"0",currentNumfiles:"0",realmStats:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.cacheId=o.string();break;case 2:a.creationDateSec=c(o.int64());break;case 3:a.maxCacheSize=c(o.int64());break;case 4:a.currentSize=c(o.int64());break;case 5:a.currentLockedSize=c(o.int64());break;case 6:a.freeSpace=c(o.int64());break;case 7:a.totalSpace=c(o.int64());break;case 8:a.currentNumfiles=c(o.int64());break;case 9:a.realmStats.push(t.RealmStats.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({cacheId:u(e.cacheId)?String(e.cacheId):"",creationDateSec:u(e.creationDateSec)?String(e.creationDateSec):"0",maxCacheSize:u(e.maxCacheSize)?String(e.maxCacheSize):"0",currentSize:u(e.currentSize)?String(e.currentSize):"0",currentLockedSize:u(e.currentLockedSize)?String(e.currentLockedSize):"0",freeSpace:u(e.freeSpace)?String(e.freeSpace):"0",totalSpace:u(e.totalSpace)?String(e.totalSpace):"0",currentNumfiles:u(e.currentNumfiles)?String(e.currentNumfiles):"0",realmStats:Array.isArray(e?.realmStats)?e.realmStats.map((e=>t.RealmStats.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.cacheId&&(n.cacheId=e.cacheId),void 0!==e.creationDateSec&&(n.creationDateSec=e.creationDateSec),void 0!==e.maxCacheSize&&(n.maxCacheSize=e.maxCacheSize),void 0!==e.currentSize&&(n.currentSize=e.currentSize),void 0!==e.currentLockedSize&&(n.currentLockedSize=e.currentLockedSize),void 0!==e.freeSpace&&(n.freeSpace=e.freeSpace),void 0!==e.totalSpace&&(n.totalSpace=e.totalSpace),void 0!==e.currentNumfiles&&(n.currentNumfiles=e.currentNumfiles),e.realmStats?n.realmStats=e.realmStats.map((e=>e?t.RealmStats.toJSON(e):void 0)):n.realmStats=[],n},fromPartial(e){const n={cacheId:"",creationDateSec:"0",maxCacheSize:"0",currentSize:"0",currentLockedSize:"0",freeSpace:"0",totalSpace:"0",currentNumfiles:"0",realmStats:[]};return n.cacheId=e.cacheId??"",n.creationDateSec=e.creationDateSec??"0",n.maxCacheSize=e.maxCacheSize??"0",n.currentSize=e.currentSize??"0",n.currentLockedSize=e.currentLockedSize??"0",n.freeSpace=e.freeSpace??"0",n.totalSpace=e.totalSpace??"0",n.currentNumfiles=e.currentNumfiles??"0",n.realmStats=e.realmStats?.map((e=>t.RealmStats.fromPartial(e)))||[],n}},t.GetStatsParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.FileRanges={encode(e,n=r.default.Writer.create()){!0===e.byteSizeKnown&&n.uint32(8).bool(e.byteSizeKnown),"0"!==e.byteSize&&n.uint32(16).uint64(e.byteSize);for(const o of e.ranges)t.FileRanges_Range.encode(o,n.uint32(26).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={byteSizeKnown:!1,byteSize:"0",ranges:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.byteSizeKnown=o.bool();break;case 2:a.byteSize=c(o.uint64());break;case 3:a.ranges.push(t.FileRanges_Range.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({byteSizeKnown:!!u(e.byteSizeKnown)&&Boolean(e.byteSizeKnown),byteSize:u(e.byteSize)?String(e.byteSize):"0",ranges:Array.isArray(e?.ranges)?e.ranges.map((e=>t.FileRanges_Range.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.byteSizeKnown&&(n.byteSizeKnown=e.byteSizeKnown),void 0!==e.byteSize&&(n.byteSize=e.byteSize),e.ranges?n.ranges=e.ranges.map((e=>e?t.FileRanges_Range.toJSON(e):void 0)):n.ranges=[],n},fromPartial(e){const n={byteSizeKnown:!1,byteSize:"0",ranges:[]};return n.byteSizeKnown=e.byteSizeKnown??!1,n.byteSize=e.byteSize??"0",n.ranges=e.ranges?.map((e=>t.FileRanges_Range.fromPartial(e)))||[],n}},t.FileRanges_Range={encode:(e,t=r.default.Writer.create())=>("0"!==e.fromByte&&t.uint32(8).uint64(e.fromByte),"0"!==e.toByte&&t.uint32(16).uint64(e.toByte),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={fromByte:"0",toByte:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.fromByte=c(n.uint64());break;case 2:i.toByte=c(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromByte:u(e.fromByte)?String(e.fromByte):"0",toByte:u(e.toByte)?String(e.toByte):"0"}),toJSON(e){const t={};return void 0!==e.fromByte&&(t.fromByte=e.fromByte),void 0!==e.toByte&&(t.toByte=e.toByte),t},fromPartial(e){const t={fromByte:"0",toByte:"0"};return t.fromByte=e.fromByte??"0",t.toByte=e.toByte??"0",t}},t.GetFileRangesParams={encode:(e,t=r.default.Writer.create())=>(0!==e.realm&&t.uint32(8).int32(e.realm),""!==e.fileId&&t.uint32(18).string(e.fileId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={realm:0,fileId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.realm=n.int32();break;case 2:i.fileId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({realm:u(e.realm)?s(e.realm):0,fileId:u(e.fileId)?String(e.fileId):""}),toJSON(e){const t={};return void 0!==e.realm&&(t.realm=l(e.realm)),void 0!==e.fileId&&(t.fileId=e.fileId),t},fromPartial(e){const t={realm:0,fileId:""};return t.realm=e.realm??0,t.fileId=e.fileId??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},61477:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},16390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryServiceClient=void 0;const o=n(33892),i=n(95773),r=n(50010),a=n(24972),s=n(93352),l=n(56868),c=n(10415),u=n(6323),d=n(85352);class p{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="Contains",a=i.YourLibraryContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.YourLibraryContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamContains(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",a="StreamContains",s=i.YourLibraryContainsRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.YourLibraryContainsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}all(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="All",i=a.YourLibraryRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.YourLibraryResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamAll(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",i="StreamAll",r=a.YourLibraryRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=s.YourLibraryResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}pin(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="Pin",i=l.PinRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.PinResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}unPin(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="UnPin",i=l.PinRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.PinResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}movePin(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="MovePin",i=l.MovePinRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.PinResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}decorate(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="Decorate",i=c.YourLibraryDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=u.YourLibraryDecorateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamDecorate(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",i="StreamDecorate",r=c.YourLibraryDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=u.YourLibraryDecorateResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}isCurated(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="IsCurated",i=d.IsCuratedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.IsCuratedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamIsCurated(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",i="StreamIsCurated",r=d.IsCuratedRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.IsCuratedResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}static SERVICE_ID="spotify.your_library_esperanto.proto.YourLibraryService";static DECODERS={Contains:{request:i.YourLibraryContainsRequest.decode,response:r.YourLibraryContainsResponse.decode},StreamContains:{request:i.YourLibraryContainsRequest.decode,response:r.YourLibraryContainsResponse.decode},All:{request:a.YourLibraryRequest.decode,response:s.YourLibraryResponse.decode},StreamAll:{request:a.YourLibraryRequest.decode,response:s.YourLibraryResponse.decode},Pin:{request:l.PinRequest.decode,response:l.PinResponse.decode},UnPin:{request:l.PinRequest.decode,response:l.PinResponse.decode},MovePin:{request:l.MovePinRequest.decode,response:l.PinResponse.decode},Decorate:{request:c.YourLibraryDecorateRequest.decode,response:u.YourLibraryDecorateResponse.decode},StreamDecorate:{request:c.YourLibraryDecorateRequest.decode,response:u.YourLibraryDecorateResponse.decode},IsCurated:{request:d.IsCuratedRequest.decode,response:d.IsCuratedResponse.decode},StreamIsCurated:{request:d.IsCuratedRequest.decode,response:d.IsCuratedResponse.decode}}}t.YourLibraryServiceClient=p},95375:(e,t,n)=>{"use strict";t.N6=t.oP=t.Pn=void 0;var o=n(16390);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return o.YourLibraryServiceClient}});var i=n(56868);Object.defineProperty(t,"oP",{enumerable:!0,get:function(){return i.PinRequest}});var r=n(95773);var a=n(50010);var s=n(10415);var l=n(6323);var c=n(24972);Object.defineProperty(t,"N6",{enumerable:!0,get:function(){return c.YourLibraryRequest}});var u=n(93352)},85352:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsCuratedItem=t.IsCuratedResponse=t.IsCuratedRequest=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.IsCuratedRequest={encode(e,t=i.default.Writer.create()){0!==e.updateThrottling&&t.uint32(8).int32(e.updateThrottling);for(const n of e.uri)t.uint32(18).string(n);return""!==e.contextUri&&t.uint32(26).string(e.contextUri),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={updateThrottling:0,uri:[],contextUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.updateThrottling=n.int32();break;case 2:r.uri.push(n.string());break;case 3:r.contextUri=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({updateThrottling:r(e.updateThrottling)?Number(e.updateThrottling):0,uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:r(e.contextUri)?String(e.contextUri):""}),toJSON(e){const t={};return void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],void 0!==e.contextUri&&(t.contextUri=e.contextUri),t},fromPartial(e){const t={updateThrottling:0,uri:[],contextUri:""};return t.updateThrottling=e.updateThrottling??0,t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t}},t.IsCuratedResponse={encode(e,n=i.default.Writer.create()){for(const o of e.item)t.IsCuratedItem.encode(o,n.uint32(10).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={item:[],statusCode:0,error:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.item.push(t.IsCuratedItem.decode(o,o.uint32()));break;case 98:a.statusCode=o.uint32();break;case 99:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.IsCuratedItem.fromJSON(e))):[],statusCode:r(e.statusCode)?Number(e.statusCode):0,error:r(e.error)?String(e.error):""}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.IsCuratedItem.toJSON(e):void 0)):n.item=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={item:[],statusCode:0,error:""};return n.item=e.item?.map((e=>t.IsCuratedItem.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}},t.IsCuratedItem={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.isCurated&&t.uint32(16).bool(e.isCurated),!0===e.isInCollection&&t.uint32(24).bool(e.isInCollection),!0===e.isBanned&&t.uint32(32).bool(e.isBanned),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",isCurated:!1,isInCollection:!1,isBanned:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.isCurated=n.bool();break;case 3:r.isInCollection=n.bool();break;case 4:r.isBanned=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:r(e.uri)?String(e.uri):"",isCurated:!!r(e.isCurated)&&Boolean(e.isCurated),isInCollection:!!r(e.isInCollection)&&Boolean(e.isInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.isCurated&&(t.isCurated=e.isCurated),void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),t},fromPartial(e){const t={uri:"",isCurated:!1,isInCollection:!1,isBanned:!1};return t.uri=e.uri??"",t.isCurated=e.isCurated??!1,t.isInCollection=e.isInCollection??!1,t.isBanned=e.isBanned??!1,t}}},56868:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PinItem=t.PinResponse=t.MovePinRequest=t.PinRequest=t.pinResponse_PinStatusToJSON=t.pinResponse_PinStatusFromJSON=t.PinResponse_PinStatus=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"UNKNOWN":return r.UNKNOWN;case 1:case"PINNED":return r.PINNED;case 2:case"NOT_PINNED":return r.NOT_PINNED;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.UNKNOWN:return"UNKNOWN";case r.PINNED:return"PINNED";case r.NOT_PINNED:return"NOT_PINNED";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.PINNED=1]="PINNED",e[e.NOT_PINNED=2]="NOT_PINNED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.PinResponse_PinStatus||(t.PinResponse_PinStatus={})),t.pinResponse_PinStatusFromJSON=a,t.pinResponse_PinStatusToJSON=s,t.PinRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.afterUri&&t.uint32(18).string(e.afterUri),void 0!==e.beforeUri&&t.uint32(26).string(e.beforeUri),void 0!==e.first&&t.uint32(32).bool(e.first),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",afterUri:void 0,beforeUri:void 0,first:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.afterUri=n.string();break;case 3:r.beforeUri=n.string();break;case 4:r.first=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",afterUri:l(e.afterUri)?String(e.afterUri):void 0,beforeUri:l(e.beforeUri)?String(e.beforeUri):void 0,first:l(e.first)?Boolean(e.first):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.afterUri&&(t.afterUri=e.afterUri),void 0!==e.beforeUri&&(t.beforeUri=e.beforeUri),void 0!==e.first&&(t.first=e.first),t},fromPartial(e){const t={uri:"",afterUri:void 0,beforeUri:void 0,first:void 0};return t.uri=e.uri??"",t.afterUri=e.afterUri??void 0,t.beforeUri=e.beforeUri??void 0,t.first=e.first??void 0,t}},t.MovePinRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.moveUri&&t.uint32(10).string(e.moveUri),void 0!==e.afterUri&&t.uint32(18).string(e.afterUri),void 0!==e.beforeUri&&t.uint32(26).string(e.beforeUri),void 0!==e.first&&t.uint32(32).bool(e.first),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={moveUri:"",afterUri:void 0,beforeUri:void 0,first:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.moveUri=n.string();break;case 2:r.afterUri=n.string();break;case 3:r.beforeUri=n.string();break;case 4:r.first=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({moveUri:l(e.moveUri)?String(e.moveUri):"",afterUri:l(e.afterUri)?String(e.afterUri):void 0,beforeUri:l(e.beforeUri)?String(e.beforeUri):void 0,first:l(e.first)?Boolean(e.first):void 0}),toJSON(e){const t={};return void 0!==e.moveUri&&(t.moveUri=e.moveUri),void 0!==e.afterUri&&(t.afterUri=e.afterUri),void 0!==e.beforeUri&&(t.beforeUri=e.beforeUri),void 0!==e.first&&(t.first=e.first),t},fromPartial(e){const t={moveUri:"",afterUri:void 0,beforeUri:void 0,first:void 0};return t.moveUri=e.moveUri??"",t.afterUri=e.afterUri??void 0,t.beforeUri=e.beforeUri??void 0,t.first=e.first??void 0,t}},t.PinResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),!0===e.hasMaximumPinnedItems&&t.uint32(16).bool(e.hasMaximumPinnedItems),0!==e.maximumPinnedItems&&t.uint32(24).int32(e.maximumPinnedItems),0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,hasMaximumPinnedItems:!1,maximumPinnedItems:0,statusCode:0,error:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.status=n.int32();break;case 2:r.hasMaximumPinnedItems=n.bool();break;case 3:r.maximumPinnedItems=n.int32();break;case 98:r.statusCode=n.uint32();break;case 99:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({status:l(e.status)?a(e.status):0,hasMaximumPinnedItems:!!l(e.hasMaximumPinnedItems)&&Boolean(e.hasMaximumPinnedItems),maximumPinnedItems:l(e.maximumPinnedItems)?Number(e.maximumPinnedItems):0,statusCode:l(e.statusCode)?Number(e.statusCode):0,error:l(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.status&&(t.status=s(e.status)),void 0!==e.hasMaximumPinnedItems&&(t.hasMaximumPinnedItems=e.hasMaximumPinnedItems),void 0!==e.maximumPinnedItems&&(t.maximumPinnedItems=Math.round(e.maximumPinnedItems)),void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={status:0,hasMaximumPinnedItems:!1,maximumPinnedItems:0,statusCode:0,error:""};return t.status=e.status??0,t.hasMaximumPinnedItems=e.hasMaximumPinnedItems??!1,t.maximumPinnedItems=e.maximumPinnedItems??0,t.statusCode=e.statusCode??0,t.error=e.error??"",t}},t.PinItem={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.inLibrary&&t.uint32(16).bool(e.inLibrary),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",inLibrary:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.inLibrary=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",inLibrary:!!l(e.inLibrary)&&Boolean(e.inLibrary)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.inLibrary&&(t.inLibrary=e.inLibrary),t},fromPartial(e){const t={uri:"",inLibrary:!1};return t.uri=e.uri??"",t.inLibrary=e.inLibrary??!1,t}}},9144:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibrarySortOrder=t.YourLibraryFilters=t.YourLibraryPseudoPlaylistConfig=t.YourLibraryLabelAndImage=t.yourLibrarySortOrder_SortOrderToJSON=t.yourLibrarySortOrder_SortOrderFromJSON=t.YourLibrarySortOrder_SortOrder=t.yourLibraryFilters_FilterToJSON=t.yourLibraryFilters_FilterFromJSON=t.YourLibraryFilters_Filter=t.protobufPackage=void 0;const i=o(n(33892));var r,a;function s(e){switch(e){case 0:case"ALBUM":return r.ALBUM;case 1:case"ARTIST":return r.ARTIST;case 2:case"PLAYLIST":return r.PLAYLIST;case 3:case"SHOW":return r.SHOW;case 4:case"BOOK":return r.BOOK;case 100:case"DOWNLOADED":return r.DOWNLOADED;case 101:case"WRITABLE":return r.WRITABLE;case 102:case"BY_YOU":return r.BY_YOU;case 103:case"BY_SPOTIFY":return r.BY_SPOTIFY;case 104:case"UNPLAYED":return r.UNPLAYED;case 105:case"IN_PROGRESS":return r.IN_PROGRESS;default:return r.UNRECOGNIZED}}function l(e){switch(e){case r.ALBUM:return"ALBUM";case r.ARTIST:return"ARTIST";case r.PLAYLIST:return"PLAYLIST";case r.SHOW:return"SHOW";case r.BOOK:return"BOOK";case r.DOWNLOADED:return"DOWNLOADED";case r.WRITABLE:return"WRITABLE";case r.BY_YOU:return"BY_YOU";case r.BY_SPOTIFY:return"BY_SPOTIFY";case r.UNPLAYED:return"UNPLAYED";case r.IN_PROGRESS:return"IN_PROGRESS";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(e){switch(e){case 0:case"NAME":return a.NAME;case 1:case"RECENTLY_ADDED":return a.RECENTLY_ADDED;case 2:case"CREATOR":return a.CREATOR;case 3:case"RECENTLY_PLAYED":return a.RECENTLY_PLAYED;case 4:case"CUSTOM":return a.CUSTOM;case 5:case"RECENTLY_UPDATED":return a.RECENTLY_UPDATED;case 6:case"RECENTLY_PLAYED_OR_ADDED":return a.RECENTLY_PLAYED_OR_ADDED;case 7:case"RELEVANCE":return a.RELEVANCE;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.NAME:return"NAME";case a.RECENTLY_ADDED:return"RECENTLY_ADDED";case a.CREATOR:return"CREATOR";case a.RECENTLY_PLAYED:return"RECENTLY_PLAYED";case a.CUSTOM:return"CUSTOM";case a.RECENTLY_UPDATED:return"RECENTLY_UPDATED";case a.RECENTLY_PLAYED_OR_ADDED:return"RECENTLY_PLAYED_OR_ADDED";case a.RELEVANCE:return"RELEVANCE";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.ALBUM=0]="ALBUM",e[e.ARTIST=1]="ARTIST",e[e.PLAYLIST=2]="PLAYLIST",e[e.SHOW=3]="SHOW",e[e.BOOK=4]="BOOK",e[e.DOWNLOADED=100]="DOWNLOADED",e[e.WRITABLE=101]="WRITABLE",e[e.BY_YOU=102]="BY_YOU",e[e.BY_SPOTIFY=103]="BY_SPOTIFY",e[e.UNPLAYED=104]="UNPLAYED",e[e.IN_PROGRESS=105]="IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.YourLibraryFilters_Filter||(t.YourLibraryFilters_Filter={})),t.yourLibraryFilters_FilterFromJSON=s,t.yourLibraryFilters_FilterToJSON=l,function(e){e[e.NAME=0]="NAME",e[e.RECENTLY_ADDED=1]="RECENTLY_ADDED",e[e.CREATOR=2]="CREATOR",e[e.RECENTLY_PLAYED=3]="RECENTLY_PLAYED",e[e.CUSTOM=4]="CUSTOM",e[e.RECENTLY_UPDATED=5]="RECENTLY_UPDATED",e[e.RECENTLY_PLAYED_OR_ADDED=6]="RECENTLY_PLAYED_OR_ADDED",e[e.RELEVANCE=7]="RELEVANCE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.YourLibrarySortOrder_SortOrder||(t.YourLibrarySortOrder_SortOrder={})),t.yourLibrarySortOrder_SortOrderFromJSON=c,t.yourLibrarySortOrder_SortOrderToJSON=u,t.YourLibraryLabelAndImage={encode:(e,t=i.default.Writer.create())=>(""!==e.label&&t.uint32(10).string(e.label),""!==e.image&&t.uint32(18).string(e.image),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={label:"",image:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.label=n.string();break;case 2:r.image=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({label:d(e.label)?String(e.label):"",image:d(e.image)?String(e.image):""}),toJSON(e){const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.image&&(t.image=e.image),t},fromPartial(e){const t={label:"",image:""};return t.label=e.label??"",t.image=e.image??"",t}},t.YourLibraryPseudoPlaylistConfig={encode:(e,n=i.default.Writer.create())=>(void 0!==e.likedSongs&&t.YourLibraryLabelAndImage.encode(e.likedSongs,n.uint32(10).fork()).ldelim(),void 0!==e.yourEpisodes&&t.YourLibraryLabelAndImage.encode(e.yourEpisodes,n.uint32(18).fork()).ldelim(),void 0!==e.newEpisodes&&t.YourLibraryLabelAndImage.encode(e.newEpisodes,n.uint32(26).fork()).ldelim(),void 0!==e.localFiles&&t.YourLibraryLabelAndImage.encode(e.localFiles,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.likedSongs=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;case 2:a.yourEpisodes=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;case 3:a.newEpisodes=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;case 4:a.localFiles=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({likedSongs:d(e.likedSongs)?t.YourLibraryLabelAndImage.fromJSON(e.likedSongs):void 0,yourEpisodes:d(e.yourEpisodes)?t.YourLibraryLabelAndImage.fromJSON(e.yourEpisodes):void 0,newEpisodes:d(e.newEpisodes)?t.YourLibraryLabelAndImage.fromJSON(e.newEpisodes):void 0,localFiles:d(e.localFiles)?t.YourLibraryLabelAndImage.fromJSON(e.localFiles):void 0}),toJSON(e){const n={};return void 0!==e.likedSongs&&(n.likedSongs=e.likedSongs?t.YourLibraryLabelAndImage.toJSON(e.likedSongs):void 0),void 0!==e.yourEpisodes&&(n.yourEpisodes=e.yourEpisodes?t.YourLibraryLabelAndImage.toJSON(e.yourEpisodes):void 0),void 0!==e.newEpisodes&&(n.newEpisodes=e.newEpisodes?t.YourLibraryLabelAndImage.toJSON(e.newEpisodes):void 0),void 0!==e.localFiles&&(n.localFiles=e.localFiles?t.YourLibraryLabelAndImage.toJSON(e.localFiles):void 0),n},fromPartial(e){const n={likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0};return n.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?t.YourLibraryLabelAndImage.fromPartial(e.likedSongs):void 0,n.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.YourLibraryLabelAndImage.fromPartial(e.yourEpisodes):void 0,n.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?t.YourLibraryLabelAndImage.fromPartial(e.newEpisodes):void 0,n.localFiles=void 0!==e.localFiles&&null!==e.localFiles?t.YourLibraryLabelAndImage.fromPartial(e.localFiles):void 0,n}},t.YourLibraryFilters={encode(e,t=i.default.Writer.create()){t.uint32(10).fork();for(const n of e.filter)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={filter:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.filter.push(n.int32())}else r.filter.push(n.int32());else n.skipType(7&e)}return r},fromJSON:e=>({filter:Array.isArray(e?.filter)?e.filter.map((e=>s(e))):[]}),toJSON(e){const t={};return e.filter?t.filter=e.filter.map((e=>l(e))):t.filter=[],t},fromPartial(e){const t={filter:[]};return t.filter=e.filter?.map((e=>e))||[],t}},t.YourLibrarySortOrder={encode:(e,t=i.default.Writer.create())=>(0!==e.sortOrder&&t.uint32(8).int32(e.sortOrder),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sortOrder:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.sortOrder=n.int32();else n.skipType(7&e)}return r},fromJSON:e=>({sortOrder:d(e.sortOrder)?c(e.sortOrder):0}),toJSON(e){const t={};return void 0!==e.sortOrder&&(t.sortOrder=u(e.sortOrder)),t},fromPartial(e){const t={sortOrder:0};return t.sortOrder=e.sortOrder??0,t}}},95773:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryContainsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(9144);function a(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryContainsRequest={encode(e,t=i.default.Writer.create()){for(const n of e.requestedUri)t.uint32(26).string(n);return void 0!==e.pseudoPlaylistConfig&&r.YourLibraryPseudoPlaylistConfig.encode(e.pseudoPlaylistConfig,t.uint32(34).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(40).int32(e.updateThrottling),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 3:a.requestedUri.push(n.string());break;case 4:a.pseudoPlaylistConfig=r.YourLibraryPseudoPlaylistConfig.decode(n,n.uint32());break;case 5:a.updateThrottling=n.int32();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({requestedUri:Array.isArray(e?.requestedUri)?e.requestedUri.map((e=>String(e))):[],pseudoPlaylistConfig:a(e.pseudoPlaylistConfig)?r.YourLibraryPseudoPlaylistConfig.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:a(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return e.requestedUri?t.requestedUri=e.requestedUri.map((e=>e)):t.requestedUri=[],void 0!==e.pseudoPlaylistConfig&&(t.pseudoPlaylistConfig=e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.toJSON(e.pseudoPlaylistConfig):void 0),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};return t.requestedUri=e.requestedUri?.map((e=>e))||[],t.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.fromPartial(e.pseudoPlaylistConfig):void 0,t.updateThrottling=e.updateThrottling??0,t}}},50010:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryContainsResponse=t.YourLibraryContainsResponseEntity=t.YourLibraryContainsResponseHeader=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryContainsResponseHeader={encode:(e,t=i.default.Writer.create())=>(!0===e.isLoading&&t.uint32(16).bool(e.isLoading),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isLoading:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==2)r.isLoading=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isLoading:!!r(e.isLoading)&&Boolean(e.isLoading)}),toJSON(e){const t={};return void 0!==e.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={isLoading:!1};return t.isLoading=e.isLoading??!1,t}},t.YourLibraryContainsResponseEntity={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.isInLibrary&&t.uint32(16).bool(e.isInLibrary),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",isInLibrary:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.isInLibrary=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:r(e.uri)?String(e.uri):"",isInLibrary:!!r(e.isInLibrary)&&Boolean(e.isInLibrary)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.isInLibrary&&(t.isInLibrary=e.isInLibrary),t},fromPartial(e){const t={uri:"",isInLibrary:!1};return t.uri=e.uri??"",t.isInLibrary=e.isInLibrary??!1,t}},t.YourLibraryContainsResponse={encode(e,n=i.default.Writer.create()){void 0!==e.header&&t.YourLibraryContainsResponseHeader.encode(e.header,n.uint32(10).fork()).ldelim();for(const o of e.entity)t.YourLibraryContainsResponseEntity.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={header:void 0,entity:[],statusCode:0,error:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.header=t.YourLibraryContainsResponseHeader.decode(o,o.uint32());break;case 2:a.entity.push(t.YourLibraryContainsResponseEntity.decode(o,o.uint32()));break;case 98:a.statusCode=o.uint32();break;case 99:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:r(e.header)?t.YourLibraryContainsResponseHeader.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>t.YourLibraryContainsResponseEntity.fromJSON(e))):[],statusCode:r(e.statusCode)?Number(e.statusCode):0,error:r(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryContainsResponseHeader.toJSON(e.header):void 0),e.entity?n.entity=e.entity.map((e=>e?t.YourLibraryContainsResponseEntity.toJSON(e):void 0)):n.entity=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={header:void 0,entity:[],statusCode:0,error:""};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryContainsResponseHeader.fromPartial(e.header):void 0,n.entity=e.entity?.map((e=>t.YourLibraryContainsResponseEntity.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},10415:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryDecorateRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(9144);function a(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryDecorateRequest={encode(e,t=i.default.Writer.create()){for(const n of e.requestedUri)t.uint32(26).string(n);return void 0!==e.pseudoPlaylistConfig&&r.YourLibraryPseudoPlaylistConfig.encode(e.pseudoPlaylistConfig,t.uint32(50).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(56).int32(e.updateThrottling),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 3:a.requestedUri.push(n.string());break;case 6:a.pseudoPlaylistConfig=r.YourLibraryPseudoPlaylistConfig.decode(n,n.uint32());break;case 7:a.updateThrottling=n.int32();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({requestedUri:Array.isArray(e?.requestedUri)?e.requestedUri.map((e=>String(e))):[],pseudoPlaylistConfig:a(e.pseudoPlaylistConfig)?r.YourLibraryPseudoPlaylistConfig.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:a(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return e.requestedUri?t.requestedUri=e.requestedUri.map((e=>e)):t.requestedUri=[],void 0!==e.pseudoPlaylistConfig&&(t.pseudoPlaylistConfig=e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.toJSON(e.pseudoPlaylistConfig):void 0),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};return t.requestedUri=e.requestedUri?.map((e=>e))||[],t.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.fromPartial(e.pseudoPlaylistConfig):void 0,t.updateThrottling=e.updateThrottling??0,t}}},6323:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryDecorateResponse=t.YourLibraryDecorateResponseHeader=t.protobufPackage=void 0;const i=o(n(33892)),r=n(39266);function a(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryDecorateResponseHeader={encode:(e,t=i.default.Writer.create())=>(!0===e.isLoading&&t.uint32(16).bool(e.isLoading),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isLoading:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==2)r.isLoading=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)}),toJSON(e){const t={};return void 0!==e.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={isLoading:!1};return t.isLoading=e.isLoading??!1,t}},t.YourLibraryDecorateResponse={encode(e,n=i.default.Writer.create()){void 0!==e.header&&t.YourLibraryDecorateResponseHeader.encode(e.header,n.uint32(10).fork()).ldelim();for(const t of e.entity)r.YourLibraryDecoratedEntity.encode(t,n.uint32(18).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={header:void 0,entity:[],statusCode:0,error:""};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.header=t.YourLibraryDecorateResponseHeader.decode(o,o.uint32());break;case 2:s.entity.push(r.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;case 98:s.statusCode=o.uint32();break;case 99:s.error=o.string();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({header:a(e.header)?t.YourLibraryDecorateResponseHeader.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>r.YourLibraryDecoratedEntity.fromJSON(e))):[],statusCode:a(e.statusCode)?Number(e.statusCode):0,error:a(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryDecorateResponseHeader.toJSON(e.header):void 0),e.entity?n.entity=e.entity.map((e=>e?r.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.entity=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={header:void 0,entity:[],statusCode:0,error:""};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryDecorateResponseHeader.fromPartial(e.header):void 0,n.entity=e.entity?.map((e=>r.YourLibraryDecoratedEntity.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},39266:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryAvailableEntityTypes=t.YourLibraryDecoratedEntity=t.YourLibraryBookExtraInfo=t.YourLibraryLocalFilesExtraInfo=t.YourLibraryNewEpisodesExtraInfo=t.YourLibraryYourEpisodesExtraInfo=t.YourLibraryLikedSongsExtraInfo=t.YourLibraryFolderExtraInfo=t.YourLibraryShowExtraInfo=t.YourLibraryPlaylistExtraInfo=t.YourLibraryArtistExtraInfo=t.YourLibraryAlbumExtraInfo=t.Offline=t.YourLibraryEntityInfo=t.yourLibraryBookExtraInfo_AccessToJSON=t.yourLibraryBookExtraInfo_AccessFromJSON=t.YourLibraryBookExtraInfo_Access=t.offline_AvailabilityToJSON=t.offline_AvailabilityFromJSON=t.Offline_Availability=t.yourLibraryEntityInfo_PinnableToJSON=t.yourLibraryEntityInfo_PinnableFromJSON=t.YourLibraryEntityInfo_Pinnable=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l;function c(e){switch(e){case 0:case"YES":return a.YES;case 1:case"NO_IN_FOLDER":return a.NO_IN_FOLDER;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.YES:return"YES";case a.NO_IN_FOLDER:return"NO_IN_FOLDER";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"UNKNOWN":return s.UNKNOWN;case 1:case"NO":return s.NO;case 2:case"YES":return s.YES;case 3:case"DOWNLOADING":return s.DOWNLOADING;case 4:case"WAITING":return s.WAITING;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.UNKNOWN:return"UNKNOWN";case s.NO:return"NO";case s.YES:return"YES";case s.DOWNLOADING:return"DOWNLOADING";case s.WAITING:return"WAITING";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"OPEN":return l.OPEN;case 1:case"LOCKED":return l.LOCKED;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.OPEN:return"OPEN";case l.LOCKED:return"LOCKED";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){return e.toString()}function g(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.YES=0]="YES",e[e.NO_IN_FOLDER=1]="NO_IN_FOLDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.YourLibraryEntityInfo_Pinnable||(t.YourLibraryEntityInfo_Pinnable={})),t.yourLibraryEntityInfo_PinnableFromJSON=c,t.yourLibraryEntityInfo_PinnableToJSON=u,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO=1]="NO",e[e.YES=2]="YES",e[e.DOWNLOADING=3]="DOWNLOADING",e[e.WAITING=4]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.Offline_Availability||(t.Offline_Availability={})),t.offline_AvailabilityFromJSON=d,t.offline_AvailabilityToJSON=p,function(e){e[e.OPEN=0]="OPEN",e[e.LOCKED=1]="LOCKED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.YourLibraryBookExtraInfo_Access||(t.YourLibraryBookExtraInfo_Access={})),t.yourLibraryBookExtraInfo_AccessFromJSON=f,t.yourLibraryBookExtraInfo_AccessToJSON=h,t.YourLibraryEntityInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.name&&t.uint32(18).string(e.name),""!==e.uri&&t.uint32(26).string(e.uri),""!==e.groupLabel&&t.uint32(42).string(e.groupLabel),""!==e.imageUri&&t.uint32(50).string(e.imageUri),!0===e.pinned&&t.uint32(56).bool(e.pinned),0!==e.pinnable&&t.uint32(64).int32(e.pinnable),0!==e.offlineAvailability&&t.uint32(72).int32(e.offlineAvailability),"0"!==e.addTime&&t.uint32(88).int64(e.addTime),"0"!==e.lastPlayed&&t.uint32(96).int64(e.lastPlayed),!0===e.assistedCuration&&t.uint32(104).bool(e.assistedCuration),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0,addTime:"0",lastPlayed:"0",assistedCuration:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.name=n.string();break;case 3:i.uri=n.string();break;case 5:i.groupLabel=n.string();break;case 6:i.imageUri=n.string();break;case 7:i.pinned=n.bool();break;case 8:i.pinnable=n.int32();break;case 9:i.offlineAvailability=n.int32();break;case 11:i.addTime=m(n.int64());break;case 12:i.lastPlayed=m(n.int64());break;case 13:i.assistedCuration=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:g(e.key)?String(e.key):"",name:g(e.name)?String(e.name):"",uri:g(e.uri)?String(e.uri):"",groupLabel:g(e.groupLabel)?String(e.groupLabel):"",imageUri:g(e.imageUri)?String(e.imageUri):"",pinned:!!g(e.pinned)&&Boolean(e.pinned),pinnable:g(e.pinnable)?c(e.pinnable):0,offlineAvailability:g(e.offlineAvailability)?d(e.offlineAvailability):0,addTime:g(e.addTime)?String(e.addTime):"0",lastPlayed:g(e.lastPlayed)?String(e.lastPlayed):"0",assistedCuration:!!g(e.assistedCuration)&&Boolean(e.assistedCuration)}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.name&&(t.name=e.name),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.pinned&&(t.pinned=e.pinned),void 0!==e.pinnable&&(t.pinnable=u(e.pinnable)),void 0!==e.offlineAvailability&&(t.offlineAvailability=p(e.offlineAvailability)),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.lastPlayed&&(t.lastPlayed=e.lastPlayed),void 0!==e.assistedCuration&&(t.assistedCuration=e.assistedCuration),t},fromPartial(e){const t={key:"",name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0,addTime:"0",lastPlayed:"0",assistedCuration:!1};return t.key=e.key??"",t.name=e.name??"",t.uri=e.uri??"",t.groupLabel=e.groupLabel??"",t.imageUri=e.imageUri??"",t.pinned=e.pinned??!1,t.pinnable=e.pinnable??0,t.offlineAvailability=e.offlineAvailability??0,t.addTime=e.addTime??"0",t.lastPlayed=e.lastPlayed??"0",t.assistedCuration=e.assistedCuration??!1,t}},t.Offline={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.YourLibraryAlbumExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.artistName&&t.uint32(10).string(e.artistName),""!==e.artistUri&&t.uint32(18).string(e.artistUri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={artistName:"",artistUri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.artistName=n.string();break;case 2:i.artistUri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({artistName:g(e.artistName)?String(e.artistName):"",artistUri:g(e.artistUri)?String(e.artistUri):""}),toJSON(e){const t={};return void 0!==e.artistName&&(t.artistName=e.artistName),void 0!==e.artistUri&&(t.artistUri=e.artistUri),t},fromPartial(e){const t={artistName:"",artistUri:""};return t.artistName=e.artistName??"",t.artistUri=e.artistUri??"",t}},t.YourLibraryArtistExtraInfo={encode:(e,t=r.default.Writer.create())=>(!0===e.hasLikedTracksOrAlbums&&t.uint32(8).bool(e.hasLikedTracksOrAlbums),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={hasLikedTracksOrAlbums:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.hasLikedTracksOrAlbums=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({hasLikedTracksOrAlbums:!!g(e.hasLikedTracksOrAlbums)&&Boolean(e.hasLikedTracksOrAlbums)}),toJSON(e){const t={};return void 0!==e.hasLikedTracksOrAlbums&&(t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums),t},fromPartial(e){const t={hasLikedTracksOrAlbums:!1};return t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums??!1,t}},t.YourLibraryPlaylistExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.creatorName&&t.uint32(10).string(e.creatorName),""!==e.creatorUri&&t.uint32(66).string(e.creatorUri),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),!0===e.canView&&t.uint32(48).bool(e.canView),!0===e.canAdd&&t.uint32(72).bool(e.canAdd),""!==e.rowId&&t.uint32(58).string(e.rowId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={creatorName:"",creatorUri:"",isLoading:!1,canView:!1,canAdd:!1,rowId:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.creatorName=n.string();break;case 8:i.creatorUri=n.string();break;case 5:i.isLoading=n.bool();break;case 6:i.canView=n.bool();break;case 9:i.canAdd=n.bool();break;case 7:i.rowId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({creatorName:g(e.creatorName)?String(e.creatorName):"",creatorUri:g(e.creatorUri)?String(e.creatorUri):"",isLoading:!!g(e.isLoading)&&Boolean(e.isLoading),canView:!!g(e.canView)&&Boolean(e.canView),canAdd:!!g(e.canAdd)&&Boolean(e.canAdd),rowId:g(e.rowId)?String(e.rowId):""}),toJSON(e){const t={};return void 0!==e.creatorName&&(t.creatorName=e.creatorName),void 0!==e.creatorUri&&(t.creatorUri=e.creatorUri),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdd&&(t.canAdd=e.canAdd),void 0!==e.rowId&&(t.rowId=e.rowId),t},fromPartial(e){const t={creatorName:"",creatorUri:"",isLoading:!1,canView:!1,canAdd:!1,rowId:""};return t.creatorName=e.creatorName??"",t.creatorUri=e.creatorUri??"",t.isLoading=e.isLoading??!1,t.canView=e.canView??!1,t.canAdd=e.canAdd??!1,t.rowId=e.rowId??"",t}},t.YourLibraryShowExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.creatorName&&t.uint32(10).string(e.creatorName),"0"!==e.publishDate&&t.uint32(32).int64(e.publishDate),!0===e.isMusicAndTalk&&t.uint32(40).bool(e.isMusicAndTalk),0!==e.numberOfDownloadedEpisodes&&t.uint32(48).int32(e.numberOfDownloadedEpisodes),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.creatorName=n.string();break;case 4:i.publishDate=m(n.int64());break;case 5:i.isMusicAndTalk=n.bool();break;case 6:i.numberOfDownloadedEpisodes=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({creatorName:g(e.creatorName)?String(e.creatorName):"",publishDate:g(e.publishDate)?String(e.publishDate):"0",isMusicAndTalk:!!g(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),numberOfDownloadedEpisodes:g(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return void 0!==e.creatorName&&(t.creatorName=e.creatorName),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};return t.creatorName=e.creatorName??"",t.publishDate=e.publishDate??"0",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryFolderExtraInfo={encode(e,n=r.default.Writer.create()){0!==e.numberOfPlaylists&&n.uint32(16).int32(e.numberOfPlaylists),0!==e.numberOfFolders&&n.uint32(24).int32(e.numberOfFolders),""!==e.rowId&&n.uint32(34).string(e.rowId);for(const o of e.entity)t.YourLibraryDecoratedEntity.encode(o,n.uint32(42).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={numberOfPlaylists:0,numberOfFolders:0,rowId:"",entity:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 2:a.numberOfPlaylists=o.int32();break;case 3:a.numberOfFolders=o.int32();break;case 4:a.rowId=o.string();break;case 5:a.entity.push(t.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({numberOfPlaylists:g(e.numberOfPlaylists)?Number(e.numberOfPlaylists):0,numberOfFolders:g(e.numberOfFolders)?Number(e.numberOfFolders):0,rowId:g(e.rowId)?String(e.rowId):"",entity:Array.isArray(e?.entity)?e.entity.map((e=>t.YourLibraryDecoratedEntity.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.numberOfPlaylists&&(n.numberOfPlaylists=Math.round(e.numberOfPlaylists)),void 0!==e.numberOfFolders&&(n.numberOfFolders=Math.round(e.numberOfFolders)),void 0!==e.rowId&&(n.rowId=e.rowId),e.entity?n.entity=e.entity.map((e=>e?t.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.entity=[],n},fromPartial(e){const n={numberOfPlaylists:0,numberOfFolders:0,rowId:"",entity:[]};return n.numberOfPlaylists=e.numberOfPlaylists??0,n.numberOfFolders=e.numberOfFolders??0,n.rowId=e.rowId??"",n.entity=e.entity?.map((e=>t.YourLibraryDecoratedEntity.fromPartial(e)))||[],n}},t.YourLibraryLikedSongsExtraInfo={encode:(e,t=r.default.Writer.create())=>(0!==e.numberOfSongs&&t.uint32(24).int32(e.numberOfSongs),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={numberOfSongs:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==3)i.numberOfSongs=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({numberOfSongs:g(e.numberOfSongs)?Number(e.numberOfSongs):0}),toJSON(e){const t={};return void 0!==e.numberOfSongs&&(t.numberOfSongs=Math.round(e.numberOfSongs)),t},fromPartial(e){const t={numberOfSongs:0};return t.numberOfSongs=e.numberOfSongs??0,t}},t.YourLibraryYourEpisodesExtraInfo={encode:(e,t=r.default.Writer.create())=>(0!==e.numberOfDownloadedEpisodes&&t.uint32(32).int32(e.numberOfDownloadedEpisodes),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={numberOfDownloadedEpisodes:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==4)i.numberOfDownloadedEpisodes=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({numberOfDownloadedEpisodes:g(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={numberOfDownloadedEpisodes:0};return t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryNewEpisodesExtraInfo={encode:(e,t=r.default.Writer.create())=>("0"!==e.publishDate&&t.uint32(8).int64(e.publishDate),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={publishDate:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.publishDate=m(n.int64());else n.skipType(7&e)}return i},fromJSON:e=>({publishDate:g(e.publishDate)?String(e.publishDate):"0"}),toJSON(e){const t={};return void 0!==e.publishDate&&(t.publishDate=e.publishDate),t},fromPartial(e){const t={publishDate:"0"};return t.publishDate=e.publishDate??"0",t}},t.YourLibraryLocalFilesExtraInfo={encode:(e,t=r.default.Writer.create())=>(0!==e.numberOfFiles&&t.uint32(8).int32(e.numberOfFiles),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={numberOfFiles:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.numberOfFiles=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({numberOfFiles:g(e.numberOfFiles)?Number(e.numberOfFiles):0}),toJSON(e){const t={};return void 0!==e.numberOfFiles&&(t.numberOfFiles=Math.round(e.numberOfFiles)),t},fromPartial(e){const t={numberOfFiles:0};return t.numberOfFiles=e.numberOfFiles??0,t}},t.YourLibraryBookExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.authorName&&t.uint32(10).string(e.authorName),0!==e.access&&t.uint32(16).int32(e.access),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={authorName:"",access:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.authorName=n.string();break;case 2:i.access=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({authorName:g(e.authorName)?String(e.authorName):"",access:g(e.access)?f(e.access):0}),toJSON(e){const t={};return void 0!==e.authorName&&(t.authorName=e.authorName),void 0!==e.access&&(t.access=h(e.access)),t},fromPartial(e){const t={authorName:"",access:0};return t.authorName=e.authorName??"",t.access=e.access??0,t}},t.YourLibraryDecoratedEntity={encode:(e,n=r.default.Writer.create())=>(void 0!==e.entityInfo&&t.YourLibraryEntityInfo.encode(e.entityInfo,n.uint32(10).fork()).ldelim(),void 0!==e.album&&t.YourLibraryAlbumExtraInfo.encode(e.album,n.uint32(18).fork()).ldelim(),void 0!==e.artist&&t.YourLibraryArtistExtraInfo.encode(e.artist,n.uint32(26).fork()).ldelim(),void 0!==e.playlist&&t.YourLibraryPlaylistExtraInfo.encode(e.playlist,n.uint32(34).fork()).ldelim(),void 0!==e.show&&t.YourLibraryShowExtraInfo.encode(e.show,n.uint32(42).fork()).ldelim(),void 0!==e.folder&&t.YourLibraryFolderExtraInfo.encode(e.folder,n.uint32(50).fork()).ldelim(),void 0!==e.likedSongs&&t.YourLibraryLikedSongsExtraInfo.encode(e.likedSongs,n.uint32(66).fork()).ldelim(),void 0!==e.yourEpisodes&&t.YourLibraryYourEpisodesExtraInfo.encode(e.yourEpisodes,n.uint32(74).fork()).ldelim(),void 0!==e.newEpisodes&&t.YourLibraryNewEpisodesExtraInfo.encode(e.newEpisodes,n.uint32(82).fork()).ldelim(),void 0!==e.localFiles&&t.YourLibraryLocalFilesExtraInfo.encode(e.localFiles,n.uint32(90).fork()).ldelim(),void 0!==e.book&&t.YourLibraryBookExtraInfo.encode(e.book,n.uint32(98).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.entityInfo=t.YourLibraryEntityInfo.decode(o,o.uint32());break;case 2:a.album=t.YourLibraryAlbumExtraInfo.decode(o,o.uint32());break;case 3:a.artist=t.YourLibraryArtistExtraInfo.decode(o,o.uint32());break;case 4:a.playlist=t.YourLibraryPlaylistExtraInfo.decode(o,o.uint32());break;case 5:a.show=t.YourLibraryShowExtraInfo.decode(o,o.uint32());break;case 6:a.folder=t.YourLibraryFolderExtraInfo.decode(o,o.uint32());break;case 8:a.likedSongs=t.YourLibraryLikedSongsExtraInfo.decode(o,o.uint32());break;case 9:a.yourEpisodes=t.YourLibraryYourEpisodesExtraInfo.decode(o,o.uint32());break;case 10:a.newEpisodes=t.YourLibraryNewEpisodesExtraInfo.decode(o,o.uint32());break;case 11:a.localFiles=t.YourLibraryLocalFilesExtraInfo.decode(o,o.uint32());break;case 12:a.book=t.YourLibraryBookExtraInfo.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({entityInfo:g(e.entityInfo)?t.YourLibraryEntityInfo.fromJSON(e.entityInfo):void 0,album:g(e.album)?t.YourLibraryAlbumExtraInfo.fromJSON(e.album):void 0,artist:g(e.artist)?t.YourLibraryArtistExtraInfo.fromJSON(e.artist):void 0,playlist:g(e.playlist)?t.YourLibraryPlaylistExtraInfo.fromJSON(e.playlist):void 0,show:g(e.show)?t.YourLibraryShowExtraInfo.fromJSON(e.show):void 0,folder:g(e.folder)?t.YourLibraryFolderExtraInfo.fromJSON(e.folder):void 0,likedSongs:g(e.likedSongs)?t.YourLibraryLikedSongsExtraInfo.fromJSON(e.likedSongs):void 0,yourEpisodes:g(e.yourEpisodes)?t.YourLibraryYourEpisodesExtraInfo.fromJSON(e.yourEpisodes):void 0,newEpisodes:g(e.newEpisodes)?t.YourLibraryNewEpisodesExtraInfo.fromJSON(e.newEpisodes):void 0,localFiles:g(e.localFiles)?t.YourLibraryLocalFilesExtraInfo.fromJSON(e.localFiles):void 0,book:g(e.book)?t.YourLibraryBookExtraInfo.fromJSON(e.book):void 0}),toJSON(e){const n={};return void 0!==e.entityInfo&&(n.entityInfo=e.entityInfo?t.YourLibraryEntityInfo.toJSON(e.entityInfo):void 0),void 0!==e.album&&(n.album=e.album?t.YourLibraryAlbumExtraInfo.toJSON(e.album):void 0),void 0!==e.artist&&(n.artist=e.artist?t.YourLibraryArtistExtraInfo.toJSON(e.artist):void 0),void 0!==e.playlist&&(n.playlist=e.playlist?t.YourLibraryPlaylistExtraInfo.toJSON(e.playlist):void 0),void 0!==e.show&&(n.show=e.show?t.YourLibraryShowExtraInfo.toJSON(e.show):void 0),void 0!==e.folder&&(n.folder=e.folder?t.YourLibraryFolderExtraInfo.toJSON(e.folder):void 0),void 0!==e.likedSongs&&(n.likedSongs=e.likedSongs?t.YourLibraryLikedSongsExtraInfo.toJSON(e.likedSongs):void 0),void 0!==e.yourEpisodes&&(n.yourEpisodes=e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.toJSON(e.yourEpisodes):void 0),void 0!==e.newEpisodes&&(n.newEpisodes=e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.toJSON(e.newEpisodes):void 0),void 0!==e.localFiles&&(n.localFiles=e.localFiles?t.YourLibraryLocalFilesExtraInfo.toJSON(e.localFiles):void 0),void 0!==e.book&&(n.book=e.book?t.YourLibraryBookExtraInfo.toJSON(e.book):void 0),n},fromPartial(e){const n={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0};return n.entityInfo=void 0!==e.entityInfo&&null!==e.entityInfo?t.YourLibraryEntityInfo.fromPartial(e.entityInfo):void 0,n.album=void 0!==e.album&&null!==e.album?t.YourLibraryAlbumExtraInfo.fromPartial(e.album):void 0,n.artist=void 0!==e.artist&&null!==e.artist?t.YourLibraryArtistExtraInfo.fromPartial(e.artist):void 0,n.playlist=void 0!==e.playlist&&null!==e.playlist?t.YourLibraryPlaylistExtraInfo.fromPartial(e.playlist):void 0,n.show=void 0!==e.show&&null!==e.show?t.YourLibraryShowExtraInfo.fromPartial(e.show):void 0,n.folder=void 0!==e.folder&&null!==e.folder?t.YourLibraryFolderExtraInfo.fromPartial(e.folder):void 0,n.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?t.YourLibraryLikedSongsExtraInfo.fromPartial(e.likedSongs):void 0,n.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.fromPartial(e.yourEpisodes):void 0,n.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.fromPartial(e.newEpisodes):void 0,n.localFiles=void 0!==e.localFiles&&null!==e.localFiles?t.YourLibraryLocalFilesExtraInfo.fromPartial(e.localFiles):void 0,n.book=void 0!==e.book&&null!==e.book?t.YourLibraryBookExtraInfo.fromPartial(e.book):void 0,n}},t.YourLibraryAvailableEntityTypes={encode:(e,t=r.default.Writer.create())=>(!0===e.albums&&t.uint32(8).bool(e.albums),!0===e.artists&&t.uint32(16).bool(e.artists),!0===e.playlists&&t.uint32(24).bool(e.playlists),!0===e.shows&&t.uint32(32).bool(e.shows),!0===e.books&&t.uint32(40).bool(e.books),!0===e.playlistByYou&&t.uint32(48).bool(e.playlistByYou),!0===e.playlistBySpotify&&t.uint32(56).bool(e.playlistBySpotify),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={albums:!1,artists:!1,playlists:!1,shows:!1,books:!1,playlistByYou:!1,playlistBySpotify:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.albums=n.bool();break;case 2:i.artists=n.bool();break;case 3:i.playlists=n.bool();break;case 4:i.shows=n.bool();break;case 5:i.books=n.bool();break;case 6:i.playlistByYou=n.bool();break;case 7:i.playlistBySpotify=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({albums:!!g(e.albums)&&Boolean(e.albums),artists:!!g(e.artists)&&Boolean(e.artists),playlists:!!g(e.playlists)&&Boolean(e.playlists),shows:!!g(e.shows)&&Boolean(e.shows),books:!!g(e.books)&&Boolean(e.books),playlistByYou:!!g(e.playlistByYou)&&Boolean(e.playlistByYou),playlistBySpotify:!!g(e.playlistBySpotify)&&Boolean(e.playlistBySpotify)}),toJSON(e){const t={};return void 0!==e.albums&&(t.albums=e.albums),void 0!==e.artists&&(t.artists=e.artists),void 0!==e.playlists&&(t.playlists=e.playlists),void 0!==e.shows&&(t.shows=e.shows),void 0!==e.books&&(t.books=e.books),void 0!==e.playlistByYou&&(t.playlistByYou=e.playlistByYou),void 0!==e.playlistBySpotify&&(t.playlistBySpotify=e.playlistBySpotify),t},fromPartial(e){const t={albums:!1,artists:!1,playlists:!1,shows:!1,books:!1,playlistByYou:!1,playlistBySpotify:!1};return t.albums=e.albums??!1,t.artists=e.artists??!1,t.playlists=e.playlists??!1,t.shows=e.shows??!1,t.books=e.books??!1,t.playlistByYou=e.playlistByYou??!1,t.playlistBySpotify=e.playlistBySpotify??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},24972:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryRequest=t.YourLibraryRequestHeader=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(9144);function s(e){return e.toString()}function l(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryRequestHeader={encode(e,t=r.default.Writer.create()){!0===e.remainingEntities&&t.uint32(72).bool(e.remainingEntities),!0===e.totalCount&&t.uint32(144).bool(e.totalCount),""!==e.lowerBound&&t.uint32(82).string(e.lowerBound),0!==e.skip&&t.uint32(88).int32(e.skip),0!==e.length&&t.uint32(96).int32(e.length),""!==e.textFilter&&t.uint32(106).string(e.textFilter),void 0!==e.filters&&a.YourLibraryFilters.encode(e.filters,t.uint32(114).fork()).ldelim(),void 0!==e.sortOrder&&a.YourLibrarySortOrder.encode(e.sortOrder,t.uint32(122).fork()).ldelim(),void 0!==e.folderId&&t.uint32(128).int64(e.folderId),!0===e.allPlaylists&&t.uint32(136).bool(e.allPlaylists),!0===e.filtersPickedByUser&&t.uint32(152).bool(e.filtersPickedByUser),!0===e.entitiesInFolders&&t.uint32(160).bool(e.entitiesInFolders),t.uint32(170).fork();for(const n of e.tagFilter)t.int64(n);return t.ldelim(),!0===e.separatePinnedItems&&t.uint32(176).bool(e.separatePinnedItems),!0===e.assistedCuration&&t.uint32(184).bool(e.assistedCuration),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={remainingEntities:!1,totalCount:!1,lowerBound:"",skip:0,length:0,textFilter:"",filters:void 0,sortOrder:void 0,folderId:void 0,allPlaylists:!1,filtersPickedByUser:!1,entitiesInFolders:!1,tagFilter:[],separatePinnedItems:!1,assistedCuration:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 9:i.remainingEntities=n.bool();break;case 18:i.totalCount=n.bool();break;case 10:i.lowerBound=n.string();break;case 11:i.skip=n.int32();break;case 12:i.length=n.int32();break;case 13:i.textFilter=n.string();break;case 14:i.filters=a.YourLibraryFilters.decode(n,n.uint32());break;case 15:i.sortOrder=a.YourLibrarySortOrder.decode(n,n.uint32());break;case 16:i.folderId=s(n.int64());break;case 17:i.allPlaylists=n.bool();break;case 19:i.filtersPickedByUser=n.bool();break;case 20:i.entitiesInFolders=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.tagFilter.push(s(n.int64()))}else i.tagFilter.push(s(n.int64()));break;case 22:i.separatePinnedItems=n.bool();break;case 23:i.assistedCuration=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({remainingEntities:!!l(e.remainingEntities)&&Boolean(e.remainingEntities),totalCount:!!l(e.totalCount)&&Boolean(e.totalCount),lowerBound:l(e.lowerBound)?String(e.lowerBound):"",skip:l(e.skip)?Number(e.skip):0,length:l(e.length)?Number(e.length):0,textFilter:l(e.textFilter)?String(e.textFilter):"",filters:l(e.filters)?a.YourLibraryFilters.fromJSON(e.filters):void 0,sortOrder:l(e.sortOrder)?a.YourLibrarySortOrder.fromJSON(e.sortOrder):void 0,folderId:l(e.folderId)?String(e.folderId):void 0,allPlaylists:!!l(e.allPlaylists)&&Boolean(e.allPlaylists),filtersPickedByUser:!!l(e.filtersPickedByUser)&&Boolean(e.filtersPickedByUser),entitiesInFolders:!!l(e.entitiesInFolders)&&Boolean(e.entitiesInFolders),tagFilter:Array.isArray(e?.tagFilter)?e.tagFilter.map((e=>String(e))):[],separatePinnedItems:!!l(e.separatePinnedItems)&&Boolean(e.separatePinnedItems),assistedCuration:!!l(e.assistedCuration)&&Boolean(e.assistedCuration)}),toJSON(e){const t={};return void 0!==e.remainingEntities&&(t.remainingEntities=e.remainingEntities),void 0!==e.totalCount&&(t.totalCount=e.totalCount),void 0!==e.lowerBound&&(t.lowerBound=e.lowerBound),void 0!==e.skip&&(t.skip=Math.round(e.skip)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.textFilter&&(t.textFilter=e.textFilter),void 0!==e.filters&&(t.filters=e.filters?a.YourLibraryFilters.toJSON(e.filters):void 0),void 0!==e.sortOrder&&(t.sortOrder=e.sortOrder?a.YourLibrarySortOrder.toJSON(e.sortOrder):void 0),void 0!==e.folderId&&(t.folderId=e.folderId),void 0!==e.allPlaylists&&(t.allPlaylists=e.allPlaylists),void 0!==e.filtersPickedByUser&&(t.filtersPickedByUser=e.filtersPickedByUser),void 0!==e.entitiesInFolders&&(t.entitiesInFolders=e.entitiesInFolders),e.tagFilter?t.tagFilter=e.tagFilter.map((e=>e)):t.tagFilter=[],void 0!==e.separatePinnedItems&&(t.separatePinnedItems=e.separatePinnedItems),void 0!==e.assistedCuration&&(t.assistedCuration=e.assistedCuration),t},fromPartial(e){const t={remainingEntities:!1,totalCount:!1,lowerBound:"",skip:0,length:0,textFilter:"",filters:void 0,sortOrder:void 0,folderId:void 0,allPlaylists:!1,filtersPickedByUser:!1,entitiesInFolders:!1,tagFilter:[],separatePinnedItems:!1,assistedCuration:!1};return t.remainingEntities=e.remainingEntities??!1,t.totalCount=e.totalCount??!1,t.lowerBound=e.lowerBound??"",t.skip=e.skip??0,t.length=e.length??0,t.textFilter=e.textFilter??"",t.filters=void 0!==e.filters&&null!==e.filters?a.YourLibraryFilters.fromPartial(e.filters):void 0,t.sortOrder=void 0!==e.sortOrder&&null!==e.sortOrder?a.YourLibrarySortOrder.fromPartial(e.sortOrder):void 0,t.folderId=e.folderId??void 0,t.allPlaylists=e.allPlaylists??!1,t.filtersPickedByUser=e.filtersPickedByUser??!1,t.entitiesInFolders=e.entitiesInFolders??!1,t.tagFilter=e.tagFilter?.map((e=>e))||[],t.separatePinnedItems=e.separatePinnedItems??!1,t.assistedCuration=e.assistedCuration??!1,t}},t.YourLibraryRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.header&&t.YourLibraryRequestHeader.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.pseudoPlaylistConfig&&a.YourLibraryPseudoPlaylistConfig.encode(e.pseudoPlaylistConfig,n.uint32(34).fork()).ldelim(),0!==e.updateThrottling&&n.uint32(40).int32(e.updateThrottling),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={header:void 0,pseudoPlaylistConfig:void 0,updateThrottling:0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.header=t.YourLibraryRequestHeader.decode(o,o.uint32());break;case 4:s.pseudoPlaylistConfig=a.YourLibraryPseudoPlaylistConfig.decode(o,o.uint32());break;case 5:s.updateThrottling=o.int32();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({header:l(e.header)?t.YourLibraryRequestHeader.fromJSON(e.header):void 0,pseudoPlaylistConfig:l(e.pseudoPlaylistConfig)?a.YourLibraryPseudoPlaylistConfig.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:l(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryRequestHeader.toJSON(e.header):void 0),void 0!==e.pseudoPlaylistConfig&&(n.pseudoPlaylistConfig=e.pseudoPlaylistConfig?a.YourLibraryPseudoPlaylistConfig.toJSON(e.pseudoPlaylistConfig):void 0),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),n},fromPartial(e){const n={header:void 0,pseudoPlaylistConfig:void 0,updateThrottling:0};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryRequestHeader.fromPartial(e.header):void 0,n.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?a.YourLibraryPseudoPlaylistConfig.fromPartial(e.pseudoPlaylistConfig):void 0,n.updateThrottling=e.updateThrottling??0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},93352:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryResponse=t.YourLibraryResponseHeader=t.protobufPackage=void 0;const i=o(n(33892)),r=n(9144),a=n(39266);function s(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryResponseHeader={encode:(e,t=i.default.Writer.create())=>(0!==e.remainingEntities&&t.uint32(72).int32(e.remainingEntities),0!==e.totalCount&&t.uint32(136).int32(e.totalCount),0!==e.pinCount&&t.uint32(144).int32(e.pinCount),0!==e.maximumPinnedItems&&t.uint32(152).int32(e.maximumPinnedItems),!0===e.isLoading&&t.uint32(96).bool(e.isLoading),void 0!==e.has&&a.YourLibraryAvailableEntityTypes.encode(e.has,t.uint32(106).fork()).ldelim(),void 0!==e.hasDownloaded&&a.YourLibraryAvailableEntityTypes.encode(e.hasDownloaded,t.uint32(114).fork()).ldelim(),""!==e.folderName&&t.uint32(122).string(e.folderName),""!==e.parentFolderUri&&t.uint32(162).string(e.parentFolderUri),void 0!==e.availableFilters&&r.YourLibraryFilters.encode(e.availableFilters,t.uint32(130).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={remainingEntities:0,totalCount:0,pinCount:0,maximumPinnedItems:0,isLoading:!1,has:void 0,hasDownloaded:void 0,folderName:"",parentFolderUri:"",availableFilters:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 9:s.remainingEntities=n.int32();break;case 17:s.totalCount=n.int32();break;case 18:s.pinCount=n.int32();break;case 19:s.maximumPinnedItems=n.int32();break;case 12:s.isLoading=n.bool();break;case 13:s.has=a.YourLibraryAvailableEntityTypes.decode(n,n.uint32());break;case 14:s.hasDownloaded=a.YourLibraryAvailableEntityTypes.decode(n,n.uint32());break;case 15:s.folderName=n.string();break;case 20:s.parentFolderUri=n.string();break;case 16:s.availableFilters=r.YourLibraryFilters.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({remainingEntities:s(e.remainingEntities)?Number(e.remainingEntities):0,totalCount:s(e.totalCount)?Number(e.totalCount):0,pinCount:s(e.pinCount)?Number(e.pinCount):0,maximumPinnedItems:s(e.maximumPinnedItems)?Number(e.maximumPinnedItems):0,isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),has:s(e.has)?a.YourLibraryAvailableEntityTypes.fromJSON(e.has):void 0,hasDownloaded:s(e.hasDownloaded)?a.YourLibraryAvailableEntityTypes.fromJSON(e.hasDownloaded):void 0,folderName:s(e.folderName)?String(e.folderName):"",parentFolderUri:s(e.parentFolderUri)?String(e.parentFolderUri):"",availableFilters:s(e.availableFilters)?r.YourLibraryFilters.fromJSON(e.availableFilters):void 0}),toJSON(e){const t={};return void 0!==e.remainingEntities&&(t.remainingEntities=Math.round(e.remainingEntities)),void 0!==e.totalCount&&(t.totalCount=Math.round(e.totalCount)),void 0!==e.pinCount&&(t.pinCount=Math.round(e.pinCount)),void 0!==e.maximumPinnedItems&&(t.maximumPinnedItems=Math.round(e.maximumPinnedItems)),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.has&&(t.has=e.has?a.YourLibraryAvailableEntityTypes.toJSON(e.has):void 0),void 0!==e.hasDownloaded&&(t.hasDownloaded=e.hasDownloaded?a.YourLibraryAvailableEntityTypes.toJSON(e.hasDownloaded):void 0),void 0!==e.folderName&&(t.folderName=e.folderName),void 0!==e.parentFolderUri&&(t.parentFolderUri=e.parentFolderUri),void 0!==e.availableFilters&&(t.availableFilters=e.availableFilters?r.YourLibraryFilters.toJSON(e.availableFilters):void 0),t},fromPartial(e){const t={remainingEntities:0,totalCount:0,pinCount:0,maximumPinnedItems:0,isLoading:!1,has:void 0,hasDownloaded:void 0,folderName:"",parentFolderUri:"",availableFilters:void 0};return t.remainingEntities=e.remainingEntities??0,t.totalCount=e.totalCount??0,t.pinCount=e.pinCount??0,t.maximumPinnedItems=e.maximumPinnedItems??0,t.isLoading=e.isLoading??!1,t.has=void 0!==e.has&&null!==e.has?a.YourLibraryAvailableEntityTypes.fromPartial(e.has):void 0,t.hasDownloaded=void 0!==e.hasDownloaded&&null!==e.hasDownloaded?a.YourLibraryAvailableEntityTypes.fromPartial(e.hasDownloaded):void 0,t.folderName=e.folderName??"",t.parentFolderUri=e.parentFolderUri??"",t.availableFilters=void 0!==e.availableFilters&&null!==e.availableFilters?r.YourLibraryFilters.fromPartial(e.availableFilters):void 0,t}},t.YourLibraryResponse={encode(e,n=i.default.Writer.create()){void 0!==e.header&&t.YourLibraryResponseHeader.encode(e.header,n.uint32(10).fork()).ldelim();for(const t of e.entity)a.YourLibraryDecoratedEntity.encode(t,n.uint32(18).fork()).ldelim();for(const t of e.pinnedEntity)a.YourLibraryDecoratedEntity.encode(t,n.uint32(26).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).int32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={header:void 0,entity:[],pinnedEntity:[],statusCode:0,error:""};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.header=t.YourLibraryResponseHeader.decode(o,o.uint32());break;case 2:s.entity.push(a.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;case 3:s.pinnedEntity.push(a.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;case 98:s.statusCode=o.int32();break;case 99:s.error=o.string();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({header:s(e.header)?t.YourLibraryResponseHeader.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>a.YourLibraryDecoratedEntity.fromJSON(e))):[],pinnedEntity:Array.isArray(e?.pinnedEntity)?e.pinnedEntity.map((e=>a.YourLibraryDecoratedEntity.fromJSON(e))):[],statusCode:s(e.statusCode)?Number(e.statusCode):0,error:s(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryResponseHeader.toJSON(e.header):void 0),e.entity?n.entity=e.entity.map((e=>e?a.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.entity=[],e.pinnedEntity?n.pinnedEntity=e.pinnedEntity.map((e=>e?a.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.pinnedEntity=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={header:void 0,entity:[],pinnedEntity:[],statusCode:0,error:""};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryResponseHeader.fromPartial(e.header):void 0,n.entity=e.entity?.map((e=>a.YourLibraryDecoratedEntity.fromPartial(e)))||[],n.pinnedEntity=e.pinnedEntity?.map((e=>a.YourLibraryDecoratedEntity.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},82774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPlatformClient=void 0;const o=n(33892),i=n(79379),r=n(90721);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getBluetoothDevices(e,t){const n="spotify.desktop.platform_esperanto.proto.DesktopPlatform",a="GetBluetoothDevices",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.BluetoothDevices.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}static SERVICE_ID="spotify.desktop.platform_esperanto.proto.DesktopPlatform";static DECODERS={GetBluetoothDevices:{request:i.Empty.decode,response:r.BluetoothDevices.decode}}}t.DesktopPlatformClient=a},91628:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPlatformClient=void 0;const r=n(82774);Object.defineProperty(t,"DesktopPlatformClient",{enumerable:!0,get:function(){return r.DesktopPlatformClient}}),i(n(90721),t)},90721:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BluetoothDevices=t.BluetoothDevice=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.desktop.platform_esperanto.proto",t.BluetoothDevice={encode:(e,t=i.default.Writer.create())=>(""!==e.address&&t.uint32(10).string(e.address),""!==e.name&&t.uint32(18).string(e.name),!0===e.isDefaultAudioDevice&&t.uint32(24).bool(e.isDefaultAudioDevice),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={address:"",name:"",isDefaultAudioDevice:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.address=n.string();break;case 2:r.name=n.string();break;case 3:r.isDefaultAudioDevice=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({address:r(e.address)?String(e.address):"",name:r(e.name)?String(e.name):"",isDefaultAudioDevice:!!r(e.isDefaultAudioDevice)&&Boolean(e.isDefaultAudioDevice)}),toJSON(e){const t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.name&&(t.name=e.name),void 0!==e.isDefaultAudioDevice&&(t.isDefaultAudioDevice=e.isDefaultAudioDevice),t},fromPartial(e){const t={address:"",name:"",isDefaultAudioDevice:!1};return t.address=e.address??"",t.name=e.name??"",t.isDefaultAudioDevice=e.isDefaultAudioDevice??!1,t}},t.BluetoothDevices={encode(e,n=i.default.Writer.create()){for(const o of e.devices)t.BluetoothDevice.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={devices:[]};for(;o.pos<r;){const e=o.uint32();if(e>>>3==1)a.devices.push(t.BluetoothDevice.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>t.BluetoothDevice.fromJSON(e))):[]}),toJSON(e){const n={};return e.devices?n.devices=e.devices.map((e=>e?t.BluetoothDevice.toJSON(e):void 0)):n.devices=[],n},fromPartial(e){const n={devices:[]};return n.devices=e.devices?.map((e=>t.BluetoothDevice.fromPartial(e)))||[],n}}},79379:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},53016:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,vp:()=>p});class o{constructor(e,t){this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=e,this.data=t}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.stopped=!0}stopImmediatePropagation(){this.immediateStopped=!0}}n(56708);const i="undefined"!=typeof window,r=[];function a(){var e;const t=r.splice(0);if(t.length)for(let n=0,o=t.length;n<o;n++)try{null===(e=t[n])||void 0===e||e.call(t)}finally{}}let s;i&&"function"==typeof window.postMessage?function(){const e=window.location.origin||`${window.location.protocol}//${window.location.hostname}`;if(s=window.postMessage.bind(window,"@execute_deferreds",e),!window.__hasDeferredHandler){"function"==typeof Object.defineProperty?Object.defineProperty(window,"__hasDeferredHandler",{value:!0}):window.__hasDeferredHandler=!0;const t=function(t){t.origin!==e&&"@execute_deferreds"!==t.data||a()};window.addEventListener?window.addEventListener("message",t):window.attachEvent&&window.attachEvent("onmessage",t)}}():s="function"==typeof queueMicrotask?queueMicrotask.bind(null,a):"function"==typeof setImmediate?setImmediate.bind(null,a):setTimeout.bind(null,a,10);let l=e=>{const t=!r.length;r.push(e),t&&s()};function c(e,t,n){for(let o=0,i=e.length;o<i;o++){const i=e[o];if((null==i?void 0:i.listener)===t&&i.options.once===n.once)return o}return-1}function u(e,t,n,o={}){if(!n)return!1;const i=e[t];return!i||!i.length||-1===c(i,n,o)}function d(e,t,n,o={}){if(!t||!n)return;const i=e[t],r={listener:n,options:o};i?i.push(r):e[t]=[r]}i&&("function"==typeof window.__modDefFn?l=window.__modDefFn:"function"==typeof Object.defineProperty?Object.defineProperty(window,"__modDefFn",{value:l}):window.__modDefFn=l);class p{constructor(){this._listeners={},this._metaListeners={add:{},remove:{}}}_dispatchFromStore(e,t){const n=t.type;let o=e[n];if(o){o=o.slice(0);for(const e of o)if(e.listener.call(this,t),e.options.once&&this.removeListener(n,e.listener,e.options),t.immediateStopped)break}}createEvent(e,t){return new o(e,t)}on(e,t,n={}){if(!e)throw new TypeError("Argument `eventType` is required.");if(!t)return this;const i=this._listeners;if(u(i,e,t,n)){const r=this._metaListeners.add,a=r[e];if(a&&a.length){const i=new o(e,{listener:t,options:n});if(this._dispatchFromStore(r,i),i.defaultPrevented)return this}d(i,e,t,n)}return this}addListener(e,t,n={}){return this.on(e,t,n)}addListeners(e){for(const t in e)e.hasOwnProperty(t)&&this.on(t,e[t]);return this}once(e,t){return this.on(e,t,{once:!0})}removeListener(e,t,n={}){if(!e)throw new TypeError("Argument `eventType` is required.");if(!t)return this;const i=this._listeners[e];if(!i)return this;const r=c(i,t,n);if(-1===r)return this;const a=this._metaListeners.remove[e];if(a&&a.length){const i=new o(e,{listener:t,options:n});if(this._dispatchFromStore(this._metaListeners.remove,i),i.defaultPrevented)return this}return i.splice(r,1),this}removeListeners(e){for(const t in e)e.hasOwnProperty(t)&&this.removeListener(t,e[t]);return this}removeAllListeners(e){return e?this._listeners[e]=[]:this._listeners={},this}emit(e,t){if(!e)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(e,t);return l((()=>this._dispatchFromStore(this._listeners,n))),n}emitSync(e,t){if(!e)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(e,t);return this._dispatchFromStore(this._listeners,n),n}emitEvent(e){return l((()=>this._dispatchFromStore(this._listeners,e))),e}emitEventSync(e){return this._dispatchFromStore(this._listeners,e),e}emitAndWait(e,t,n){if(!e)throw new TypeError("Argument `eventType` is required.");const o=this.createEvent(e,t);return l((()=>{this._dispatchFromStore(this._listeners,o),n.call(this,o)})),o}emitEventAndWait(e,t){return l((()=>{this._dispatchFromStore(this._listeners,e),t.call(this,e)})),e}proxyEmit(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const o=e=>{e.stopped||this.emitAndWait(n,e.data,(t=>{t.defaultPrevented&&e.preventDefault()}))};return e.on(t,o),o}proxyEmitSync(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const o=e=>{if(e.stopped)return;const t=this.createEvent(n,e.data);this.emitEventSync(t),t.defaultPrevented&&e.preventDefault()};return e.on(t,o),o}proxyEmitAll(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmit(e,n,t[n])}proxyEmitAllSync(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmitSync(e,n,t[n])}onAddListener(e,t,n={}){const o=this._metaListeners.add;return u(o,e,t,n)&&d(o,e,t,n),this}onRemoveListener(e,t,n={}){const o=this._metaListeners.remove;return u(o,e,t,n)&&d(o,e,t,n),this}}},48712:(e,t,n)=>{e.exports={...n(85348),...n(22396),...n(21292)}},85348:(e,t)=>{var n=t.aquamarine="#9bf0e1",o=t.aubergine="#503750",i=t.azure="#509bf5",r=t.bole="#c87d55",a=t.brightRed="#e61e32",s=t.chocolate="#7d4b32",l=t.citric="#cdf564",c=t.electricSeafoam="#19e68c",u=t.factoryYellow="#fae62d",d=t.forest="#006450",p=t.fuchsia="#dc148c",f=t.gold="#f59b23",h=t.kleinBlue="#4100f5",m=t.lavender="#b49bc8",g=t.maroon="#8c1932",v=t.midnight="#1e3264",y=t.neonGreen="#5ff550",_=t.orange="#ff6437",b=t.pink="#ffcdd2",S=t.plum="#705378",E=t.powderGreen="#c3f0c8",A=t.royalBlue="#2d46b9",T=t.salmon="#f573a0",P=t.spearmint="#27856a",O=t.storm="#a0c3d2",C=t.sunflower="#ffc864",k=t.tan="#c39687",R=t.tangerine="#e3230e",L=t.violet="#af2896",I=t.gray7="#121212",N=t.gray10="#181818",w=t.gray15="#282828",D=t.gray20="#333333",M=t.gray30="#535353",x=t.gray50="#7f7f7f",F=t.gray70=getComputedStyle(document.body).getPropertyValue("--spice-subtext").trim(),U=t.gray80="#cccccc",B=t.gray85="#d9d9d9",V=t.gray90="#eeeeee",G=t.gray95="#f8f8f8",J=t.opacityBlack0="rgba(0, 0, 0, 0)",j=t.opacityBlack10="rgba(0, 0, 0, 0.1)",H=t.opacityBlack30="rgba(0, 0, 0, 0.3)",K=t.opacityBlack50="rgba(0, 0, 0, 0.5)",Y=t.opacityBlack60="rgba(0, 0, 0, 0.6)",W=t.opacityBlack70="rgba(0, 0, 0, 0.7)",z=t.opacityBlack90="rgba(0, 0, 0, 0.9)",q=t.opacityWhite0="rgba(255, 255, 255, 0)",X=t.opacityWhite10="rgba(255, 255, 255, 0.1)",Z=t.opacityWhite30="rgba(255, 255, 255, 0.3)",Q=t.opacityWhite50="rgba(255, 255, 255, 0.5)",$=t.opacityWhite60="rgba(255, 255, 255, 0.6)",ee=t.opacityWhite70="rgba(255, 255, 255, 0.7)",te=t.opacityWhite90="rgba(255, 255, 255, 0.9)",ne=t.black0="rgba(0, 0, 0, 0)",oe=t.black10="rgba(0, 0, 0, 0.1)",ie=t.black30="rgba(0, 0, 0, 0.3)",re=t.black50="rgba(0, 0, 0, 0.5)",ae=t.black60="rgba(0, 0, 0, 0.6)",se=t.black70="rgba(0, 0, 0, 0.7)",le=t.black90="rgba(0, 0, 0, 0.9)",ce=t.white0="rgba(255, 255, 255, 0)",ue=t.white10="rgba(255, 255, 255, 0.1)",de=t.white30="rgba(255, 255, 255, 0.3)",pe=t.white50="rgba(255, 255, 255, 0.5)",fe=t.white60="rgba(255, 255, 255, 0.6)",he=t.white70="rgba(255, 255, 255, 0.7)",me=t.white90="rgba(255, 255, 255, 0.9)",ge=t.black20="rgba(0, 0, 0, 0.2)",ve=t.black40="rgba(0, 0, 0, 0.4)",ye=t.white5="rgba(255, 255, 255, 0.05)",_e=t.white20="rgba(255, 255, 255, 0.2)",be=t.white40="rgba(255, 255, 255, 0.4)",Se=t.solidBlack0="#000000",Ee=t.solidWhite200=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),Ae=t.spotifyBlack7="#121212",Te=t.midnight35="#202f72",Pe=t.aubergine46="#503659",Oe=t.maroon55="#8a202b",Ce=t.royalBlue55="#283ea3",ke=t.kleinBlue61="#4100f4",Re=t.forest75="#056952",Le=t.chocolate75="#834f34",Ie=t.violet84="#b02897",Ne=t.brightRed100="#e91429",we=t.spearmint114="#4b917d",De=t.fuchsia115="#f036a4",Me=t.tangerine120="#ff4834",xe=t.bole123="#c87d55",Fe=t.salmon135="#ef77a1",Ue=t.lavender135="#af93c4",Be=t.azure135="#59a0f6",Ve=t.pumpkin135="#ff7439",Ge=t.tan135="#c19384",Je=t.storm155="#a5bbd1",je=t.gold155="#ffa42b",He=t.spotifyGreen157="#1ed760",Ke=t.sunflower172="#ffc862",Ye=t.rose180="#ffd2d7",We=t.aquamarine180="#91eeda",ze=t.factoryYellow184="#fce54f",qe=t.powderGreen185="#c5f0c9",Xe=t.citric186="#cff56a",Ze=t.neonGreen176="#5ff550",Qe=t.electricSeafoam167="#19e68c",$e=t.redOrange25="#560f00",et=t.redOrange55="#911600",tt=t.redOrange75="#b71800",nt=t.redOrange100="#e81b00",ot=t.redOrange120="#ff4834",it=t.redOrange135="#ff7163",rt=t.redOrange155="#ff9e95",at=t.redOrange180="#ffd3cf",st=t.brown25="#3d2418",lt=t.brown55="#683e2a",ct=t.brown75="#834f34",ut=t.brown100="#a96440",dt=t.brown123="#c87d55",pt=t.brown135="#d38e67",ft=t.brown155="#e5ac8a",ht=t.brown180="#f7d7c3",mt=t.brownDesat25="#3b251d",gt=t.brownDesat55="#653f32",vt=t.brownDesat75="#805040",yt=t.brownDesat100="#a36652",_t=t.brownDesat135="#c19384",bt=t.brownDesat155="#d2b1a6",St=t.brownDesat180="#eadad5",Et=t.orange25="#4f1800",At=t.orange55="#862800",Tt=t.orange75="#a83200",Pt=t.orange100="#d64000",Ot=t.orange135="#ff7439",Ct=t.orange155="#ffa178",kt=t.orange180="#ffd4c2",Rt=t.brownYellow25="#491e00",Lt=t.brownYellow55="#793500",It=t.brownYellow75="#964400",Nt=t.brownYellow100="#bc5900",wt=t.brownYellow135="#f47e00",Dt=t.brownYellow155="#ffa42b",Mt=t.brownYellow172="#ffc862",xt=t.brownYellow180="#ffd97e",Ft=t.brownYellowDesat25="#39260e",Ut=t.brownYellowDesat55="#624218",Bt=t.brownYellowDesat75="#7c531e",Vt=t.brownYellowDesat100="#9f6b27",Gt=t.brownYellowDesat135="#d0913f",Jt=t.brownYellowDesat155="#deb076",jt=t.brownYellowDesat180="#efdabf",Ht=t.yellow25="#352901",Kt=t.yellow55="#594602",Yt=t.yellow75="#705903",Wt=t.yellow100="#8e7203",zt=t.yellow135="#bd9a03",qt=t.yellow155="#dab503",Xt=t.yellow184="#fce54f",Zt=t.yellowGreen25="#222e03",Qt=t.yellowGreen55="#3b4f05",$t=t.yellowGreen75="#4a6406",en=t.yellowGreen100="#5f8008",tn=t.yellowGreen135="#80ac0b",nn=t.yellowGreen155="#95c90d",on=t.yellowGreen186="#cff56a",rn=t.yellowGreenDesat25="#262d11",an=t.yellowGreenDesat55="#414d1e",sn=t.yellowGreenDesat75="#526226",ln=t.yellowGreenDesat100="#697d30",cn=t.yellowGreenDesat135="#8da841",un=t.yellowGreenDesat155="#a9c261",dn=t.yellowGreenDesat180="#d7e3b5",pn=t.green25="#073116",fn=t.green55="#0c5426",hn=t.green75="#0f6a2f",mn=t.green100="#13873c",gn=t.green135="#19b551",vn=t.green157="#1ed760",yn=t.green180="#96f0b6",_n=t.greenDesat25="#182f21",bn=t.greenDesat55="#265135",Sn=t.greenDesat75="#2d6740",En=t.greenDesat100="#34854d",An=t.greenDesat135="#3db35e",Tn=t.greenDesat155="#5cce77",Pn=t.greenDesat185="#c5f0c9",On=t.greenBlue25="#013126",Cn=t.greenBlue55="#035341",kn=t.greenBlue75="#056952",Rn=t.greenBlue100="#088569",Ln=t.greenBlue135="#10b28e",In=t.greenBlue155="#16d0a6",Nn=t.greenBlue180="#91eeda",wn=t.greenBlueDesat25="#182e28",Dn=t.greenBlueDesat55="#294f44",Mn=t.greenBlueDesat75="#346557",xn=t.greenBlueDesat100="#43816f",Fn=t.greenBlueDesat114="#4b917d",Un=t.greenBlueDesat135="#5eac96",Bn=t.greenBlueDesat155="#8bc3b3",Vn=t.greenBlueDesat180="#c9e3db",Gn=t.blue25="#052a56",Jn=t.blue55="#084791",jn=t.blue75="#0a59b8",Hn=t.blue100="#0d72ea",Kn=t.blue135="#59a0f6",Yn=t.blue155="#89bcf8",Wn=t.blue180="#c8e0fc",zn=t.blueDesat25="#1d2b3a",qn=t.blueDesat55="#324b64",Xn=t.blueDesat75="#405e7e",Zn=t.blueDesat100="#5179a1",Qn=t.blueDesat135="#82a1c0",$n=t.blueDesat155="#a5bbd1",eo=t.blueDesat180="#d4dfe9",to=t.blueViolet25="#26008d",no=t.blueViolet55="#3c00e4",oo=t.blueViolet61="#4100f4",io=t.blueViolet75="#5925ff",ro=t.blueViolet100="#7358ff",ao=t.blueViolet135="#9691ff",so=t.blueViolet155="#afb1ff",lo=t.blueViolet180="#d7dbff",co=t.blueVioletDesat25="#1b2658",uo=t.blueVioletDesat35="#202f72",po=t.blueVioletDesat55="#283ea3",fo=t.blueVioletDesat75="#334fcd",ho=t.blueVioletDesat100="#576dd6",mo=t.blueVioletDesat135="#8a9ae3",go=t.blueVioletDesat155="#aab6ea",vo=t.blueVioletDesat180="#d7dcf5",yo=t.violet25="#400073",_o=t.violet55="#6900ba",bo=t.violet75="#8400e7",So=t.violet100="#a833ff",Eo=t.violet135="#c87dff",Ao=t.violet155="#d8a3ff",To=t.violet180="#edd4ff",Po=t.violetDesat25="#35243a",Oo=t.violetDesat46="#503659",Co=t.violetDesat75="#734d85",ko=t.violetDesat100="#8e65a9",Ro=t.violetDesat135="#af93c4",Lo=t.violetDesat155="#c4b1d4",Io=t.violetDesat180="#e3daeb",No=t.violetPink25="#4c1141",wo=t.violetPink55="#801d6d",Do=t.violetPink75="#a1258a",Mo=t.violetPink84="#b02897",xo=t.violetPink100="#cc2faf",Fo=t.violetPink135="#e079cd",Uo=t.violetPink155="#e9a1dc",Bo=t.violetPink180="#f5d3ef",Vo=t.violetPinkDesat25="#3c1c4c",Go=t.violetPinkDesat55="#673081",Jo=t.violetPinkDesat67="#773796",jo=t.violetPinkDesat100="#9e57bf",Ho=t.violetPinkDesat135="#bb8dd0",Ko=t.violetPinkDesat155="#cdaddc",Yo=t.violetPinkDesat180="#e7d9ed",Wo=t.pink25="#550635",zo=t.pink55="#8d0b58",qo=t.pink75="#b00d6e",Xo=t.pink100="#df118b",Zo=t.pink115="#f036a4",Qo=t.pink135="#f46ebe",$o=t.pink155="#f79bd2",ei=t.pink180="#fcd2eb",ti=t.pinkDesat25="#4c172a",ni=t.pinkDesat55="#871f43",oi=t.pinkDesat75="#ad2152",ii=t.pinkDesat100="#de2666",ri=t.pinkDesat135="#ef77a1",ai=t.pinkDesat155="#f1a2bc",si=t.pinkDesat180="#f4d6df",li=t.red25="#590810",ci=t.red55="#930d1a",ui=t.red75="#b81021",di=t.red100="#e91429",pi=t.red135="#f97481",fi=t.red155="#fe9da7",hi=t.red180="#ffd2d7",mi=t.redDesat25="#521319",gi=t.redDesat55="#8a202b",vi=t.redDesat75="#ad2836",yi=t.redDesat100="#d33f4e",_i=t.redDesat135="#e2828c",bi=t.redDesat155="#eaa6ad",Si=t.redDesat180="#f5d6d9",Ei=t.blueFacebook100="#2374e1",Ai=t.fluorescentRed109="#ff001a",Ti=t.fluorescentOrange144="#ff8b1f",Pi=t.fluorescentYellow194="#f3ff46",Oi=t.fluorescentGreen176="#5ff550",Ci=t.fluorescentGreenBlue167="#19e68c",ki=t.fluorescentCyan185="#00ffff",Ri=t.fluorescentBlueViolet69="#2d28ff",Li=t.fluorescentViolet111="#c13fff",Ii=t.fluorescentPink119="#ff1abf",Ni=t.green=getComputedStyle(document.body).getPropertyValue("--spice-button").trim(),wi=t.greenLight="#1ed760",Di=t.greenFocus="#1da64d",Mi=t.greenDark="#14833b",xi=t.black="#000000",Fi=t.white=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),Ui=t.red="#cd1a2b",Bi=t.redLight="#e22134",Vi=t.redDark="#941320",Gi=t.blue="#2e77d0",Ji=t.blueLight="#4687d6",ji=t.blueFacebook="#1877f2",Hi=t.blueDark="#1d4c85",Ki=t.orangeLight="#ff5722",Yi=t.opacity0="0",Wi=t.opacity10="0.1",zi=t.opacity30="0.3",qi=t.opacity50="0.5",Xi=t.opacity70="0.7",Zi=t.opacity90="0.9",Qi=t.spacer4="4px",$i=t.spacer8="8px",er=t.spacer12="12px",tr=t.spacer16="16px",nr=t.spacer20="20px",or=t.spacer24="24px",ir=t.spacer32="32px",rr=t.spacer40="40px",ar=t.spacer48="48px",sr=t.spacer56="56px",lr=t.spacer64="64px",cr=t.spacer72="72px",ur=t.spacer80="80px",dr=t.balladFontSize="1rem",pr=t.balladWeight=400,fr=t.balladFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",hr=t.balladBoldFontSize="1rem",mr=t.balladBoldWeight=700,gr=t.balladBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",vr=t.violaFontSize="0.875rem",yr=t.violaWeight=400,_r=t.violaFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",br=t.violaBoldFontSize="0.875rem",Sr=t.violaBoldWeight=700,Er=t.violaBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Ar=t.mestoFontSize="0.8125rem",Tr=t.mestoWeight=400,Pr=t.mestoFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Or=t.mestoBoldFontSize="0.8125rem",Cr=t.mestoBoldWeight=700,kr=t.mestoBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Rr=t.bassFontSize="3.5rem",Lr=t.bassWeight=900,Ir=t.bassFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Nr=t.forteFontSize="3rem",wr=t.forteWeight=700,Dr=t.forteFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Mr=t.brioFontSize="2.5rem",xr=t.brioWeight=700,Fr=t.brioFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Ur=t.finaleFontSize="0.6875rem",Br=t.finaleWeight=400,Vr=t.finaleFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Gr=t.finaleBoldFontSize="0.6875rem",Jr=t.finaleBoldWeight=700,jr=t.finaleBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Hr=t.minuetFontSize="0.625rem",Kr=t.minuetWeight=400,Yr=t.minuetTracking="0.1em",Wr=t.minuetUppercase="uppercase",zr=t.minuetFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",qr=t.minuetBoldFontSize="0.625rem",Xr=t.minuetBoldWeight=700,Zr=t.minuetBoldTracking="0.1em",Qr=t.minuetBoldUppercase="uppercase",$r=t.minuetBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",ea=t.metronomeFontSize="0.875rem",ta=t.metronomeWeight=700,na=t.metronomeTracking="0.1em",oa=t.metronomeUppercase="uppercase",ia=t.metronomeFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",ra=t.altoBrioFontSize="2rem",aa=t.altoBrioWeight=700,sa=t.altoBrioFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",la=t.altoFontSize="2rem",ca=t.altoWeight=700,ua=t.altoFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",da=t.canonFontSize="1.5rem",pa=t.canonWeight=700,fa=t.canonFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",ha=t.celloCanonFontSize="1.125rem",ma=t.celloCanonWeight=700,ga=t.celloCanonFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",va=t.celloFontSize="1.125rem",ya=t.celloWeight=700,_a=t.celloFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)";t.color={aquamarine:n,aubergine:o,azure:i,bole:r,brightRed:a,chocolate:s,citric:l,electricSeafoam:c,factoryYellow:u,forest:d,fuchsia:p,gold:f,kleinBlue:h,lavender:m,maroon:g,midnight:v,neonGreen:y,orange:_,pink:b,plum:S,powderGreen:E,royalBlue:A,salmon:T,spearmint:P,storm:O,sunflower:C,tan:k,tangerine:R,violet:L,gray7:I,gray10:N,gray15:w,gray20:D,gray30:M,gray50:x,gray70:F,gray80:U,gray85:B,gray90:V,gray95:G,opacityBlack0:J,opacityBlack10:j,opacityBlack30:H,opacityBlack50:K,opacityBlack60:Y,opacityBlack70:W,opacityBlack90:z,opacityWhite0:q,opacityWhite10:X,opacityWhite30:Z,opacityWhite50:Q,opacityWhite60:$,opacityWhite70:ee,opacityWhite90:te,black0:ne,black10:oe,black30:ie,black50:re,black60:ae,black70:se,black90:le,white0:ce,white10:ue,white30:de,white50:pe,white60:fe,white70:he,white90:me,black20:ge,black40:ve,white5:ye,white20:_e,white40:be,solidBlack0:Se,solidWhite200:Ee,spotifyBlack7:Ae,midnight35:Te,aubergine46:Pe,maroon55:Oe,royalBlue55:Ce,kleinBlue61:ke,forest75:Re,chocolate75:Le,violet84:Ie,brightRed100:Ne,spearmint114:we,fuchsia115:De,tangerine120:Me,bole123:xe,salmon135:Fe,lavender135:Ue,azure135:Be,pumpkin135:Ve,tan135:Ge,storm155:Je,gold155:je,spotifyGreen157:He,sunflower172:Ke,rose180:Ye,aquamarine180:We,factoryYellow184:ze,powderGreen185:qe,citric186:Xe,neonGreen176:Ze,electricSeafoam167:Qe,redOrange25:$e,redOrange55:et,redOrange75:tt,redOrange100:nt,redOrange120:ot,redOrange135:it,redOrange155:rt,redOrange180:at,brown25:st,brown55:lt,brown75:ct,brown100:ut,brown123:dt,brown135:pt,brown155:ft,brown180:ht,brownDesat25:mt,brownDesat55:gt,brownDesat75:vt,brownDesat100:yt,brownDesat135:_t,brownDesat155:bt,brownDesat180:St,orange25:Et,orange55:At,orange75:Tt,orange100:Pt,orange135:Ot,orange155:Ct,orange180:kt,brownYellow25:Rt,brownYellow55:Lt,brownYellow75:It,brownYellow100:Nt,brownYellow135:wt,brownYellow155:Dt,brownYellow172:Mt,brownYellow180:xt,brownYellowDesat25:Ft,brownYellowDesat55:Ut,brownYellowDesat75:Bt,brownYellowDesat100:Vt,brownYellowDesat135:Gt,brownYellowDesat155:Jt,brownYellowDesat180:jt,yellow25:Ht,yellow55:Kt,yellow75:Yt,yellow100:Wt,yellow135:zt,yellow155:qt,yellow184:Xt,yellowGreen25:Zt,yellowGreen55:Qt,yellowGreen75:$t,yellowGreen100:en,yellowGreen135:tn,yellowGreen155:nn,yellowGreen186:on,yellowGreenDesat25:rn,yellowGreenDesat55:an,yellowGreenDesat75:sn,yellowGreenDesat100:ln,yellowGreenDesat135:cn,yellowGreenDesat155:un,yellowGreenDesat180:dn,green25:pn,green55:fn,green75:hn,green100:mn,green135:gn,green157:vn,green180:yn,greenDesat25:_n,greenDesat55:bn,greenDesat75:Sn,greenDesat100:En,greenDesat135:An,greenDesat155:Tn,greenDesat185:Pn,greenBlue25:On,greenBlue55:Cn,greenBlue75:kn,greenBlue100:Rn,greenBlue135:Ln,greenBlue155:In,greenBlue180:Nn,greenBlueDesat25:wn,greenBlueDesat55:Dn,greenBlueDesat75:Mn,greenBlueDesat100:xn,greenBlueDesat114:Fn,greenBlueDesat135:Un,greenBlueDesat155:Bn,greenBlueDesat180:Vn,blue25:Gn,blue55:Jn,blue75:jn,blue100:Hn,blue135:Kn,blue155:Yn,blue180:Wn,blueDesat25:zn,blueDesat55:qn,blueDesat75:Xn,blueDesat100:Zn,blueDesat135:Qn,blueDesat155:$n,blueDesat180:eo,blueViolet25:to,blueViolet55:no,blueViolet61:oo,blueViolet75:io,blueViolet100:ro,blueViolet135:ao,blueViolet155:so,blueViolet180:lo,blueVioletDesat25:co,blueVioletDesat35:uo,blueVioletDesat55:po,blueVioletDesat75:fo,blueVioletDesat100:ho,blueVioletDesat135:mo,blueVioletDesat155:go,blueVioletDesat180:vo,violet25:yo,violet55:_o,violet75:bo,violet100:So,violet135:Eo,violet155:Ao,violet180:To,violetDesat25:Po,violetDesat46:Oo,violetDesat75:Co,violetDesat100:ko,violetDesat135:Ro,violetDesat155:Lo,violetDesat180:Io,violetPink25:No,violetPink55:wo,violetPink75:Do,violetPink84:Mo,violetPink100:xo,violetPink135:Fo,violetPink155:Uo,violetPink180:Bo,violetPinkDesat25:Vo,violetPinkDesat55:Go,violetPinkDesat67:Jo,violetPinkDesat100:jo,violetPinkDesat135:Ho,violetPinkDesat155:Ko,violetPinkDesat180:Yo,pink25:Wo,pink55:zo,pink75:qo,pink100:Xo,pink115:Zo,pink135:Qo,pink155:$o,pink180:ei,pinkDesat25:ti,pinkDesat55:ni,pinkDesat75:oi,pinkDesat100:ii,pinkDesat135:ri,pinkDesat155:ai,pinkDesat180:si,red25:li,red55:ci,red75:ui,red100:di,red135:pi,red155:fi,red180:hi,redDesat25:mi,redDesat55:gi,redDesat75:vi,redDesat100:yi,redDesat135:_i,redDesat155:bi,redDesat180:Si,blueFacebook100:Ei,fluorescentRed109:Ai,fluorescentOrange144:Ti,fluorescentYellow194:Pi,fluorescentGreen176:Oi,fluorescentGreenBlue167:Ci,fluorescentCyan185:ki,fluorescentBlueViolet69:Ri,fluorescentViolet111:Li,fluorescentPink119:Ii,green:Ni,greenLight:wi,greenFocus:Di,greenDark:Mi,black:xi,white:Fi,red:Ui,redLight:Bi,redDark:Vi,blue:Gi,blueLight:Ji,blueFacebook:ji,blueDark:Hi,orangeLight:Ki},t.opacity={opacity0:Yi,opacity10:Wi,opacity30:zi,opacity50:qi,opacity70:Xi,opacity90:Zi},t.spacer={spacer4:Qi,spacer8:$i,spacer12:er,spacer16:tr,spacer20:nr,spacer24:or,spacer32:ir,spacer40:rr,spacer48:ar,spacer56:sr,spacer64:lr,spacer72:cr,spacer80:ur},t.type={balladFontSize:dr,balladWeight:pr,balladFontFamily:fr,balladBoldFontSize:hr,balladBoldWeight:mr,balladBoldFontFamily:gr,violaFontSize:vr,violaWeight:yr,violaFontFamily:_r,violaBoldFontSize:br,violaBoldWeight:Sr,violaBoldFontFamily:Er,mestoFontSize:Ar,mestoWeight:Tr,mestoFontFamily:Pr,mestoBoldFontSize:Or,mestoBoldWeight:Cr,mestoBoldFontFamily:kr,bassFontSize:Rr,bassWeight:Lr,bassFontFamily:Ir,forteFontSize:Nr,forteWeight:wr,forteFontFamily:Dr,brioFontSize:Mr,brioWeight:xr,brioFontFamily:Fr,finaleFontSize:Ur,finaleWeight:Br,finaleFontFamily:Vr,finaleBoldFontSize:Gr,finaleBoldWeight:Jr,finaleBoldFontFamily:jr,minuetFontSize:Hr,minuetWeight:Kr,minuetTracking:Yr,minuetUppercase:Wr,minuetFontFamily:zr,minuetBoldFontSize:qr,minuetBoldWeight:Xr,minuetBoldTracking:Zr,minuetBoldUppercase:Qr,minuetBoldFontFamily:$r,metronomeFontSize:ea,metronomeWeight:ta,metronomeTracking:na,metronomeUppercase:oa,metronomeFontFamily:ia,altoBrioFontSize:ra,altoBrioWeight:aa,altoBrioFontFamily:sa,altoFontSize:la,altoWeight:ca,altoFontFamily:ua,canonFontSize:da,canonWeight:pa,canonFontFamily:fa,celloCanonFontSize:ha,celloCanonWeight:ma,celloCanonFontFamily:ga,celloFontSize:va,celloWeight:ya,celloFontFamily:_a},t.ballad={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.balladBold={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.viola={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.violaBold={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.mesto={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.mestoBold={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.bass={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.forte={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.brio={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.finale={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.finaleBold={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.minuet={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.minuetBold={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.metronome={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.altoBrio={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.alto={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.canon={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.celloCanon={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.cello={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"}},21292:(e,t)=>{var n=t.spotifyBrandSet={background:{base:"#283ea3",highlight:"#253a98",press:"#0c1331",elevated:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},tinted:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},unsafeForSmallText:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"}},text:{base:"#1ed760",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1ed760",negative:"#1ed760",warning:"#1ed760",positive:"#1ed760",announcement:"#1ed760"},essential:{base:"#1ed760",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1ed760",negative:"#1ed760",warning:"#1ed760",positive:"#1ed760",announcement:"#1ed760"},decorative:{base:"#1ed760",subdued:"#324dcb"}},o=t.spotifyBrandAlternateSet={background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#283ea3",brightAccent:"#000000",subdued:"#283ea3",negative:"#283ea3",warning:"#283ea3",positive:"#283ea3",announcement:"#283ea3"},essential:{base:"#283ea3",brightAccent:"#000000",subdued:"#283ea3",negative:"#283ea3",warning:"#283ea3",positive:"#283ea3",announcement:"#283ea3"},decorative:{base:"#283ea3",subdued:"#1abc54"}},i=t.spotifyBrand2Set={background:{base:"#c5f0c9",highlight:"#d9f5db",press:"#32c340",elevated:{base:"#c5f0c9",highlight:"#c5f0c9",press:"#c5f0c9"},tinted:{base:"#c5f0c9",highlight:"#c5f0c9",press:"#c5f0c9"},unsafeForSmallText:{base:"#c5f0c9",highlight:"#c5f0c9",press:"#c5f0c9"}},text:{base:"#cd1400",brightAccent:"#000000",subdued:"#cd1400",negative:"#cd1400",warning:"#cd1400",positive:"#cd1400",announcement:"#cd1400"},essential:{base:"#cd1400",brightAccent:"#000000",subdued:"#cd1400",negative:"#cd1400",warning:"#cd1400",positive:"#cd1400",announcement:"#cd1400"},decorative:{base:"#cd1400",subdued:"#a3e7a9"}},r=t.spotifyBrand2AlternateSet={background:{base:"#cd1400",highlight:"#c31300",press:"#780c00",elevated:{base:"#cd1400",highlight:"#cd1400",press:"#cd1400"},tinted:{base:"#cd1400",highlight:"#cd1400",press:"#cd1400"},unsafeForSmallText:{base:"#cd1400",highlight:"#cd1400",press:"#cd1400"}},text:{base:"#c5f0c9",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c5f0c9",negative:"#c5f0c9",warning:"#c5f0c9",positive:"#c5f0c9",announcement:"#c5f0c9"},essential:{base:"#c5f0c9",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c5f0c9",negative:"#c5f0c9",warning:"#c5f0c9",positive:"#c5f0c9",announcement:"#c5f0c9"},decorative:{base:"#c5f0c9",subdued:"#ee1700"}},a=t.spotifyBrand3Set={background:{base:"#fce54f",highlight:"#fdee8e",press:"#c1a803",elevated:{base:"#fce54f",highlight:"#fce54f",press:"#fce54f"},tinted:{base:"#fce54f",highlight:"#fce54f",press:"#fce54f"},unsafeForSmallText:{base:"#fce54f",highlight:"#fce54f",press:"#fce54f"}},text:{base:"#b02897",brightAccent:"#000000",subdued:"#b02897",negative:"#b02897",warning:"#b02897",positive:"#b02897",announcement:"#b02897"},essential:{base:"#b02897",brightAccent:"#000000",subdued:"#b02897",negative:"#b02897",warning:"#b02897",positive:"#b02897",announcement:"#b02897"},decorative:{base:"#b02897",subdued:"#e6c804"}},s=t.spotifyBrand3AlternateSet={background:{base:"#b02897",highlight:"#a7268f",press:"#641756",elevated:{base:"#b02897",highlight:"#b02897",press:"#b02897"},tinted:{base:"#b02897",highlight:"#b02897",press:"#b02897"},unsafeForSmallText:{base:"#b02897",highlight:"#b02897",press:"#b02897"}},text:{base:"#fce54f",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#fce54f",negative:"#fce54f",warning:"#fce54f",positive:"#fce54f",announcement:"#fce54f"},essential:{base:"#fce54f",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#fce54f",negative:"#fce54f",warning:"#fce54f",positive:"#fce54f",announcement:"#fce54f"},decorative:{base:"#fce54f",subdued:"#cd2fb0"}},l=t.premiumSet={background:{base:"#ffd2d7",highlight:"#ffdde1",press:"#ff7988",elevated:{base:"#ffd2d7",highlight:"#ffd2d7",press:"#ffd2d7"},tinted:{base:"#ffd2d7",highlight:"#ffd2d7",press:"#ffd2d7"},unsafeForSmallText:{base:"#ffd2d7",highlight:"#ffd2d7",press:"#ffd2d7"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#ffb9c1"}},c=t.premiumAlternateSet={background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:"#ffd2d7",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ffd2d7",negative:"#ffd2d7",warning:"#ffd2d7",positive:"#ffd2d7",announcement:"#ffd2d7"},essential:{base:"#ffd2d7",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ffd2d7",negative:"#ffd2d7",warning:"#ffd2d7",positive:"#ffd2d7",announcement:"#ffd2d7"},decorative:{base:"#ffd2d7",subdued:"#1f1f1f"}},u=t.premiumDuoSet={background:{base:"#ffc862",highlight:"#ffd280",press:"#d48900",elevated:{base:"#ffc862",highlight:"#ffc862",press:"#ffc862"},tinted:{base:"#ffc862",highlight:"#ffc862",press:"#ffc862"},unsafeForSmallText:{base:"#ffc862",highlight:"#ffc862",press:"#ffc862"}},text:{base:"#000000",brightAccent:"#000000",subdued:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",brightAccent:"#000000",subdued:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#ffb223"}},d=t.premiumDuoAlternateSet={background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:"#ffc862",subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:"#ffc862",subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},p=t.premiumStudentSet={background:{base:"#c4b1d4",highlight:"#cab9d8",press:"#9978b5",elevated:{base:"#c4b1d4",highlight:"#c4b1d4",press:"#c4b1d4"},tinted:{base:"#c4b1d4",highlight:"#c4b1d4",press:"#c4b1d4"},unsafeForSmallText:{base:"#c4b1d4",highlight:"#c4b1d4",press:"#c4b1d4"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#b299c7"}},f=t.premiumStudentAlternateSet={background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:"#c4b1d4",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c4b1d4",negative:"#c4b1d4",warning:"#c4b1d4",positive:"#c4b1d4",announcement:"#c4b1d4"},essential:{base:"#c4b1d4",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c4b1d4",negative:"#c4b1d4",warning:"#c4b1d4",positive:"#c4b1d4",announcement:"#c4b1d4"},decorative:{base:"#c4b1d4",subdued:"#1f1f1f"}},h=t.premiumFamilySet={background:{base:"#a5bbd1",highlight:"#aec2d6",press:"#6389af",elevated:{base:"#a5bbd1",highlight:"#a5bbd1",press:"#a5bbd1"},tinted:{base:"#a5bbd1",highlight:"#a5bbd1",press:"#a5bbd1"},unsafeForSmallText:{base:"#a5bbd1",highlight:"#a5bbd1",press:"#a5bbd1"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#88a5c2"}},m=t.premiumFamilyAlternateSet={background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:"#a5bbd1",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a5bbd1",negative:"#a5bbd1",warning:"#a5bbd1",positive:"#a5bbd1",announcement:"#a5bbd1"},essential:{base:"#a5bbd1",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a5bbd1",negative:"#a5bbd1",warning:"#a5bbd1",positive:"#a5bbd1",announcement:"#a5bbd1"},decorative:{base:"#a5bbd1",subdued:"#1f1f1f"}},g=t.premiumMiniSet={background:{base:"#cff56a",highlight:"#e2f9a6",press:"#8bba0c",elevated:{base:"#cff56a",highlight:"#cff56a",press:"#cff56a"},tinted:{base:"#cff56a",highlight:"#cff56a",press:"#cff56a"},unsafeForSmallText:{base:"#cff56a",highlight:"#cff56a",press:"#cff56a"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#a8e20f"}},v=t.aubergineSet={background:{base:"#503659",highlight:"#503659",press:"#503659",elevated:{base:"#503659",highlight:"#503659",press:"#503659"},tinted:{base:"#503659",highlight:"#503659",press:"#503659"},unsafeForSmallText:{base:"#503659",highlight:"#503659",press:"#503659"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#684674"}},y=t.azureSet={background:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed",elevated:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed"},tinted:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed"},unsafeForSmallText:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2c86f4"}},_=t.boleSet={background:{base:"#b06239",highlight:"#b06239",press:"#b06239",elevated:{base:"#b06239",highlight:"#b06239",press:"#b06239"},tinted:{base:"#b06239",highlight:"#b06239",press:"#b06239"},unsafeForSmallText:{base:"#b06239",highlight:"#b06239",press:"#b06239"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c5754b"}},b=t.brightRedSet={background:{base:"#e91429",highlight:"#e91429",press:"#e91429",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},S=t.chocolateSet={background:{base:"#834f34",highlight:"#834f34",press:"#834f34",elevated:{base:"#834f34",highlight:"#834f34",press:"#834f34"},tinted:{base:"#834f34",highlight:"#834f34",press:"#834f34"},unsafeForSmallText:{base:"#834f34",highlight:"#834f34",press:"#834f34"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9c5e3e"}},E=t.citricSet={background:{base:"#608109",highlight:"#608109",press:"#608109",elevated:{base:"#608109",highlight:"#608109",press:"#608109"},tinted:{base:"#608109",highlight:"#608109",press:"#608109"},unsafeForSmallText:{base:"#608109",highlight:"#608109",press:"#608109"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6f950a"}},A=t.forestSet={background:{base:"#056952",highlight:"#056952",press:"#056952",elevated:{base:"#056952",highlight:"#056952",press:"#056952"},tinted:{base:"#056952",highlight:"#056952",press:"#056952"},unsafeForSmallText:{base:"#056952",highlight:"#056952",press:"#056952"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#067d62"}},T=t.fuchsiaSet={background:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c",elevated:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c"},tinted:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c"},unsafeForSmallText:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#f03ca7"}},P=t.goldSet={background:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900",elevated:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900"},tinted:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900"},unsafeForSmallText:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#d86600"}},O=t.graySet={background:{base:"#777777",highlight:"#777777",press:"#777777",elevated:{base:"#777777",highlight:"#777777",press:"#777777"},tinted:{base:"#777777",highlight:"#777777",press:"#777777"},unsafeForSmallText:{base:"#777777",highlight:"#777777",press:"#777777"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#898989"}},C=t.lavenderSet={background:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac",elevated:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac"},tinted:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac"},unsafeForSmallText:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9d7bb7"}},k=t.maroonSet={background:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b",elevated:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b"},tinted:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b"},unsafeForSmallText:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ac2835"}},R=t.midnightSet={background:{base:"#202f72",highlight:"#202f72",press:"#202f72",elevated:{base:"#202f72",highlight:"#202f72",press:"#202f72"},tinted:{base:"#202f72",highlight:"#202f72",press:"#202f72"},unsafeForSmallText:{base:"#202f72",highlight:"#202f72",press:"#202f72"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2b3f99"}},L=t.neonGreenSet={background:{base:"#148a08",highlight:"#148a08",press:"#148a08",elevated:{base:"#148a08",highlight:"#148a08",press:"#148a08"},tinted:{base:"#148a08",highlight:"#148a08",press:"#148a08"},unsafeForSmallText:{base:"#148a08",highlight:"#148a08",press:"#148a08"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#179e09"}},I=t.orangeSet={background:{base:"#d84000",highlight:"#d84000",press:"#d84000",elevated:{base:"#d84000",highlight:"#d84000",press:"#d84000"},tinted:{base:"#d84000",highlight:"#d84000",press:"#d84000"},unsafeForSmallText:{base:"#d84000",highlight:"#d84000",press:"#d84000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#f84a00"}},N=t.royalBlueSet={background:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3",elevated:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},tinted:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},unsafeForSmallText:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#324dcb"}},w=t.salmonSet={background:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63",elevated:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63"},tinted:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63"},unsafeForSmallText:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#e94780"}},D=t.spearmintSet={background:{base:"#438270",highlight:"#438270",press:"#438270",elevated:{base:"#438270",highlight:"#438270",press:"#438270"},tinted:{base:"#438270",highlight:"#438270",press:"#438270"},unsafeForSmallText:{base:"#438270",highlight:"#438270",press:"#438270"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#4d9681"}},M=t.stormSet={background:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1",elevated:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1"},tinted:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1"},unsafeForSmallText:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#678cb2"}},x=t.tanSet={background:{base:"#a56753",highlight:"#a56753",press:"#a56753",elevated:{base:"#a56753",highlight:"#a56753",press:"#a56753"},tinted:{base:"#a56753",highlight:"#a56753",press:"#a56753"},unsafeForSmallText:{base:"#a56753",highlight:"#a56753",press:"#a56753"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#b37b69"}},F=t.violetSet={background:{base:"#b02897",highlight:"#b02897",press:"#b02897",elevated:{base:"#b02897",highlight:"#b02897",press:"#b02897"},tinted:{base:"#b02897",highlight:"#b02897",press:"#b02897"},unsafeForSmallText:{base:"#b02897",highlight:"#b02897",press:"#b02897"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#cd2fb0"}};t.campaign={spotifyBrandSet:n,spotifyBrandAlternateSet:o,spotifyBrand2Set:i,spotifyBrand2AlternateSet:r,spotifyBrand3Set:a,spotifyBrand3AlternateSet:s,premiumSet:l,premiumAlternateSet:c,premiumDuoSet:u,premiumDuoAlternateSet:d,premiumStudentSet:p,premiumStudentAlternateSet:f,premiumFamilySet:h,premiumFamilyAlternateSet:m,premiumMiniSet:g},t.category={aubergineSet:v,azureSet:y,boleSet:_,brightRedSet:b,chocolateSet:S,citricSet:E,forestSet:A,fuchsiaSet:T,goldSet:P,graySet:O,lavenderSet:C,maroonSet:k,midnightSet:R,neonGreenSet:L,orangeSet:I,royalBlueSet:N,salmonSet:w,spearmintSet:D,stormSet:M,tanSet:x,violetSet:F}},22396:(e,t)=>{var n=t.darkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},brightAccent:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#12833a",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#17a449",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},o=t.lightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#117a37",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#169b45",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#12833a",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#17a449",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},i=t.creatorDarkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9979ff",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#794fff",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},brightAccent:{background:{base:"#5925ff",highlight:"#4e17ff",press:"#25009d",elevated:{base:"#5925ff",highlight:"#5925ff",press:"#5925ff"},tinted:{base:"#5925ff",highlight:"#5925ff",press:"#5925ff"},unsafeForSmallText:{base:"#5925ff",highlight:"#5925ff",press:"#5925ff"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#7347ff"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#825aff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#5d2aff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#5925ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#5925ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#906eff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#6f42ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},r=t.creatorLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#4100f4",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#4100f4",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#4100f4",highlight:"#3d00e6",press:"#1d006c",elevated:{base:"#4100f4",highlight:"#4100f4",press:"#4100f4"},tinted:{base:"#4100f4",highlight:"#4100f4",press:"#4100f4"},unsafeForSmallText:{base:"#4100f4",highlight:"#4100f4",press:"#4100f4"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#662fff"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#8559ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#6127ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#4100f4",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#4100f4",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9c78ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#7d4dff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},a=t.overtimeDarkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#19e68c",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#19e68c",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},brightAccent:{background:{base:"#19e68c",highlight:"#4beba5",press:"#12a967",elevated:{base:"#19e68c",highlight:"#19e68c",press:"#19e68c"},tinted:{base:"#19e68c",highlight:"#19e68c",press:"#19e68c"},unsafeForSmallText:{base:"#19e68c",highlight:"#19e68c",press:"#19e68c"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#16c97a"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#0e824f",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#12a363",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},s=t.advertisingLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#734d85",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#734d85",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#734d85",highlight:"#6c497d",press:"#3b2744",elevated:{base:"#734d85",highlight:"#734d85",press:"#734d85"},tinted:{base:"#734d85",highlight:"#734d85",press:"#734d85"},unsafeForSmallText:{base:"#734d85",highlight:"#734d85",press:"#734d85"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#895c9f"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9469a8",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#764f88",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#734d85",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#734d85",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#a683b7",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#8e61a3",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},l=t.advertisingDarkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#a683b7",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#8e61a3",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},brightAccent:{background:{base:"#734d85",highlight:"#6c497d",press:"#3b2744",elevated:{base:"#734d85",highlight:"#734d85",press:"#734d85"},tinted:{base:"#734d85",highlight:"#734d85",press:"#734d85"},unsafeForSmallText:{base:"#734d85",highlight:"#734d85",press:"#734d85"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#895c9f"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9469a8",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#764f88",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#734d85",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#734d85",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#9f79b2",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#85599a",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},c=t.quicksilverLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#543edd",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#543edd",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#543edd",highlight:"#4d36dc",press:"#271885",elevated:{base:"#543edd",highlight:"#543edd",press:"#543edd"},tinted:{base:"#543edd",highlight:"#543edd",press:"#543edd"},unsafeForSmallText:{base:"#543edd",highlight:"#543edd",press:"#543edd"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a57e1"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#7867e4",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#5842de",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#543edd",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#543edd",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9082e9",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#705de3",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},u=t.anchorLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#dadada",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#dadada"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#2a2837",subdued:"#6b668c",brightAccent:"#5000b9",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#7f43e9"},essential:{base:"#2a2837",subdued:"#8783a5",brightAccent:"#5000b9",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#874eea"},decorative:{base:"#2a2837",subdued:"#dedede"}},brightAccent:{background:{base:"#5000b9",highlight:"#4a00ac",press:"#080014",elevated:{base:"#5000b9",highlight:"#5000b9",press:"#5000b9"},tinted:{base:"#5000b9",highlight:"#5000b9",press:"#5000b9"},unsafeForSmallText:{base:"#5000b9",highlight:"#5000b9",press:"#5000b9"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6500e9"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#874eea",highlight:"#8146e9",press:"#5116b8",elevated:{base:"#874eea",highlight:"#874eea",press:"#874eea"},tinted:{base:"#874eea",highlight:"#874eea",press:"#874eea"},unsafeForSmallText:{base:"#874eea",highlight:"#874eea",press:"#874eea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9766ed"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9a4dff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#750bff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#5000b9",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#5000b9",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#24203f",highlight:"#2a254a",press:"#000000",elevated:{base:"#312c56",highlight:"#373160",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.08)",highlight:"rgba(255, 255, 255, 0.11)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#24203f",highlight:"#24203f",press:"#24203f"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#b9b4d9",brightAccent:"#e8f524",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8077ba",brightAccent:"#e8f524",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#36305e"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},d=t.studioLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#554dff",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#7b75ff",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#9691ff",highlight:"#9e99ff",press:"#5d55ff",elevated:{base:"#9691ff",highlight:"#9691ff",press:"#9691ff"},tinted:{base:"#9691ff",highlight:"#9691ff",press:"#9691ff"},unsafeForSmallText:{base:"#9691ff",highlight:"#9691ff",press:"#9691ff"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#807aff"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#5f58ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#857fff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},p=t.megaphoneLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#6447ff",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#496d91"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#7358ff",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#5179a1"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#7358ff",highlight:"#6c50ff",press:"#2600eb",elevated:{base:"#7358ff",highlight:"#7358ff",press:"#7358ff"},tinted:{base:"#7358ff",highlight:"#7358ff",press:"#7358ff"},unsafeForSmallText:{base:"#7358ff",highlight:"#7358ff",press:"#7358ff"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#876fff"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#5179a1",highlight:"#4d7399",press:"#324a63",elevated:{base:"#5179a1",highlight:"#5179a1",press:"#5179a1"},tinted:{base:"#5179a1",highlight:"#5179a1",press:"#5179a1"},unsafeForSmallText:{base:"#5179a1",highlight:"#5179a1",press:"#5179a1"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#658bb2"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#785eff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#7358ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#6e52ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#7358ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#917cff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#7358ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}};t.theme={darkTheme:n,lightTheme:o,creatorDarkTheme:i,creatorLightTheme:r,overtimeDarkTheme:a,advertisingLightTheme:s,advertisingDarkTheme:l,quicksilverLightTheme:c,anchorLightTheme:u,studioLightTheme:d,megaphoneLightTheme:p}},58706:(e,t,n)=>{"use strict";n.d(t,{$_Y:()=>R,By7:()=>l,Eu5:()=>T,F_T:()=>g,JBZ:()=>b,SA3:()=>O,SIq:()=>C,X33:()=>r,YhY:()=>u,ajA:()=>s,cQs:()=>S,crY:()=>d,dly:()=>f,eqR:()=>L,fwM:()=>o,g4V:()=>v,gXv:()=>P,hM$:()=>p,ixZ:()=>c,lM8:()=>E,mGT:()=>y,mTH:()=>_,nuo:()=>h,o78:()=>m,tGJ:()=>i,u1d:()=>a,uOY:()=>A,vmZ:()=>k});const o="#181818",i="#333333",r="rgba(0, 0, 0, 0)",a="rgba(0, 0, 0, 0.6)",s="rgba(0, 0, 0, 0.7)",l="#1ed760",c=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),u="0.3",d="0.7",p="4px",f="8px",h="12px",m="16px",g="20px",v="24px",y="32px",_="40px",b="48px",S="56px",E="64px",A="72px",T="479px",P="767px",O="768px",C="991px",k="992px",R={aquamarine:"#9bf0e1",aubergine:"#503750",azure:"#509bf5",bole:"#c87d55",brightRed:"#e61e32",chocolate:"#7d4b32",citric:"#cdf564",electricSeafoam:"#19e68c",factoryYellow:"#fae62d",forest:"#006450",fuchsia:"#dc148c",gold:"#f59b23",kleinBlue:"#4100f5",lavender:"#b49bc8",maroon:"#8c1932",midnight:"#1e3264",neonGreen:"#5ff550",orange:"#ff6437",pink:"#ffcdd2",plum:"#705378",powderGreen:"#c3f0c8",royalBlue:"#2d46b9",salmon:"#f573a0",spearmint:"#27856a",storm:"#a0c3d2",sunflower:"#ffc864",tan:"#c39687",tangerine:"#e3230e",violet:"#af2896",gray7:"#121212",gray10:o,gray15:"#282828",gray20:i,gray30:"#535353",gray50:"#7f7f7f",gray70:getComputedStyle(document.body).getPropertyValue("--spice-subtext").trim(),gray80:"#cccccc",gray85:"#d9d9d9",gray90:"#eeeeee",gray95:"#f8f8f8",opacityBlack0:r,opacityBlack10:"rgba(0, 0, 0, 0.1)",opacityBlack30:"rgba(0, 0, 0, 0.3)",opacityBlack50:"rgba(0, 0, 0, 0.5)",opacityBlack60:a,opacityBlack70:s,opacityBlack90:"rgba(0, 0, 0, 0.9)",opacityWhite0:"rgba(255, 255, 255, 0)",opacityWhite10:"rgba(255, 255, 255, 0.1)",opacityWhite30:"rgba(255, 255, 255, 0.3)",opacityWhite50:"rgba(255, 255, 255, 0.5)",opacityWhite60:"rgba(255, 255, 255, 0.6)",opacityWhite70:"rgba(255, 255, 255, 0.7)",opacityWhite90:"rgba(255, 255, 255, 0.9)",black0:"rgba(0, 0, 0, 0)",black10:"rgba(0, 0, 0, 0.1)",black30:"rgba(0, 0, 0, 0.3)",black50:"rgba(0, 0, 0, 0.5)",black60:"rgba(0, 0, 0, 0.6)",black70:"rgba(0, 0, 0, 0.7)",black90:"rgba(0, 0, 0, 0.9)",white0:"rgba(255, 255, 255, 0)",white10:"rgba(255, 255, 255, 0.1)",white30:"rgba(255, 255, 255, 0.3)",white50:"rgba(255, 255, 255, 0.5)",white60:"rgba(255, 255, 255, 0.6)",white70:"rgba(255, 255, 255, 0.7)",white90:"rgba(255, 255, 255, 0.9)",black20:"rgba(0, 0, 0, 0.2)",black40:"rgba(0, 0, 0, 0.4)",white5:"rgba(255, 255, 255, 0.05)",white20:"rgba(255, 255, 255, 0.2)",white40:"rgba(255, 255, 255, 0.4)",solidBlack0:"#000000",solidWhite200:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),spotifyBlack7:"#121212",midnight35:"#202f72",aubergine46:"#503659",maroon55:"#8a202b",royalBlue55:"#283ea3",kleinBlue61:"#4100f4",forest75:"#056952",chocolate75:"#834f34",violet84:"#b02897",brightRed100:"#e91429",spearmint114:"#4b917d",fuchsia115:"#f036a4",tangerine120:"#ff4834",bole123:"#c87d55",salmon135:"#ef77a1",lavender135:"#af93c4",azure135:"#59a0f6",pumpkin135:"#ff7439",tan135:"#c19384",storm155:"#a5bbd1",gold155:"#ffa42b",spotifyGreen157:"#1ed760",sunflower172:"#ffc862",rose180:"#ffd2d7",aquamarine180:"#91eeda",factoryYellow184:"#fce54f",powderGreen185:"#c5f0c9",citric186:"#cff56a",neonGreen176:"#5ff550",electricSeafoam167:"#19e68c",redOrange25:"#560f00",redOrange55:"#911600",redOrange75:"#b71800",redOrange100:"#e81b00",redOrange120:"#ff4834",redOrange135:"#ff7163",redOrange155:"#ff9e95",redOrange180:"#ffd3cf",brown25:"#3d2418",brown55:"#683e2a",brown75:"#834f34",brown100:"#a96440",brown123:"#c87d55",brown135:"#d38e67",brown155:"#e5ac8a",brown180:"#f7d7c3",brownDesat25:"#3b251d",brownDesat55:"#653f32",brownDesat75:"#805040",brownDesat100:"#a36652",brownDesat135:"#c19384",brownDesat155:"#d2b1a6",brownDesat180:"#eadad5",orange25:"#4f1800",orange55:"#862800",orange75:"#a83200",orange100:"#d64000",orange135:"#ff7439",orange155:"#ffa178",orange180:"#ffd4c2",brownYellow25:"#491e00",brownYellow55:"#793500",brownYellow75:"#964400",brownYellow100:"#bc5900",brownYellow135:"#f47e00",brownYellow155:"#ffa42b",brownYellow172:"#ffc862",brownYellow180:"#ffd97e",brownYellowDesat25:"#39260e",brownYellowDesat55:"#624218",brownYellowDesat75:"#7c531e",brownYellowDesat100:"#9f6b27",brownYellowDesat135:"#d0913f",brownYellowDesat155:"#deb076",brownYellowDesat180:"#efdabf",yellow25:"#352901",yellow55:"#594602",yellow75:"#705903",yellow100:"#8e7203",yellow135:"#bd9a03",yellow155:"#dab503",yellow184:"#fce54f",yellowGreen25:"#222e03",yellowGreen55:"#3b4f05",yellowGreen75:"#4a6406",yellowGreen100:"#5f8008",yellowGreen135:"#80ac0b",yellowGreen155:"#95c90d",yellowGreen186:"#cff56a",yellowGreenDesat25:"#262d11",yellowGreenDesat55:"#414d1e",yellowGreenDesat75:"#526226",yellowGreenDesat100:"#697d30",yellowGreenDesat135:"#8da841",yellowGreenDesat155:"#a9c261",yellowGreenDesat180:"#d7e3b5",green25:"#073116",green55:"#0c5426",green75:"#0f6a2f",green100:"#13873c",green135:"#19b551",green157:"#1ed760",green180:"#96f0b6",greenDesat25:"#182f21",greenDesat55:"#265135",greenDesat75:"#2d6740",greenDesat100:"#34854d",greenDesat135:"#3db35e",greenDesat155:"#5cce77",greenDesat185:"#c5f0c9",greenBlue25:"#013126",greenBlue55:"#035341",greenBlue75:"#056952",greenBlue100:"#088569",greenBlue135:"#10b28e",greenBlue155:"#16d0a6",greenBlue180:"#91eeda",greenBlueDesat25:"#182e28",greenBlueDesat55:"#294f44",greenBlueDesat75:"#346557",greenBlueDesat100:"#43816f",greenBlueDesat114:"#4b917d",greenBlueDesat135:"#5eac96",greenBlueDesat155:"#8bc3b3",greenBlueDesat180:"#c9e3db",blue25:"#052a56",blue55:"#084791",blue75:"#0a59b8",blue100:"#0d72ea",blue135:"#59a0f6",blue155:"#89bcf8",blue180:"#c8e0fc",blueDesat25:"#1d2b3a",blueDesat55:"#324b64",blueDesat75:"#405e7e",blueDesat100:"#5179a1",blueDesat135:"#82a1c0",blueDesat155:"#a5bbd1",blueDesat180:"#d4dfe9",blueViolet25:"#26008d",blueViolet55:"#3c00e4",blueViolet61:"#4100f4",blueViolet75:"#5925ff",blueViolet100:"#7358ff",blueViolet135:"#9691ff",blueViolet155:"#afb1ff",blueViolet180:"#d7dbff",blueVioletDesat25:"#1b2658",blueVioletDesat35:"#202f72",blueVioletDesat55:"#283ea3",blueVioletDesat75:"#334fcd",blueVioletDesat100:"#576dd6",blueVioletDesat135:"#8a9ae3",blueVioletDesat155:"#aab6ea",blueVioletDesat180:"#d7dcf5",violet25:"#400073",violet55:"#6900ba",violet75:"#8400e7",violet100:"#a833ff",violet135:"#c87dff",violet155:"#d8a3ff",violet180:"#edd4ff",violetDesat25:"#35243a",violetDesat46:"#503659",violetDesat75:"#734d85",violetDesat100:"#8e65a9",violetDesat135:"#af93c4",violetDesat155:"#c4b1d4",violetDesat180:"#e3daeb",violetPink25:"#4c1141",violetPink55:"#801d6d",violetPink75:"#a1258a",violetPink84:"#b02897",violetPink100:"#cc2faf",violetPink135:"#e079cd",violetPink155:"#e9a1dc",violetPink180:"#f5d3ef",violetPinkDesat25:"#3c1c4c",violetPinkDesat55:"#673081",violetPinkDesat67:"#773796",violetPinkDesat100:"#9e57bf",violetPinkDesat135:"#bb8dd0",violetPinkDesat155:"#cdaddc",violetPinkDesat180:"#e7d9ed",pink25:"#550635",pink55:"#8d0b58",pink75:"#b00d6e",pink100:"#df118b",pink115:"#f036a4",pink135:"#f46ebe",pink155:"#f79bd2",pink180:"#fcd2eb",pinkDesat25:"#4c172a",pinkDesat55:"#871f43",pinkDesat75:"#ad2152",pinkDesat100:"#de2666",pinkDesat135:"#ef77a1",pinkDesat155:"#f1a2bc",pinkDesat180:"#f4d6df",red25:"#590810",red55:"#930d1a",red75:"#b81021",red100:"#e91429",red135:"#f97481",red155:"#fe9da7",red180:"#ffd2d7",redDesat25:"#521319",redDesat55:"#8a202b",redDesat75:"#ad2836",redDesat100:"#d33f4e",redDesat135:"#e2828c",redDesat155:"#eaa6ad",redDesat180:"#f5d6d9",blueFacebook100:"#2374e1",fluorescentRed109:"#ff001a",fluorescentOrange144:"#ff8b1f",fluorescentYellow194:"#f3ff46",fluorescentGreen176:"#5ff550",fluorescentGreenBlue167:"#19e68c",fluorescentCyan185:"#00ffff",fluorescentBlueViolet69:"#2d28ff",fluorescentViolet111:"#c13fff",fluorescentPink119:"#ff1abf",green:getComputedStyle(document.body).getPropertyValue("--spice-button").trim(),greenLight:l,greenFocus:"#1da64d",greenDark:"#14833b",black:"#000000",white:c,red:"#cd1a2b",redLight:"#e22134",redDark:"#941320",blue:"#2e77d0",blueLight:"#4687d6",blueFacebook:"#1877f2",blueDark:"#1d4c85",orangeLight:"#ff5722"},L={screenXxsMax:T,screenXsMin:"480px",screenXsMax:P,screenSmMin:O,screenSmMax:C,screenMdMin:k,screenMdMax:"1199px",screenLgMin:"1200px",screenLgMax:"1919px",screenXlMin:"1920px"}},97614:(e,t,n)=>{"use strict";n.d(t,{$z5:()=>a,Otb:()=>o,QJq:()=>i,xXe:()=>r});const o="6rem",i="4.5rem",r="3rem",a="2rem"},94041:(e,t,n)=>{"use strict";n.d(t,{Fzl:()=>o,HjQ:()=>c,Sns:()=>a,Snx:()=>m,XfI:()=>f,dG:()=>u,ekl:()=>h,g4V:()=>y,hM$:()=>v,ixZ:()=>g,k77:()=>i,m1g:()=>p,mGT:()=>_,pCU:()=>d,s8M:()=>l,tGJ:()=>r,vI0:()=>s});const o="#4100f5",i="#121212",r="#333333",a="#535353",s="#202f72",l="#834f34",c="#ef77a1",u="#af93c4",d="#59a0f6",p="#ff7439",f="#19e68c",h=getComputedStyle(document.body).getPropertyValue("--spice-button").trim(),m="#000000",g=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),v="4px",y="24px",_="32px"},95886:(e,t,n)=>{"use strict";n.d(t,{Y:()=>m});var o=n(68901),i=n(59496),r=n(87995);var a=n(30619),s=n(3254),l=n(64709),c=n(9465),u=n(14911),d="overMedia",p=s.uH[d].background.unsafeForSmallText.highlight,f=l.ZP.div.attrs({role:"presentation"}).withConfig({displayName:"OverlayBackdrop",componentId:"sc-1vbts8w-0"})(["",";background:var(--background-unsafe-for-small-text-highlight,",");height:100%;left:0;position:fixed;top:0;width:100%;z-index:",";",";.docs-story &{position:absolute;z-index:",";}"],(0,c.D)(),p,u.CV,(function(e){return e.center&&(0,l.iv)(["align-items:center;display:flex;justify-content:center;"])}),u.Tu),h=["onClose","className","withPortal"],m=i.forwardRef((function(e,t){var n,l,c=e.onClose,u=void 0===c?function(){}:c,p=e.className,m=e.withPortal,g=(0,o.Z)(e,h),v=(n=t,l=(0,i.useRef)(null),(0,i.useEffect)((function(){n&&("function"==typeof n?n(l.current):n.current=l.current)})),l),y=function(e){27!==e.keyCode&&"Escape"!==e.code||u(e)};(0,i.useEffect)((function(){return window.addEventListener("keydown",y,!0),function(){window.removeEventListener("keydown",y,!0)}}));var _=i.createElement(f,Object.assign({ref:v,onClick:function(e){e.target===v.current&&u(e)},className:(0,s.Mg)(d,p)},g,{"data-encore-id":a.e.Backdrop}));return m?r.createPortal(_,document.body):_}))},37574:(e,t,n)=>{"use strict";n.d(t,{x:()=>y});var o=n(68901),i=n(59496),r=n(3254),a=n(58706),s=n(91689),l=n(9465),c=n(88093),u=n(50823),d=n(64709),p=n(4107),f=n(3992),h="box-shadow: inset 0 0 0 1px ".concat((0,r.NE)("decorativeSubdued"));var m=function(e,t,n,o){return(0,d.iv)(["top:",";right:",";bottom:",";left:",";"],e,t||e,n||e,o||e)},g=d.ZP.div.withConfig({displayName:"Box__BoxComponent",componentId:"sc-y4nds-0"})(["",""],(function(e){var t,n=e.variant,o=e.borderRadius,g=void 0===o?"6px":o,v=e.minBlockSize,y=void 0===v?a.JBZ:v,_=e.padding,b=e.paddingBlockStart,S=void 0===b?a.nuo:b,E=e.paddingBlockEnd,A=void 0===E?a.nuo:E,T=e.paddingInlineStart,P=void 0===T?a.nuo:T,O=e.paddingInlineEnd,C=void 0===O?a.nuo:O,k=e.hoverBackgroundColor,R=e.activeBackgroundColor,L=e.isInteractive,I=e.hasFocus,N=e.hoverAnimationDuration,w=void 0===N?"300ms":N,D=e.as,M="elevated"===n||"tinted"===n?(t=n).charAt(0).toUpperCase()+t.slice(1):"",x=(0,i.useContext)(f.t).isUsingKeyboard,F=(0,i.useContext)(p.W).useBrowserDefaultFocusStyle;return(0,d.iv)([""," position:relative;border-radius:",";min-block-size:",";z-index:1;",";",";color:",";line-height:normal;",";",";"," ",""],(0,l.D)(),g,y,"a"===D&&(0,d.iv)(["display:block;text-decoration:none;"]),(0,c.BX)(F),(0,r.NE)("textBase"),function(e){switch(e){case"naked":default:return null;case"tinted":return(0,d.iv)(["background-color:",";"],(0,r.NE)("backgroundTintedBase"));case"elevated":return(0,d.iv)(["background-color:",";box-shadow:",";"],(0,r.NE)("backgroundElevatedBase"),s.Jh);case"bordered":return(0,d.iv)(["",";"],h);case"contrasting":return(0,d.iv)(["background-color:",";"],(0,r.NE)("backgroundBase"))}}(n),_?(0,d.iv)(["padding:",";"],_):(0,d.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],S,A,P,C),L&&(0,d.iv)(["--animation-speed:",";--animation-ease:ease;--bg-inset-change-press:-4px;&:after{content:'';position:absolute;border-radius:",";z-index:-1;transition:all var(--animation-speed) var(--animation-ease);"," [dir='rtl'] &{","}","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}&:hover::after{background-color:",";",";",";}&[disabled]:hover::after,&[aria-disabled='true']:hover::after{background-color:unset;}"," &[disabled]:active::after,&[aria-disabled='true']:active::after{background-color:unset;","}",";",""],w,g,m("0px"),m("0px"),"naked"===n&&(_?(0,d.iv)(["",""],m(_)):(0,d.iv)(["",";[dir='rtl'] &{",";}"],m(S,P,A,C),m(S,C,A,P))),c.cp,(0,r.NE)(null!=k?k:"background".concat(M,"Highlight")),"naked"===n&&(0,d.iv)(["",""],m("0px")),"bordered"===n&&(0,d.iv)(["",";"],h),!1!==I&&(0,d.iv)(["&:active::after{background-color:",";"," ",";}"],(0,r.NE)(null!=R?R:"background".concat(M,"Press")),"naked"===n&&(0,d.iv)(["",";"],m("var(--bg-inset-change-press)")),"bordered"===n&&(0,d.iv)(["",";"],h)),"naked"===n&&(0,d.iv)(["",""],m("unset")),"contrasting"===n&&!F&&x&&(0,d.iv)([""," "," &:hover::after{transition:background-color var(--animation-speed) var(--animation-ease);inline-size:100%;block-size:100%;top:0;left:0;}&:focus::after{border-color:var( --parents-essential-base,"," );}"],u.Cs,(0,u.s8)(g,!0),(0,r.NE)(r.iK.essentialBase)),"contrasting"!==n&&!F&&x&&(0,d.iv)([""," &:focus{box-shadow:inset 0 0 0 3px var(--parents-essential-base,",");}"],u.Cs,(0,r.NE)(r.iK.essentialBase))),x&&I&&(0,d.iv)(["box-shadow:inset 0 0 0 3px var(--parents-essential-base,",");"],(0,r.NE)(r.iK.essentialBase)))})),v=["variant","isInteractive","className","onClick","href","children","disabled","as"],y=i.forwardRef((function(e,t){var n,a=e.variant,s=void 0===a?"naked":a,l=e.isInteractive,c=e.className,u=e.onClick,d=e.href,p=e.children,f=e.disabled,h=e.as,m=void 0===h?"div":h,y=(0,o.Z)(e,v),_=null!=l?l:!!u||!!d,b=void 0;"contrasting"===s&&(b=null!==(n=y.colorSet)&&void 0!==n?n:"invertedLight");var S=(0,i.useRef)(null);t&&(S=t);var E=function(e){var t;" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),null==(t=S.current)||t.click())};return(0,i.useEffect)((function(){var e;u&&!d&&(null==(e=S.current)||e.addEventListener("keydown",E))}),[u,d]),i.createElement(g,Object.assign({as:d?"a":m,variant:s,className:(0,r.Mg)(b,c),ref:S,tabIndex:_?0:void 0,isInteractive:_,onClick:u,href:f?void 0:d,disabled:f},y),p)}))},98117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(59496),i=n(4107),r=function(e){var t=e.useBrowserDefaultFocusStyle,n=void 0===t||t,r=e.children;return o.createElement(i.W.Provider,{value:{useBrowserDefaultFocusStyle:n}},r)}},1982:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(60901);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n(89312).VZ)},79475:(e,t,n)=>{"use strict";n.d(t,{D:()=>N});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(4107),l=n(56079),c=n(3992),u=n(30619),d=n(3254),p=n(89312),f=n(64709),h=n(88093),m=n(50823),g=f.ZP.span.withConfig({displayName:"ButtonFocus",componentId:"sc-2hq6ey-0"})(["border-color:transparent;",""],(function(e){return e.isUsingKeyboard&&(0,m.k2)(h.Dx)})),v=n(9465),y=n(30659),_=n(7734),b=f.ZP.span.withConfig({displayName:"ButtonInner",componentId:"sc-14ud5tc-0"})(["",";",""],(function(e){var t=e.UNSAFE_colorSet;return t?(0,d.D6)(t):""}),(function(e){var t=e.fallbackSet,n=e.buttonSize,o=e.iconLeading,i=e.iconTrailing,r=e.iconOnly,a=e.status,s=(0,h.ZG)(n,o,i,r,void 0,a);return(0,f.iv)(["",";position:relative;background-color:var(--background-base,",");color:var(--text-base,",");display:flex;border-radius:",";font-size:inherit;min-block-size:",";align-items:center;justify-content:center;",";",";"],(0,v.D)(),t.background.base,t.text.base,h.Dx,y.il[n],s,(0,_.g)())})),S=["component","buttonSize","hover","active","focus","fallbackSet","colorSet","useBrowserDefaultFocusStyle","status","fullWidth","UNSAFE_colorSet"],E=(0,f.ZP)(r.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,a=(e.buttonSize,e.hover,e.active,e.focus,e.fallbackSet,e.colorSet,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.UNSAFE_colorSet,(0,i.Z)(e,S));return r.createElement(o,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-qlcn5g-0"})(["",""],(function(e){var t=e.fallbackSet,n=e.useBrowserDefaultFocusStyle,o=e.status,i=e.buttonSize,r=e.fullWidth,a=e.hover,s=e.active,l=e.focus,c=(0,f.iv)(["","{",";background-color:var(--background-base,",");color:var(--text-base,",");}","{border-color:transparent;}"],b,h.cp,t.background.base,t.text.base,g),u=(0,f.iv)(["","{background-color:var(--background-press,",");box-shadow:none;transform:scale(1);}","{transform:scale(1);}"],b,t.background.press,g),d=(0,f.iv)([""," ","{background-color:var(--background-highlight,",");}"],!r&&(0,f.iv)(["",",","{","}"],b,g,h.l_),b,t.background.highlight),p=(0,f.iv)(["","{border-color:",";}"],g,m.Bg);return(0,f.iv)(["",";padding:0;min-inline-size:0;align-self:center;"," &:hover{",";}"," &:active{",";}"," &:focus{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,h.Lm)(i,n,o),r&&(0,f.iv)(["inline-size:100%;"]),d,a&&(0,f.iv)(["&&{","}"],d),u,s&&(0,f.iv)(["&&{","}"],u),p,l&&(0,f.iv)(["&&{","}"],p),c)})),A=n(18542),T=f.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-1hf1hjl-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,o=e.position,i=h.FN[t],r=((0,A.zg)(y.il[t])-n)/2;return(0,f.iv)(["display:flex;position:absolute;"," "," ",""],"only"===o&&(0,f.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],r,r,r),"leading"===o&&(0,f.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===o&&(0,f.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),P=function(e){var t=e.position,n=e.buttonSize,o=e.icon,i="only"===t&&"lg"===n?28:y._[n];return r.createElement(T,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},r.createElement(o,{iconSize:i}))},O=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,i=e.children,a=e.buttonSize,s=function(e,t){return t&&r.createElement(P,{icon:t,position:e,buttonSize:a})};return t?r.createElement(r.Fragment,null,s("only",t)):r.createElement(r.Fragment,null,s("leading",n),i,s("trailing",o))},C=["component","colorSet","buttonSize","fullWidth","iconLeading","iconTrailing","iconOnly","children","className","UNSAFE_colorSet","aria-label","aria-labelledby"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=r.forwardRef((function(e,t){var n=e.component,o=e.colorSet,p=void 0===o?"brightAccent":o,f=e.buttonSize,h=void 0===f?"md":f,m=e.fullWidth,v=e.iconLeading,y=e.iconTrailing,_=e.iconOnly,S=e.children,A=e.className,T=e.UNSAFE_colorSet,P=e["aria-label"],k=e["aria-labelledby"],R=(0,i.Z)(e,C);!_||P||k||(0,a.ZK)("ButtonPrimary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var L=(0,r.useContext)(c.t).isUsingKeyboard,I=(0,r.useContext)(s.W).useBrowserDefaultFocusStyle,N=(0,r.useContext)(l.S9),w=(0,l.lR)(l.U0.button,N),D=R.href&&"_blank"===R.target?"noopener noreferrer":null,M=d.uH[p];return r.createElement(E,Object.assign({},R,{rel:D,ref:t,component:!n&&R.href?"a":n,"aria-label":P,"aria-labelledby":k,buttonSize:h,fullWidth:m,fallbackSet:M,useBrowserDefaultFocusStyle:I,status:w,"data-encore-id":u.e.ButtonPrimary}),r.createElement(b,{className:T?A:(0,d.Mg)(p,A),fullWidth:m,iconLeading:v,iconTrailing:y,iconOnly:_,UNSAFE_colorSet:T,buttonSize:h,fallbackSet:M,status:w},r.createElement(O,{iconOnly:_,iconLeading:v,iconTrailing:y,buttonSize:h,children:S})),!I&&r.createElement(g,{isUsingKeyboard:L}))})),I=R(R({},p.VZ),{},{displayName:"ButtonPrimary"}),N=Object.assign(L,I)},63082:(e,t,n)=>{"use strict";n.d(t,{P:()=>R});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(4107),l=n(56079),c=n(3992),u=n(30619),d=n(89312),p=n(64709),f=n(3254),h=n(88093),m=n(50823),g=n(30659),v=n(7734),y=["component","semanticColor","buttonSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status","fullWidth","iconLeading","iconTrailing","iconOnly"],_=(0,p.ZP)(r.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,a=(e.semanticColor,e.buttonSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.iconLeading,e.iconTrailing,e.iconOnly,(0,i.Z)(e,y));return r.createElement(o,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-y0gtbx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,o=void 0===n?f.iK.textBase:n,i=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,l=e.status,c=e.isUsingKeyboard,u=e.fullWidth,d=e.iconLeading,y=e.iconTrailing,_=e.iconOnly,b=function(e){var t,n;switch(e){case f.iK.textAnnouncement:case f.iK.textBrightAccent:case f.iK.textNegative:case f.iK.textPositive:case f.iK.textSubdued:case f.iK.textWarning:t=n=e;break;default:t=f.iK.essentialSubdued,n=f.iK.essentialBase}return{borderDefaultColor:(0,f.NE)(t),borderHoverColor:(0,f.NE)(n)}}(o),S=b.borderDefaultColor,E=b.borderHoverColor,A=(0,p.iv)([""," border-color:",";",""],!u&&h.l_,E,"textSubdued"===o&&(0,p.iv)(["color:",";"],(0,f.NE)(f.iK.textBase))),T=(0,p.iv)([""," border-color:",";"],h.IT,S),P=(0,p.iv)([""," border-color:",";&::after{border-color:transparent;}"],h.cp,S),O=(0,h.ZG)(t,d,y,_,1);return(0,p.iv)(["",";"," ",";border:","px solid ",";color:",";min-line-size:0;min-block-size:",";display:inline-flex;align-items:center;justify-content:center;",";"," &:hover{",";}"," &:active{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}"],(0,h.Lm)(t,s,l),O,!s&&(0,m.s8)(h.Dx,c,a),1,S,(0,f.NE)(o),g.il[t],(0,v.g)(),u&&(0,p.iv)(["inline-size:100%;"]),A,i&&A,T,r&&T,P)})),b=n(18542),S=p.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-ihacte-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,o=e.position,i=h.FN[t],r=((0,b.zg)(g.il[t])-n)/2-1;return(0,p.iv)(["display:flex;position:absolute;"," "," ",""],"only"===o&&(0,p.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],r,r,r),"leading"===o&&(0,p.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===o&&(0,p.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),E=function(e){var t=e.position,n=e.buttonSize,o=e.icon,i="only"===t&&"lg"===n?28:g._[n];return r.createElement(S,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},r.createElement(o,{iconSize:i}))},A=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,i=e.children,a=e.buttonSize,s=function(e,t){return t&&r.createElement(E,{icon:t,position:e,buttonSize:a})};return t?r.createElement(r.Fragment,null,s("only",t)):r.createElement(r.Fragment,null,s("leading",n),i,s("trailing",o))},T=["component","buttonSize","iconLeading","iconTrailing","iconOnly","children","aria-label","aria-labelledby"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=r.forwardRef((function(e,t){var n=e.component,o=e.buttonSize,d=void 0===o?"md":o,p=e.iconLeading,f=e.iconTrailing,h=e.iconOnly,m=e.children,g=e["aria-label"],v=e["aria-labelledby"],y=(0,i.Z)(e,T);!h||g||v||(0,a.ZK)("ButtonSecondary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var b=(0,r.useContext)(c.t).isUsingKeyboard,S=(0,r.useContext)(s.W).useBrowserDefaultFocusStyle,E=(0,r.useContext)(l.S9),P=(0,l.lR)(l.U0.button,E),O=y.href&&"_blank"===y.target?"noopener noreferrer":null;return r.createElement(_,Object.assign({},y,{rel:O,ref:t,component:!n&&y.href?"a":n,"aria-label":g,"aria-labelledby":v,isUsingKeyboard:b,useBrowserDefaultFocusStyle:S,buttonSize:d,iconOnly:h,iconLeading:p,iconTrailing:f,status:P,"data-encore-id":u.e.ButtonSecondary}),r.createElement(A,{iconOnly:h,iconLeading:p,iconTrailing:f,buttonSize:d,children:m}))})),k=O(O({},d.VZ),{},{displayName:"ButtonSecondary"}),R=Object.assign(C,k)},30366:(e,t,n)=>{"use strict";n.d(t,{o:()=>R});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(4107),l=n(56079),c=n(3992),u=n(30619),d=n(30659),p=n(89312),f=n(64709),h=n(88093),m=n(3254),g=n(50823),v=n(7734),y=n(18542),_=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],b=(0,f.ZP)(r.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,a=(e.semanticColor,e.condensed,e.condensedAll,e.iconLeading,e.iconTrailing,e.iconOnly,e.buttonSize,e.iconSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,(0,i.Z)(e,_));return r.createElement(o,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,o=void 0===n?"textSubdued":n,i=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,l=e.status,c=e.isUsingKeyboard,u=e.condensed,p=e.condensedAll,_=e.iconLeading,b=e.iconTrailing,S=e.iconOnly,E=e.iconSize,A=(0,h.lK)(t),T=A.paddingTopBottom,P=A.paddingLeftRight,O="md"===t&&(_||b)?-2:0,C="".concat((0,y.zg)(T)+O,"px"),k=h.FN[t],R="".concat(((0,y.zg)(d.il[t])-E)/2,"px"),L=(0,f.iv)([""," "," "," "," ",""],!p&&(0,f.iv)(["padding-block-start:",";padding-block-end:",";min-block-size:",";"],S?R:C,S?R:C,d.il[t]),p&&(0,f.iv)(["padding:0;"]),u&&(0,f.iv)(["padding-inline-start:0;padding-inline-end:0;"]),!u&&!p&&!S&&(0,f.iv)(["padding-inline-start:",";padding-inline-end:",";"],_?k:P,b?k:P),!u&&!p&&S&&(0,f.iv)(["padding-inline-start:",";padding-inline-end:",";"],R,R)),I=(0,f.iv)([""," ",""],h.l_,"textSubdued"===o&&(0,f.iv)(["color:",";"],(0,m.NE)(m.iK.textBase))),N=(0,f.iv)([""," color:",";"],h.IT,(0,m.NE)(m.iK.textSubdued)),w=(0,f.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],h.cp,(0,m.NE)(m.iK.textSubdued));return(0,f.iv)([""," color:",";min-inline-size:0;",";",";display:inline-flex;align-items:center;justify-content:center;&:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,h.Lm)(t,s,l),(0,m.NE)(o),(0,v.g)(),L,I,i&&I,N,r&&N,(function(){var e=(p?0:(0,y.zg)(C))+g.Ef,t=S?"".concat(E,"px"):"calc(100% - ".concat(u||p?0:2*(_||b?(0,y.zg)(k):(0,y.zg)(P)),"px)");return(0,f.iv)(["",";&::after{inline-size:",";}"],!s&&(0,g.qy)(e,c,a),t)}),w)})),S=f.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-16usrgb-0"})(["display:flex;",""],(function(e){var t=e.buttonSize,n=e.position;return(0,f.iv)([""," ",""],"leading"===n&&(0,f.iv)(["margin-inline-end:",";"],h.Z7[t]),"trailing"===n&&(0,f.iv)(["margin-inline-start:",";"],h.Z7[t]))})),E=function(e){var t=e.position,n=e.buttonSize,o=e.icon,i=e.iconSize,a=o;return r.createElement(S,{position:t,buttonSize:n,"aria-hidden":"true"},r.createElement(a,{iconSize:i}))},A=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,i=e.children,a=e.buttonSize,s=e.iconSize,l=function(e,t){return t&&r.createElement(E,{icon:t,position:e,buttonSize:a,iconSize:s})};return t?r.createElement(r.Fragment,null,l("only",t)):r.createElement(r.Fragment,null,l("leading",n),i,l("trailing",o))},T=["component","color","children","buttonSize","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C=r.forwardRef((function(e,t){var n=e.component,o=(e.color,e.children),p=e.buttonSize,f=void 0===p?"md":p,h=e.iconOnly,m=e.iconLeading,g=e.iconTrailing,v=e["aria-label"],y=e["aria-labelledby"],_=(0,i.Z)(e,T);!h||v||y||(0,a.ZK)("ButtonTertiary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var S=(0,r.useContext)(c.t).isUsingKeyboard,E=(0,r.useContext)(s.W).useBrowserDefaultFocusStyle,P=(0,r.useContext)(l.S9),O=(0,l.lR)(l.U0.button,P),C=_.href&&"_blank"===_.target?"noopener noreferrer":null,k=h&&"lg"===f?32:d._[f];return r.createElement(b,Object.assign({},_,{rel:C,ref:t,component:!n&&_.href?"a":n,"aria-label":v,"aria-labelledby":y,buttonSize:f,iconSize:k,iconLeading:m,iconTrailing:g,iconOnly:h,isUsingKeyboard:S,useBrowserDefaultFocusStyle:E,status:O,"data-encore-id":u.e.ButtonTertiary}),r.createElement(A,{iconOnly:h,iconLeading:m,iconTrailing:g,iconSize:k,children:o,buttonSize:f}))})),k=O(O({},p.VZ),{},{displayName:"ButtonTertiary"}),R=Object.assign(C,k)},39140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L,H:()=>R});var o=n(68492),i=n(68901),r=n(59496),a=n(58706),s=n(78400),l=n(99759),c=n(48712),u=n(24697),d=["size","imageWidth","imageHeight","borderRadius","alt"],p={sm:"152px",md:"358px"},f=function(e){var t=e.size,n=void 0===t?"md":t,o=e.imageWidth,a=e.imageHeight,s=e.borderRadius,l=void 0===s?c.spacer4:s,f=e.alt,h=void 0===f?"":f,m=(0,i.Z)(e,d);return o||a?r.createElement(u.E,Object.assign({alt:h,imageWidth:o,imageHeight:a,borderRadius:l},m)):r.createElement(u.E,Object.assign({alt:h,style:{minInlineSize:p[n]},imageWidth:"100%",borderRadius:l},m))},h=n(81839),m=n(29964),g=n(64709),v={sm:a.dly,md:a.nuo},y={sm:"2px",md:a.hM$},_=g.ZP.div.withConfig({displayName:"Areas__InteractiveArea",componentId:"sc-1tea2mc-0"})(["& button,& a,& [role='button'],& [role='link']{position:relative;z-index:1;}"]),b=(0,g.ZP)(_).withConfig({displayName:"Areas__MainArea",componentId:"sc-1tea2mc-1"})(["",""],(function(e){var t=e.horizontalGap;return(0,g.iv)(["column-gap:",";align-items:center;display:flex;"],t)})),S=(0,g.ZP)(_).withConfig({displayName:"Areas__Column",componentId:"sc-1tea2mc-2"})(["",""],(function(e){var t=e.size,n=e.titleGap;return(0,g.iv)(["display:flex;flex-direction:column;gap:",";flex-basis:100%;"],n||y[t])})),E=(0,g.ZP)(_).withConfig({displayName:"Areas__FooterArea",componentId:"sc-1tea2mc-3"})(["margin-top:auto;"]),A=n(37574),T=(0,g.ZP)(A.x).withConfig({displayName:"Box",componentId:"sc-1njtxi4-0"})(["",""],(function(e){var t=e.contentAlign,n=e.verticalGap;return(0,g.iv)(["display:inline-flex;flex-direction:column;row-gap:",";&[disabled]{opacity:",";}",""],n,a.crY,t&&(0,g.iv)(["margin-inline-start:-",";margin-inline-end:-",";"],a.dly,a.dly))})),P=n(50823),O=g.ZP.button.withConfig({displayName:"CardButton",componentId:"sc-g9vf2u-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:transparent;border:none;width:100%;",""],P.Cs),C=g.ZP.div.withConfig({displayName:"CardLink",componentId:"sc-1ut6cns-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;"]),k=["pretitle","title","subtitle","media","leading","trailing","body","footer","size","titleGap","verticalGap","horizontalGap","alt","contentAlign","disabled","aria-disabled","isRedundantOnClick","isSelected","onClick","onClickHint","id"],R=(0,r.createContext)(null),L=r.forwardRef((function(e,t){var n=e.pretitle,c=e.title,u=e.subtitle,d=e.media,p=e.leading,g=e.trailing,y=e.body,_=e.footer,A=e.size,P=void 0===A?"md":A,L=e.titleGap,I=e.verticalGap,N=void 0===I?a.dly:I,w=e.horizontalGap,D=void 0===w?a.nuo:w,M=(e.alt,e.contentAlign),x=void 0!==M&&M,F=e.disabled,U=e["aria-disabled"],B=e.isRedundantOnClick,V=e.isSelected,G=e.onClick,J=e.onClickHint,j=e.id,H=(0,i.Z)(e,k),K=!(!F&&!U),Y=(0,r.useState)(!1),W=(0,o.Z)(Y,2),z=W[0],q=W[1],X=v[P];return r.createElement(R.Provider,{value:j},r.createElement(T,Object.assign({role:"group","aria-labelledby":"card-title-".concat(j),ref:t,isInteractive:!!G,hasFocus:z,tabIndex:void 0,paddingBlockStart:X,paddingBlockEnd:X,paddingInlineStart:X,paddingInlineEnd:X,contentAlign:x,disabled:K,verticalGap:N},H),G&&r.createElement(r.Fragment,null,B?r.createElement(C,{onClick:G,onMouseDown:function(){return q(!0)},onTouchStart:function(){return q(!0)},onMouseUp:function(){return q(!1)},onTouchEnd:function(){return q(!1)}}):r.createElement(O,{onClick:G,role:"boolean"==typeof V?"switch":void 0,"aria-checked":V,"aria-labelledby":"card-title-".concat(j," card-subtitle-").concat(j),"aria-describedby":"onClickHint".concat(j),onFocus:function(){return q(!0)},onBlur:function(){return q(!1)}}),r.createElement("div",{style:{display:"none"},id:"onClickHint".concat(j)},J)),d&&(0,s.Q)(d,r.createElement(f,{size:P,src:d})),r.createElement(b,{horizontalGap:D},p&&r.createElement("div",null,p),r.createElement(S,{size:P,titleGap:L},(0,s.Q)(n,r.createElement(l.u,null,n)),(0,s.Q)(c,r.createElement(m.l,{id:"card-title-".concat(j)},c)),(0,s.Q)(u,r.createElement(h._,null,u))),g&&r.createElement("div",null,g)),y&&(0,s.Q)(y,r.createElement(l.u,null,y)),_&&r.createElement(E,null,(0,s.Q)(_,r.createElement(l.u,null,_)))))}))},99759:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var o=n(68901),i=n(59496),r=n(64709),a=n(56162),s=["lineClamp","children","variant","semanticColor","as","hasTextSeparator"],l=r.ZP.span.withConfig({displayName:"CardDetails__LineClamp",componentId:"sc-1gdonml-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),c=i.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,c=e.variant,u=void 0===c?"mesto":c,d=e.semanticColor,p=void 0===d?"textSubdued":d,f=e.as,h=void 0===f?"p":f,m=e.hasTextSeparator,g=void 0!==m&&m,v=(0,o.Z)(e,s),y=r;return g&&Array.isArray(r)&&(y=i.createElement(i.Fragment,null,r.map((function(e,t){return r.length-1===t?e:i.createElement(i.Fragment,null,e," • ")})))),i.createElement(a.D,Object.assign({as:h,variant:u,semanticColor:p},v,{ref:t}),n?i.createElement(l,{lineClamp:n},y):y)}))},81839:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var o=n(68901),i=n(59496),r=n(39140),a=n(99759),s=["id"],l=i.forwardRef((function(e,t){var n=e.id,l=(0,o.Z)(e,s),c=(0,i.useContext)(r.H),u=c?"card-subtitle-".concat(c):void 0;return i.createElement(a.u,Object.assign({ref:t,id:n||u},l))}))},29964:(e,t,n)=>{"use strict";n.d(t,{l:()=>p});var o=n(68901),i=n(59496),r=n(64709),a=n(39140),s=n(80885),l=n(56162),c=["lineClamp","children","variant","as","onClick","aria-describedby","id","href"],u=r.ZP.span.withConfig({displayName:"CardTitle__LineClamp",componentId:"sc-1h38un4-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),d=(0,r.ZP)(l.D).withConfig({displayName:"CardTitle__CardType",componentId:"sc-1h38un4-1"})(["outline:none;text-decoration:none;&:focus{","}&:hover{text-decoration:underline;}"],s.j4),p=function(e){var t=e.lineClamp,n=e.children,r=e.variant,s=void 0===r?"ballad":r,l=e.as,p=void 0===l?"p":l,f=e.onClick,h=e["aria-describedby"],m=e.id,g=e.href,v=(0,o.Z)(e,c),y=(0,i.useContext)(a.H),_=y?"card-title-".concat(y):void 0,b=y&&f?"onClickHint".concat(y):void 0;return i.createElement(d,Object.assign({id:m||_,forwardedAs:g?"a":p,onClick:f,variant:s,href:g,"aria-describedby":h||b},v),t?i.createElement(u,{lineClamp:t},n):n)}},76160:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(3254),c=n(58706),u=n(64709),d=n(81239),p=n(9465),f=n(88093),h=n(50823),m=(0,d._S)("pill",c.mGT),g=u.ZP.button.withConfig({displayName:"Chip__ChipComponent",componentId:"sc-ry3uox-0"})(["",""],(function(e){var t=e.isUsingKeyboard,n=e.useBrowserDefaultFocusStyle,o=e.secondary,i=e.size;return(0,u.iv)(["",";",";",";border-radius:",";display:inline-flex;vertical-align:middle;max-inline-size:100%;margin-block-end:",";text-decoration:none;overflow-wrap:break-word;position:relative;flex-shrink:0;z-index:1;"," &:not(:last-child){margin-inline-end:",";}"],(0,p.D)(),(0,f.BX)(n),!n&&(0,h.s8)(m,t),m,(0,d.mA)(-2,c.dly),o&&(0,u.iv)(["&:not(:first-child){margin-inline-start:",";z-index:0;","}"],"calc(-1 * ".concat("sm"===i?(0,d.mA)(3,c.mTH):(0,d.mA)(4,c.cQs),")"),t&&(0,u.iv)(["&:focus{z-index:1;margin-inline-start:",";}"],"calc(-1 * ".concat("sm"===i?(0,d.mA)(-1,c.nuo):(0,d.mA)(0,c.o78),")"))),(0,d.mA)(-2,c.dly))})),v=n(30659),y=n(7734),_=n(98590),b=n(14911),S=["children","iconLeading","iconTrailing","size"],E=u.ZP.span.withConfig({displayName:"ChipInner__ChipInnerComponent",componentId:"sc-1ly6j4j-0"})(["",""],(function(e){var t=e.size,n=e.selected,o=e.secondary,i=e.isUsingKeyboard,r=e.iconLeading,a=e.iconTrailing;return(0,u.iv)(["",";border-radius:",";color:",";transition:background-color 0.2s,color 0.2s;display:",";min-inline-size:0;min-block-size:",";align-items:center;padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"," ","[href] > &&{",";}",":not([href]) > &&{",";}"," ",":hover > &&{background-color:",";}",":active > &&{background-color:",";}","[disabled] > &&,","[aria-disabled='true'] > &&{background-color:",";opacity:",";cursor:",";}"],(0,p.D)(),m,(0,l.NE)(l.iK.textBase),r||a?"grid":"inline-flex",(0,d.EW)(t,v.il[t]),"sm"===t?(0,d.mA)(-4,v.sz[t]):(0,d.mA)(-2,v.sz[t]),"sm"===t?(0,d.mA)(-4,v.sz[t]):(0,d.mA)(-2,v.sz[t]),"sm"===t?(0,d.mA)(-1,c.nuo):(0,d.mA)(0,c.o78),"sm"===t?(0,d.mA)(-1,c.nuo):(0,d.mA)(0,c.o78),(0,y.g)(),(r||a)&&(0,u.iv)(["grid-auto-flow:column;grid-gap:",";"],"sm"===t?c.dly:c.nuo),g,"sm"===t?(0,_.I_)():(0,_.Vr)(),g,"sm"===t?(0,_.Ue)():(0,_.Mp)(),o?(0,u.iv)(["background-color:",";",":not(:focus) > &&{padding-inline-start:",";}",":focus > &&{","}"],(0,l.NE)(l.iK.decorativeSubdued),g,"sm"===t?(0,d.mA)(3,c.mTH):(0,d.mA)(4,c.cQs),g,!i&&(0,u.iv)(["padding-inline-start:",";"],"sm"===t?(0,d.mA)(3,c.mTH):(0,d.mA)(4,c.cQs))):(0,u.iv)(["background-color:",";"],n?(0,l.NE)(l.iK.backgroundBase):(0,l.NE)(l.iK.backgroundTintedBase)),g,n?(0,l.NE)(l.iK.backgroundHighlight):(0,l.NE)(l.iK.backgroundTintedHighlight),g,n?(0,l.NE)(l.iK.backgroundPress):(0,l.NE)(l.iK.backgroundTintedPress),g,g,n?(0,l.NE)(l.iK.backgroundBase):(0,l.NE)(l.iK.backgroundTintedBase),b.Zx,b.fn)})),A=function(e){var t=e.children,n=e.iconLeading,r=e.iconTrailing,a=e.size,s=(0,o.Z)(e,S),l=n,c=r;return i.createElement(E,Object.assign({size:a,iconLeading:n,iconTrailing:r},s),l&&i.createElement(l,{iconSize:v._[a],"aria-hidden":"true"}),l||c?i.createElement("span",null,t):t,c&&i.createElement(c,{iconSize:v._[a],"aria-hidden":"true"}))},T=["size","secondary","selected","selectedColorSet","className","children","iconLeading","iconTrailing"],P=i.forwardRef((function(e,t){var n=e.size,c=void 0===n?"sm":n,u=e.secondary,d=e.selected,p=e.selectedColorSet,f=void 0===p?"invertedDark":p,h=e.className,m=e.children,v=e.iconLeading,y=e.iconTrailing,_=(0,o.Z)(e,T),b=(0,i.useContext)(a.t).isUsingKeyboard,S=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(g,Object.assign({secondary:u,size:c,isUsingKeyboard:b,useBrowserDefaultFocusStyle:S,ref:t,role:_.href?void 0:"checkbox","aria-checked":_.href?void 0:d},_,{"data-encore-id":s.e.Chip}),i.createElement(A,{selected:d,isUsingKeyboard:b,size:c,secondary:u,iconLeading:v,iconTrailing:y,className:d?(0,l.Mg)(f,h):h},m))}))},37769:(e,t,n)=>{"use strict";n.d(t,{w:()=>_});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(83680),c=n(58706),u=n(64709),d=n(9465),p=n(88093),f=n(50823),h=n(81239),m=n(3254),g=n(14911),v=u.ZP.button.withConfig({displayName:"ChipClear__ChipClearComponent",componentId:"sc-zv5btm-0"})(["",""],(function(e){var t=e.size,n=e.isUsingKeyboard,o=e.useBrowserDefaultFocusStyle;return(0,u.iv)(["",";",";",";border-radius:50%;display:inline-flex;vertical-align:middle;padding:",";transition:background-color 0.2s,color 0.2s;background-color:",";&:hover{background-color:",";}&:active{background-color:",";}&[disabled]{background-color:",";opacity:",";cursor:",";}&:not(:last-child){margin-inline-end:",";margin-block-end:",";}"],(0,d.D)(),(0,p.BX)(o),!o&&(0,f.s8)("50%",n),"sm"===t?(0,h.mA)(-2,c.dly):(0,h.mA)(-1,c.nuo),(0,m.NE)(m.iK.backgroundTintedBase),(0,m.NE)(m.iK.backgroundTintedHighlight),(0,m.NE)(m.iK.backgroundTintedPress),(0,m.NE)(m.iK.backgroundTintedBase),g.Zx,g.fn,(0,h.mA)(-2,c.dly),(0,h.mA)(-2,c.dly))})),y=["size"],_=i.forwardRef((function(e,t){var n=e.size,c=void 0===n?"sm":n,u=(0,o.Z)(e,y),d=(0,i.useContext)(a.t).isUsingKeyboard,p="sm"===c?16:24,f=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(v,Object.assign({isUsingKeyboard:d,useBrowserDefaultFocusStyle:f,ref:t,size:c},u,{"data-encore-id":s.e.ChipClear}),i.createElement(l.k,{iconSize:p,"aria-hidden":"true"}))}))},38191:(e,t,n)=>{"use strict";n.d(t,{l:()=>S});var o=n(68492),i=n(68901),r=n(59496),a=n(58896),s=n(30619),l=n(3254),c=n(58706),u=n(64709),d=n(50823),p=n(81239),f=u.ZP.div.withConfig({displayName:"Body",componentId:"sc-19u46fy-0"})([""," padding-inline-start:",";padding-inline-end:",";padding-block-end:",";overflow:auto;"],d.Cs,(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(0,p.mA)(0,c.o78)),h=n(9465),m=n(91689),g=u.ZP.div.attrs({role:"dialog"}).withConfig({displayName:"Dialog",componentId:"sc-18qzfns-0"})(["",";",";padding-block-start:",";inline-size:335px;overflow-wrap:break-word;"],(0,h.D)(),(function(e){return(0,m.WZ)({colorSet:e.colorSet})}),(0,p.mA)(0,c.o78)),v=u.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1w1mf9b-0"})(["align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-block-start:",";padding-inline-start:",";padding-inline-end:",";padding-block-end:",";@media (max-width:","){justify-content:center;}& > div{display:flex;min-inline-size:0;@media (max-width:","){flex-direction:column;}}a,button{&:not(:first-child){margin-inline-start:",";}@media (max-width:","){margin-inline-start:0;margin-inline-end:0;margin-block-start:",";margin-block-end:",";&:not(:first-child){margin-inline-start:0;}}}"],(0,p.mA)(-4,c.hM$),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(0,p.mA)(-2,c.dly),c.Eu5,c.Eu5,(0,p.mA)(2,c.mGT),c.Eu5,(0,p.mA)(-4,c.hM$),(0,p.mA)(-4,c.hM$)),y=n(56162),_=(0,u.ZP)(y.D).attrs({forwardedAs:"h1",variant:"cello"}).withConfig({displayName:"Title",componentId:"sc-i526nw-0"})(["padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"],(0,p.mA)(-2,c.dly),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(function(e){return e.hasBorder&&(0,u.iv)(["border-block-end:1px solid var(--decorative-subdued,",");"],l.uH[e.colorSet].decorative.subdued)})),b=["dialogTitle","dialogTitleId","id","body","footer","className","colorSet","aria-label"],S=r.forwardRef((function(e,t){var n=e.dialogTitle,c=e.dialogTitleId,u=e.id,d=e.body,p=e.footer,h=e.className,m=e.colorSet,y=void 0===m?"base":m,S=e["aria-label"],E=(0,i.Z)(e,b),A=u&&"".concat(u,"-title")||c;n&&A||S||(0,a.ZK)("Warning: The DialogAlert component must have dialogTitle and an id or an aria-label to be accessible.");var T=(0,r.useState)(!1),P=(0,o.Z)(T,2),O=P[0],C=P[1],k=u&&"".concat(u,"-body");return r.createElement(g,Object.assign({ref:t,colorSet:y,className:(0,l.Mg)(y,h),"aria-label":S,"aria-describedby":k,"aria-labelledby":!S&&n?A:void 0,id:u},E,{"data-encore-id":s.e.DialogAlert}),n&&r.createElement(_,{id:A,hasBorder:O,colorSet:y},n),r.createElement(f,{id:k,onScroll:function(e){return C(e.target instanceof HTMLElement&&0!==e.target.scrollTop)}},d),p&&r.createElement(v,null,p))}))},76123:(e,t,n)=>{"use strict";n.d(t,{d:()=>E});var o=n(68492),i=n(68901),r=n(59496),a=n(58896),s=n(30619),l=n(3254),c=n(58706),u=n(64709),d=n(50823),p=n(81239),f=u.ZP.div.withConfig({displayName:"Body",componentId:"sc-1al2t0w-0"})([""," border-block-end:1px solid ",";overflow:auto;@media (max-width:","){padding-block-start:0;padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (min-width:","){padding-block-start:0;padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}"],d.Cs,(function(e){return"var(--decorative-subdued, ".concat(l.uH[e.colorSet].decorative.subdued,")")}),c.gXv,(0,p.mA)(1,c.o78),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),c.SA3,(0,p.mA)(1,c.g4V),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T)),h=n(91689),m=u.ZP.div.attrs({role:"dialog"}).withConfig({displayName:"Dialog",componentId:"sc-1o778i8-0"})(["",";width:600px;overflow-wrap:break-word;",":first-child{padding-block-start:",";}@media (min-width:","){",":last-child{padding-block-end:",";}}"],(function(e){return(0,h.WZ)({colorSet:e.colorSet})}),f,(0,p.mA)(0,c.o78),c.SA3,f,(0,p.mA)(0,c.o78)),g=u.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1ory0pq-0"})(["align-items:center;display:flex;justify-content:flex-end;flex-shrink:0;flex-wrap:wrap;@media (max-width:","){padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (max-width:","){justify-content:center;}@media (min-width:","){padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}& > div{@media (max-width:","){display:flex;flex-direction:column;}}& > *{min-width:0;}a,button{@media (max-width:","){margin-inline-start:",";}@media (max-width:","){margin-block-start:",";margin-block-end:",";margin-inline-start:0;margin-inline-end:0;}@media (min-width:","){margin-inline-start:",";}}"],c.gXv,(0,p.mA)(-2,c.dly),(0,p.mA)(-2,c.dly),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),c.Eu5,c.SA3,(0,p.mA)(0,c.o78),(0,p.mA)(0,c.o78),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),c.Eu5,c.gXv,(0,p.mA)(0,c.o78),c.Eu5,(0,p.mA)(-4,c.hM$),(0,p.mA)(-4,c.hM$),c.SA3,(0,p.mA)(3,c.mTH)),v=n(56162),y=(0,u.ZP)(v.D).attrs({variant:"finale"}).withConfig({displayName:"Legal",componentId:"sc-5ufqr3-0"})(["background:",";border-radius:",";color:",";display:",";max-width:100%;padding:",";@media (max-width:","){display:block;}a{margin-inline-start:0;}"],(function(e){return"var(--background-tinted-base, ".concat(l.uH[e.colorSet].background.tinted.base,")")}),(0,p._S)("md",c.hM$),(function(e){return"var(--text-subdued, ".concat(l.uH[e.colorSet].text.subdued,")")}),(function(e){return e.legalStrict?"block":"inline-block"}),(0,p.mA)(-2,c.dly),c.gXv),_=u.ZP.div.withConfig({displayName:"LegalContainer",componentId:"sc-k8tc6g-0"})(["flex:1;@media (max-width:","){flex-basis:100%;margin-block-start:",";margin-block-end:",";}@media (min-width:","){margin-block-start:calc(-1 * ",");margin-block-end:calc(-1 * ",");}",";"],c.gXv,(0,p.mA)(-1,c.nuo),(0,p.mA)(1,c.F_T),c.SA3,(0,p.mA)(-4,c.hM$),(0,p.mA)(-4,c.hM$),(function(e){return e.legalStrict&&(0,u.iv)(["flex-basis:100%;@media (min-width:","){margin-block-end:",";}"],c.SA3,(0,p.mA)(0,c.o78))})),b=(0,u.ZP)(v.D).attrs((function(e){return{forwardedAs:"h1",variant:e.variant||"cello"}})).withConfig({displayName:"Title",componentId:"sc-7gi4ab-0"})(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"],(0,p.mA)(0,c.o78),(0,p.mA)(-2,c.dly),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(function(e){return e.hasBorder&&(0,u.iv)(["border-block-end:1px solid var(--decorative-subdued,",");"],l.uH[e.colorSet].decorative.subdued)})),S=["dialogTitle","dialogTitleId","id","body","footer","legal","legalStrict","className","colorSet","aria-label"],E=r.forwardRef((function(e,t){var n=e.dialogTitle,c=e.dialogTitleId,u=e.id,d=e.body,p=e.footer,h=e.legal,v=e.legalStrict,E=e.className,A=e.colorSet,T=void 0===A?"base":A,P=e["aria-label"],O=(0,i.Z)(e,S),C=u&&"".concat(u,"-title")||c;n&&C||P||(0,a.ZK)("Warning: The DialogConfirmation component must have dialogTitle and an id or an aria-label to be accessible.");var k=u&&"".concat(u,"-body"),R=(0,r.useState)(!1),L=(0,o.Z)(R,2),I=L[0],N=L[1];return r.createElement(m,Object.assign({ref:t,id:u,colorSet:T,className:(0,l.Mg)(T,E),"aria-label":P,"aria-describedby":k,"aria-labelledby":!P&&n?C:void 0},O,{"data-encore-id":s.e.DialogConfirmation}),n&&r.createElement(b,{id:C,hasBorder:I,colorSet:T,"data-testid":"dialogTitle"},n),r.createElement(f,{id:k,colorSet:T,onScroll:function(e){return N(e.target instanceof HTMLElement&&0!==e.target.scrollTop)}},d),(p||h)&&r.createElement(g,null,h&&r.createElement(_,{legalStrict:v},r.createElement(y,{colorSet:T,legalStrict:v},h)),p))}))},52980:(e,t,n)=>{"use strict";n.d(t,{b:()=>l});var o=n(60901),i=n(59496),r=n(56079);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){var t=e.config,n=e.children,o=s(s({},r.W1),t);return i.createElement(r.S9.Provider,{value:o},n)}},28471:(e,t,n)=>{"use strict";n.d(t,{z:()=>E});var o=n(68901),i=n(59496),r=n(3992),a=n(30619),s=n(18845),l=n(64709),c=n(42626),u=l.ZP.div.withConfig({displayName:"Checkbox",componentId:"sc-svpvf6-0"})(["",";"],(0,c.d_)()),d=n(50823),p=n(3254),f=n(14911),h=function(e){var t=(0,d.F5)(),n=t.dimension,o=t.position;return(0,l.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(n," + ").concat(2*e,"px)"),"calc(100% + ".concat(n," + ").concat(2*e,"px)"),"calc(".concat(o," - ").concat(e,"px)"),"calc(".concat(o," - ").concat(e,"px)"))},m=l.ZP.span.withConfig({displayName:"Indicator",componentId:"sc-1airx73-0"})(["",""],(function(e){var t=(0,l.iv)(["",";"," input + label &{background-color:",";}input:focus + label &::after{border-color:",";}"," input:active + label &{border-color:",";}"," input:disabled + label &{cursor:",";opacity:",";}"],(0,c.oi)("".concat(3,"px")),(0,d.s8)("".concat(3+d.Ef,"px"),e.isUsingKeyboard),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(p.iK.essentialBase),e.isFocus&&(0,l.iv)(["&::after{border-color:",";}"],(0,p.NE)(p.iK.essentialBase)),(0,p.NE)(e.semanticColor),e.isActive&&(0,l.iv)(["input + label &{border-color:",";}"],(0,p.NE)(e.semanticColor)),f.fn,f.Zx),n=(0,l.iv)(["input:not(:checked) + label &&{border:","px solid ",";}input:not(:checked):focus + label &::after{","}"," input:not(:checked):hover + label &{border-color:",";}"," input:not(:checked):active + label &{border-width:","px;border-color:",";}input:not(:checked):active:focus + label &::after{","}"," "," input:not(:checked):disabled + label &{background-color:",";border-color:",";border-width:","px;}"],1,(0,p.NE)(p.iK.essentialSubdued),h(1),e.isFocus&&(0,l.iv)(["input:not(:checked) + label &&::after{","}input:not(:checked):active + label &::after{","}"],h(1),h(2)),(0,p.NE)(e.semanticColor),e.isHover&&(0,l.iv)(["input:not(:checked) + label &&{border-color:",";}"],(0,p.NE)(e.semanticColor)),2,(0,p.NE)(e.semanticColor),h(2),e.isActive&&(0,l.iv)(["input:not(:checked) + label &&{border-width:","px;border-color:",";}input:not(:checked):focus + label &::after{","}"],2,(0,p.NE)(e.semanticColor),h(2)),e.isActive&&e.isFocus&&(0,l.iv)(["input:not(:checked) + label &::after{","}"],h(2)),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(p.iK.essentialSubdued),1),o=(0,l.iv)(["input:checked + label &&{background-color:",";border-width:0;&::before{box-sizing:border-box;background-color:unset;border-bottom:2px solid;border-left:2px solid;border-color:",";display:block;content:'';block-size:5px;inline-size:9px;position:absolute;top:46%;left:50%;transform:translate3d(-50%,-50%,0) rotate(-48deg);}}input:checked:disabled + label &{background-color:",";}"],(0,p.NE)(e.semanticColor),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(e.semanticColor)),i=(0,l.iv)(["input + label &.Encore_indeterminate{background-color:",";border-width:0;&::before{background-color:",";content:'';block-size:0.15em;left:50%;position:absolute;top:51%;transform:translate(-50%,-50%);inline-size:0.5em;}}input:disabled + label &.Encore_indeterminate{background-color:",";}"],(0,p.NE)(e.semanticColor),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(e.semanticColor));return(0,l.iv)(["",";"," "," ",""],t,!e.indeterminate&&n,e.indeterminate&&i,o)})),g=l.ZP.label.withConfig({displayName:"Label",componentId:"sc-cpoq-0"})(["display:flex;position:relative;min-inline-size:0;"]),v=n(58706),y=n(98590),_=n(81239),b=l.ZP.span.withConfig({displayName:"TextForLabel",componentId:"sc-1jqya9m-0"})(["position:relative;top:-2px;color:",";overflow-wrap:break-word;min-inline-size:0;"," padding-inline-start:",";padding-inline-end:",";input:disabled + label &{cursor:",";opacity:",";}"],(0,p.NE)(p.iK.textBase),(function(e){return e.small?(0,l.iv)(["top:0;",""],(0,y.QB)()):(0,y.Ef)()}),(0,_.mA)(-1,v.nuo),(0,_.mA)(1,v.g4V),f.fn,f.Zx),S=["small","indeterminate","id","children","semanticColor","isHover","isFocus","isActive"],E=i.forwardRef((function(e,t){var n=e.small,l=e.indeterminate,c=e.id,d=e.children,p=e.semanticColor,f=void 0===p?"essentialBrightAccent":p,h=e.isHover,v=e.isFocus,y=e.isActive,_=(0,o.Z)(e,S),E=(0,i.useContext)(r.t).isUsingKeyboard;return i.createElement(u,{"data-encore-id":a.e.FormCheckbox},i.createElement(s.T,Object.assign({component:"input",type:"checkbox",ref:t,id:c},_)),i.createElement(g,{htmlFor:c},i.createElement(m,{className:l?"Encore_indeterminate":"",indeterminate:l,isUsingKeyboard:E,semanticColor:f,isHover:h,isFocus:v,isActive:y}),d&&i.createElement(b,{small:n},d)))}))},98880:(e,t,n)=>{"use strict";n.d(t,{c:()=>T});var o=n(68901),i=n(59496),r=n(30619),a=n(18845),s=n(58706),l=n(64709),c=n(9465),u=n(81239),d=l.ZP.div.withConfig({displayName:"Group",componentId:"sc-u9bcx5-0"})(["",";padding-block-end:",";",";"],(0,c.D)(),(0,u.mA)(1,s.g4V),(function(e){return"fieldset"===e.as&&(0,l.iv)(["min-inline-size:0;padding-inline-start:0;padding-inline-end:0;padding-block-start:0;margin:0;border:0;"])})),p=n(3254),f=l.ZP.span.withConfig({displayName:"IndicatorText",componentId:"sc-7u3ecx-0"})(["color:",";padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,p.NE)(p.iK.textSubdued),(0,u.mA)(-4,s.hM$),s.gXv),h=l.ZP.div.withConfig({displayName:"InlineGroup",componentId:"sc-4o5aq4-0"})(["display:flex;flex-wrap:wrap;"]),m=l.ZP.label.withConfig({displayName:"Label",componentId:"sc-1c0cv3r-0"})(["color:",";"],(0,p.NE)(p.iK.textBase)),g=n(98590),v=n(87577),y=l.ZP.div.withConfig({displayName:"LabelGroup",componentId:"sc-1ibddrg-0"})(["",";",";align-items:center;display:flex;inline-size:100%;padding-block-end:",";@media (max-width:","){justify-content:space-between;}",";",";"],(0,c.D)(),(0,g.Dg)(),(0,u.mA)(-2,s.dly),s.gXv,(function(e){return"legend"===e.as&&(0,l.iv)(["padding-inline-start:0;padding-inline-end:0;"])}),(function(e){return e.isHidden&&(0,l.iv)(["",""],(0,v.j)())})),_=l.ZP.span.withConfig({displayName:"LabelInner",componentId:"sc-19pye2k-0"})(["display:inline-block;"]),b=l.ZP.span.withConfig({displayName:"Popover",componentId:"sc-19tjcmc-0"})(["display:inline-flex;margin-inline-start:",";"],(0,u.mA)(-4,s.hM$)),S=l.ZP.span.withConfig({displayName:"Required",componentId:"sc-7zzom7-0"})(["color:",";border-block-end:0;text-decoration:none;padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,p.NE)(p.iK.textNegative),(0,u.mA)(-4,s.hM$),s.gXv),E=["withFieldset","children","indicator","inline","label","labelFor","hideLabel","popover","optionalIndicatorText","requiredIndicatorTextForScreenReader"],A=function(e,t,n){switch(e){case"optional":return i.createElement(f,null,t);case"required":return i.createElement(i.Fragment,null,i.createElement(S,{"aria-hidden":"true"},"*"),i.createElement(a.T,null,n));default:return i.createElement(f,null,"(",e,")")}},T=function(e){var t=e.withFieldset,n=e.children,a=e.indicator,s=e.inline,l=e.label,c=e.labelFor,u=e.hideLabel,p=e.popover,f=e.optionalIndicatorText,g=void 0===f?"(Optional)":f,v=e.requiredIndicatorTextForScreenReader,S=void 0===v?"(required)":v,T=(0,o.Z)(e,E);return i.createElement(d,Object.assign({as:t?"fieldset":void 0},T,{"data-encore-id":r.e.FormGroup}),l&&i.createElement(y,{as:t?"legend":void 0,isHidden:!!u},t?i.createElement("span",null,l,a&&A(a,g,S)):i.createElement(m,{htmlFor:c},i.createElement(_,null,l,a&&A(a,g,S))),p&&i.createElement(b,null,p)),s?i.createElement(h,null,n):n)}},18569:(e,t,n)=>{"use strict";n.d(t,{y:()=>g});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(58706),c=n(64709),u=n(42626),d=n(9465),p=n(81239),f=n(30659),h=c.ZP.input.withConfig({displayName:"Input",componentId:"sc-1gbx9xe-0"})(["",";",";margin-block-start:0;margin-block-end:0;border-radius:",";padding-inline-start:14px;padding-inline-end:14px;padding-block-start:",";padding-block-end:",";min-block-size:",";",";&[type='date'],&[type='month'],&[type='time'],&[type='week']{@media (min-width:","){padding-block-end:",";}}&[type='color']{@media (max-width:","){padding:0;border-block-end:0;&:focus,&:hover:focus{padding:0;}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){border-block-end:1px solid;padding-block-start:10px;padding-block-end:9px;&:focus,&:hover:focus{padding-block-start:10px;padding-block-end:",";border-block-end-width:2px;}}}}@media (min-width:","){padding:",";block-size:",";inline-size:",";@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){inline-size:100%;padding:14px;}}}}&[type='file']{padding-inline-start:0;padding-inline-end:0;padding-block-start:",";padding-block-end:0;line-height:17px;@media (max-width:","){border-block-end:0;}@media (min-width:","){box-shadow:none;}&:focus,&:hover:focus{@media (min-width:","){box-shadow:none;}}}"],(function(e){return(0,u.lm)(e.useBrowserDefaultFocusStyle)}),(0,d.D)(),(0,p._S)("md",l.hM$),(0,p.mA)(-2,f.sz.md),(0,p.mA)(-2,f.sz.md),(0,p.EW)("md",f.il.md),(function(e){return(0,u.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})}),l.SA3,(0,p.mA)(-1,l.nuo),l.gXv,(0,p.mA)(-2,l.dly),l.SA3,(0,p.mA)(-4,l.hM$),(0,p.EW)("md",l.JBZ),(0,p.EW)("md",l.JBZ),(0,p.mA)(-2,l.dly),l.gXv,l.SA3,l.SA3),m=["error"],g=i.forwardRef((function(e,t){var n=e.error,l=(0,o.Z)(e,m),c=(0,i.useContext)(a.t).isUsingKeyboard,u=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(h,Object.assign({ref:t,isUsingKeyboard:c,useBrowserDefaultFocusStyle:u,error:n,"aria-invalid":n},l,{"data-encore-id":s.e.FormInput}))}))},71500:(e,t,n)=>{"use strict";n.d(t,{i:()=>v});var o=n(83150),i=n(51163),r=n(59496),a=n(4107),s=n(3992),l=n(30619),c=n(64709),u=n(42626),d=n(81239),p=n(30659),f=c.ZP.select.withConfig({displayName:"Select",componentId:"sc-3qvhho-0"})(["",";",";",";block-size:",";"],(function(e){return(0,u.lm)(e.useBrowserDefaultFocusStyle)}),(0,u.GN)(),(function(e){return(0,u.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})}),(0,d.EW)("md",p.il.md)),h=n(19422),m=(0,c.ZP)(h.C).attrs({iconSize:16,"aria-hidden":"true"}).withConfig({displayName:"SelectArrow",componentId:"sc-12qvh0d-0"})(["",";"],(0,u.DW)()),g=c.ZP.div.withConfig({displayName:"SelectContainer",componentId:"sc-wv4dj5-0"})(["position:relative;inline-size:100%;display:flex;align-items:center;"]),v=r.forwardRef((function(e,t){var n=(0,i.Z)({},((0,o.Z)(e),e)),c=(0,r.useContext)(s.t).isUsingKeyboard,u=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle;return r.createElement(g,{"data-encore-id":l.e.FormSelect},r.createElement(f,Object.assign({ref:t,isUsingKeyboard:c,useBrowserDefaultFocusStyle:u},n)),r.createElement(m,null))}))},98718:(e,t,n)=>{"use strict";n.d(t,{B:()=>m});var o=n(83150),i=n(51163),r=n(59496),a=n(4107),s=n(3992),l=n(30619),c=n(48712),u=n(64709),d=n(42626),p=n(9465),f=n(81239),h=u.ZP.textarea.withConfig({displayName:"Textarea",componentId:"sc-7bfmzb-0"})(["",";",";margin-block-start:0;margin-block-end:0;border-radius:",";padding:","px;",";"],(function(e){return(0,d.lm)(e.useBrowserDefaultFocusStyle)}),(0,p.D)(),(0,f._S)("md",c.spacer4),14,(function(e){return(0,d.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})})),m=r.forwardRef((function(e,t){var n=(0,i.Z)({},((0,o.Z)(e),e)),c=(0,r.useContext)(s.t).isUsingKeyboard,u=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle;return r.createElement(h,Object.assign({ref:t,isUsingKeyboard:c,useBrowserDefaultFocusStyle:u},n,{"data-encore-id":l.e.FormTextarea}))}))},50998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(64709),i=n(3254);const r=o.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," ",""],(function(e){return e.autoMirror&&(0,o.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])}),(function(e){return e.iconColor?(0,o.iv)(["fill:","};"],(0,i.NE)(e.iconColor)):(0,o.iv)(["fill:currentColor;"])}))},91143:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var o=n(59496),i=n(75257);function r(e){return o.createElement(i.E,e)}},74567:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4.765 1.423c-.42.459-.713.992-.903 1.554-.144.421-.264 1.173-.22 1.894.077 1.321.638 2.408 1.399 3.316v.002l.083.098c.611.293 1.16.696 1.621 1.183a2.244 2.244 0 0 0-.426-2.092l-.127-.153-.002-.001c-.612-.73-.997-1.52-1.051-2.442-.032-.54.066-1.097.143-1.323a2.85 2.85 0 0 1 .589-1.022 2.888 2.888 0 0 1 4.258 0c.261.284.456.628.59 1.022.076.226.175.783.143 1.323-.055.921-.44 1.712-1.052 2.442l-.002.001-.127.153a2.25 2.25 0 0 0 .603 3.39l2.209 1.275a3.248 3.248 0 0 1 1.605 2.457h-5.99a5.466 5.466 0 0 1-.594 1.5h8.259l-.184-1.665a4.75 4.75 0 0 0-2.346-3.591l-2.209-1.275a.75.75 0 0 1-.201-1.13l.126-.152h.001c.76-.909 1.32-1.995 1.399-3.316.043-.721-.077-1.473-.22-1.894a4.46 4.46 0 0 0-.644-1.24v-.002h-.002a4.388 4.388 0 0 0-6.728-.312zM2 12.5v-2h1.5v2h2V14h-2v2H2v-2H0v-1.5h2z'/>"},{size:24,svgContent:"<path d='M4.99 3h2.993v2H4.99v3H2.994V5H0V3h2.994V0h1.995v3zm7.288-.533a5.494 5.494 0 0 1 6.275 1.322 5.467 5.467 0 0 1 1.133 1.953c.18.532.33 1.474.277 2.378-.098 1.659-.8 3.02-1.749 4.156l-.432.52a.5.5 0 0 0 .134.752l3.59 2.077A5.002 5.002 0 0 1 24 19.955V22H4.99v-2.045a5 5 0 0 1 2.494-4.33l3.59-2.077a.5.5 0 0 0 .133-.753l-.43-.518-.002-.001c-.949-1.135-1.65-2.497-1.749-4.156-.053-.904.097-1.846.277-2.378a5.468 5.468 0 0 1 1.133-1.953 5.505 5.505 0 0 1 1.842-1.322zM14.494 4a3.503 3.503 0 0 0-2.586 1.14 3.47 3.47 0 0 0-.715 1.245c-.092.272-.213.954-.174 1.617.066 1.124.536 2.092 1.287 2.99l.001.002.433.52a2.503 2.503 0 0 1-.669 3.767l-3.589 2.076a3.001 3.001 0 0 0-1.497 2.598V20h15.02v-.045a3.002 3.002 0 0 0-1.498-2.598l-3.589-2.076a2.503 2.503 0 0 1-.669-3.766l.433-.52.002-.003c.75-.898 1.22-1.866 1.287-2.99.039-.663-.082-1.345-.174-1.617-.163-.48-.4-.9-.715-1.245A3.51 3.51 0 0 0 14.494 4z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},77156:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m8.235 3.569 1.11-1.11a3.012 3.012 0 1 1 4.261 4.26L11.464 8.86a3.012 3.012 0 0 1-4.907-.96 1.49 1.49 0 0 0-.952.436l-.351.351a4.524 4.524 0 0 0 7.279 1.242l2.142-2.143A4.524 4.524 0 1 0 8.277 1.39L6.292 3.373a6.063 6.063 0 0 1 1.943.195z'/><path d='m7.765 12.56-1.11 1.11a3.013 3.013 0 0 1-4.261-4.26l2.142-2.142a3.012 3.012 0 0 1 4.907.96 1.49 1.49 0 0 0 .952-.436l.351-.351a4.524 4.524 0 0 0-7.279-1.242L1.325 8.342a4.524 4.524 0 1 0 6.398 6.397l1.985-1.984a6.064 6.064 0 0 1-1.943-.195z'/>"},{size:24,svgContent:"<path d='m13.78 4.582-1.469 1.47a8.022 8.022 0 0 0-2.57-.258l2.626-2.626a5.986 5.986 0 0 1 8.465 8.465l-2.835 2.835a5.986 5.986 0 0 1-9.63-1.643l.464-.465c.351-.35.8-.543 1.26-.576a3.986 3.986 0 0 0 6.492 1.27l2.835-2.835a3.986 3.986 0 1 0-5.637-5.637z'/><path d='m10.22 19.418 1.469-1.47c.84.225 1.708.311 2.57.258l-2.626 2.626a5.986 5.986 0 1 1-8.465-8.466l2.835-2.834a5.986 5.986 0 0 1 9.63 1.643l-.464.464a1.97 1.97 0 0 1-1.26.577 3.986 3.986 0 0 0-6.492-1.27l-2.835 2.835a3.986 3.986 0 1 0 5.637 5.637z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},72133:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.999 15h2V5h-2v10zm4 0h2V1h-2v14zM9 15h2v-4H9v4zm4-7v7h2V8h-2z'/>"},{size:24,svgContent:"<path d='M8 4v18h2V4H8zM2 22V9h2v13H2zm18-11v11h2V11h-2zm-6 4v7h2v-7h-2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},88746:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1.75 1A1.75 1.75 0 0 0 0 2.75v11.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0 0 16 14.25v-9.5A1.75 1.75 0 0 0 14.25 3H7.82l-.65-1.125A1.75 1.75 0 0 0 5.655 1H1.75zM1.5 2.75a.25.25 0 0 1 .25-.25h3.905a.25.25 0 0 1 .216.125L6.954 4.5h7.296a.25.25 0 0 1 .25.25v9.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25V2.75z'/>"},{size:24,svgContent:"<path d='M1 4a2 2 0 0 1 2-2h5.155a3 3 0 0 1 2.598 1.5l.866 1.5H21a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm7.155 0H3v16h18V7H10.464L9.021 4.5a1 1 0 0 0-.866-.5z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},14242:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15 15H1v-1.5h14V15zm0-4.5H1V9h14v1.5zm-14-7A2.5 2.5 0 0 1 3.5 1h9a2.5 2.5 0 0 1 0 5h-9A2.5 2.5 0 0 1 1 3.5zm2.5-1a1 1 0 0 0 0 2h9a1 1 0 1 0 0-2h-9z'/>"},{size:24,svgContent:"<path d='M21 22H3v-2h18v2zm0-6H3v-2h18v2zM2.05 6.546a3.5 3.5 0 0 1 3.5-3.5h13a3.5 3.5 0 0 1 0 7h-13a3.5 3.5 0 0 1-3.5-3.5zm3.5-1.5a1.5 1.5 0 0 0 0 3h13a1.5 1.5 0 0 0 0-3h-13z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},22616:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M5.272 12.542h1.655V2H5.15v3.677C4.782 4.758 4.046 4.33 3.065 4.33c-.981 0-1.715.429-2.268 1.225C.245 6.352 0 7.332 0 8.435c0 1.226.245 2.207.736 3.004.49.796 1.226 1.225 2.207 1.225 1.103 0 1.9-.551 2.329-1.716v1.594zm-.49-6.068c.306.368.429.858.429 1.47v1.35a2.19 2.19 0 0 1-.49 1.409c-.369.368-.737.552-1.166.552-1.103 0-1.655-.92-1.655-2.636 0-.92.123-1.594.49-2.023.307-.429.736-.674 1.227-.674.491 0 .858.184 1.164.552h.001zm10.483 1.532c-.368-.49-.92-.796-1.656-.919.613-.123 1.042-.368 1.41-.797.307-.429.49-.98.49-1.532 0-.613-.183-1.164-.49-1.594-.306-.49-.735-.796-1.165-.919C13.425 2.061 12.813 2 12.139 2H8.031v10.542h4.536c1.104 0 1.9-.307 2.452-.858.552-.552.797-1.226.797-2.023a2.69 2.69 0 0 0-.551-1.655zM9.808 3.471h2.268c.43 0 .797.122 1.104.368.306.183.49.551.49 1.041 0 .43-.184.797-.43 1.104-.244.306-.612.429-1.102.429h-2.33V3.47v.001zm3.678 7.048c-.306.307-.736.43-1.226.43H9.808V7.883h2.452c.49 0 .92.122 1.226.429.245.306.43.674.43 1.103 0 .49-.123.858-.43 1.103v.001zM.674 13.523H16v1.226H.674v-1.226z'/>"},{size:24,svgContent:"<path d='M8.59 17.677h2.069V4.5H8.437v4.596c-.46-1.149-1.38-1.684-2.606-1.684s-2.144.537-2.835 1.532c-.69.996-.996 2.221-.996 3.6 0 1.532.306 2.758.92 3.755.613.995 1.532 1.531 2.759 1.531 1.378 0 2.375-.689 2.911-2.145v1.992zm-.612-7.585c.382.46.536 1.073.536 1.838v1.688a2.737 2.737 0 0 1-.613 1.76c-.461.46-.921.69-1.457.69-1.379 0-2.069-1.15-2.069-3.294 0-1.15.154-1.993.612-2.529.384-.536.92-.842 1.534-.842s1.073.23 1.455.69h.002zm13.103 1.915c-.46-.612-1.15-.995-2.07-1.148.767-.154 1.303-.46 1.763-.996a3.345 3.345 0 0 0 .612-1.915c0-.767-.229-1.456-.612-1.993-.383-.612-.919-.995-1.457-1.149-.536-.23-1.3-.306-2.143-.306h-5.135v13.177h5.67c1.38 0 2.375-.383 3.065-1.072.69-.69.996-1.533.996-2.529a3.363 3.363 0 0 0-.689-2.069zM14.26 6.34h2.835c.538 0 .996.152 1.38.46.383.228.612.688.612 1.301 0 .537-.23.996-.537 1.38-.305.383-.765.536-1.378.536H14.26V6.338zm4.598 8.81c-.383.384-.92.537-1.533.537H14.26v-3.832h3.065c.613 0 1.15.152 1.533.536.306.383.537.842.537 1.379 0 .612-.154 1.072-.537 1.379zM2.843 18.904H22v1.532H2.843v-1.532z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},38176:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M2 0v2H0v1.5h2v2h1.5v-2h2V2h-2V0H2zm11.5 2.5H8.244A5.482 5.482 0 0 0 7.966 1H15v11.75A2.75 2.75 0 1 1 12.25 10h1.25V2.5zm0 9h-1.25a1.25 1.25 0 1 0 1.25 1.25V11.5zM4 8.107a5.465 5.465 0 0 0 1.5-.593v5.236A2.75 2.75 0 1 1 2.75 10H4V8.107zM4 11.5H2.75A1.25 1.25 0 1 0 4 12.75V11.5z'/>"},{size:24,svgContent:"<path d='M3 8V5H0V3h3V0h2v3h3v2H5v3H3zm8-4c0 .34-.024.673-.07 1H19v9.667h-1.5a3.5 3.5 0 1 0 3.5 3.5V3H10.93c.046.327.07.66.07 1zm8 12.667v1.5a1.5 1.5 0 1 1-1.5-1.5H19zM6 10.71a6.972 6.972 0 0 0 2-.965v8.422a3.5 3.5 0 1 1-3.5-3.5H6V10.71zm0 5.957H4.5a1.5 1.5 0 1 0 1.5 1.5v-1.5z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},7142:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M8 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 8a3 3 0 1 1 6 0 3 3 0 0 1-6 0z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},11661:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.998 7.19A.749.749 0 0 0 .47 8.47L7.99 16l7.522-7.53a.75.75 0 1 0-1.06-1.06L8.74 13.13V.75a.75.75 0 1 0-1.498 0v12.38L1.528 7.41a.749.749 0 0 0-.53-.22z'/>"},{size:24,svgContent:"<path d='M3.5 10.586a1 1 0 0 0-.707 1.707l9.2 9.207 9.202-9.207a1 1 0 1 0-1.413-1.414L13 17.665V3.5a1 1 0 1 0-2 0v14.178l-6.794-6.8a1 1 0 0 0-.707-.292z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},58507:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8.81 1A.749.749 0 0 0 7.53.47L0 7.99l7.53 7.521a.75.75 0 0 0 1.234-.815.75.75 0 0 0-.174-.243L2.87 8.74h12.38a.75.75 0 1 0 0-1.498H2.87l5.72-5.713c.14-.14.22-.331.22-.53z'/>"},{size:24,svgContent:"<path d='M13.414 3.5a.999.999 0 0 0-1.707-.707l-9.207 9.2 9.207 9.202a1 1 0 1 0 1.414-1.413L6.335 13H20.5a1 1 0 0 0 0-2H6.322l6.799-6.794a.999.999 0 0 0 .293-.707z'/>"}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},80734:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M7.19 1A.749.749 0 0 1 8.47.47L16 7.99l-7.53 7.521a.75.75 0 0 1-1.234-.815.75.75 0 0 1 .174-.243l5.72-5.714H.75a.75.75 0 1 1 0-1.498h12.38L7.41 1.529a.749.749 0 0 1-.22-.53z'/>"},{size:24,svgContent:"<path d='M10.586 3.5a.999.999 0 0 1 1.707-.707l9.207 9.2-9.207 9.202a1 1 0 1 1-1.414-1.413L17.665 13H3.5a1 1 0 1 1 0-2h14.178l-6.799-6.794a.999.999 0 0 1-.293-.707z'/>"}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},86613:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.998 8.81A.749.749 0 0 1 .47 7.53L7.99 0l7.522 7.53a.75.75 0 1 1-1.06 1.06L8.74 2.87v12.38a.75.75 0 1 1-1.498 0V2.87L1.528 8.59a.751.751 0 0 1-.53.22z'/>"},{size:24,svgContent:"<path d='M3.5 13.414a.999.999 0 0 1-.707-1.707l9.2-9.207 9.202 9.207a1 1 0 1 1-1.413 1.414L13 6.335V20.5a1 1 0 0 1-2 0V6.322l-6.794 6.799a.999.999 0 0 1-.707.293z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},74991:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11.757 2.987A4.356 4.356 0 0 0 7.618 0a4.362 4.362 0 0 0-4.139 2.987 5.474 5.474 0 0 0-.22 1.894 5.604 5.604 0 0 0 1.4 3.312l.125.152a.748.748 0 0 1-.2 1.128l-2.209 1.275A4.748 4.748 0 0 0 0 14.857v1.142h8.734A5.48 5.48 0 0 1 8.15 14.5H1.517a3.245 3.245 0 0 1 1.6-2.454l2.21-1.275a2.25 2.25 0 0 0 .6-3.386l-.128-.153a4.112 4.112 0 0 1-1.05-2.44A4.053 4.053 0 0 1 4.89 3.47a2.797 2.797 0 0 1 1.555-1.713 2.89 2.89 0 0 1 3.293.691c.265.296.466.644.589 1.022.12.43.169.876.144 1.322a4.12 4.12 0 0 1-1.052 2.44l-.127.153a2.239 2.239 0 0 0-.2 2.58c.338-.45.742-.845 1.2-1.173 0-.162.055-.32.156-.447l.126-.152a5.598 5.598 0 0 0 1.4-3.312 5.499 5.499 0 0 0-.218-1.894zm3.493 3.771a.75.75 0 0 0-.75.75v3.496h-1a2.502 2.502 0 0 0-2.31 1.542 2.497 2.497 0 0 0 1.822 3.406A2.502 2.502 0 0 0 16 13.502V7.508a.75.75 0 0 0-.75-.75zm-.75 6.744a.998.998 0 0 1-1.707.707 1 1 0 0 1 .707-1.706h1v1z'/>"},{size:24,svgContent:"<path d='m13.363 10.474-.521.625a2.499 2.499 0 0 0 .67 3.766l.285.164a5.998 5.998 0 0 1 1.288-1.565l-.573-.33a.5.5 0 0 1-.134-.754l.52-.624a7.372 7.372 0 0 0 1.837-4.355 7.221 7.221 0 0 0-.29-2.489 5.644 5.644 0 0 0-3.116-3.424A5.771 5.771 0 0 0 6.753 2.87a5.7 5.7 0 0 0-1.19 2.047 7.22 7.22 0 0 0-.29 2.49 7.373 7.373 0 0 0 1.838 4.355l.518.622a.5.5 0 0 1-.134.753L3.5 15.444a5 5 0 0 0-2.5 4.33v2.231h13.54a5.981 5.981 0 0 1-1.19-2H3v-.23a3 3 0 0 1 1.5-2.6l3.995-2.308a2.5 2.5 0 0 0 .67-3.766l-.521-.625a5.146 5.146 0 0 1-1.188-4.918 3.71 3.71 0 0 1 .769-1.334 3.769 3.769 0 0 1 5.556 0c.346.386.608.84.768 1.334.157.562.22 1.146.187 1.728a5.379 5.379 0 0 1-1.373 3.188zm7.641-1.173a1 1 0 0 0-1 1v4.666h-1a3 3 0 1 0 3 3v-7.666a.999.999 0 0 0-1.003-1h.003zm-1 8.666a1 1 0 1 1-1-1h1v1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},45509:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M0 .013h3.65C5.28.013 6.787.55 8 1.457A7.246 7.246 0 0 1 12.35.013H16V14h-3.65c-1.48 0-2.828.556-3.85 1.47l-.5.448-.5-.448A5.751 5.751 0 0 0 3.65 14H0V.013zm7.25 2.76a5.748 5.748 0 0 0-3.6-1.26H1.5V12.5h2.15c1.31 0 2.538.346 3.6.952V2.772zm1.5 10.679a7.244 7.244 0 0 1 3.6-.952h2.15V1.513h-2.15a5.74 5.74 0 0 0-3.6 1.26v10.679z'/>"},{size:24,svgContent:"<path d='M1 2h5a9.96 9.96 0 0 1 6 2 9.96 9.96 0 0 1 6-2h5v19h-5c-2.05 0-3.917.77-5.333 2.037l-.667.597-.667-.597A7.967 7.967 0 0 0 6 21H1V2zm10 3.755A7.963 7.963 0 0 0 6 4H3v15h3c1.82 0 3.529.487 5 1.338V5.755zm2 14.583A9.957 9.957 0 0 1 18 19h3V4h-3a7.96 7.96 0 0 0-5 1.755v14.583z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},78802:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM3.965 2.904a6.5 6.5 0 0 1 9.131 9.131L3.965 2.904zm-1.061 1.06 9.131 9.132a6.5 6.5 0 0 1-9.131-9.131z'/>"},{size:24,svgContent:"<path d='M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM6.382 4.968a9 9 0 0 1 12.65 12.65L6.382 4.968zM4.968 6.382l12.65 12.65a9 9 0 0 1-12.65-12.65z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},96959:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M12 8.75H4v-1.5h8v1.5z'/>"},{size:24,svgContent:"<path d='M16.999 11h-10v2h10v-2z'/><path d='M11.999 1c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11zm-9 11a9 9 0 1 1 18 0 9 9 0 0 1-18 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},23246:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3.75 0A1.75 1.75 0 0 0 2 1.75v12.952c0 1.051 1.22 1.633 2.037.972l3.962-3.208 3.943 3.204c.817.663 2.038.082 2.038-.97V1.75A1.75 1.75 0 0 0 12.23 0H3.75z'/>"},{size:24,svgContent:"<path d='M7 1a3 3 0 0 0-3 3v17.167c0 1.448 1.657 2.27 2.81 1.393L12 18.612l5.19 3.948c1.153.876 2.81.055 2.81-1.393V4a3 3 0 0 0-3-3H7z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},77675:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m14 6-6 6-6-6h12z'/>"},{size:24,svgContent:"<path d='m19 9-7 7-7-7h14z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},16004:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M14 10 8 4l-6 6h12z'/>"},{size:24,svgContent:"<path d='m19 15-7-7-7 7h14z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},37433:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15.53 2.47a.75.75 0 0 1 0 1.06L4.907 14.153.47 9.716a.75.75 0 0 1 1.06-1.06l3.377 3.376L14.47 2.47a.75.75 0 0 1 1.06 0z'/>"},{size:24,svgContent:"<path d='M21.707 4.805a1 1 0 0 1 0 1.414L8.024 19.902l-5.731-5.73a1 1 0 1 1 1.414-1.415l4.317 4.317L20.293 4.805a1 1 0 0 1 1.414 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},5153:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm11.748-1.97a.75.75 0 0 0-1.06-1.06l-4.47 4.47-1.405-1.406a.75.75 0 1 0-1.061 1.06l2.466 2.467 5.53-5.53z'/>"},{size:24,svgContent:"<path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.398-2.38a1 1 0 0 0-1.414-1.413l-6.011 6.01-1.894-1.893a1 1 0 0 0-1.414 1.414l3.308 3.308 7.425-7.425z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},19422:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.47 4.97a.75.75 0 0 1 1.06 0L8 11.44l6.47-6.47a.75.75 0 1 1 1.06 1.06L8 13.56.47 6.03a.75.75 0 0 1 0-1.06z'/>"},{size:24,svgContent:"<path d='M2.793 8.043a1 1 0 0 1 1.414 0L12 15.836l7.793-7.793a1 1 0 1 1 1.414 1.414L12 18.664 2.793 9.457a1 1 0 0 1 0-1.414z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},22991:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11.03.47a.75.75 0 0 1 0 1.06L4.56 8l6.47 6.47a.75.75 0 1 1-1.06 1.06L2.44 8 9.97.47a.75.75 0 0 1 1.06 0z'/>"},{size:24,svgContent:"<path d='M15.957 2.793a1 1 0 0 1 0 1.414L8.164 12l7.793 7.793a1 1 0 1 1-1.414 1.414L5.336 12l9.207-9.207a1 1 0 0 1 1.414 0z'/>"}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},79642:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4.97.47a.75.75 0 0 0 0 1.06L11.44 8l-6.47 6.47a.75.75 0 1 0 1.06 1.06L13.56 8 6.03.47a.75.75 0 0 0-1.06 0z'/>"},{size:24,svgContent:"<path d='M8.043 2.793a1 1 0 0 0 0 1.414L15.836 12l-7.793 7.793a1 1 0 1 0 1.414 1.414L18.664 12 9.457 2.793a1 1 0 0 0-1.414 0z'/>"}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},39989:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.47 11.03a.75.75 0 0 0 1.06 0L8 4.56l6.47 6.47a.75.75 0 1 0 1.06-1.06L8 2.44.47 9.97a.75.75 0 0 0 0 1.06z'/>"},{size:24,svgContent:"<path d='M2.793 15.957a1 1 0 0 0 1.414 0L12 8.164l7.793 7.793a1 1 0 1 0 1.414-1.414L12 5.336l-9.207 9.207a1 1 0 0 0 0 1.414z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},73911:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.667 12v2h2c0-.55-.196-1.021-.588-1.413A1.925 1.925 0 0 0 .667 12zm0-2.667v1.334c.92 0 1.706.325 2.357.976.65.65.976 1.436.976 2.357h1.333c0-.635-.123-1.24-.369-1.817a4.666 4.666 0 0 0-.992-1.489 4.67 4.67 0 0 0-1.488-.992 4.583 4.583 0 0 0-1.817-.369zm12-4.666H3.333v1.087a8.502 8.502 0 0 1 3.465 2.115 8.494 8.494 0 0 1 2.115 3.464h3.754V4.667zm-12 2V8c1.085 0 2.087.269 3.008.806a5.978 5.978 0 0 1 2.186 2.186c.537.92.806 1.923.806 3.008H8a7.35 7.35 0 0 0-.369-2.317 6.956 6.956 0 0 0-1.048-2.02A7.918 7.918 0 0 0 5 8.083a7.01 7.01 0 0 0-2.024-1.047 7.31 7.31 0 0 0-2.31-.37l.001.001zM14 2H2a1.28 1.28 0 0 0-.94.393 1.283 1.283 0 0 0-.393.94v2H2v-2h12v9.334H9.333V14H14c.365 0 .679-.131.94-.393.262-.262.393-.575.393-.94V3.333c0-.365-.131-.678-.393-.94A1.28 1.28 0 0 0 14 2z'/>"},{size:24,svgContent:"<path d='M1 18v3h3a2.89 2.89 0 0 0-.88-2.119A2.89 2.89 0 0 0 1 18zm0-4v2c1.38 0 2.56.488 3.536 1.465C5.512 18.44 6 19.619 6 21h2c0-.953-.184-1.861-.553-2.726a7.016 7.016 0 0 0-1.489-2.232 7.004 7.004 0 0 0-2.232-1.488A6.877 6.877 0 0 0 1 14zm18-7H5v1.63a12.742 12.742 0 0 1 5.196 3.172A12.741 12.741 0 0 1 13.37 17H19V7zM1 10v2c1.627 0 3.13.403 4.512 1.208a8.964 8.964 0 0 1 3.28 3.28A8.798 8.798 0 0 1 10 21h2c0-1.198-.184-2.357-.553-3.476a10.42 10.42 0 0 0-1.572-3.03A11.9 11.9 0 0 0 7.5 12.125a10.534 10.534 0 0 0-3.036-1.572A10.991 10.991 0 0 0 1 9.998zm20-7H3c-.547 0-1.018.196-1.41.59C1.195 3.982 1 4.452 1 5v3h2V5h18v14h-7v2h7c.547 0 1.018-.197 1.41-.59.394-.392.59-.862.59-1.41V5a1.92 1.92 0 0 0-.59-1.411A1.926 1.926 0 0 0 21 3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},17520:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.667 12v2h2c0-.55-.196-1.021-.588-1.413A1.925 1.925 0 0 0 .667 12zm0-2.667v1.334c.92 0 1.706.325 2.357.976.65.65.976 1.436.976 2.357h1.333c0-.635-.123-1.24-.369-1.817a4.666 4.666 0 0 0-.992-1.489 4.67 4.67 0 0 0-1.488-.992 4.583 4.583 0 0 0-1.817-.369zm0-2.666V8c1.085 0 2.087.269 3.008.806a5.978 5.978 0 0 1 2.186 2.186c.537.92.806 1.923.806 3.008H8a7.35 7.35 0 0 0-.369-2.317 6.956 6.956 0 0 0-1.048-2.02A7.918 7.918 0 0 0 5 8.083a7.01 7.01 0 0 0-2.024-1.047 7.31 7.31 0 0 0-2.31-.37l.001.001zM14 2H2a1.28 1.28 0 0 0-.94.393 1.283 1.283 0 0 0-.393.94v2H2v-2h12v9.334H9.333V14H14c.365 0 .679-.131.94-.393.262-.262.393-.575.393-.94V3.333c0-.365-.131-.678-.393-.94A1.28 1.28 0 0 0 14 2z'/>"},{size:24,svgContent:"<path d='M1 18v3h3a2.89 2.89 0 0 0-.88-2.119A2.89 2.89 0 0 0 1 18zm0-4v2c1.38 0 2.56.488 3.536 1.465C5.512 18.44 6 19.619 6 21h2c0-.953-.184-1.861-.553-2.726a7.016 7.016 0 0 0-1.489-2.232 7.004 7.004 0 0 0-2.232-1.488A6.877 6.877 0 0 0 1 14zm0-4v2c1.627 0 3.13.403 4.512 1.208a8.964 8.964 0 0 1 3.28 3.28A8.798 8.798 0 0 1 10 21h2c0-1.198-.184-2.357-.553-3.476a10.42 10.42 0 0 0-1.572-3.03A11.9 11.9 0 0 0 7.5 12.125a10.534 10.534 0 0 0-3.036-1.572A10.991 10.991 0 0 0 1 9.998zm20-7H3c-.547 0-1.018.196-1.41.59C1.195 3.982 1 4.452 1 5v3h2V5h18v14h-7v2h7c.547 0 1.018-.197 1.41-.59.394-.392.59-.862.59-1.41V5a1.92 1.92 0 0 0-.59-1.411A1.926 1.926 0 0 0 21 3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50300:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M14.55 1c.8 0 1.45.65 1.45 1.45V7h-1.5V2.5h-13v11h5.507V15H1.45C.65 15 0 14.35 0 13.55V2.45C0 1.65.65 1 1.45 1h13.1z'/><path d='M16 9.757a.75.75 0 0 0-.75-.75H9.068L6.56 6.5h1.385a.75.75 0 1 0 0-1.5H4v3.946a.75.75 0 0 0 1.5 0V7.561l3.076 3.075v3.614c0 .414.336.75.75.75h5.925a.75.75 0 0 0 .75-.75V9.757z'/>"},{size:24,svgContent:"<path d='M3 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v7.17c-.313-.11-.65-.17-1-.17h-1V5H3v14h8v1c0 .35.06.687.17 1H3z'/><path d='M14 21h8a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1h-8.906L8.56 9.467h1.94a.75.75 0 0 0 0-1.5H6v4.526a.75.75 0 0 0 1.5 0v-1.966l5.5 5.5V20a1 1 0 0 0 1 1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},11101:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M14.55 1c.8 0 1.45.65 1.45 1.45V7h-1.5V2.5H2.595L5.5 5.406V4.021a.75.75 0 0 1 1.5 0v3.946H3.055a.75.75 0 0 1 0-1.5H4.44L1.5 3.527V13.5h5.507V15H1.45C.65 15 0 14.35 0 13.55V2.45C0 1.65.65 1 1.45 1h13.1z'/><path d='M16 9.757a.75.75 0 0 0-.75-.75H9.325a.75.75 0 0 0-.75.75v4.493c0 .414.336.75.75.75h5.925a.75.75 0 0 0 .75-.75V9.757z'/>"},{size:24,svgContent:"<path d='M3 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v7.17c-.313-.11-.65-.17-1-.17h-1V5H4.092L8.5 9.406V7.44a.75.75 0 0 1 1.5 0v4.527H5.472a.75.75 0 0 1 0-1.5h1.966L3 6.029V19h8v1c0 .35.06.687.17 1H3z'/><path d='M14 21h8a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},18600:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8.375 1.098a.75.75 0 0 1 .75 0l5.5 3.175a.75.75 0 0 1 .375.65V15.25a.75.75 0 0 1-.75.75h-5.5a.75.75 0 0 1-.75-.75V1.747a.75.75 0 0 1 .375-.65zM9.5 3.046V14.5h4V5.356l-4-2.31zM1 1.75a.75.75 0 0 1 1.5 0v13.5a.75.75 0 0 1-1.5 0V1.75zm3.5 0a.75.75 0 0 1 1.5 0v13.5a.75.75 0 0 1-1.5 0V1.75z'/>"},{size:24,svgContent:"<path d='M14.5 2.134a1 1 0 0 1 1 0l6 3.464a1 1 0 0 1 .5.866V21a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V3a1 1 0 0 1 .5-.866zM16 4.732V20h4V7.041l-4-2.309zM3 22a1 1 0 0 1-1-1V3a1 1 0 0 1 2 0v18a1 1 0 0 1-1 1zm6 0a1 1 0 0 1-1-1V3a1 1 0 0 1 2 0v18a1 1 0 0 1-1 1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},89139:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M9.125 1.098A.75.75 0 0 0 8 1.748V15.25a.75.75 0 0 0 .75.75h5.5a.75.75 0 0 0 .75-.75V4.923a.75.75 0 0 0-.375-.65l-5.5-3.175zM1 1.75a.75.75 0 0 1 1.5 0v13.5a.75.75 0 0 1-1.5 0V1.75zm5 0a.75.75 0 0 0-1.5 0v13.5a.75.75 0 0 0 1.5 0V1.75z'/>"},{size:24,svgContent:"<path d='M3 22a1 1 0 0 1-1-1V3a1 1 0 0 1 2 0v18a1 1 0 0 1-1 1zM15.5 2.134A1 1 0 0 0 14 3v18a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V6.464a1 1 0 0 0-.5-.866l-6-3.464zM9 2a1 1 0 0 0-1 1v18a1 1 0 1 0 2 0V3a1 1 0 0 0-1-1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},70172:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M6 2.75C6 1.784 6.784 1 7.75 1h6.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15h-6.5A1.75 1.75 0 0 1 6 13.25V2.75zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-6.5zm-6 0a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25H4V11H1.75A1.75 1.75 0 0 1 0 9.25v-6.5C0 1.784.784 1 1.75 1H4v1.5H1.75zM4 15H2v-1.5h2V15z'/><path d='M13 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm-1-5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M10 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3h-8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-8z'/><path d='M18.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM17 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0zM0 4a2 2 0 0 1 2-2h5v2H2v11h5v2H2a2 2 0 0 1-2-2V4zm7 18H4v-2h3v2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},37230:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M5 .75A.75.75 0 0 1 5.75 0h9.5a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75H12v-1.5h2.5v-9h-8V3H5V.75z'/><path d='M.75 4a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h9.5a.75.75 0 0 0 .75-.75V4.75a.75.75 0 0 0-.75-.75H.75zm.75 10.5v-9h8v9h-8z'/>"},{size:24,svgContent:"<path d='M8 2a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-3v-2h3V2H10v1H8V2z'/><path d='M3 5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H3zm0 2h11v13H3V7z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},36482:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M5.25 3v-.917C5.25.933 6.183 0 7.333 0h1.334c1.15 0 2.083.933 2.083 2.083V3h4.75v1.5h-.972l-1.257 9.544A2.25 2.25 0 0 1 11.041 16H4.96a2.25 2.25 0 0 1-2.23-1.956L1.472 4.5H.5V3h4.75zm1.5-.917V3h2.5v-.917a.583.583 0 0 0-.583-.583H7.333a.583.583 0 0 0-.583.583zM2.986 4.5l1.23 9.348a.75.75 0 0 0 .744.652h6.08a.75.75 0 0 0 .744-.652L13.015 4.5H2.985z'/>"},{size:24,svgContent:"<path d='M8 4V3a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1h6v2h-.956l-1.878 14.261A2 2 0 0 1 17.183 22H6.817a2 2 0 0 1-1.983-1.739L2.956 6H2V4h6zm2-1v1h4V3a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1zM4.974 6l1.843 14h10.366l1.843-14H4.974z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},59326:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/><path d='M1.75 3A1.75 1.75 0 0 0 0 4.75v6.5C0 12.216.784 13 1.75 13H2v1.25a.75.75 0 0 0 1.5 0V13h9v1.25a.75.75 0 0 0 1.5 0V13h.25A1.75 1.75 0 0 0 16 11.25v-6.5A1.75 1.75 0 0 0 14.25 3H1.75zM1.5 4.75a.25.25 0 0 1 .25-.25h12.5a.25.25 0 0 1 .25.25v6.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25v-6.5z'/>"},{size:24,svgContent:"<path d='M16.5 7a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zM15 10.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0z'/><path d='M3 3a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3v2a1 1 0 1 0 2 0v-2h14v2a1 1 0 1 0 2 0v-2a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H3zm18 13H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},57508:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M2.92 2.375A2.75 2.75 0 0 1 5.303 1h5.395c.983 0 1.89.524 2.382 1.375L14.017 4h1.233a.75.75 0 0 1 0 1.5h-.237c.989.9.988 2.117.987 2.707v7.043a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1-.75-.75V14H3v1.25a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1-.75-.75V8.207C0 7.617-.002 6.4.987 5.5H.75a.75.75 0 0 1 0-1.5h1.233l.938-1.625zm2.382.125c-.446 0-.859.238-1.082.625L3.137 5h9.726L11.78 3.125a1.25 1.25 0 0 0-1.083-.625H5.302zm8.57 4H2.128a2.72 2.72 0 0 1-.055.046c-.473.377-.556.894-.57 1.454h2.429a1 1 0 0 1 1 1v.5H1.5v3h13v-3h-3.43V9a1 1 0 0 1 1-1h2.427c-.013-.56-.096-1.077-.569-1.454a2.585 2.585 0 0 1-.055-.046z'/>"},{size:24,svgContent:"<path d='M12 19c2.036 0 4.039-.142 6-.415V20.5a1.5 1.5 0 0 0 1.5 1.5h3a1.5 1.5 0 0 0 1.5-1.5V10.45c0-1.49-.83-2.785-2.05-3.45H23a1 1 0 1 0 0-2h-2.405l-.866-1.5A5 5 0 0 0 15.4 1H8.601a5 5 0 0 0-4.33 2.5L3.405 5H1a1 1 0 0 0 0 2h1.05A3.925 3.925 0 0 0 0 10.45V20.5A1.5 1.5 0 0 0 1.5 22h3A1.5 1.5 0 0 0 6 20.5v-1.915c1.961.273 3.964.415 6 .415zM6.003 4.5A3 3 0 0 1 8.6 3h6.798a3 3 0 0 1 2.598 1.5l1.346 2.331A40.23 40.23 0 0 1 12 7.504c-2.51 0-4.963-.231-7.343-.673L6.003 4.5zM12 9.504a42.17 42.17 0 0 0 8.652-.893l.018.006a1.93 1.93 0 0 1 1.317 1.605c-.045.049-.12.115-.241.196-.249.163-.604.324-1.048.47-.885.293-1.955.474-2.797.558a1 1 0 1 0 .198 1.99c.93-.092 2.155-.294 3.226-.648.227-.075.454-.16.675-.254v3.238A41.282 41.282 0 0 1 12 17a41.282 41.282 0 0 1-10-1.228v-3.238c.221.095.448.179.675.254 1.07.354 2.297.556 3.226.649a1 1 0 0 0 .198-1.99c-.842-.085-1.912-.266-2.797-.558-.443-.147-.8-.308-1.048-.471a1.319 1.319 0 0 1-.24-.195A1.93 1.93 0 0 1 3.33 8.617l.018-.006A42.17 42.17 0 0 0 12 9.504zm8 8.753a43.78 43.78 0 0 0 2-.426V20h-2v-1.743zm-18-.426c.66.157 1.328.3 2 .426V20H2v-2.17z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},73440:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M2 3.75C2 2.784 2.784 2 3.75 2h8.5c.966 0 1.75.784 1.75 1.75v6.5A1.75 1.75 0 0 1 12.25 12h-8.5A1.75 1.75 0 0 1 2 10.25v-6.5zm1.75-.25a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-6.5a.25.25 0 0 0-.25-.25h-8.5zM.25 15.25A.75.75 0 0 1 1 14.5h14a.75.75 0 0 1 0 1.5H1a.75.75 0 0 1-.75-.75z'/>"},{size:24,svgContent:"<path d='M0 21a1 1 0 0 1 1-1h22a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1zM3 5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V5zm3-1a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},64556:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/><path d='M4.75 0A1.75 1.75 0 0 0 3 1.75v12.5c0 .966.784 1.75 1.75 1.75h6.5A1.75 1.75 0 0 0 13 14.25V1.75A1.75 1.75 0 0 0 11.25 0h-6.5zM4.5 1.75a.25.25 0 0 1 .25-.25h6.5a.25.25 0 0 1 .25.25v12.5a.25.25 0 0 1-.25.25h-6.5a.25.25 0 0 1-.25-.25V1.75z'/>"},{size:24,svgContent:"<path d='M5 5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V5zm3-1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H8z'/><path d='M13.25 16.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50202:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11 12.75a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/><path d='M6 2.75C6 1.784 6.783 1 7.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 14.25 16h-6.5A1.75 1.75 0 0 1 6 14.25V2.75zm1.75-.25a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-6.5zm-6 0a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h2.375V16H1.75A1.75 1.75 0 0 1 0 14.25V2.75C0 1.784.784 1 1.75 1h2.375v1.5H1.75z'/><path d='M12 5.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M10 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3h-8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-8z'/><path d='M18.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM17 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0zM0 5a3 3 0 0 1 3-3h4v2H3a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h4v2H3a3 3 0 0 1-3-3V5z'/><path d='M5.75 7.25C5.75 6.56 6.31 6 7 6v2.5c-.69 0-1.25-.56-1.25-1.25zM7 16a1.5 1.5 0 0 1 0-3v-2a3.5 3.5 0 1 0 0 7v-2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},93875:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M6 2.75C6 1.784 6.784 1 7.75 1h6.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15h-6.5A1.75 1.75 0 0 1 6 13.25V2.75zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h6.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-6.5zm-6 0a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25H4V11H1.75A1.75 1.75 0 0 1 0 9.25v-6.5C0 1.784.784 1 1.75 1H4v1.5H1.75zM4 15H2v-1.5h2V15z'/><path d='M13 10a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm-1-5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M10 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3h-8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-8z'/><path d='M18.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM17 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0zM0 4a2 2 0 0 1 2-2h5v2H2v11h5v2H2a2 2 0 0 1-2-2V4zm7 18H4v-2h3v2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},74893:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 6.438c.552 0 1-.434 1-.969 0-.535-.448-.969-1-.969s-1 .434-1 .969c0 .535.448.969 1 .969zm0 6.312a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5z'/><path d='M2.002 2.75c0-.966.784-1.75 1.75-1.75h8.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75h-8.5a1.75 1.75 0 0 1-1.75-1.75V2.75zm1.75-.25a.25.25 0 0 0-.25.25v11.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25h-8.5z'/>"},{size:24,svgContent:"<path d='M5 19a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v14zm3 1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H8z'/><path d='M13.25 7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0zM12 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-3.5-1.5a3.5 3.5 0 1 0 7 0 3.5 3.5 0 0 0-7 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},69492:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1 1.75C1 .784 1.784 0 2.75 0h10.5C14.216 0 15 .784 15 1.75v12.5A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V1.75zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H2.75z'/><path d='M9 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/>"},{size:24,svgContent:"<path d='M3 5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V5zm3-1a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H6z'/><path d='M13.25 16.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},99700:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 14.25 12H1.75A1.75 1.75 0 0 1 0 10.25v-7.5zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25H1.75zm2.5 12.75A.75.75 0 0 1 5 14.5h6a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75z'/>"},{size:24,svgContent:"<path d='M4 2a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H4zM3 5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5zm4 16a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},47746:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M7.813 14.497A6.5 6.5 0 0 1 1.5 8.016c.008-3.553 2.71-5.744 5.043-6.078.85-.121 1.288.037 1.564.246.312.238.553.639.822 1.276.077.184.156.386.239.602.451 1.167 1.05 2.717 2.505 3.81 1.01.76 1.46 1.529 1.592 2.209.13.679-.037 1.375-.468 2.03-.88 1.34-2.793 2.388-4.844 2.388-.046 0-.093 0-.14-.002Zm-.037 1.5A8 8 0 1 0 0 8.032c0 4.34 3.464 7.87 7.776 7.965Zm6.666-7.124c-.358-.788-.979-1.532-1.868-2.2-1.082-.813-1.51-1.9-1.967-3.06a30.59 30.59 0 0 0-.296-.736 6.285 6.285 0 0 0-.605-1.151 6.529 6.529 0 0 1 4.39 4.01 6.485 6.485 0 0 1 .346 3.137Z'/>"},{size:24,svgContent:"<path d='M11.74 20.997A9 9 0 0 1 3 12.022c.011-4.92 3.754-7.955 6.986-8.417 1.178-.169 1.792.05 2.183.346.438.333.774.894 1.144 1.773.108.256.216.536.332.834.622 1.61 1.444 3.737 3.443 5.239 1.398 1.05 2.026 2.118 2.208 3.066.183.948-.052 1.917-.65 2.827-1.22 1.858-3.87 3.31-6.71 3.31l-.195-.003Zm-.05 2c.103.002.207.003.31.003 6.076 0 11-4.924 11-11a10.98 10.98 0 0 0-2.47-6.947 11.04 11.04 0 0 0-3.61-2.894A10.958 10.958 0 0 0 12 1C5.925 1 1 5.925 1 12a8.067 8.067 0 0 0 0 .045c0 5.966 4.762 10.82 10.69 10.951Zm9.213-9.666c-.482-1.123-1.35-2.183-2.614-3.133-1.502-1.128-2.096-2.64-2.726-4.24a42.677 42.677 0 0 0-.407-1.01c-.234-.556-.51-1.138-.886-1.66.613.16 1.2.381 1.754.659a9.04 9.04 0 0 1 4.417 4.92 9.075 9.075 0 0 1 .463 4.464Z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},35302:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4.995 8.745a.75.75 0 0 1 1.06 0L7.25 9.939V4a.75.75 0 0 1 1.5 0v5.94l1.195-1.195a.75.75 0 1 1 1.06 1.06L8 12.811l-.528-.528a.945.945 0 0 1-.005-.005L4.995 9.805a.75.75 0 0 1 0-1.06z'/><path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12 6.05a1 1 0 0 1 1 1v7.486l1.793-1.793a1 1 0 1 1 1.414 1.414L12 18.364l-4.207-4.207a1 1 0 1 1 1.414-1.414L11 14.536V7.05a1 1 0 0 1 1-1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},75257:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-4.75a.75.75 0 0 0-.75.75v5.94L6.055 8.744a.75.75 0 1 0-1.06 1.06L8 12.811l3.005-3.006a.75.75 0 1 0-1.06-1.06L8.75 9.939V4A.75.75 0 0 0 8 3.25z'/>"},{size:24,svgContent:"<path d='M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm12-4.95a1 1 0 0 0-2 0v7.486l-1.793-1.793a1 1 0 0 0-1.414 1.414L12 18.364l4.207-4.207a1 1 0 0 0-1.414-1.415L13 14.535V7.05z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},71316:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11.838.714a2.438 2.438 0 0 1 3.448 3.448l-9.841 9.841c-.358.358-.79.633-1.267.806l-3.173 1.146a.75.75 0 0 1-.96-.96l1.146-3.173c.173-.476.448-.909.806-1.267l9.84-9.84zm2.387 1.06a.938.938 0 0 0-1.327 0l-9.84 9.842a1.953 1.953 0 0 0-.456.716L2 14.002l1.669-.604a1.95 1.95 0 0 0 .716-.455l9.841-9.841a.938.938 0 0 0 0-1.327z'/>"},{size:24,svgContent:"<path d='M17.318 1.975a3.329 3.329 0 1 1 4.707 4.707L8.451 20.256c-.49.49-1.082.867-1.735 1.103L2.34 22.94a1 1 0 0 1-1.28-1.28l1.581-4.376a4.726 4.726 0 0 1 1.103-1.735L17.318 1.975zm3.293 1.414a1.329 1.329 0 0 0-1.88 0L5.159 16.963c-.283.283-.5.624-.636 1l-.857 2.372 2.371-.857a2.726 2.726 0 0 0 1.001-.636L20.611 5.268a1.329 1.329 0 0 0 0-1.879z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},23046:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11.777.972c-.364 1.054-1.195 2.322-2.798 2.83-.115.036-.115.36 0 .396 1.603.508 2.434 1.775 2.798 2.83.04.114.406.114.446 0 .364-1.055 1.195-2.322 2.798-2.83.115-.036.115-.36 0-.396-1.603-.508-2.434-1.776-2.798-2.83-.04-.114-.406-.114-.446 0zM5.295 4.5a.75.75 0 0 1 .747.682c.06.65.334 1.68.954 2.572.606.87 1.527 1.596 2.927 1.75a.75.75 0 0 1 0 1.491c-1.4.154-2.321.88-2.927 1.751a5.683 5.683 0 0 0-.954 2.572.75.75 0 0 1-1.493 0 5.683 5.683 0 0 0-.954-2.572c-.606-.87-1.527-1.597-2.927-1.75a.75.75 0 0 1 0-1.492c1.4-.154 2.321-.88 2.927-1.75.62-.892.894-1.922.954-2.572a.75.75 0 0 1 .746-.682z'/>"},{size:24,svgContent:"<path d='M16.979 3.802c1.602-.508 2.434-1.776 2.798-2.83.04-.114.406-.114.446 0 .364 1.054 1.196 2.322 2.798 2.83.115.036.115.36 0 .396-1.602.508-2.434 1.775-2.798 2.83-.04.114-.406.114-.446 0-.364-1.055-1.196-2.322-2.798-2.83-.115-.036-.115-.36 0-.396zm-5.984-1.396a1 1 0 0 0-1.99 0C8.881 3.695 8.32 5.72 7.042 7.484c-1.258 1.734-3.198 3.21-6.148 3.521a1 1 0 0 0 0 1.99c2.95.31 4.89 1.786 6.148 3.521 1.277 1.763 1.84 3.789 1.961 5.078a1 1 0 0 0 1.992 0c.122-1.29.684-3.315 1.961-5.078 1.258-1.735 3.198-3.21 6.148-3.522a1 1 0 0 0 0-1.989c-2.95-.31-4.89-1.787-6.148-3.521-1.277-1.764-1.84-3.79-1.962-5.078zM20 21.097a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},67187:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1H1zm7.975 4.287c1.268-.448 1.959-1.448 2.288-2.318.042-.113.432-.113.474 0 .33.87 1.02 1.87 2.288 2.318.113.04.113.386 0 .426-1.268.448-1.959 1.448-2.288 2.319-.042.112-.432.112-.474 0-.33-.87-1.02-1.871-2.288-2.319-.113-.04-.113-.386 0-.426zM1.893 9.33c2.347-.647 3.474-2.68 3.904-4.25.033-.118.373-.118.406 0 .43 1.57 1.557 3.603 3.904 4.25.115.032.115.308 0 .34-2.347.648-3.474 2.68-3.904 4.25-.033.118-.373.118-.406 0-.43-1.57-1.557-3.602-3.904-4.25-.115-.032-.115-.308 0-.34z'/>"},{size:24,svgContent:"<path d='M3 1a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3zm11.975 5.302c1.268-.447 1.959-1.448 2.288-2.318.042-.113.432-.113.474 0 .33.87 1.02 1.871 2.288 2.318.113.04.113.387 0 .427-1.268.447-1.959 1.448-2.288 2.318-.042.113-.432.113-.474 0-.33-.87-1.02-1.87-2.288-2.318-.113-.04-.113-.386 0-.427zM19.5 18a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zM2.99 12.352C7.389 11.47 9.27 7.9 9.833 5.485c.027-.118.307-.118.334 0 .563 2.414 2.444 5.984 6.843 6.867.119.024.119.272 0 .296-4.4.883-6.28 4.454-6.843 6.867-.027.118-.307.118-.334 0-.563-2.413-2.444-5.984-6.843-6.867-.119-.024-.119-.272 0-.296z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},52210:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 5.25a2.75 2.75 0 1 0 0 5.5 2.75 2.75 0 0 0 0-5.5ZM6.75 8a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0Z'/><path d='M0 1.75v4.692c.82-.327 2 .209 2 1.308C2 8.85.82 9.386 0 9.058v5.192h16V9.058c-.819.327-2-.209-2-1.308 0-1.1 1.18-1.635 2-1.308V1.75H0Zm1.82 8.521C2.59 9.886 3.5 9.026 3.5 7.75c0-1.276-.91-2.136-1.68-2.522-.1-.05-.206-.096-.32-.138V3.25h13v1.84c-.114.042-.22.089-.32.139-.77.385-1.68 1.245-1.68 2.521 0 1.276.91 2.136 1.68 2.521.1.05.206.097.32.14v2.339h-13v-2.34c.114-.042.22-.089.32-.139Z'/>"},{size:24,svgContent:"<path d='M8 12a4 4 0 1 0 8 0 4 4 0 0 0-8 0Zm4-2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z'/><path d='M0 3h24v7.038c-1.229-.491-3 .313-3 1.962s1.771 2.453 3 1.962V21H0v-7.036c1.225.503 2.99-.24 3-1.949a1.3 1.3 0 0 0 0-.03c-.01-1.71-1.775-2.452-3-1.95V3Zm2 12.814V19h20v-3.186a4.704 4.704 0 0 1-.619-.255C20.275 15.006 19 13.785 19 12c0-1.785 1.275-3.005 2.381-3.559.19-.094.397-.181.619-.255V5H2v3.186c.222.074.43.16.619.255C3.725 8.995 5 10.215 5 12c0 1.785-1.275 3.005-2.381 3.559-.19.094-.397.181-.619.255Z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},74572:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M7.25 9V4h1.5v5h-1.5zm0 3.026v-1.5h1.5v1.5h-1.5z'/>"},{size:24,svgContent:"<path d='M11 18v-2h2v2h-2zm0-4V6h2v8h-2z'/><path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},94285:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1 2.75A.75.75 0 0 1 1.75 2H7v1.5H2.5v11h10.219V9h1.5v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75V2.75z'/><path d='M15 1v4.993a.75.75 0 1 1-1.5 0V3.56L8.78 8.28a.75.75 0 0 1-1.06-1.06l4.72-4.72h-2.433a.75.75 0 0 1 0-1.5H15z'/>"},{size:24,svgContent:"<path d='M3 5a1 1 0 0 1 1-1h8v2H5v14h13v-8h2v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5z'/><path d='M22 2v5.95a1 1 0 1 1-2 0V5.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L18.586 4H16.05a1 1 0 0 1 0-2H22z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},67176:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M16 8a8 8 0 1 0-9.25 7.903v-5.59H4.719V8H6.75V6.237c0-2.005 1.194-3.112 3.022-3.112.875 0 1.79.156 1.79.156V5.25h-1.008c-.994 0-1.304.617-1.304 1.25V8h2.219l-.355 2.313H9.25v5.59A8.002 8.002 0 0 0 16 8z'/>"},{size:24,svgContent:"<path d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.093 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.563V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},47425:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1.75 1A1.75 1.75 0 0 0 0 2.75v11.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0 0 16 14.25v-9.5A1.75 1.75 0 0 0 14.25 3H7.82l-.65-1.125A1.75 1.75 0 0 0 5.655 1H1.75zM1.5 2.75a.25.25 0 0 1 .25-.25h3.905a.25.25 0 0 1 .216.125L6.954 4.5h7.296a.25.25 0 0 1 .25.25v9.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25V2.75z'/>"},{size:24,svgContent:"<path d='M1 4a2 2 0 0 1 2-2h5.155a3 3 0 0 1 2.598 1.5l.866 1.5H21a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm7.155 0H3v16h18V7H10.464L9.021 4.5a1 1 0 0 0-.866-.5z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},36973:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1.75 1A1.75 1.75 0 0 0 0 2.75v11.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0 0 16 14.25v-9.5A1.75 1.75 0 0 0 14.25 3H7.82l-.65-1.125A1.75 1.75 0 0 0 5.655 1H1.75z'/>"},{size:24,svgContent:"<path d='M1 4a2 2 0 0 1 2-2h5.155a3 3 0 0 1 2.598 1.5l.866 1.5H21a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50994:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M6.53 9.47a.75.75 0 0 1 0 1.06l-2.72 2.72h1.018a.75.75 0 0 1 0 1.5H1.25v-3.579a.75.75 0 0 1 1.5 0v1.018l2.72-2.72a.75.75 0 0 1 1.06 0zm2.94-2.94a.75.75 0 0 1 0-1.06l2.72-2.72h-1.018a.75.75 0 1 1 0-1.5h3.578v3.579a.75.75 0 0 1-1.5 0V3.81l-2.72 2.72a.75.75 0 0 1-1.06 0z'/>"},{size:24,svgContent:"<path d='M9.707 14.293a1 1 0 0 1 0 1.414L5.414 20h1.829a1 1 0 0 1 0 2H2v-5.243a1 1 0 0 1 2 0v1.829l4.293-4.293a1 1 0 0 1 1.414 0zm4.586-4.586a1 1 0 0 1 0-1.414L18.586 4h-1.829a1 1 0 0 1 0-2H22v5.243a1 1 0 1 1-2 0V5.414l-4.293 4.293a1 1 0 0 1-1.414 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},93202:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4.423 2.5a1.25 1.25 0 0 0-1.224.995l-1.652 7.923a1.313 1.313 0 0 0 2.423.925l1.57-2.718A1.25 1.25 0 0 1 6.622 9h2.756c.447 0 .86.238 1.083.625l1.57 2.718a1.313 1.313 0 0 0 2.422-.924l-1.652-7.924a1.25 1.25 0 0 0-1.224-.995H4.423zm-2.692.689A2.75 2.75 0 0 1 4.423 1h7.154a2.75 2.75 0 0 1 2.692 2.189l1.653 7.923a2.813 2.813 0 0 1-5.19 1.981L9.233 10.5H6.766L5.27 13.093a2.813 2.813 0 0 1-5.19-1.98l1.65-7.925z'/><path d='M7 5.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0zm2 0a1.25 1.25 0 1 0 2.5 0 1.25 1.25 0 0 0-2.5 0z'/>"},{size:24,svgContent:"<path d='M7.041 4a2.5 2.5 0 0 0-2.447 1.99L2.22 17.372a2.183 2.183 0 0 0 4.274.89l.474-2.272A2.5 2.5 0 0 1 9.415 14h5.17a2.5 2.5 0 0 1 2.447 1.99l.474 2.273a2.183 2.183 0 0 0 4.274-.892L19.406 5.99A2.5 2.5 0 0 0 16.96 4H7.04zM2.636 5.581A4.5 4.5 0 0 1 7.04 2h9.918a4.5 4.5 0 0 1 4.405 3.581l2.374 11.382a4.183 4.183 0 1 1-8.19 1.708l-.474-2.273a.5.5 0 0 0-.49-.398H9.416a.5.5 0 0 0-.49.398l-.473 2.273a4.183 4.183 0 1 1-8.19-1.708L2.636 5.581z'/><path d='M10 8.75a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0zm4 0a1.75 1.75 0 1 0 3.5 0 1.75 1.75 0 0 0-3.5 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},57988:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3.779.583h8.163l3.918 4.895-8 9.7-8-9.7L3.78.583zm-1.495 5.5 3.947 4.786-1.316-4.786h-2.63zm2.88-1.5 1.42-2.5H4.479l-2.001 2.5h2.687zm1.282 1.5 1.414 5.144 1.414-5.144H6.446zm2.408-1.5-.994-1.75-.993 1.75h1.987zm1.951 1.5L9.49 10.87l3.946-4.786h-2.63zm2.438-1.5-2.002-2.5H9.137l1.419 2.5h2.687z'/>"},{size:24,svgContent:"<path d='M5.807.999h12.29l5.855 7.216-12 14.357-12-14.357L5.808 1zM20.397 7l-3.246-4.001h-3.473L15.978 7h4.42zm-6.719 0-1.725-3-1.726 3h3.451zm-4.04 2 2.315 8.304L14.266 9H9.64zm-1.71-2 2.3-4.001H6.755L3.508 7h4.419zM3.209 9l6.542 7.827L7.571 9H3.208zm10.945 7.827L20.696 9h-4.361l-2.18 7.827z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},65369:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1 1h6v6H1V1zm1.5 1.5v3h3v-3h-3zM1 9h6v6H1V9zm1.5 1.5v3h3v-3h-3zM9 1h6v6H9V1zm1.5 1.5v3h3v-3h-3zM9 9h6v6H9V9zm1.5 1.5v3h3v-3h-3z'/>"},{size:24,svgContent:"<path d='M1 2a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2zm2 1v5h5V3H3zM1 15a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-7zm2 1v5h5v-5H3zM14 2a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1V2zm2 1v5h5V3h-5zm-2 12a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7zm2 1v5h5v-5h-5z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},75430:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3.849 10.034c-.021-.465.026-.93.139-1.381H1.669c.143-.303.375-.556.665-.724l.922-.532a1.631 1.631 0 0 0 .436-2.458 1.809 1.809 0 0 1-.474-1.081c-.01-.19.01-.38.057-.563a1.123 1.123 0 0 1 .627-.7 1.2 1.2 0 0 1 .944 0c.149.065.282.161.392.281.108.12.188.263.237.417.049.183.068.372.057.561a1.81 1.81 0 0 1-.475 1.084 1.6 1.6 0 0 0-.124 1.9c.36-.388.792-.702 1.272-.927v-.015c.48-.546.768-1.233.821-1.958a3.23 3.23 0 0 0-.135-1.132 2.657 2.657 0 0 0-5.04 0c-.111.367-.157.75-.135 1.133.053.724.341 1.41.821 1.955A.126.126 0 0 1 2.565 6a.13.13 0 0 1-.063.091l-.922.532A3.2 3.2 0 0 0-.004 9.396v.75h3.866c.001-.033-.01-.071-.013-.112zm10.568-3.4-.922-.532a.132.132 0 0 1-.064-.091.12.12 0 0 1 .028-.1c.48-.546.768-1.233.821-1.958a3.289 3.289 0 0 0-.135-1.135A2.635 2.635 0 0 0 12.7 1.233a2.669 2.669 0 0 0-3.042.64 2.646 2.646 0 0 0-.554.948c-.11.367-.156.75-.134 1.133.053.724.341 1.41.821 1.955.005.006 0 .011 0 .018.48.225.911.54 1.272.927a1.6 1.6 0 0 0-.125-1.907 1.809 1.809 0 0 1-.474-1.081c-.01-.19.009-.38.057-.563a1.123 1.123 0 0 1 .627-.7 1.2 1.2 0 0 1 .944 0c.149.065.282.161.392.281.107.12.187.26.236.413.05.184.07.375.058.565a1.81 1.81 0 0 1-.475 1.084 1.633 1.633 0 0 0 .438 2.456l.922.532c.29.169.52.421.664.724h-2.319c.113.452.16.918.139 1.383 0 .04-.013.078-.017.117h3.866v-.75a3.2 3.2 0 0 0-1.58-2.778v.004zm-3.625 6-.922-.532a.13.13 0 0 1-.061-.144.122.122 0 0 1 .025-.047 3.33 3.33 0 0 0 .821-1.958 3.229 3.229 0 0 0-.135-1.132 2.657 2.657 0 0 0-5.041 0c-.11.367-.156.75-.134 1.133.053.724.341 1.41.821 1.955a.127.127 0 0 1 .028.106.128.128 0 0 1-.063.091l-.922.532a3.2 3.2 0 0 0-1.584 2.773v.75h8.75v-.75a3.2 3.2 0 0 0-1.583-2.781v.004zm-5.5 2.023c.143-.303.375-.556.665-.724l.922-.532a1.63 1.63 0 0 0 .436-2.458 1.809 1.809 0 0 1-.474-1.081c-.01-.19.009-.38.057-.563a1.123 1.123 0 0 1 .627-.7 1.2 1.2 0 0 1 .944 0c.149.065.282.161.392.281.108.12.188.263.237.417.049.183.068.372.057.561a1.81 1.81 0 0 1-.475 1.084 1.632 1.632 0 0 0 .438 2.456l.922.532c.29.169.52.421.664.724l-5.412.003z'/>"},{size:24,svgContent:"<path d='M6.112 13.497c-.014-.295-.01-.59.013-.885h-3.94c.216-.57.621-1.05 1.148-1.357l1.4-.807a2.337 2.337 0 0 0 .624-3.521 2.752 2.752 0 0 1-.654-2.63A1.85 1.85 0 0 1 5.728 3.16a1.915 1.915 0 0 1 2.182.458 1.9 1.9 0 0 1 .389.677 2.762 2.762 0 0 1-.657 2.633 2.326 2.326 0 0 0-.506 1.9c.034.188.092.37.173.544a4 4 0 0 1 .33-.4 5.922 5.922 0 0 1 1.978-1.418c.016-.007.033-.011.05-.018a4.687 4.687 0 0 0 .721-2.215 4.834 4.834 0 0 0-.2-1.668 3.891 3.891 0 0 0-7.383 0 4.791 4.791 0 0 0-.2 1.671 4.9 4.9 0 0 0 1.21 2.887.335.335 0 0 1-.09.506l-1.399.807A4.718 4.718 0 0 0-.007 13.61v1H6.27a6.549 6.549 0 0 1-.158-1.114zm15.549-3.974-1.4-.808a.329.329 0 0 1-.162-.231.334.334 0 0 1 .072-.273 4.908 4.908 0 0 0 1.212-2.889 4.836 4.836 0 0 0-.2-1.668 3.891 3.891 0 0 0-5.967-1.929A3.89 3.89 0 0 0 13.8 3.654a4.793 4.793 0 0 0-.2 1.671c.05.787.3 1.549.723 2.214.015.007.032.011.048.018.75.33 1.423.813 1.977 1.418.12.13.227.268.331.4a2.302 2.302 0 0 0-.334-2.451 2.752 2.752 0 0 1-.655-2.63 1.846 1.846 0 0 1 1.028-1.136 1.91 1.91 0 0 1 2.18.458 1.9 1.9 0 0 1 .388.677 2.762 2.762 0 0 1-.656 2.633 2.337 2.337 0 0 0 .624 3.519l1.4.808c.53.308.938.789 1.155 1.362h-3.942c.023.294.028.59.014.885a6.536 6.536 0 0 1-.165 1.115h6.277v-1a4.723 4.723 0 0 0-2.332-4.092zm-5.499 8.056-1.4-.808a.331.331 0 0 1-.156-.376.331.331 0 0 1 .067-.128 4.912 4.912 0 0 0 1.211-2.89 4.837 4.837 0 0 0-.2-1.668 3.891 3.891 0 0 0-7.382 0 4.792 4.792 0 0 0-.2 1.671 4.901 4.901 0 0 0 1.21 2.887.334.334 0 0 1-.09.506l-1.4.808a4.718 4.718 0 0 0-2.333 4.088v1h12.997v-1a4.72 4.72 0 0 0-2.324-4.09zm-8.48 3.088a2.665 2.665 0 0 1 1.15-1.356l1.399-.808a2.334 2.334 0 0 0 .625-3.52 2.753 2.753 0 0 1-.655-2.63 1.858 1.858 0 0 1 1.028-1.136 1.933 1.933 0 0 1 1.54 0 1.847 1.847 0 0 1 1.028 1.135c.079.296.11.602.094.908a2.884 2.884 0 0 1-.75 1.725 2.335 2.335 0 0 0 .624 3.518l1.4.808c.526.308.93.786 1.147 1.356h-8.63z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},76254:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4.538 7.513c.16-.482.42-.925.761-1.3.072-.079.159-.139.237-.21l-.2-.113a.667.667 0 0 1-.179-1l.232-.278a2.836 2.836 0 0 0 .714-1.677 2.807 2.807 0 0 0-.106-.937A2.069 2.069 0 0 0 4.853.74a2.116 2.116 0 0 0-2.415.508 2.09 2.09 0 0 0-.435.75 2.78 2.78 0 0 0-.106.937c.047.622.298 1.212.714 1.677l.232.278a.666.666 0 0 1-.179 1l-1.331.768A2.668 2.668 0 0 0 0 8.968v.034h4.347a4.305 4.305 0 0 1 .191-1.489zm10.134-.856-1.331-.768a.666.666 0 0 1-.179-1l.232-.278a2.842 2.842 0 0 0 .714-1.677 2.806 2.806 0 0 0-.106-.937A2.068 2.068 0 0 0 12.858.739a2.116 2.116 0 0 0-2.415.508 2.09 2.09 0 0 0-.435.75 2.798 2.798 0 0 0-.106.937c.047.622.298 1.212.714 1.677l.232.278a.665.665 0 0 1-.179 1l-.2.113c.078.071.165.131.237.21.342.375.6.818.76 1.3.15.48.214.984.186 1.487H16v-.034a2.667 2.667 0 0 0-1.328-2.308zm-4 6-1.331-.769a.665.665 0 0 1-.179-1l.232-.278a2.724 2.724 0 0 0 .608-2.614 2.1 2.1 0 0 0-.435-.75 2.117 2.117 0 0 0-3.124 0 2.1 2.1 0 0 0-.435.75 2.78 2.78 0 0 0-.106.937c.047.622.298 1.212.714 1.677l.232.278a.666.666 0 0 1-.179 1l-1.331.769a2.666 2.666 0 0 0-1.333 2.309V15h8v-.034a2.666 2.666 0 0 0-1.333-2.305v-.004z'/>"},{size:24,svgContent:"<path d='m16.004 19.153-2-1.153a.999.999 0 0 1-.268-1.506l.347-.417c.624-.697 1-1.581 1.071-2.515a4.167 4.167 0 0 0-.159-1.406 3.144 3.144 0 0 0-.651-1.125 3.177 3.177 0 0 0-4.687 0 3.147 3.147 0 0 0-.652 1.125 4.167 4.167 0 0 0-.159 1.406c.07.934.447 1.818 1.071 2.515l.348.417A1 1 0 0 1 9.996 18l-2 1.153a4 4 0 0 0-2 3.464v.051h12v-.05a4 4 0 0 0-1.992-3.465zm-9.151-5.472a6.164 6.164 0 0 1 .262-2.168 5.24 5.24 0 0 1 .845-1.557.992.992 0 0 1-.22-1.462l.347-.417c.624-.697 1-1.581 1.071-2.515a4.167 4.167 0 0 0-.159-1.406 3.143 3.143 0 0 0-.651-1.125 3.178 3.178 0 0 0-4.687 0 3.146 3.146 0 0 0-.652 1.125 4.167 4.167 0 0 0-.159 1.406c.07.934.447 1.818 1.071 2.515l.348.417A1 1 0 0 1 4 10l-2 1.153a4 4 0 0 0-2 3.464v.051h6.993a5.847 5.847 0 0 1-.14-.987zm15.151-2.528-2-1.153a1 1 0 0 1-.268-1.506l.347-.417c.624-.697 1-1.581 1.071-2.515a4.167 4.167 0 0 0-.159-1.406 3.143 3.143 0 0 0-.651-1.125 3.178 3.178 0 0 0-4.687 0 3.146 3.146 0 0 0-.652 1.125 4.167 4.167 0 0 0-.159 1.406c.07.934.447 1.818 1.071 2.515l.348.417a.993.993 0 0 1-.221 1.462c.368.468.654.994.845 1.557.217.701.305 1.435.262 2.168-.02.332-.068.663-.143.987H24v-.05a4 4 0 0 0-1.996-3.465z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},82954:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1.69 2A4.582 4.582 0 0 1 8 2.023 4.583 4.583 0 0 1 11.88.817h.002a4.618 4.618 0 0 1 3.782 3.65v.003a4.543 4.543 0 0 1-1.011 3.84L9.35 14.629a1.765 1.765 0 0 1-2.093.464 1.762 1.762 0 0 1-.605-.463L1.348 8.309A4.582 4.582 0 0 1 1.689 2zm3.158.252A3.082 3.082 0 0 0 2.49 7.337l.005.005L7.8 13.664a.264.264 0 0 0 .311.069.262.262 0 0 0 .09-.069l5.312-6.33a3.043 3.043 0 0 0 .68-2.573 3.118 3.118 0 0 0-2.551-2.463 3.079 3.079 0 0 0-2.612.816l-.007.007a1.501 1.501 0 0 1-2.045 0l-.009-.008a3.082 3.082 0 0 0-2.121-.861z'/>"},{size:24,svgContent:"<path d='M5.21 1.57a6.757 6.757 0 0 1 6.708 1.545.124.124 0 0 0 .165 0 6.741 6.741 0 0 1 5.715-1.78l.004.001a6.802 6.802 0 0 1 5.571 5.376v.003a6.689 6.689 0 0 1-1.49 5.655l-7.954 9.48a2.518 2.518 0 0 1-3.857 0L2.12 12.37A6.683 6.683 0 0 1 .627 6.714 6.757 6.757 0 0 1 5.21 1.57zm3.12 1.803a4.757 4.757 0 0 0-5.74 3.725l-.001.002a4.684 4.684 0 0 0 1.049 3.969l.009.01 7.958 9.485a.518.518 0 0 0 .79 0l7.968-9.495a4.688 4.688 0 0 0 1.049-3.965 4.803 4.803 0 0 0-3.931-3.794 4.74 4.74 0 0 0-4.023 1.256l-.008.008a2.123 2.123 0 0 1-2.9 0l-.007-.007a4.757 4.757 0 0 0-2.214-1.194z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},37133:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15.724 4.22A4.313 4.313 0 0 0 12.192.814a4.269 4.269 0 0 0-3.622 1.13.837.837 0 0 1-1.14 0 4.272 4.272 0 0 0-6.21 5.855l5.916 7.05a1.128 1.128 0 0 0 1.727 0l5.916-7.05a4.228 4.228 0 0 0 .945-3.577z'/>"},{size:24,svgContent:"<path d='M8.667 1.912a6.257 6.257 0 0 0-7.462 7.677c.24.906.683 1.747 1.295 2.457l7.955 9.482a2.015 2.015 0 0 0 3.09 0l7.956-9.482a6.188 6.188 0 0 0 1.382-5.234l-.49.097.49-.099a6.303 6.303 0 0 0-5.162-4.98h-.002a6.24 6.24 0 0 0-5.295 1.65.623.623 0 0 1-.848 0 6.257 6.257 0 0 0-2.91-1.568z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},74720:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M7.25 12.026v-1.5h1.5v1.5h-1.5zm.884-7.096A1.125 1.125 0 0 0 7.06 6.39l-1.431.448a2.625 2.625 0 1 1 5.13-.784c0 .54-.156 1.015-.503 1.488-.3.408-.7.652-.973.818l-.112.068c-.185.116-.26.203-.302.283-.046.087-.097.245-.097.57h-1.5c0-.47.072-.898.274-1.277.206-.385.507-.645.827-.846l.147-.092c.285-.177.413-.257.526-.41.169-.23.213-.397.213-.602 0-.622-.503-1.125-1.125-1.125z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12.162 8a1.72 1.72 0 0 0-1.643 2.235l-1.909.597a3.72 3.72 0 1 1 7.273-1.111c0 .763-.22 1.435-.714 2.107-.423.577-.987.92-1.385 1.162l-.164.101c-.277.174-.398.31-.47.444-.076.143-.15.388-.15.87V15h-2v-.596c0-.675.102-1.279.386-1.812.29-.541.713-.907 1.17-1.194l.212-.133c.412-.256.614-.382.788-.62.255-.347.327-.608.327-.925 0-.95-.77-1.72-1.72-1.72zM11 19v-2h2v2h-2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},60946:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M6.625.988a2.75 2.75 0 0 1 2.75 0l5.25 3.03c.541.314.875.891.875 1.516v9.724a.75.75 0 0 1-.75.75h-5a.75.75 0 0 1-.75-.75V10.5H7v4.758a.75.75 0 0 1-.75.75h-5a.75.75 0 0 1-.75-.75V5.534c0-.625.334-1.202.875-1.515L6.625.988zm2 1.299a1.25 1.25 0 0 0-1.25 0l-5.25 3.031A.25.25 0 0 0 2 5.534v8.974h3.5V9.75A.75.75 0 0 1 6.25 9h3.5a.75.75 0 0 1 .75.75v4.758H14V5.534a.25.25 0 0 0-.125-.216l-5.25-3.031z'/>"},{size:24,svgContent:"<path d='M12.5 3.247a1 1 0 0 0-1 0L4 7.577V20h4.5v-6a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v6H20V7.577l-7.5-4.33zm-2-1.732a3 3 0 0 1 3 0l7.5 4.33a2 2 0 0 1 1 1.732V21a1 1 0 0 1-1 1h-6.5a1 1 0 0 1-1-1v-6h-3v6a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.577a2 2 0 0 1 1-1.732l7.5-4.33z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},26449:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M9.375.988a2.75 2.75 0 0 0-2.75 0l-5.25 3.03A1.75 1.75 0 0 0 .5 5.535v9.724c0 .415.336.75.75.75h4a.75.75 0 0 0 .75-.75V10h4v5.258c0 .415.336.75.75.75h4a.75.75 0 0 0 .75-.75V5.534a1.75 1.75 0 0 0-.875-1.515L9.375.988z'/>"},{size:24,svgContent:"<path d='M13.5 1.515a3 3 0 0 0-3 0L3 5.845a2 2 0 0 0-1 1.732V21a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6h4v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V7.577a2 2 0 0 0-1-1.732l-7.5-4.33z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},85556:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13zM0 8a8 8 0 1 0 16 0A8 8 0 0 0 0 8z'/><path d='M7.25 7v5h1.5V7h-1.5zm0-3.026v1.5h1.5v-1.5h-1.5z'/>"},{size:24,svgContent:"<path d='M11 6v2h2V6h-2zm0 4v8h2v-8h-2z'/><path d='M12 21a9 9 0 1 1 0-18 9 9 0 0 1 0 18zM1 12c0 6.075 4.925 11 11 11s11-4.925 11-11S18.075 1 12 1 1 5.925 1 12z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},8799:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.44c2.136 0 2.389.009 3.233.047.78.036 1.203.166 1.485.276.348.128.663.332.921.598.266.258.47.573.599.921.11.282.24.706.275 1.485.039.844.047 1.097.047 3.233s-.008 2.389-.047 3.232c-.035.78-.166 1.204-.275 1.486a2.654 2.654 0 0 1-1.518 1.518c-.282.11-.706.24-1.486.275-.843.039-1.097.047-3.233.047s-2.39-.008-3.232-.047c-.78-.035-1.204-.165-1.486-.275a2.477 2.477 0 0 1-.921-.599 2.477 2.477 0 0 1-.599-.92c-.11-.282-.24-.706-.275-1.486-.038-.844-.047-1.096-.047-3.232s.009-2.39.047-3.233c.036-.78.166-1.203.275-1.485.129-.348.333-.663.599-.921a2.49 2.49 0 0 1 .92-.599c.283-.11.707-.24 1.487-.275.843-.038 1.096-.047 3.232-.047L8 1.441zm.001-1.442c-2.172 0-2.445.01-3.298.048-.854.04-1.435.176-1.943.373a3.928 3.928 0 0 0-1.417.923c-.407.4-.722.883-.923 1.417-.198.508-.333 1.09-.372 1.942C.01 5.552 0 5.826 0 8c0 2.172.01 2.445.048 3.298.04.853.174 1.433.372 1.941.2.534.516 1.017.923 1.417.4.407.883.722 1.417.923.508.198 1.09.333 1.942.372.852.039 1.126.048 3.299.048 2.172 0 2.445-.01 3.298-.048.853-.04 1.433-.174 1.94-.372a4.087 4.087 0 0 0 2.34-2.34c.199-.508.334-1.09.373-1.942.039-.851.048-1.125.048-3.298s-.01-2.445-.048-3.298c-.04-.853-.174-1.433-.372-1.94a3.924 3.924 0 0 0-.923-1.418A3.928 3.928 0 0 0 13.24.42c-.508-.197-1.09-.333-1.942-.371-.851-.041-1.125-.05-3.298-.05l.001-.001z'/><path d='M8 3.892a4.108 4.108 0 1 0 0 8.216 4.108 4.108 0 0 0 0-8.216zm0 6.775a2.668 2.668 0 1 1 0-5.335 2.668 2.668 0 0 1 0 5.335zm4.27-5.978a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92z'/>"},{size:24,svgContent:"<path d='M12 3.803c2.67 0 2.986.01 4.041.059.975.044 1.504.207 1.857.344.435.16.828.416 1.151.748.332.323.588.716.748 1.151.137.353.3.882.345 1.857.047 1.055.058 1.37.058 4.041 0 2.67-.01 2.986-.058 4.041-.045.975-.208 1.505-.345 1.857A3.315 3.315 0 0 1 17.9 19.8c-.352.137-.882.3-1.856.344-1.055.048-1.371.058-4.041.058-2.67 0-2.987-.01-4.041-.058-.975-.044-1.505-.207-1.857-.344a3.096 3.096 0 0 1-1.151-.748 3.096 3.096 0 0 1-.749-1.151c-.137-.353-.3-.883-.344-1.857-.048-1.055-.058-1.371-.058-4.041 0-2.67.01-2.987.058-4.041.045-.975.207-1.505.344-1.857a3.08 3.08 0 0 1 .749-1.151 3.096 3.096 0 0 1 1.15-.749c.353-.137.883-.3 1.858-.344 1.054-.048 1.37-.058 4.04-.058H12zM12.002 2c-2.716 0-3.057.012-4.124.06-1.066.05-1.793.22-2.428.466A4.91 4.91 0 0 0 3.678 3.68a4.91 4.91 0 0 0-1.153 1.772c-.247.635-.416 1.363-.465 2.427C2.012 8.943 2 9.286 2 12.002c0 2.715.012 3.056.06 4.123.05 1.066.218 1.791.465 2.426a4.909 4.909 0 0 0 1.153 1.772c.5.508 1.105.902 1.772 1.153.635.248 1.363.417 2.428.465 1.064.049 1.407.06 4.123.06s3.056-.01 4.123-.06c1.067-.049 1.79-.217 2.426-.465a5.111 5.111 0 0 0 2.925-2.925c.247-.635.416-1.363.465-2.427.048-1.064.06-1.407.06-4.123s-.012-3.057-.06-4.123c-.05-1.067-.218-1.791-.465-2.426a4.902 4.902 0 0 0-1.153-1.771 4.91 4.91 0 0 0-1.772-1.155c-.635-.247-1.363-.416-2.428-.464-1.064-.048-1.406-.06-4.122-.06L12.002 2z'/><path d='M12 6.867a5.135 5.135 0 1 0 0 10.27 5.135 5.135 0 0 0 0-10.27zm0 8.47a3.334 3.334 0 1 1 0-6.67 3.334 3.334 0 0 1 0 6.67zm5.338-7.473a1.2 1.2 0 1 0 0-2.4 1.2 1.2 0 0 0 0 2.4z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},16518:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15 14.5H5V13h10v1.5zm0-5.75H5v-1.5h10v1.5zM15 3H5V1.5h10V3zM3 3H1V1.5h2V3zm0 11.5H1V13h2v1.5zm0-5.75H1v-1.5h2v1.5z'/>"},{size:24,svgContent:"<path d='M22 5H8V3h14v2zm0 16H8v-2h14v2zm0-8H8v-2h14v2zM5 4a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/>"}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},95798:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4 4a4 4 0 1 1 8 0v3h1.25c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25v-5.5C1 7.784 1.784 7 2.75 7H4V4zm1.5 3h5V4a2.5 2.5 0 0 0-5 0v3zM2.75 8.5a.25.25 0 0 0-.25.25v5.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25H2.75z'/>"},{size:24,svgContent:"<path d='M6 7a6 6 0 1 1 12 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1V7zm2 3h8V7a4 4 0 0 0-8 0v3zm-3 2v8h14v-8H5z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},37912:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 0a4 4 0 0 0-4 4v3H2.75A1.75 1.75 0 0 0 1 8.75v5.5c0 .966.784 1.75 1.75 1.75h10.5A1.75 1.75 0 0 0 15 14.25v-5.5A1.75 1.75 0 0 0 13.25 7H12V4a4 4 0 0 0-4-4zm2.5 4v3h-5V4a2.5 2.5 0 0 1 5 0z'/>"},{size:24,svgContent:"<path d='M12 1a6 6 0 0 0-6 6v3H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a6 6 0 0 0-6-6zm4 6v3H8V7a4 4 0 1 1 8 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},3115:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M13.426 2.574a2.831 2.831 0 0 0-4.797 1.55l3.247 3.247a2.831 2.831 0 0 0 1.55-4.797zM10.5 8.118l-2.619-2.62A63303.13 63303.13 0 0 0 4.74 9.075L2.065 12.12a1.287 1.287 0 0 0 1.816 1.816l3.06-2.688 3.56-3.129zM7.12 4.094a4.331 4.331 0 1 1 4.786 4.786l-3.974 3.493-3.06 2.689a2.787 2.787 0 0 1-3.933-3.933l2.676-3.045 3.505-3.99z'/>"},{size:24,svgContent:"<path d='M19.61 4.391a4 4 0 0 0-6.782 2.214l4.568 4.568a4 4 0 0 0 2.214-6.781zm-4.048 7.776-3.728-3.728-4.419 5.029-3.736 4.251a1.844 1.844 0 0 0 2.602 2.602l4.271-3.753 5.01-4.401zm-4.745-5.6a6 6 0 1 1 6.617 6.617l-5.562 4.887-4.27 3.753a3.844 3.844 0 0 1-5.425-5.425l3.749-4.266 4.89-5.566z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},82146:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15.5 13.5H.5V12h15v1.5zm0-4.75H.5v-1.5h15v1.5zm0-4.75H.5V2.5h15V4z'/>"},{size:24,svgContent:"<path d='M21 6H3V4h18v2zm0 14H3v-2h18v2zm0-7H3v-2h18v2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},41915:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4 4a4 4 0 1 1 8 0v3a4 4 0 0 1-8 0V4zm4-2.5A2.5 2.5 0 0 0 5.5 4v3a2.5 2.5 0 0 0 5 0V4A2.5 2.5 0 0 0 8 1.5z'/><path d='M2.25 6v1a5.75 5.75 0 0 0 11.5 0V6h1.5v1a7.251 7.251 0 0 1-6.5 7.212V16h-1.5v-1.788A7.251 7.251 0 0 1 .75 7V6h1.5z'/>"},{size:24,svgContent:"<path d='M7 5a5 5 0 0 1 10 0v6a5 5 0 0 1-10 0V5zm5-3a3 3 0 0 0-3 3v6a3 3 0 1 0 6 0V5a3 3 0 0 0-3-3z'/><path d='M3 7a1 1 0 0 1 1 1v3a8 8 0 1 0 16 0V8a1 1 0 1 1 2 0v3c0 5.185-3.947 9.449-9 9.95V24h-2v-3.05c-5.053-.5-9-4.764-9-9.95V8a1 1 0 0 1 1-1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},73525:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M14.53 1.47a.75.75 0 0 1 0 1.06l-2.72 2.72h1.018a.75.75 0 1 1 0 1.5H9.25V3.171a.75.75 0 1 1 1.5 0V4.19l2.72-2.72a.75.75 0 0 1 1.06 0zM1.47 14.53a.75.75 0 0 1 0-1.06l2.72-2.72H3.171a.75.75 0 0 1 0-1.5H6.75v3.579a.75.75 0 1 1-1.5 0V11.81l-2.72 2.72a.75.75 0 0 1-1.06 0z'/>"},{size:24,svgContent:"<path d='M21.707 2.293a1 1 0 0 1 0 1.414L17.414 8h1.829a1 1 0 0 1 0 2H14V4.757a1 1 0 1 1 2 0v1.829l4.293-4.293a1 1 0 0 1 1.414 0zM2.293 21.707a1 1 0 0 1 0-1.414L6.586 16H4.757a1 1 0 0 1 0-2H10v5.243a1 1 0 0 1-2 0v-1.829l-4.293 4.293a1 1 0 0 1-1.414 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},86307:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm6.5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zM16 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/>"},{size:24,svgContent:"<path d='M4.5 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm15 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-7.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},3649:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.5a4 4 0 0 0-4 4v3.27a.75.75 0 0 1-.1.373L2.255 12h11.49L12.1 9.142a.75.75 0 0 1-.1-.374V5.5a4 4 0 0 0-4-4zm-5.5 4a5.5 5.5 0 0 1 11 0v3.067l2.193 3.809a.75.75 0 0 1-.65 1.124H10.5a2.5 2.5 0 0 1-5 0H.957a.75.75 0 0 1-.65-1.124L2.5 8.569V5.5zm4.5 8a1 1 0 1 0 2 0H7z'/>"},{size:24,svgContent:"<path d='M12 3a5.5 5.5 0 0 0-5.5 5.5v5.878L4.414 18h15.173L17.5 14.377V8.5A5.5 5.5 0 0 0 12 3zM4.5 8.5a7.5 7.5 0 1 1 15 0v5.342L23.046 20h-7.582a3.5 3.5 0 1 1-6.929 0H.955L4.5 13.844V8.5zM10.585 20a1.5 1.5 0 1 0 2.83 0h-2.83z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},21543:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 0a5.5 5.5 0 0 0-5.5 5.5v3.069L.307 12.376A.75.75 0 0 0 .25 13h15.5a.75.75 0 0 0-.057-.624L13.5 8.567V5.5A5.5 5.5 0 0 0 8 0zm1.937 14.5H6.063a2 2 0 0 0 3.874 0z'/>"},{size:24,svgContent:"<path d='M9.261 21a2.75 2.75 0 1 0 5.478 0H9.26zM12 1a7.5 7.5 0 0 0-7.5 7.5v5.344L1.53 19h20.94l-2.97-5.158V8.5A7.5 7.5 0 0 0 12 1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},95077:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.999 15h2V5h-2v10zm4 0h2V1h-2v14zM9 15h2v-4H9v4zm4-7v7h2V8h-2z'/>"},{size:24,svgContent:"<path d='M8 4v18h2V4H8zM2 22V9h2v13H2zm18-11v11h2V11h-2zm-6 4v7h2v-7h-2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},20707:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1.665 15.226a.67.67 0 0 0 .915-.245l7.675-13.292a.67.67 0 1 0-1.161-.67L7.95 3H5a5 5 0 0 0-2.453 9.358L1.42 14.31a.67.67 0 0 0 .245.915zm1.632-4.167A3.5 3.5 0 0 1 5 4.5h2.084l-3.787 6.559zm2.368 4.167a.67.67 0 0 0 .915-.245L7.724 13H11a5 5 0 0 0 2.203-9.49l1.052-1.82a.67.67 0 1 0-1.161-.671L5.42 14.311a.67.67 0 0 0 .245.915zM12.45 4.814A3.501 3.501 0 0 1 11 11.5H8.59l3.86-6.686z'/>"},{size:24,svgContent:"<path d='M14.86 1.589a1 1 0 0 1 .366 1.366L4.204 22.045a1 1 0 1 1-1.732-1l1.74-3.013A7 7 0 0 1 7.764 5h3.97l1.758-3.045a1 1 0 0 1 1.367-.366zm-4.28 5.41H7.766A5 5 0 0 0 5.21 16.3L10.58 7zm10.582-5.41a1 1 0 0 1 .366 1.366l-1.74 3.013A7 7 0 0 1 16.236 19h-3.97l-1.758 3.045a1 1 0 1 1-1.733-1l11.022-19.09a1 1 0 0 1 1.366-.366zm-7.743 15.41h2.816a5 5 0 0 0 2.554-9.3l-5.37 9.3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},83292:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M2.7 1a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7H2.7zm8 0a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7h-2.6z'/>"},{size:24,svgContent:"<path d='M5.7 3a.7.7 0 0 0-.7.7v16.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V3.7a.7.7 0 0 0-.7-.7H5.7zm10 0a.7.7 0 0 0-.7.7v16.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V3.7a.7.7 0 0 0-.7-.7h-2.6z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},10533:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M16 2.45c0-.8-.65-1.45-1.45-1.45H1.45C.65 1 0 1.65 0 2.45v11.1C0 14.35.65 15 1.45 15h5.557v-1.5H1.5v-11h13V7H16V2.45z'/><path d='M15.25 9.007a.75.75 0 0 1 .75.75v4.493a.75.75 0 0 1-.75.75H9.325a.75.75 0 0 1-.75-.75V9.757a.75.75 0 0 1 .75-.75h5.925z'/>"},{size:24,svgContent:"<path d='M1 19a2 2 0 0 0 2 2h8.17c-.11-.313-.17-.65-.17-1v-1H3V5h18v7h1c.35 0 .687.06 1 .17V5a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v14z'/><path d='M14 21a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},75630:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8.822.797a2.72 2.72 0 0 1 3.847 0l2.534 2.533a2.72 2.72 0 0 1 0 3.848l-3.678 3.678-1.337 4.988-4.486-4.486L1.28 15.78a.75.75 0 0 1-1.06-1.06l4.422-4.422L.156 5.812l4.987-1.337L8.822.797z'/>"},{size:24,svgContent:"<path d='M13.158 2.089a3.718 3.718 0 0 1 5.258 0l3.495 3.495a3.718 3.718 0 0 1 0 5.258l-5.08 5.08-1.83 6.831-6.17-6.17-6.124 6.124a1 1 0 0 1-1.414-1.414l6.124-6.124L1.247 9l6.83-1.83 5.081-5.08z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},31538:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3 1.713a.7.7 0 0 1 1.05-.607l10.89 6.288a.7.7 0 0 1 0 1.212L4.05 14.894A.7.7 0 0 1 3 14.288V1.713z'/>"},{size:24,svgContent:"<path d='m7.05 3.606 13.49 7.788a.7.7 0 0 1 0 1.212L7.05 20.394A.7.7 0 0 1 6 19.788V4.212a.7.7 0 0 1 1.05-.606z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},87297:(e,t,n)=>{"use strict";n.d(t,{dx:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m13.338 12.5 1.97-1.97-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm-.865-5.783v-.003a1.256 1.256 0 0 1-1.254-1.073l-1.485.2a2.761 2.761 0 1 0 2.091-3.017l.19-.821h2.553v-1.5H10.82l-.888 3.87 1.314.639.2-.248a1.277 1.277 0 0 1 1.027-.516 1.235 1.235 0 1 1 0 2.469zM6.78 4.33C6.778 1.858 5.617.385 3.67.385h.002C1.727.384.567 1.862.567 4.374c0 2.478 1.16 3.957 3.105 3.957s3.108-1.478 3.108-4zm-1.5.048C5.278 6.83 4.069 6.83 3.67 6.83h.002c-.4 0-1.605 0-1.605-2.494 0-2.453 1.208-2.453 1.605-2.453s1.608 0 1.608 2.494zM8.075 8.45a.975.975 0 1 0 0-1.95.975.975 0 0 0 0 1.95z'/>"},{size:24,svgContent:"<path d='m20.627 15.177-2.543 2.543-2.543-2.543-1.415 1.414 2.543 2.543-2.543 2.543 1.415 1.414 2.543-2.543 2.543 2.543 1.414-1.414-2.544-2.543 2.544-2.543-1.415-1.414zM5.886.604c-3.031 0-4.772 2.232-4.772 6.185 0 3.9 1.74 6.13 4.772 6.13 3.03 0 4.769-2.231 4.769-6.2.002-3.885-1.738-6.115-4.77-6.115zm0 10.316c-1.838 0-2.772-1.39-2.772-4.19 0-2.74.934-4.126 2.772-4.126 1.838 0 2.769 1.385 2.769 4.19.002 2.738-.931 4.126-2.77 4.126zm6.112-.172a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm5.94.172a2.21 2.21 0 0 1-2.2-1.892l-1.984.264a4.213 4.213 0 1 0 2.882-4.517l.412-1.8h4.245v-2h-5.84L14.072 7.01l1.752.852.313-.388a2.246 2.246 0 0 1 1.806-.91 2.176 2.176 0 1 1 0 4.352l-.003.004z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},90466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3.67.385c1.947 0 3.108 1.473 3.11 3.945 0 2.522-1.163 4.001-3.108 4.001S.567 6.852.567 4.374c0-2.512 1.16-3.99 3.105-3.989H3.67zm0 6.445c.399 0 1.608 0 1.61-2.452 0-2.494-1.211-2.495-1.608-2.495s-1.605 0-1.605 2.453c0 2.494 1.205 2.494 1.605 2.494H3.67zm4.778 1.546a.975.975 0 1 1-.746-1.802.975.975 0 0 1 .746 1.802zM13.527.5c.673 0 1.21.147 1.504.337l-.442 1.346a2.561 2.561 0 0 0-1.146-.263c-1.21 0-2.071.704-2.292 2.008.294-.42.872-.747 1.693-.747 1.45 0 2.386.989 2.386 2.471 0 1.535-1.209 2.618-2.796 2.618-1.599 0-2.934-1.22-2.934-3.417C9.5 2.14 11.14.5 13.527.5zm-1.114 4.027c-.6 0-1.147.42-1.147 1.178 0 .725.558 1.167 1.146 1.167.62 0 1.178-.42 1.178-1.167 0-.757-.557-1.178-1.178-1.178zm2.895 6.003-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06z'/>"},{size:24,svgContent:"<path d='M20.413.6c1.083 0 2 .25 2.499.583l-.65 1.866c-.5-.217-1.216-.45-1.982-.45-2.216 0-3.748 1.4-3.981 3.631.433-.733 1.466-1.382 2.948-1.382 2.366 0 3.998 1.532 3.998 3.948 0 2.482-1.982 4.114-4.514 4.114-2.516 0-4.731-1.782-4.731-5.43C14 3.215 16.665.6 20.413.6zm-1.682 6.13c-1.2 0-2.199.816-2.199 2.132 0 1.283 1.033 2.099 2.199 2.099 1.2 0 2.215-.8 2.215-2.099 0-1.316-1.033-2.132-2.215-2.132zm-.647 10.99 2.543-2.543 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543zM1.114 6.789c0-3.953 1.741-6.185 4.772-6.185 3.032 0 4.771 2.23 4.77 6.115 0 3.969-1.74 6.2-4.77 6.2-3.032 0-4.772-2.23-4.772-6.13zm2-.059c0 2.8.934 4.19 2.772 4.19 1.84 0 2.771-1.388 2.77-4.126 0-2.805-.932-4.19-2.77-4.19S3.114 3.99 3.114 6.73zm9.146 4.018a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},37844:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3.67.385c1.947 0 3.108 1.473 3.11 3.945 0 2.522-1.163 4.001-3.108 4.001S.567 6.852.567 4.374c0-2.512 1.16-3.99 3.105-3.989H3.67zm0 6.445c.399 0 1.608 0 1.61-2.452 0-2.494-1.211-2.495-1.608-2.495s-1.605 0-1.605 2.453c0 2.494 1.205 2.494 1.605 2.494H3.67zm4.778 1.546a.975.975 0 1 1-.746-1.802.975.975 0 0 1 .746 1.802zM9.5.4h5.946v1.614c-.767.688-2.685 2.708-3.001 6.386h-1.85c.338-4.242 2.944-6.5 2.944-6.5H9.5V.4zm5.808 10.13-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06z'/>"},{size:24,svgContent:"<path d='M5.886.604c-3.03 0-4.772 2.232-4.772 6.185 0 3.9 1.74 6.13 4.772 6.13 3.03 0 4.77-2.231 4.77-6.2.001-3.885-1.738-6.115-4.77-6.115zm0 10.316c-1.838 0-2.772-1.39-2.772-4.19 0-2.74.934-4.126 2.772-4.126 1.838 0 2.77 1.385 2.77 4.19.001 2.738-.93 4.126-2.77 4.126zm12.198 6.8 2.543-2.543 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543zm-5.834-5.046a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zM13.5.8h9v2.014c-.964.796-4.33 3.86-4.872 9.986h-2.42c.525-6.584 4.602-9.969 4.602-9.969H13.5V.8z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},14845:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.305 10.527-1.06-1.061-1.97 1.97-1.97-1.97-1.06 1.061 1.97 1.969-1.97 1.97 1.06 1.061 1.97-1.97 1.97 1.97 1.06-1.061-1.97-1.97 1.97-1.969zm-5.917-4.6c0 .742.31 1.312.84 1.763.528.452 1.35.7 2.046.7.696 0 1.56-.248 2.089-.7.529-.451.798-1.021.798-1.763a2.3 2.3 0 0 0-.9-1.786c.38-.405.591-.94.59-1.495 0-.64-.292-1.226-.766-1.655-.475-.429-1.16-.666-1.8-.666a2.67 2.67 0 0 0-1.766.666c-.474.429-.8 1.103-.801 1.655a2.186 2.186 0 0 0 .582 1.489 2.3 2.3 0 0 0-.912 1.789v.003zm2.887-4.1c.613 0 1.076.352 1.076.82 0 .468-.463.82-1.076.82s-1.058-.345-1.058-.82.445-.824 1.058-.824v.004zm0 3.14c.75 0 1.386.44 1.386.961 0 .521-.635.96-1.386.96-.751 0-1.387-.44-1.387-.96s.635-.965 1.387-.965v.004zM3.668.384C1.722.384.56 1.862.56 4.374c0 2.477 1.16 3.957 3.107 3.957 1.946 0 3.106-1.478 3.106-4C6.774 1.857 5.613.38 3.668.38v.004zm0 6.447c-.4 0-1.607 0-1.607-2.494 0-2.453 1.209-2.453 1.607-2.453.398 0 1.606 0 1.606 2.494 0 2.449-1.21 2.45-1.606 2.45v.003zm4.328-.324a.956.956 0 1 0 .679.279.957.957 0 0 0-.676-.283l-.003.004z'/>"},{size:24,svgContent:"<path d='M13.832 9.47c0 2.06 1.982 3.737 4.418 3.737s4.418-1.676 4.418-3.737a3.526 3.526 0 0 0-1.544-2.833 3.318 3.318 0 0 0 1.048-2.416c0-.997-.458-1.858-1.18-2.507-.721-.649-1.758-1.008-2.728-1.008-.97 0-2.003.36-2.725 1.008-.721.649-1.183 1.437-1.183 2.507a3.326 3.326 0 0 0 1.031 2.4 3.533 3.533 0 0 0-1.555 2.849zm4.418-6.761c1.1 0 1.923.65 1.923 1.512s-.826 1.513-1.923 1.513-1.893-.636-1.893-1.513c0-.877.865-1.512 1.893-1.512zm0 5.025c1.311 0 2.418.8 2.418 1.736 0 .936-1.107 1.737-2.418 1.737-1.31 0-2.418-.8-2.418-1.737s1.108-1.733 2.418-1.733v-.003zm2.375 7.45-2.543 2.544-2.543-2.543-1.414 1.414 2.543 2.543-2.543 2.543 1.414 1.414 2.543-2.543 2.543 2.543 1.414-1.414-2.543-2.543 2.543-2.543-1.414-1.414zM5.885.614c-3.03 0-4.77 2.232-4.77 6.184 0 3.9 1.74 6.13 4.77 6.13 3.031 0 4.77-2.231 4.77-6.2 0-3.884-1.739-6.114-4.77-6.114zm0 10.315c-1.838 0-2.77-1.39-2.77-4.19 0-2.738.932-4.125 2.77-4.125s2.77 1.385 2.77 4.19c0 2.734-.932 4.125-2.77 4.125zm6.112-.172a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},71463:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.305 10.527-1.06-1.061-1.97 1.97-1.97-1.97-1.06 1.061 1.97 1.969-1.97 1.97 1.06 1.061 1.97-1.97 1.97 1.97 1.06-1.061-1.97-1.97 1.97-1.969zM3.668.384C1.722.384.56 1.862.56 4.374c0 2.477 1.16 3.957 3.107 3.957 1.946 0 3.106-1.478 3.106-4C6.774 1.857 5.613.38 3.668.38v.004zm0 6.447c-.4 0-1.607 0-1.607-2.494 0-2.453 1.209-2.453 1.607-2.453.398 0 1.606 0 1.606 2.494 0 2.449-1.21 2.45-1.606 2.45v.003zm9.929-3.899c0 .715-.55 1.22-1.199 1.22s-1.199-.494-1.199-1.22.55-1.221 1.199-1.221 1.199.506 1.199 1.22zM9.758 7.959c.385.242 1.111.418 1.76.418 2.574 0 3.982-1.64 3.982-4.422 0-2.475-1.364-3.707-3.025-3.707-1.705 0-2.937 1.144-2.937 2.739s1.221 2.607 2.629 2.607c.748 0 1.397-.33 1.65-.803-.099 1.408-1.023 2.09-2.321 2.09a3.263 3.263 0 0 1-1.342-.308l-.396 1.386zM7.367 6.726a.956.956 0 0 1 .605-.219l.003-.004a.957.957 0 0 1 .676.283.956.956 0 1 1-1.284-.06z'/>"},{size:24,svgContent:"<path d='m20.625 15.184-2.543 2.544-2.543-2.543-1.414 1.414 2.543 2.543-2.543 2.543 1.414 1.414 2.543-2.543 2.543 2.543 1.414-1.414-2.543-2.543 2.543-2.543-1.414-1.414v-.001zM5.885.614c-3.03 0-4.77 2.232-4.77 6.184 0 3.9 1.74 6.13 4.77 6.13 3.031 0 4.77-2.231 4.77-6.2 0-3.884-1.739-6.114-4.77-6.114zm0 10.315c-1.838 0-2.77-1.39-2.77-4.19 0-2.738.932-4.125 2.77-4.125s2.77 1.385 2.77 4.19c0 2.734-.932 4.125-2.77 4.125zM20.37 4.538c0 1.302-1.041 2.131-2.22 2.131-1.212 0-2.22-.812-2.22-2.131 0-1.286 1.025-2.114 2.22-2.114 1.179 0 2.22.845 2.22 2.114zm-6.404 7.73c.615.389 1.794.66 2.801.66 4.098 0 6.233-2.555 6.233-6.885C23 2.237 20.763.428 18.201.428c-2.578 0-4.576 1.725-4.576 4.178 0 2.52 1.964 4.025 4.167 4.025 1.366 0 2.424-.575 2.886-1.336-.12 2.216-1.537 3.586-3.928 3.586-.82 0-1.708-.254-2.169-.508l-.614 1.895zm-2.675-1.23a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.357z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},76434:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.309 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06h.001zm-4.662-3.804a.956.956 0 0 1 .605-.219l.003-.004a.957.957 0 0 1 .676.283.956.956 0 1 1-1.284-.06zm2.13-5.269c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H12.5v-1.5h.277zm-6.5 0c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H6v-1.5h.277z'/>"},{size:24,svgContent:"<path d='M22.042 16.597 19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zm-4.903-4.204a.96.96 0 1 0-1.358-1.358.96.96 0 0 0 1.358 1.358zM9.132 2.406c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H8.689v-2h.443zm9 0c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406h-2.313v-2h.443z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},77043:(e,t,n)=>{"use strict";n.d(t,{Av:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M12.641 1.74c-.735 0-1.216.529-1.216 1.09v.35h-1.5v-.35c0-1.47 1.235-2.59 2.715-2.59a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022l-.518.282a49.36 49.36 0 0 0-.53.29 3.66 3.66 0 0 1-.124.066c-.179.094-.435.227-.703.468a1.925 1.925 0 0 0-.336.387h3.292v1.5h-5.014v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.401.718-.52a5.665 5.665 0 0 1 .327-.18l.017-.008.025-.013-.002.001c.092-.052.351-.193.6-.328l.466-.255c.32-.177.515-.448.548-.836.045-.533-.38-1.125-1.116-1.125zM4.402.704c0 .307-.347.763-1.044.763h-.276v1.5h1.32v5.042h1.5V.704h-1.5zm10.907 9.826-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M16.171 4.555c0-1.02.87-1.945 2.146-1.945 1.302 0 2.066 1.054 1.985 2.017-.059.693-.412 1.183-.979 1.497-.163.09-.454.249-.753.41a83.308 83.308 0 0 0-.95.521l-.046.024-.027.014-.105.054a8.875 8.875 0 0 0-.408.225 6.958 6.958 0 0 0-1.116.81c-.793.714-1.622 1.847-1.622 3.456v1h7.822v-2h-5.605c.175-.378.44-.697.743-.969a5.317 5.317 0 0 1 1.173-.78c.071-.037.133-.069.183-.098.138-.078.492-.27.858-.469.305-.165.619-.336.822-.448 1.106-.613 1.883-1.67 2.002-3.078C22.47 2.728 20.852.61 18.317.61c-2.269 0-4.146 1.712-4.146 3.945v.56h2v-.56zm5.871 12.042L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415zm-9.343-4.883a.96.96 0 1 1-1.92 0 .96.96 0 0 1 1.92 0zM7.002.985c0 .634-.679 1.42-1.87 1.42h-.443v2h2.313v8.269h2V.985h-2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},43026:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m13.339 12.5 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM7.047 6.726a.956.956 0 0 1 .605-.219l.003-.004a.957.957 0 0 1 .676.283.956.956 0 1 1-1.284-.06zM15.174.5v1.225l-1.796 1.549c.318.113.603.28.847.498.564.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.616 0-2.741-1.206-2.86-2.56l1.493-.133c.055.62.568 1.193 1.368 1.193.798 0 1.27-.484 1.27-1.011 0-.347-.127-.626-.334-.81-.203-.182-.558-.336-1.136-.285a6.06 6.06 0 0 1-.132.01 2.922 2.922 0 0 0-.124.01.984.984 0 0 0-.091.014l-.015.004.021-.008-.799-1.252L12.558 2H9.742V.5h5.432zm-12.297.957c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H2.6v-1.5h.277z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm2.762-16.487V.985h-8.49v2h5.043l-2.978 2.567 1.065 1.669a.518.518 0 0 1 .03-.006c.042-.009.098-.018.166-.026.067-.007.136-.013.207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092l-1.992.177c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.961 3.961 0 0 0-1.625-.862l3.076-2.653zm-10.223 9.74a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357zM4.842 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.4v-2h.442z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},17059:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M12.545 6.31H9.25V4.808L12.174.69h1.76v4.376h1.08V6.31h-1.08v1.68h-1.39V6.31zM10.67 5.066h1.874V2.399L10.67 5.066zm2.669 7.434 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM2.277 1.457c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H2v-1.5h.277zM7.623 8.34a.956.956 0 1 1-.733-1.767.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M12.418 12.393a.96.96 0 1 1-1.357-1.358.96.96 0 0 1 1.357 1.358zM19.5 19.14l2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zM19.276 10H14V7.595L18.683 1H21.5v7.007h1.731V10H21.5v2.69h-2.224V10zm-3-1.993h3v-4.27l-3 4.27zM4.842 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.4v-2h.442z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},6932:(e,t,n)=>{"use strict";n.d(t,{vL:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M10.82.5h3.749V2h-2.555l-.188.82a2.76 2.76 0 0 1 .647-.075c1.515 0 2.763 1.214 2.763 2.734s-1.248 2.734-2.763 2.734a2.754 2.754 0 0 1-2.74-2.376l1.487-.197c.08.597.603 1.073 1.253 1.073.707 0 1.263-.562 1.263-1.234 0-.672-.556-1.234-1.263-1.234a1.27 1.27 0 0 0-1.028.516l-.01.014-.189.233-1.314-.639L10.819.5zM4.491.695c0 .307-.346.762-1.044.762h-.276v1.5h1.32V8h1.5V.695h-1.5zm10.818 9.835-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8.085 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M15.454.985h5.84v2h-4.247l-.412 1.794a4.26 4.26 0 0 1 1.304-.203c2.318 0 4.221 1.856 4.221 4.175 0 2.32-1.903 4.175-4.22 4.175-2.134 0-3.913-1.57-4.186-3.628l1.983-.263c.14 1.056 1.063 1.89 2.202 1.89 1.24 0 2.221-.986 2.221-2.174s-.98-2.175-2.22-2.175c-.747 0-1.403.359-1.806.908l-.013.018-.3.37-1.752-.852L15.454.985zm-3.715 11.689a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.303 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415zM7.002.985c0 .634-.679 1.42-1.87 1.42h-.443v2h2.313v8.269h2V.985h-2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},97862:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M13.527.5c.673 0 1.21.147 1.504.336l-.442 1.346a2.562 2.562 0 0 0-1.146-.263c-1.21 0-2.072.705-2.292 2.009.294-.42.872-.747 1.693-.747 1.45 0 2.386.988 2.386 2.471 0 1.535-1.209 2.618-2.796 2.618-1.599 0-2.934-1.22-2.934-3.417C9.5 2.14 11.14.5 13.527.5zm-1.115 4.027c-.599 0-1.146.42-1.146 1.178 0 .725.558 1.167 1.146 1.167.62 0 1.178-.421 1.178-1.167 0-.757-.557-1.178-1.178-1.178zm.927 7.973 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM8.323 8.34a.956.956 0 1 1-.733-1.767.956.956 0 0 1 .733 1.767zM3.277 1.457c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H3v-1.5h.277z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm2.812-17.957C21.812.85 20.896.6 19.813.6 16.065.6 13.4 3.215 13.4 7.48c0 3.648 2.216 5.43 4.73 5.43 2.533 0 4.515-1.633 4.515-4.114 0-2.416-1.633-3.948-3.998-3.948-1.482 0-2.515.65-2.948 1.382.233-2.232 1.766-3.631 3.98-3.631.767 0 1.484.233 1.983.45l.65-1.866zm-6.38 7.68c0-1.317 1-2.133 2.199-2.133 1.183 0 2.215.816 2.215 2.132 0 1.3-1.016 2.099-2.215 2.099-1.166 0-2.199-.816-2.199-2.099zM4.942 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.5v-2h.442zm7.397 10.233a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},97572:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M10 .69h5.221v1.474c-.673.63-2.358 2.475-2.635 5.836H10.96c.297-3.877 2.586-5.939 2.586-5.939H10V.69zm3.339 11.81 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.97 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM8.923 8.347A.956.956 0 1 1 8.19 6.58a.956.956 0 0 1 .733 1.767zm-5.446-6.89c.697 0 1.043-.455 1.043-.762h1.5V8h-1.5V2.957H3.2v-1.5h.277z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-6.861-6.501a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357zM5.042 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.6v-2h.442zM13.4.8h9v2.014c-.964.796-4.33 3.86-4.872 9.986h-2.42c.525-6.584 4.602-9.969 4.602-9.969H13.4V.8z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},48826:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M14.27 4.142a2.17 2.17 0 0 0 .585-1.495c0-1.372-1.2-2.32-2.577-2.32-1.387 0-2.558.957-2.558 2.32 0 .586.217 1.097.574 1.49-.54.426-.902 1.04-.902 1.79 0 1.506 1.457 2.46 2.886 2.46 1.43 0 2.887-.954 2.887-2.46 0-.747-.36-1.359-.896-1.785zm-1.992-2.316c.741 0 1.077.458 1.077.82 0 .364-.336.821-1.077.821-.73 0-1.058-.448-1.058-.82 0-.373.328-.82 1.058-.82zm0 3.141c.93 0 1.387.577 1.387.96 0 .384-.457.96-1.386.96-.93 0-1.387-.576-1.387-.96 0-.383.457-.96 1.386-.96zM4.491.695c0 .307-.346.762-1.044.762h-.276v1.5h1.32V8h1.5V.695h-1.5zm10.818 9.835-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8.085 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M22.008 4.219c0 .968-.398 1.802-1.04 2.414.915.654 1.535 1.634 1.535 2.835 0 2.26-2.197 3.737-4.418 3.737-2.22 0-4.418-1.477-4.418-3.737 0-1.205.625-2.187 1.545-2.842a3.307 3.307 0 0 1-1.02-2.407c0-2.048 1.76-3.513 3.893-3.513 2.118 0 3.923 1.453 3.923 3.513zm-5.816 0c0 .728.637 1.513 1.893 1.513 1.27 0 1.923-.798 1.923-1.513 0-.715-.653-1.513-1.923-1.513-1.256 0-1.893.785-1.893 1.513zm-.525 5.25c0 .762.864 1.736 2.418 1.736 1.555 0 2.418-.974 2.418-1.737 0-.763-.863-1.736-2.418-1.736-1.554 0-2.418.973-2.418 1.736zm6.375 7.128L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415zm-9.343-4.883a.96.96 0 1 1-1.92 0 .96.96 0 0 1 1.92 0zM7.002.985c0 .634-.679 1.42-1.87 1.42h-.443v2h2.313v8.269h2V.985h-2z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},27747:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.309 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zm-1.746-7.426c0 .642-.506 1.098-1.103 1.098s-1.103-.446-1.103-1.098c0-.653.506-1.098 1.103-1.098s1.102.455 1.102 1.098zm-3.53 4.52c.353.218 1.021.376 1.618.376 2.367 0 3.662-1.474 3.662-3.977 0-2.225-1.255-3.333-2.782-3.333-1.568 0-2.701 1.029-2.701 2.463 0 1.434 1.123 2.344 2.418 2.344.687 0 1.284-.296 1.517-.722-.091 1.266-.94 1.88-2.135 1.88-.485 0-.97-.149-1.234-.277l-.364 1.246zM3.447 1.457c.698 0 1.044-.455 1.044-.762h1.5V8h-1.5V2.957h-1.32v-1.5h.276zm4.976 6.89A.956.956 0 1 1 7.69 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.543-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.415 1.415 2.543 2.543-2.543 2.542 1.415 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-2.97-6.45c-.943 0-2.045-.253-2.62-.617l.575-1.772c.431.238 1.262.475 2.028.475 2.236 0 3.562-1.281 3.673-3.354-.43.712-1.42 1.25-2.698 1.25-2.06 0-3.897-1.408-3.897-3.765C13.59 2.614 15.459 1 17.87 1c2.395 0 4.487 1.693 4.487 5.252 0 4.05-1.996 6.438-5.829 6.438zm1.293-5.853c1.102 0 2.076-.775 2.076-1.993 0-1.186-.974-1.977-2.076-1.977-1.118 0-2.076.775-2.076 1.977 0 1.234.942 1.993 2.076 1.993zm-5.484 5.556a.96.96 0 1 1-1.358-1.357.96.96 0 0 1 1.358 1.357zM5.132 2.406c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H4.689v-2h.443z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},71096:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4.485 2.37c0 .734-.759 1.533-1.957 1.533h-.417v1.5h2.374v7.992h1.5V2.37h-1.5zm9.935 6.043-1.97 1.97 1.97 1.97-1.061 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.969 1.97-1.97 1.06 1.061z'/>"},{size:24,svgContent:"<path d='M7.578 4c0 1.146-1.174 2.345-2.967 2.345H4v2h3.578v11.809h2V4h-2zm13.072 9.755-2.542 2.543 2.543 2.543-1.415 1.414-2.543-2.543-2.543 2.543-1.414-1.414 2.543-2.543-2.543-2.543 1.414-1.414 2.543 2.543 2.543-2.543 1.415 1.414z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},71867:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m13.34 12.5 1.97-1.97h-.002l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM12.277 1.263c.697 0 1.043-.456 1.043-.763h1.5V8h-1.5V2.763H12v-1.5h.277zM5.416 1.7c-.735 0-1.216.529-1.216 1.09v.35H2.7v-.35C2.7 1.32 3.936.2 5.416.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067a3.17 3.17 0 0 0-.703.467 1.924 1.924 0 0 0-.336.387h3.292v1.5H2.778v-.75c0-1.053.543-1.792 1.055-2.253a4.46 4.46 0 0 1 .718-.52 5.676 5.676 0 0 1 .327-.179l.017-.009.025-.013-.001.001c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm5.506 6.647a.956.956 0 1 1-.731-1.766.956.956 0 0 1 .731 1.766z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zM17.942 2.406c1.192 0 1.87-.787 1.87-1.42h2v11.688h-2V4.405H17.5v-2h.442zm-8.796.204C7.87 2.61 7 3.535 7 4.555v.56H5v-.56C5 2.322 6.877.61 9.146.61c2.535 0 4.152 2.118 3.977 4.186-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.301.272-.567.59-.742.97h5.605v2H5.124v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024h.001c.145-.083.554-.305.95-.52.298-.162.59-.32.753-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm7.893 9.783a.96.96 0 1 0-1.357-1.358.96.96 0 0 0 1.357 1.358z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},95624:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m13.34 12.5 1.97-1.97h-.002l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm-.624-10.8c-.735 0-1.216.529-1.216 1.09v.35H10v-.35C10 1.32 11.236.2 12.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.925 1.925 0 0 0-.336.387h3.292v1.5h-5.014v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.677 5.677 0 0 1 .327-.179l.017-.009.025-.013-.001.001c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm-9 0c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.807 6.647A.956.956 0 1 1 7.79 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-6.961-6.747a.96.96 0 1 0-1.358-1.358.96.96 0 0 0 1.358 1.358zm5.607-9.783C16.87 2.61 16 3.535 16 4.555v.56h-2v-.56C14 2.322 15.877.61 18.146.61c2.535 0 4.152 2.118 3.977 4.186-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.314 5.314 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2h-7.823v-1c0-1.61.83-2.743 1.623-3.457a6.938 6.938 0 0 1 1.116-.81c.16-.094.3-.169.408-.225.038-.02.075-.04.105-.054a5.942 5.942 0 0 0 .072-.038c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm-12.4 0C4.47 2.61 3.6 3.535 3.6 4.555v.56h-2v-.56C1.6 2.322 3.477.61 5.746.61 8.281.61 9.9 2.728 9.723 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.724v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054a125.249 125.249 0 0 1 .072-.038c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},19452:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM15.345.5v1.225l-1.796 1.549c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.617 0-2.741-1.206-2.861-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.203-.182-.558-.336-1.136-.285a6.06 6.06 0 0 1-.132.01 2.907 2.907 0 0 0-.215.024l-.015.004.02-.008-.798-1.252L12.73 2H9.913V.5h5.432zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.607 6.647A.956.956 0 1 1 7.59 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M11.74 12.674a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.302 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zM5.446 2.61C4.17 2.61 3.3 3.535 3.3 4.555v.56h-2v-.56C1.3 2.322 3.177.61 5.446.61 7.981.61 9.6 2.728 9.423 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.424v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm17.146.043V.985h-8.49v2h5.043l-2.978 2.567 1.065 1.669a.522.522 0 0 1 .03-.006c.042-.009.098-.018.166-.026.067-.007.136-.013.207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092l-1.992.177c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.961 3.961 0 0 0-1.625-.862l3.076-2.653z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},82527:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm9.264 4.736H9.5V4.85L12.588.5h1.859v4.622h1.141v1.314h-1.141V8.21H12.98V6.436zM11 5.122h1.98V2.305L11 5.122zM8.323 8.347A.956.956 0 1 1 7.59 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='m20.627 15.177 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zM5.146 2.61C3.87 2.61 3 3.535 3 4.555v.56H1v-.56C1 2.322 2.877.61 5.146.61 7.681.61 9.3 2.728 9.123 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.301.272-.567.59-.742.97h5.605v2H1.124v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024h.001c.145-.083.554-.305.95-.52.298-.162.59-.32.753-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm13.544 7.584H13.3V7.737L18.084 1h2.878v7.158h1.768v2.036h-1.768v2.748H18.69v-2.748zm-3.066-2.036h3.066V3.796l-3.066 4.362zm-4.264 4.516a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},44977:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M2.42 2.83c0-.561.48-1.09 1.216-1.09s1.16.592 1.116 1.125a1.002 1.002 0 0 1-.548.836c-.1.056-.28.154-.466.255-.249.135-.508.276-.6.328h.002l-.026.012-.016.009-.067.034a5.665 5.665 0 0 0-.26.144 4.46 4.46 0 0 0-.718.521c-.512.46-1.056 1.2-1.056 2.253v.75h5.014v-1.5H2.72c.093-.143.208-.272.337-.387a3.17 3.17 0 0 1 .703-.468 43.016 43.016 0 0 1 .654-.356c.19-.103.388-.21.518-.282a2.5 2.5 0 0 0 1.315-2.022A2.568 2.568 0 0 0 3.636.24C2.156.24.92 1.359.92 2.83v.35h1.5v-.35zm12.889 7.7-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM10.82.5h3.749V2h-2.555l-.188.82a2.76 2.76 0 0 1 .647-.075c1.515 0 2.763 1.214 2.763 2.734s-1.248 2.734-2.763 2.734a2.754 2.754 0 0 1-2.74-2.376l1.487-.197c.08.597.603 1.073 1.253 1.073.707 0 1.263-.562 1.263-1.234 0-.672-.556-1.234-1.263-1.234a1.27 1.27 0 0 0-1.028.516l-.01.014-.189.233-1.314-.639L10.819.5zM8.085 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M3.398 4.555c0-1.02.87-1.945 2.146-1.945 1.302 0 2.066 1.054 1.984 2.017-.058.693-.411 1.183-.978 1.497-.164.09-.455.249-.753.41a82.975 82.975 0 0 0-.951.521L4.8 7.08l-.027.014-.105.054a8.875 8.875 0 0 0-.408.225 6.87 6.87 0 0 0-1.116.81c-.794.714-1.623 1.847-1.623 3.456v1h7.823v-2H3.74c.175-.378.44-.697.742-.969a5.318 5.318 0 0 1 1.174-.78c.07-.037.133-.069.183-.098.137-.078.491-.27.857-.469.306-.165.62-.336.823-.448 1.105-.613 1.883-1.67 2.002-3.078C9.696 2.728 8.08.61 5.544.61c-2.27 0-4.146 1.712-4.146 3.945v.56h2v-.56zM15.454.985h5.84v2h-4.247l-.412 1.794a4.26 4.26 0 0 1 1.304-.203c2.318 0 4.221 1.856 4.221 4.175 0 2.32-1.903 4.175-4.22 4.175-2.134 0-3.913-1.57-4.186-3.628l1.983-.263c.14 1.056 1.063 1.89 2.202 1.89 1.24 0 2.221-.986 2.221-2.174s-.98-2.175-2.22-2.175c-.747 0-1.403.359-1.806.908l-.013.018-.3.37-1.752-.852L15.454.985zm-3.715 11.689a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.303 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},69662:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM13.527.5c.673 0 1.21.147 1.504.337l-.442 1.346a2.562 2.562 0 0 0-1.146-.263c-1.21 0-2.072.704-2.292 2.008.294-.42.872-.747 1.693-.747 1.45 0 2.386.989 2.386 2.471 0 1.535-1.209 2.618-2.796 2.618-1.599 0-2.934-1.22-2.934-3.417C9.5 2.14 11.14.5 13.527.5zm-1.115 4.027c-.599 0-1.146.42-1.146 1.178 0 .725.558 1.167 1.146 1.167.62 0 1.178-.42 1.178-1.167 0-.757-.557-1.178-1.178-1.178zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.707 6.647A.956.956 0 1 1 7.69 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M22.042 16.597 19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zM11.181 11.03a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zM5.446 2.61C4.17 2.61 3.3 3.535 3.3 4.555v.56h-2v-.56C1.3 2.322 3.177.61 5.446.61 7.981.61 9.6 2.728 9.423 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.424v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm17.166-1.427C22.112.85 21.196.6 20.113.6 16.365.6 13.7 3.215 13.7 7.48c0 3.648 2.216 5.43 4.73 5.43 2.533 0 4.515-1.633 4.515-4.114 0-2.416-1.632-3.948-3.998-3.948-1.482 0-2.515.65-2.948 1.382.233-2.232 1.766-3.631 3.98-3.631.767 0 1.483.233 1.983.45l.65-1.866zm-6.38 7.68c0-1.317 1-2.133 2.199-2.133 1.182 0 2.215.816 2.215 2.132 0 1.3-1.016 2.099-2.215 2.099-1.166 0-2.199-.816-2.199-2.099z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},5577:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15.221.69H10v1.37h3.547S11.258 4.123 10.961 8h1.625c.277-3.361 1.962-5.207 2.635-5.836V.69zm.087 9.84-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM8.923 8.347A.956.956 0 1 1 8.19 6.58a.956.956 0 0 1 .733 1.767zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125z'/>"},{size:24,svgContent:"<path d='m20.627 15.177 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zm-9.046-4.147a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zM13.6.8h9v2.014c-.964.796-4.33 3.86-4.872 9.986h-2.42c.525-6.584 4.602-9.969 4.602-9.969H13.6V.8zM5.446 2.61C4.17 2.61 3.3 3.535 3.3 4.555v.56h-2v-.56C1.3 2.322 3.177.61 5.446.61 7.981.61 9.6 2.728 9.423 4.796c-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.424v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225l.105-.054.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},61068:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M14.855 2.647a2.17 2.17 0 0 1-.585 1.495c.535.426.895 1.038.895 1.785 0 1.506-1.457 2.46-2.887 2.46-1.429 0-2.886-.954-2.886-2.46 0-.75.362-1.364.902-1.79a2.186 2.186 0 0 1-.574-1.49c0-1.363 1.171-2.32 2.558-2.32 1.377 0 2.577.948 2.577 2.32zm-1.5 0c0-.363-.336-.82-1.077-.82-.73 0-1.058.447-1.058.82 0 .372.328.82 1.058.82.741 0 1.077-.457 1.077-.82zm.31 3.28c0-.383-.457-.96-1.387-.96-.929 0-1.386.577-1.386.96 0 .384.457.96 1.387.96.93 0 1.386-.576 1.386-.96zM13.34 12.5l1.97-1.97h-.002l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm4.607 6.647A.956.956 0 1 1 7.59 6.58a.956.956 0 0 1 .733 1.767z'/>"},{size:24,svgContent:"<path d='M20.968 6.633a3.288 3.288 0 0 0 1.04-2.414c0-2.06-1.805-3.513-3.923-3.513-2.133 0-3.893 1.465-3.893 3.513a3.306 3.306 0 0 0 1.02 2.407c-.92.655-1.545 1.637-1.545 2.842 0 2.26 2.198 3.737 4.418 3.737 2.221 0 4.418-1.477 4.418-3.737 0-1.201-.62-2.181-1.535-2.835zm-2.883-.9c-1.256 0-1.893-.786-1.893-1.514s.637-1.513 1.893-1.513c1.27 0 1.923.798 1.923 1.513 0 .715-.653 1.513-1.923 1.513zm0 5.472c-1.554 0-2.418-.974-2.418-1.736 0-.763.864-1.737 2.418-1.737 1.555 0 2.418.973 2.418 1.736s-.863 1.737-2.418 1.737zm2.542 3.972 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zm-9.546-4.147a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zM5.544 2.61c-1.276 0-2.146.925-2.146 1.945v.56h-2v-.56C1.398 2.322 3.275.61 5.544.61c2.535 0 4.152 2.118 3.977 4.186-.12 1.407-.897 2.465-2.002 3.078-.204.112-.517.283-.823.448-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.318 5.318 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.522v-1c0-1.61.83-2.743 1.623-3.457a6.936 6.936 0 0 1 1.116-.81c.16-.094.3-.169.408-.225.038-.02.075-.04.105-.054l.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},16673:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m15.308 10.53-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM3.716 1.7c-.735 0-1.216.529-1.216 1.09v.35H1v-.35C1 1.32 2.236.2 3.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.924 1.924 0 0 0-.336.387h3.292v1.5H1.078v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.67 5.67 0 0 1 .37-.2h-.002c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zm7.487 6.57c-.673 0-1.209-.147-1.503-.336l.441-1.346c.305.147.673.263 1.146.263 1.21 0 2.072-.705 2.292-2.008-.294.42-.872.746-1.692.746-1.451 0-2.387-.988-2.387-2.47C9.5 1.582 10.71.5 12.297.5c1.598 0 2.933 1.22 2.933 3.417 0 2.713-1.64 4.353-4.027 4.353zm1.115-4.027c.6 0 1.146-.42 1.146-1.177 0-.726-.557-1.167-1.146-1.167-.62 0-1.178.42-1.178 1.167 0 .757.557 1.177 1.178 1.177zM7.957 8.42a.956.956 0 1 0 0-1.913.956.956 0 0 0 0 1.913z'/>"},{size:24,svgContent:"<path d='M11.74 12.674a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm8.887 2.503 1.414 1.414-2.544 2.543 2.544 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.415-1.414 2.543-2.543-2.543-2.543 1.415-1.414 2.543 2.543 2.543-2.543zM5.544 2.61c-1.276 0-2.146.925-2.146 1.945v.56h-2v-.56C1.398 2.322 3.275.61 5.544.61c2.535 0 4.152 2.118 3.977 4.186-.12 1.407-.897 2.465-2.002 3.078l-.823.448c-.366.199-.72.39-.857.47-.05.028-.112.06-.183.097a5.317 5.317 0 0 0-1.174.78c-.302.272-.567.59-.742.97h5.605v2H1.522v-1c0-1.61.83-2.743 1.623-3.457a6.935 6.935 0 0 1 1.116-.81c.16-.094.3-.169.408-.225.038-.02.075-.04.105-.054l.027-.014.045-.024c.146-.083.555-.305.95-.52.3-.162.59-.32.754-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017zm8.544 9.717c.5.333 1.416.583 2.499.583 3.748 0 6.413-2.615 6.413-6.88C23 2.382 20.785.6 18.27.6c-2.533 0-4.515 1.632-4.515 4.114 0 2.416 1.632 3.948 3.998 3.948 1.482 0 2.515-.65 2.948-1.382-.233 2.232-1.765 3.631-3.98 3.631-.767 0-1.483-.233-1.983-.45l-.65 1.866zm6.38-7.68c0 1.317-1 2.133-2.199 2.133-1.182 0-2.215-.816-2.215-2.132 0-1.3 1.016-2.1 2.215-2.1 1.166 0 2.199.817 2.199 2.1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},14924:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M2.197 5.931c0-1.08.918-2.028 2.218-2.028 1.346 0 2.15 1.097 2.064 2.112-.061.723-.435 1.24-1.022 1.565l-.718.391c-.37.201-.75.408-.886.486l-.013.006-.038.02-.026.014-.098.05c-.1.052-.23.121-.376.208a6.35 6.35 0 0 0-1.021.74c-.724.652-1.467 1.673-1.467 3.117v.75H8v-1.5H2.43c.164-.51.487-.92.854-1.25.444-.4.885-.629 1.153-.768.064-.033.118-.06.16-.085.13-.074.469-.258.817-.447.288-.156.582-.316.77-.42.99-.549 1.683-1.492 1.79-2.75.156-1.844-1.288-3.739-3.56-3.739C2.37 2.403.698 3.942.698 5.931v.527h1.5v-.527zm13.112 2.482-1.97 1.97 1.97 1.97-1.061 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.969 1.97-1.97 1.06 1.061z'/>"},{size:24,svgContent:"<path d='M4 8.248C4 6.508 5.477 5 7.538 5c2.15 0 3.441 1.755 3.303 3.39-.098 1.157-.701 1.989-1.638 2.507-.245.136-.67.367-1.102.601-.564.307-1.141.62-1.35.739l-.005.003-.017.01a8.812 8.812 0 0 1-.06.03l-.041.022-.149.076c-.151.08-.346.184-.568.314-.44.26-.994.627-1.538 1.116-1.088.978-2.194 2.502-2.194 4.656v1H13.02v-2H4.307c.239-.903.785-1.612 1.404-2.17.694-.624 1.39-.984 1.8-1.196.093-.049.172-.09.233-.124.2-.115.722-.398 1.256-.688.44-.238.888-.482 1.172-.64 1.476-.816 2.503-2.217 2.662-4.088C13.066 5.819 10.92 3 7.538 3 4.484 3 2 5.295 2 8.248v.806h2v-.806zm19.062 4.709L20.52 15.5l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.414L17.69 15.5l-2.543-2.543 1.414-1.414 2.543 2.543 2.543-2.543 1.414 1.414z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},72662:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8.553 1.725V.5H3.122V2h2.815L4.33 3.385l.799 1.252-.022.008.016-.004c.071-.011.143-.02.215-.025l.035-.002.097-.007c.578-.05.932.103 1.136.284.207.185.333.464.333.81 0 .528-.471 1.012-1.27 1.012-.8 0-1.312-.572-1.367-1.193l-1.494.132c.12 1.355 1.244 2.561 2.86 2.561 1.35 0 2.77-.903 2.77-2.511 0-.722-.271-1.428-.834-1.93a2.555 2.555 0 0 0-.847-.498l1.795-1.549zM13.339 12.5l1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm-1.818-5.037a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0zm.935-6.006c.697 0 1.044-.455 1.044-.762H15V8h-1.5V2.957h-1.32v-1.5h.276z'/>"},{size:24,svgContent:"<path d='M22.042 16.597 19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zm-8.75-13.944V.985h-8.49v2h5.042L6.867 5.552 7.932 7.22l-.012.005c.069-.017.138-.029.208-.037.069-.008.137-.014.206-.018l.06-.004.149-.011c.968-.084 1.594.172 1.967.506.379.337.6.84.6 1.445 0 .988-.88 1.819-2.231 1.819-1.389 0-2.29-1-2.387-2.092L4.5 9.01c.183 2.069 1.9 3.915 4.379 3.915 2.085 0 4.232-1.39 4.232-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.626-.862l3.077-2.653zm1.781 8.377a.96.96 0 1 1 1.358 1.358.96.96 0 0 1-1.358-1.359zm2.771-8.624c1.191 0 1.87-.787 1.87-1.42h2v11.688h-2V4.406H17.4v-2h.443z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},26290:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m13.339 12.5 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zM6.345.5v1.225L4.549 3.274c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511C1.845 8.213.72 7.007.6 5.653l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.203-.182-.558-.336-1.136-.285l-.097.007a9.761 9.761 0 0 0-.159.013.984.984 0 0 0-.091.014l-.015.004.02-.008-.798-1.252L3.73 2H.913V.5h5.432zm6.371 1.2c-.735 0-1.216.529-1.216 1.09v.35H10v-.35C10 1.32 11.236.2 12.716.2a2.568 2.568 0 0 1 2.61 2.752 2.5 2.5 0 0 1-1.315 2.022c-.13.072-.327.179-.518.282-.227.124-.445.242-.53.29l-.124.067c-.179.093-.435.226-.703.467a1.925 1.925 0 0 0-.336.387h3.292v1.5h-5.014v-.75c0-1.053.543-1.792 1.055-2.253.256-.23.515-.4.718-.52a5.677 5.677 0 0 1 .327-.179l.017-.009.025-.013-.001.001c.091-.052.35-.193.6-.328l.465-.254c.321-.178.515-.448.548-.837.045-.533-.38-1.125-1.116-1.125zM8.912 7.463a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm-8.119-8.11a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358zm-1.089-8.377V.985h-8.49v2h5.043L3.867 5.552l1.065 1.669-.012.005a1.761 1.761 0 0 1 .208-.037 4.86 4.86 0 0 1 .207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L1.5 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.625-.862l3.076-2.653zm8.554-.043c-1.276 0-2.146.925-2.146 1.945v.56h-2v-.56C14.7 2.322 16.577.61 18.846.61c2.535 0 4.153 2.118 3.977 4.186-.119 1.407-.896 2.465-2.002 3.078-.203.112-.517.283-.823.448a69.7 69.7 0 0 0-.857.47c-.05.028-.112.06-.183.097a5.34 5.34 0 0 0-1.174.78c-.301.272-.567.59-.742.97h5.605v2h-7.823v-1c0-1.61.83-2.743 1.623-3.457a6.938 6.938 0 0 1 1.116-.81 8.871 8.871 0 0 1 .513-.28l.027-.013.045-.024h.001c.145-.083.554-.305.95-.52.298-.162.59-.32.753-.411.567-.314.92-.804.978-1.497.082-.963-.682-2.017-1.984-2.017z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},85953:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m13.339 12.5 1.97-1.97h-.001l-1.06-1.06-1.97 1.97-1.97-1.97-1.06 1.06 1.97 1.97-1.969 1.97 1.06 1.06 1.97-1.97 1.97 1.97 1.06-1.06-1.97-1.97zm2.006-12v1.225l-1.796 1.549c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.616 0-2.741-1.206-2.861-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.203-.182-.558-.336-1.136-.285a6.06 6.06 0 0 1-.132.01 2.922 2.922 0 0 0-.124.01.984.984 0 0 0-.091.014l-.015.004.02-.008-.798-1.252L12.73 2H9.913V.5h5.432zM6.443.5v1.225L4.648 3.274c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.617 0-2.742-1.206-2.86-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.204-.182-.558-.336-1.136-.285l-.097.007a9.761 9.761 0 0 0-.16.013.983.983 0 0 0-.09.014l-.016.004.022-.008-.799-1.252L3.827 2H1.012V.5h5.431zm2.469 6.963a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0z'/>"},{size:24,svgContent:"<path d='m19.5 19.14 2.542-2.543-1.413-1.415-2.543 2.543-2.543-2.543-1.414 1.415 2.543 2.543-2.543 2.542 1.414 1.415 2.543-2.543 2.543 2.543 1.414-1.414L19.5 19.14zm3.292-16.487V.985h-8.49v2h5.043l-2.978 2.567 1.065 1.669-.012.005a1.756 1.756 0 0 1 .208-.037c.067-.007.136-.013.207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L14 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.961 3.961 0 0 0-1.625-.862l3.076-2.653zm-13 0V.985h-8.49v2h5.043L3.367 5.552l1.065 1.669-.012.005a1.761 1.761 0 0 1 .208-.037 4.86 4.86 0 0 1 .207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L1 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.625-.862l3.076-2.653zm1.389 8.377a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},54652:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M9.5 6.436h3.48V8.21h1.466V6.436h1.142V5.122h-1.141V.5h-1.859L9.5 4.85v1.586zm3.48-1.314H11l1.98-2.817v2.817zm2.329 5.408-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06h.001zM6.443.5v1.225L4.648 3.274c.318.113.603.28.847.498.563.502.835 1.208.835 1.93 0 1.608-1.42 2.511-2.77 2.511-1.617 0-2.742-1.206-2.86-2.56l1.494-.133c.055.62.568 1.193 1.367 1.193s1.27-.484 1.27-1.011c0-.347-.126-.626-.333-.81-.204-.182-.558-.336-1.136-.285l-.097.007a9.761 9.761 0 0 0-.16.013.983.983 0 0 0-.09.014l-.016.004.022-.008-.799-1.252L3.827 2H1.012V.5h5.431zm2.37 6.963a.956.956 0 1 1-1.913 0 .956.956 0 0 1 1.913 0z'/>"},{size:24,svgContent:"<path d='M13.3 10.194h5.39v2.748h2.271v-2.748h1.769V8.158h-1.768V1h-2.879L13.3 7.737v2.457zm5.39-2.036h-3.066l3.066-4.362v4.362zm3.352 8.439L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.413 1.415zM9.792 2.653V.985h-8.49v2h5.043L3.367 5.552l1.065 1.669-.012.005a1.761 1.761 0 0 1 .208-.037 4.86 4.86 0 0 1 .207-.018l.06-.004.148-.011c.969-.084 1.594.172 1.968.506.378.337.6.841.6 1.445 0 .988-.881 1.819-2.232 1.819-1.388 0-2.29-1-2.387-2.092L1 9.011c.183 2.069 1.901 3.915 4.38 3.915 2.085 0 4.231-1.39 4.231-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.625-.862l3.076-2.653zm.989 8.377a.96.96 0 1 1 1.358 1.357.96.96 0 0 1-1.358-1.358z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},99343:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M6.443 1.725V.5H1.012V2h2.815L2.221 3.385l.799 1.252-.022.008.016-.004a2.91 2.91 0 0 1 .215-.025l.035-.002.097-.007c.578-.05.932.103 1.136.284.207.185.333.464.333.81 0 .528-.471 1.012-1.27 1.012-.8 0-1.312-.572-1.367-1.193l-1.494.132c.12 1.355 1.244 2.561 2.861 2.561 1.35 0 2.77-.903 2.77-2.511 0-.722-.272-1.428-.835-1.93a2.555 2.555 0 0 0-.847-.498l1.795-1.549zM14.569.5h-3.75l-.887 3.87 1.314.638.189-.233.01-.014a1.27 1.27 0 0 1 1.028-.516c.707 0 1.263.562 1.263 1.234 0 .672-.556 1.234-1.263 1.234-.65 0-1.174-.476-1.253-1.073l-1.487.197a2.754 2.754 0 0 0 2.74 2.376c1.515 0 2.763-1.214 2.763-2.734s-1.248-2.734-2.763-2.734c-.223 0-.44.026-.647.075l.188-.82h2.555V.5zm.74 10.03-1.97 1.97 1.97 1.97-1.06 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.969-1.97-1.97-1.97 1.06-1.06 1.97 1.97 1.97-1.97 1.06 1.06zM9.041 7.463a.956.956 0 1 1-1.912 0 .956.956 0 0 1 1.912 0z'/>"},{size:24,svgContent:"<path d='M10.267 2.653V.985h-8.49v2h5.042L3.842 5.552l1.065 1.669-.012.005a1.762 1.762 0 0 1 .208-.037 4.86 4.86 0 0 1 .206-.018l.06-.004.149-.011c.968-.084 1.594.172 1.967.506.379.337.6.841.6 1.445 0 .988-.88 1.819-2.231 1.819-1.389 0-2.29-1-2.387-2.092l-1.992.177c.183 2.069 1.9 3.915 4.379 3.915 2.085 0 4.232-1.39 4.232-3.82 0-1.104-.416-2.177-1.27-2.938a3.96 3.96 0 0 0-1.626-.862l3.077-2.653zM15.454.985h5.84v2h-4.247l-.412 1.794c.411-.132.85-.203 1.304-.203 2.318 0 4.221 1.856 4.221 4.175 0 2.32-1.903 4.175-4.22 4.175-2.134 0-3.913-1.57-4.186-3.628l1.983-.263c.14 1.056 1.063 1.89 2.202 1.89 1.24 0 2.221-.986 2.221-2.174s-.98-2.175-2.22-2.175c-.747 0-1.403.359-1.806.908l-.014.018-.298.37-1.753-.852L15.454.985zm-3.715 11.689a.96.96 0 1 0 0-1.92.96.96 0 0 0 0 1.92zm10.303 3.923L19.5 19.14l2.543 2.543-1.414 1.414-2.543-2.543-2.543 2.543-1.414-1.415 2.543-2.542-2.543-2.543 1.414-1.415 2.543 2.543 2.543-2.543 1.414 1.415z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},5006:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8.096 3.627V2.335H.28v1.5h5.278L2.355 6.596l.799 1.252c.003-.001.024-.009.067-.018.048-.01.107-.02.175-.028a3.86 3.86 0 0 1 .247-.02l.15-.012c.956-.083 1.602.17 2.001.525.403.36.631.89.631 1.508 0 1.071-.953 1.91-2.298 1.91-1.415 0-2.345-1.026-2.444-2.15l-1.495.132c.165 1.857 1.707 3.517 3.939 3.517 1.896 0 3.798-1.257 3.798-3.409 0-.993-.373-1.95-1.133-2.628-.488-.434-1.105-.727-1.823-.852l3.127-2.696zm7.213 4.786-1.97 1.97 1.97 1.97-1.061 1.06-1.97-1.97-1.97 1.97-1.06-1.06 1.97-1.97-1.97-1.97 1.06-1.06 1.97 1.969 1.97-1.97 1.06 1.061z'/>"},{size:24,svgContent:"<path d='M13.805 5.761V4H2v2h8.465l-5.197 4.48 1.065 1.67a1.77 1.77 0 0 1 .414-.082c.153-.018.27-.026.389-.034l.222-.016c1.495-.13 2.525.263 3.171.84.651.58 1.014 1.433 1.014 2.415 0 1.743-1.55 3.066-3.661 3.066-2.244 0-3.726-1.63-3.884-3.42l-1.992.176c.245 2.768 2.542 5.243 5.876 5.243 2.845 0 5.661-1.88 5.661-5.065 0-1.483-.557-2.905-1.683-3.909-.793-.706-1.819-1.163-3.029-1.315l4.974-4.288zm9.691 8.071-2.543 2.543 2.543 2.542-1.415 1.415-2.542-2.543-2.543 2.543-1.414-1.415 2.542-2.543-2.542-2.542 1.414-1.415 2.543 2.543 2.542-2.543 1.415 1.415z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},56876:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M4 1h11v11.75A2.75 2.75 0 1 1 12.25 10h1.25V2.5h-8v10.25A2.75 2.75 0 1 1 2.75 10H4V1zm0 10.5H2.75A1.25 1.25 0 1 0 4 12.75V11.5zm9.5 0h-1.25a1.25 1.25 0 1 0 1.25 1.25V11.5z'/>"},{size:24,svgContent:"<path d='M6 3h15v15.167a3.5 3.5 0 1 1-3.5-3.5H19V5H8v13.167a3.5 3.5 0 1 1-3.5-3.5H6V3zm0 13.667H4.5a1.5 1.5 0 1 0 1.5 1.5v-1.5zm13 0h-1.5a1.5 1.5 0 1 0 1.5 1.5v-1.5z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},8138:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15.25 8a.75.75 0 0 1-.75.75H8.75v5.75a.75.75 0 0 1-1.5 0V8.75H1.5a.75.75 0 0 1 0-1.5h5.75V1.5a.75.75 0 0 1 1.5 0v5.75h5.75a.75.75 0 0 1 .75.75z'/>"},{size:24,svgContent:"<path d='M12 1a1 1 0 0 1 1 1v9h9a1 1 0 1 1 0 2h-9v9a1 1 0 1 1-2 0v-9H2a1 1 0 1 1 0-2h9V2a1 1 0 0 1 1-1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},48122:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M11.75 8a.75.75 0 0 1-.75.75H8.75V11a.75.75 0 0 1-1.5 0V8.75H5a.75.75 0 0 1 0-1.5h2.25V5a.75.75 0 0 1 1.5 0v2.25H11a.75.75 0 0 1 .75.75z'/>"},{size:24,svgContent:"<path d='M11.999 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-11 9c0-6.075 4.925-11 11-11s11 4.925 11 11-4.925 11-11 11-11-4.925-11-11z'/><path d='M17.999 12a1 1 0 0 1-1 1h-4v4a1 1 0 1 1-2 0v-4h-4a1 1 0 1 1 0-2h4V7a1 1 0 1 1 2 0v4h4a1 1 0 0 1 1 1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},34058:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3.404 3.404a6.5 6.5 0 0 1 9.192 9.192l1.06 1.06a8 8 0 1 0-11.313 0l1.06-1.06a6.5 6.5 0 0 1 0-9.192z'/><path d='M11 9.25a3.001 3.001 0 0 1-2.25 2.905v1.474l1.773 1.488a.5.5 0 0 1-.321.883H5.799a.5.5 0 0 1-.322-.883l1.773-1.488v-1.474A3.001 3.001 0 0 1 5 9.25V7a3 3 0 0 1 6 0v2.25zM8 5.5A1.5 1.5 0 0 0 6.5 7v2.25a1.5 1.5 0 0 0 3 0V7A1.5 1.5 0 0 0 8 5.5z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 0 0-7.046 14.6L3.42 18.886A10.954 10.954 0 0 1 1 12C1 5.925 5.925 1 12 1s11 4.925 11 11a10.96 10.96 0 0 1-2.421 6.886L19.046 17.6A9 9 0 0 0 12 3z'/><path d='M12 7a4 4 0 0 0-4 4v3a4.002 4.002 0 0 0 3 3.874v1.965l-2.715 2.278a.5.5 0 0 0 .322.883h6.786a.5.5 0 0 0 .322-.883L13 19.839v-1.965c1.725-.444 3-2.01 3-3.874v-3a4 4 0 0 0-4-4zm2 7a2 2 0 0 1-4 0v-3a2 2 0 1 1 4 0v3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},83644:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11.5.81a8 8 0 1 1-7 0l.75 1.3a6.5 6.5 0 1 0 5.5 0l.75-1.3z'/><path d='M8.75.75a.75.75 0 0 0-1.5 0V6.5a.75.75 0 1 0 1.5 0V.75z'/>"},{size:24,svgContent:"<path d='M16.5 1.997a10.992 10.992 0 0 1 5.31 5.054 10.966 10.966 0 0 1-2.893 13.506 11.01 11.01 0 0 1-13.834 0A10.966 10.966 0 0 1 2.189 7.051 10.992 10.992 0 0 1 7.5 1.997l1 1.747a8.995 8.995 0 0 0-4.459 4.082 8.973 8.973 0 0 0 2.261 11.151 9.009 9.009 0 0 0 11.396 0 8.972 8.972 0 0 0 2.26-11.151A8.994 8.994 0 0 0 15.5 3.744l1-1.747z'/><path d='M12.99.998a1 1 0 0 0-2 0v8.986a1 1 0 0 0 2 0V.998z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},8678:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8.152 16H8a8 8 0 1 1 .152 0zm-.41-14.202c-.226.273-.463.713-.677 1.323-.369 1.055-.626 2.496-.687 4.129h3.547c-.06-1.633-.318-3.074-.687-4.129-.213-.61-.45-1.05-.676-1.323-.194-.235-.326-.285-.385-.296h-.044c-.055.007-.19.052-.391.296zM4.877 7.25c.062-1.771.34-3.386.773-4.624.099-.284.208-.554.329-.806a6.507 6.507 0 0 0-4.436 5.43h3.334zm-3.334 1.5a6.507 6.507 0 0 0 4.436 5.43 7.974 7.974 0 0 1-.33-.806c-.433-1.238-.71-2.853-.772-4.624H1.543zm4.835 0c.061 1.633.318 3.074.687 4.129.214.61.451 1.05.677 1.323.202.244.336.29.391.297l.044-.001c.06-.01.19-.061.385-.296.226-.273.463-.713.676-1.323.37-1.055.626-2.496.687-4.129H6.378zm5.048 0c-.061 1.771-.339 3.386-.772 4.624-.082.235-.171.46-.268.674a6.506 6.506 0 0 0 4.071-5.298h-3.03zm3.031-1.5a6.507 6.507 0 0 0-4.071-5.298c.097.214.186.44.268.674.433 1.238.711 2.853.772 4.624h3.031z'/>"},{size:24,svgContent:"<path d='M12.208 23H12C5.925 23 1 18.075 1 12S5.925 1 12 1a11.336 11.336 0 0 1 .383.007C18.28 1.208 22.999 6.053 22.999 12s-4.72 10.792-10.617 10.994a2.304 2.304 0 0 1-.174.006zm-.591-19.577c-.316.381-.644.993-.94 1.836-.513 1.466-.869 3.47-.95 5.741h4.963c-.081-2.27-.437-4.275-.95-5.74-.296-.844-.624-1.456-.94-1.837-.273-.33-.462-.405-.553-.42l-.066-.001c-.086.01-.28.077-.564.421zM7.725 11c.083-2.454.466-4.69 1.065-6.401.146-.418.308-.814.488-1.18A9.009 9.009 0 0 0 3.054 11h4.671zm-4.671 2a9.009 9.009 0 0 0 6.224 7.581c-.18-.366-.342-.762-.488-1.18-.6-1.711-.982-3.947-1.065-6.401H3.054zm6.672 0c.082 2.27.438 4.275.951 5.74.296.844.624 1.456.94 1.837.284.343.478.41.564.421l.066-.001c.09-.015.28-.09.553-.42.316-.381.644-.993.94-1.836.513-1.466.869-3.47.95-5.741H9.726zm6.966 0c-.083 2.454-.466 4.69-1.065 6.401-.123.352-.257.688-.404 1.004A9.009 9.009 0 0 0 20.944 13h-4.252zm4.252-2a9.009 9.009 0 0 0-5.72-7.405c.146.316.28.652.403 1.004.6 1.711.982 3.947 1.065 6.401h4.252z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},67809:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M15 15H1v-1.5h14V15zm0-4.5H1V9h14v1.5zm-14-7A2.5 2.5 0 0 1 3.5 1h9a2.5 2.5 0 0 1 0 5h-9A2.5 2.5 0 0 1 1 3.5zm2.5-1a1 1 0 0 0 0 2h9a1 1 0 1 0 0-2h-9z'/>"},{size:24,svgContent:"<path d='M21 22H3v-2h18v2zm0-6H3v-2h18v2zM2.05 6.546a3.5 3.5 0 0 1 3.5-3.5h13a3.5 3.5 0 0 1 0 7h-13a3.5 3.5 0 0 1-3.5-3.5zm3.5-1.5a1.5 1.5 0 0 0 0 3h13a1.5 1.5 0 0 0 0-3h-13z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},48491:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M0 4.75A3.75 3.75 0 0 1 3.75 1h8.5A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25h-8.5A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5z'/>"},{size:24,svgContent:"<path d='M6 2a5 5 0 0 0-5 5v8a5 5 0 0 0 5 5h1v-2H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-4.798l1.298-1.298a1 1 0 1 0-1.414-1.414L9.373 19l3.713 3.712a1 1 0 0 0 1.414-1.414L13.202 20H18a5 5 0 0 0 5-5V7a5 5 0 0 0-5-5H6z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},3334:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M0 4.75A3.75 3.75 0 0 1 3.75 1h.75v1.5h-.75A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5zM12.25 2.5h-.75V1h.75A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25z'/><path d='M9.12 8V1H7.787c-.128.72-.76 1.293-1.787 1.313V3.36h1.57V8h1.55z'/>"},{size:24,svgContent:"<path d='M11.382 2.516c.306-.323.448-.7.448-.969h2V11h-2V5H10V3h.378c.341 0 .706-.17 1.004-.484zM1 7a5 5 0 0 1 5-5h1v2H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h1v2H6a5 5 0 0 1-5-5V7z'/><path d='M18 4h-1V2h1a5 5 0 0 1 5 5v8a5 5 0 0 1-5 5h-4.798l1.298 1.298a1 1 0 1 1-1.414 1.415L9.373 19l3.713-3.712a1 1 0 0 1 1.414 1.414L13.202 18H18a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},48710:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M7 1.75a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5zM.25 7a6.75 6.75 0 1 1 12.096 4.12l3.184 3.185a.75.75 0 1 1-1.06 1.06L11.304 12.2A6.75 6.75 0 0 1 .25 7z'/>"},{size:24,svgContent:"<path d='M10.533 1.279c-5.18 0-9.407 4.14-9.407 9.279s4.226 9.279 9.407 9.279c2.234 0 4.29-.77 5.907-2.058l4.353 4.353a1 1 0 1 0 1.414-1.414l-4.344-4.344a9.157 9.157 0 0 0 2.077-5.816c0-5.14-4.226-9.28-9.407-9.28zm-7.407 9.279c0-4.006 3.302-7.28 7.407-7.28s7.407 3.274 7.407 7.28-3.302 7.279-7.407 7.279-7.407-3.273-7.407-7.28z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},18147:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M7 1.75a5.25 5.25 0 1 0 0 10.5 5.25 5.25 0 0 0 0-10.5zM.25 7a6.75 6.75 0 1 1 12.096 4.12l3.184 3.185a.75.75 0 1 1-1.06 1.06L11.304 12.2A6.75 6.75 0 0 1 .25 7z'/><path d='M10.75 7a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0z'/>"},{size:24,svgContent:"<path d='M15.356 10.558c0 2.623-2.16 4.75-4.823 4.75-2.664 0-4.824-2.127-4.824-4.75s2.16-4.75 4.824-4.75c2.664 0 4.823 2.127 4.823 4.75z'/><path d='M1.126 10.558c0-5.14 4.226-9.28 9.407-9.28 5.18 0 9.407 4.14 9.407 9.28a9.157 9.157 0 0 1-2.077 5.816l4.344 4.344a1 1 0 0 1-1.414 1.414l-4.353-4.353a9.454 9.454 0 0 1-5.907 2.058c-5.18 0-9.407-4.14-9.407-9.28zm9.407-7.28c-4.105 0-7.407 3.274-7.407 7.28s3.302 7.279 7.407 7.279 7.407-3.273 7.407-7.28c0-4.005-3.302-7.278-7.407-7.278z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},92650:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M12.875 2a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25zM10.25 3.125a2.625 2.625 0 1 1 .754 1.841L5.75 8l5.254 3.034a2.625 2.625 0 1 1-.704 1.326l-5-2.889a2.625 2.625 0 1 1 0-2.943l5-2.888a2.634 2.634 0 0 1-.051-.516zm-7.125 3.75a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25zm9.75 4.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25z'/>"},{size:24,svgContent:"<path d='M18.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM15 5.5a3.5 3.5 0 1 1 1.006 2.455L9 12l7.006 4.045a3.5 3.5 0 1 1-.938 1.768l-6.67-3.85a3.5 3.5 0 1 1 0-3.924l6.67-3.852A3.513 3.513 0 0 1 15 5.5zm-9.5 5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm13 6.5a1.5 1.5 0 1 0-.001 3 1.5 1.5 0 0 0 .001-3z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},8038:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1 5.75A.75.75 0 0 1 1.75 5H4v1.5H2.5v8h11v-8H12V5h2.25a.75.75 0 0 1 .75.75v9.5a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75v-9.5z'/><path d='M8 9.576a.75.75 0 0 0 .75-.75V2.903l1.454 1.454a.75.75 0 0 0 1.06-1.06L8 .03 4.735 3.296a.75.75 0 0 0 1.06 1.061L7.25 2.903v5.923c0 .414.336.75.75.75z'/>"},{size:24,svgContent:"<path d='M3 8a1 1 0 0 1 1-1h3.5v2H5v11h14V9h-2.5V7H20a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8z'/><path d='M12 12.326a1 1 0 0 0 1-1V3.841l1.793 1.793a1 1 0 1 0 1.414-1.414L12 .012 7.793 4.22a1 1 0 1 0 1.414 1.414L11 3.84v7.485a1 1 0 0 0 1 1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},39757:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M13.151.922a.75.75 0 1 0-1.06 1.06L13.109 3H11.16a3.75 3.75 0 0 0-2.873 1.34l-6.173 7.356A2.25 2.25 0 0 1 .39 12.5H0V14h.391a3.75 3.75 0 0 0 2.873-1.34l6.173-7.356a2.25 2.25 0 0 1 1.724-.804h1.947l-1.017 1.018a.75.75 0 0 0 1.06 1.06L15.98 3.75 13.15.922zM.391 3.5H0V2h.391c1.109 0 2.16.49 2.873 1.34L4.89 5.277l-.979 1.167-1.796-2.14A2.25 2.25 0 0 0 .39 3.5z'/><path d='m7.5 10.723.98-1.167.957 1.14a2.25 2.25 0 0 0 1.724.804h1.947l-1.017-1.018a.75.75 0 1 1 1.06-1.06l2.829 2.828-2.829 2.828a.75.75 0 1 1-1.06-1.06L13.109 13H11.16a3.75 3.75 0 0 1-2.873-1.34l-.787-.938z'/>"},{size:24,svgContent:"<path d='M18.788 3.702a1 1 0 0 1 1.414-1.414L23.914 6l-3.712 3.712a1 1 0 1 1-1.414-1.414L20.086 7h-1.518a5 5 0 0 0-3.826 1.78l-7.346 8.73a7 7 0 0 1-5.356 2.494H1v-2h1.04a5 5 0 0 0 3.826-1.781l7.345-8.73A7 7 0 0 1 18.569 5h1.518l-1.298-1.298z'/><path d='M18.788 14.289a1 1 0 0 0 0 1.414L20.086 17h-1.518a5 5 0 0 1-3.826-1.78l-1.403-1.668-1.306 1.554 1.178 1.4A7 7 0 0 0 18.568 19h1.518l-1.298 1.298a1 1 0 1 0 1.414 1.414L23.914 18l-3.712-3.713a1 1 0 0 0-1.414 0zM7.396 6.49l2.023 2.404-1.307 1.553-2.246-2.67a5 5 0 0 0-3.826-1.78H1v-2h1.04A7 7 0 0 1 7.396 6.49z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},37899:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M3.3 1a.7.7 0 0 1 .7.7v5.15l9.95-5.744a.7.7 0 0 1 1.05.606v12.575a.7.7 0 0 1-1.05.607L4 9.149V14.3a.7.7 0 0 1-.7.7H1.7a.7.7 0 0 1-.7-.7V1.7a.7.7 0 0 1 .7-.7h1.6z'/>"},{size:24,svgContent:"<path d='M6.3 3a.7.7 0 0 1 .7.7v6.805l11.95-6.899a.7.7 0 0 1 1.05.606v15.576a.7.7 0 0 1-1.05.606L7 13.495V20.3a.7.7 0 0 1-.7.7H4.7a.7.7 0 0 1-.7-.7V3.7a.7.7 0 0 1 .7-.7h1.6z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},41923:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M2.464 4.5h1.473a.75.75 0 1 1 0 1.5H0V2.063a.75.75 0 0 1 1.5 0v1.27a8.25 8.25 0 1 1 10.539 12.554.75.75 0 0 1-.828-1.25A6.75 6.75 0 1 0 2.464 4.5z'/><path d='M.303 8.407c.79 0 1.214-.52 1.214-.907h1.5v8h-1.5V9.907H0v-1.5h.303zm4.832-.911h4.05v1.5H6.33l-.245 1.067c.256-.071.525-.11.804-.11 1.621 0 2.954 1.3 2.954 2.924C9.843 14.5 8.51 15.8 6.89 15.8a2.945 2.945 0 0 1-2.93-2.54l1.487-.197c.092.69.696 1.237 1.443 1.237.813 0 1.454-.647 1.454-1.423s-.64-1.423-1.454-1.423c-.49 0-.92.235-1.183.594l-.01.014-.206.254-1.314-.639.96-4.181z'/>"},{size:24,svgContent:"<path d='M5.286 6H7.25a1 1 0 1 1 0 2H2V2.75a1 1 0 1 1 2 0v1.694A10.97 10.97 0 0 1 11.994 1c6.075 0 11 4.925 11 11a10.99 10.99 0 0 1-4.943 9.183 1 1 0 1 1-1.102-1.668A9 9 0 1 0 5.286 6zm-3.917 7.518c1.005 0 1.591-.666 1.591-1.217h1.6v9.74h-1.6v-6.923H1v-1.6h.369z'/><path d='M7.343 12.41h4.84v1.6H8.616l-.362 1.578a3.53 3.53 0 0 1 1.132-.186c1.914 0 3.484 1.532 3.484 3.446 0 1.914-1.57 3.446-3.484 3.446-1.76 0-3.229-1.296-3.454-2.995l1.586-.21c.119.896.903 1.605 1.868 1.605 1.052 0 1.884-.838 1.884-1.846 0-1.009-.832-1.846-1.884-1.846-.632 0-1.19.304-1.53.77l-.012.015-.248.307-1.402-.681 1.148-5.004z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},50148:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M12.7 1a.7.7 0 0 0-.7.7v5.15L2.05 1.107A.7.7 0 0 0 1 1.712v12.575a.7.7 0 0 0 1.05.607L12 9.149V14.3a.7.7 0 0 0 .7.7h1.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7h-1.6z'/>"},{size:24,svgContent:"<path d='M17.7 3a.7.7 0 0 0-.7.7v6.805L5.05 3.606A.7.7 0 0 0 4 4.212v15.576a.7.7 0 0 0 1.05.606L17 13.495V20.3a.7.7 0 0 0 .7.7h1.6a.7.7 0 0 0 .7-.7V3.7a.7.7 0 0 0-.7-.7h-1.6z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},32183:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M13.536 4.5h-1.473a.75.75 0 1 0 0 1.5H16V2.063a.75.75 0 0 0-1.5 0v1.27A8.25 8.25 0 1 0 3.962 15.887a.75.75 0 1 0 .827-1.25A6.75 6.75 0 1 1 13.535 4.5z'/><path d='M6.303 8.407c.79 0 1.214-.52 1.214-.907h1.5v8h-1.5V9.907H6v-1.5h.303zm4.832-.911h4.05v1.5H12.33l-.245 1.067c.256-.071.525-.11.804-.11 1.621 0 2.954 1.3 2.954 2.924 0 1.624-1.333 2.923-2.954 2.923a2.945 2.945 0 0 1-2.93-2.54l1.487-.197c.092.69.696 1.237 1.443 1.237.813 0 1.454-.647 1.454-1.423s-.64-1.423-1.454-1.423c-.49 0-.92.235-1.183.594l-.01.014-.206.254-1.314-.639.96-4.181z'/>"},{size:24,svgContent:"<path d='M18.714 6H16.75a1 1 0 1 0 0 2H22V2.75a1 1 0 1 0-2 0v1.694A10.97 10.97 0 0 0 12.006 1c-6.075 0-11 4.925-11 11a10.99 10.99 0 0 0 4.943 9.183 1 1 0 1 0 1.102-1.668A9 9 0 1 1 18.714 6z'/><path d='M10.639 13.518c1.005 0 1.591-.666 1.591-1.217h1.6v9.74h-1.6v-6.923h-1.96v-1.6h.369zm5.974-1.108h4.84v1.6h-3.566l-.362 1.578a3.53 3.53 0 0 1 1.132-.186c1.914 0 3.484 1.532 3.484 3.446 0 1.914-1.57 3.445-3.484 3.445-1.76 0-3.229-1.295-3.454-2.994l1.586-.21c.119.896.903 1.604 1.868 1.604 1.052 0 1.884-.837 1.884-1.845 0-1.009-.832-1.846-1.884-1.846-.633 0-1.19.304-1.53.77l-.012.015-.248.307-1.402-.681 1.148-5.004z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},9173:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M14.5 8a6.468 6.468 0 0 0-1.3-3.9l1.2-.9C15.405 4.537 16 6.2 16 8c0 1.8-.595 3.463-1.6 4.8l-1.2-.9A6.468 6.468 0 0 0 14.5 8zM8 1.5a6.5 6.5 0 1 0 3.25 12.13.75.75 0 1 1 .75 1.3 8 8 0 1 1 0-13.86.75.75 0 1 1-.75 1.298A6.467 6.467 0 0 0 8 1.5z'/><path d='M11.259 8c0-.676-.228-1.296-.611-1.791l1.187-.918c.579.749.924 1.69.924 2.709a4.41 4.41 0 0 1-.925 2.709l-1.186-.918c.383-.495.61-1.115.61-1.791zM8.75 4.115l-4.139 2.39a1.727 1.727 0 0 0 0 2.99l4.139 2.39v-7.77z'/>"},{size:24,svgContent:"<path d='M21 12c0-2.027-.67-3.895-1.799-5.4l1.6-1.2A10.956 10.956 0 0 1 23 12c0 2.475-.819 4.762-2.2 6.6l-1.599-1.2A8.956 8.956 0 0 0 21 12zm-9-9a9 9 0 0 0 0 18 8.955 8.955 0 0 0 4.5-1.203 1 1 0 1 1 1 1.73A10.954 10.954 0 0 1 12 23C5.925 23 1 18.075 1 12S5.925 1 12 1c2.002 0 3.882.536 5.5 1.472a1 1 0 0 1-1 1.731A8.954 8.954 0 0 0 12 3z'/><path d='M17 12a4.979 4.979 0 0 0-1.042-3.056L17.54 7.72A6.974 6.974 0 0 1 19 12c0 1.61-.545 3.096-1.46 4.28l-1.582-1.224A4.974 4.974 0 0 0 17 12zm-4-5-5.327 3.077a2.223 2.223 0 0 0 0 3.846L13 17V7z'/>"}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},80912:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.669 11.539a.498.498 0 0 1-.686.166c-1.878-1.148-4.243-1.408-7.028-.772a.499.499 0 0 1-.222-.972c3.048-.696 5.662-.396 7.77.892a.5.5 0 0 1 .166.686zm.979-2.178a.624.624 0 0 1-.858.205c-2.15-1.322-5.428-1.705-7.972-.932a.624.624 0 1 1-.362-1.194c2.905-.882 6.517-.455 8.987 1.063a.624.624 0 0 1 .205.858zm.084-2.269C10.153 5.561 5.9 5.42 3.438 6.167a.748.748 0 1 1-.434-1.432c2.826-.857 7.523-.692 10.492 1.07a.748.748 0 0 1-.764 1.287z'/>"},{size:24,svgContent:"<path d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm5.045 15.866a.686.686 0 0 1-.943.228c-2.583-1.579-5.834-1.935-9.663-1.06a.686.686 0 0 1-.306-1.337c4.19-.958 7.785-.546 10.684 1.226a.686.686 0 0 1 .228.943zm1.346-2.995a.858.858 0 0 1-1.18.282c-2.956-1.817-7.464-2.344-10.961-1.282a.856.856 0 0 1-1.11-.904.858.858 0 0 1 .611-.737c3.996-1.212 8.962-.625 12.357 1.462a.857.857 0 0 1 .283 1.179zm.116-3.119c-3.546-2.106-9.395-2.3-12.78-1.272a1.029 1.029 0 0 1-.597-1.969c3.886-1.18 10.345-.952 14.427 1.471a1.029 1.029 0 0 1-1.05 1.77z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},38127:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 .355a.75.75 0 0 1 .696.47l1.812 4.493 4.79.306a.75.75 0 0 1 .43 1.326l-3.582 2.963 1.067 4.82a.75.75 0 0 1-1.139.792L8 12.895l-4.074 2.63a.75.75 0 0 1-1.139-.792l1.067-4.82L.272 6.95a.75.75 0 0 1 .43-1.326l4.79-.306L7.304.825A.75.75 0 0 1 8 .355zm0 2.756L6.707 6.316a.75.75 0 0 1-.648.468L2.686 7l2.478 2.05a.75.75 0 0 1 .254.74l-.772 3.485 2.947-1.902a.75.75 0 0 1 .814 0l2.947 1.902-.772-3.485a.75.75 0 0 1 .254-.74L13.314 7l-3.373-.215a.75.75 0 0 1-.648-.468L8 3.11z'/>"},{size:24,svgContent:"<path d='M12 .06a1 1 0 0 1 .927.626l2.765 6.856 7.309.466a1 1 0 0 1 .573 1.769l-5.466 4.521 1.628 7.35a1 1 0 0 1-1.519 1.056L12 18.69l-6.217 4.014a1 1 0 0 1-1.519-1.057l1.627-7.349L.425 9.777A1 1 0 0 1 1 8.008l7.309-.466L11.073.686A1 1 0 0 1 12 .06zm0 3.674-2.073 5.14a1 1 0 0 1-.863.624l-5.42.346 3.993 3.303a1 1 0 0 1 .34.986l-1.234 5.57 4.715-3.043a1 1 0 0 1 1.084 0l4.715 3.043-1.233-5.57a1 1 0 0 1 .339-.986l3.993-3.303-5.42-.346a1 1 0 0 1-.864-.624L12 3.734z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},42543:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8.696.825a.75.75 0 0 0-1.392 0L5.492 5.318l-4.79.306a.75.75 0 0 0-.43 1.326l3.582 2.963-1.067 4.82a.75.75 0 0 0 1.14.792L8 12.895l4.074 2.63a.75.75 0 0 0 1.139-.792l-1.067-4.82 3.582-2.963a.75.75 0 0 0-.43-1.326l-4.79-.306L8.696.825z'/>"},{size:24,svgContent:"<path d='M12.927.686a1 1 0 0 0-1.854 0L8.308 7.542l-7.309.466a1 1 0 0 0-.574 1.769l5.466 4.521-1.627 7.35a1 1 0 0 0 1.519 1.056L12 18.69l6.217 4.014a1 1 0 0 0 1.519-1.057l-1.628-7.349 5.466-4.521a1 1 0 0 0-.573-1.769l-7.309-.466L12.927.686z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},66766:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11 11.5h2V10h-2v1.5zm-2 0H3V10h6v1.5z'/><path d='M16 2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25V2.75zm-1.75-.25a.25.25 0 0 1 .25.25v10.5a.25.25 0 0 1-.25.25H1.75a.25.25 0 0 1-.25-.25V2.75a.25.25 0 0 1 .25-.25h12.5z'/>"},{size:24,svgContent:"<path d='M13 17H6v-2h7v2zm2 0h3v-2h-3v2z'/><path d='M1 4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm20 0H3v16h18V4z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},63258:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z'/><path d='M8 3.25a.75.75 0 0 1 .75.75v3.25H11a.75.75 0 0 1 0 1.5H7.25V4A.75.75 0 0 1 8 3.25z'/>"},{size:24,svgContent:"<path d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12z'/><path d='M12 5a1 1 0 0 1 1 1v5h3a1 1 0 1 1 0 2h-5V6a1 1 0 0 1 1-1z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},21586:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M10 2v9.5a2.75 2.75 0 1 1-2.75-2.75H8.5V2H10zm-1.5 8.25H7.25A1.25 1.25 0 1 0 8.5 11.5v-1.25z'/>"},{size:24,svgContent:"<path d='M15 4v12.167a3.5 3.5 0 1 1-3.5-3.5H13V4h2zm-2 10.667h-1.5a1.5 1.5 0 1 0 1.5 1.5v-1.5z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},36165:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M13.54 3.889a2.968 2.968 0 0 0 1.333-1.683 5.937 5.937 0 0 1-1.929.738 2.992 2.992 0 0 0-.996-.706 2.98 2.98 0 0 0-1.218-.254 2.92 2.92 0 0 0-2.143.889 2.929 2.929 0 0 0-.889 2.15c0 .212.027.442.08.691a8.475 8.475 0 0 1-3.484-.932A8.536 8.536 0 0 1 1.532 2.54a2.993 2.993 0 0 0-.413 1.523c0 .519.12 1 .361 1.445.24.445.57.805.988 1.08a2.873 2.873 0 0 1-1.373-.374v.04c0 .725.23 1.365.69 1.92a2.97 2.97 0 0 0 1.739 1.048 2.937 2.937 0 0 1-1.365.056 2.94 2.94 0 0 0 1.063 1.5 2.945 2.945 0 0 0 1.77.603 5.944 5.944 0 0 1-3.77 1.302c-.243 0-.484-.016-.722-.048A8.414 8.414 0 0 0 5.15 14c.905 0 1.763-.12 2.572-.361.81-.24 1.526-.57 2.147-.988a9.044 9.044 0 0 0 1.683-1.46c.5-.556.911-1.155 1.234-1.798a9.532 9.532 0 0 0 .738-1.988 8.417 8.417 0 0 0 .246-2.429 6.177 6.177 0 0 0 1.508-1.563c-.56.249-1.14.407-1.738.476z'/>"},{size:24,svgContent:"<path d='M20.31 5.833a4.451 4.451 0 0 0 2-2.524 8.91 8.91 0 0 1-2.894 1.107 4.487 4.487 0 0 0-1.494-1.06 4.471 4.471 0 0 0-1.827-.38c-1.254 0-2.325.444-3.214 1.333-.89.89-1.334 1.964-1.334 3.225 0 .318.04.664.12 1.037a12.713 12.713 0 0 1-5.226-1.398A12.804 12.804 0 0 1 2.298 3.81a4.49 4.49 0 0 0-.62 2.284c0 .778.181 1.5.542 2.168a4.439 4.439 0 0 0 1.482 1.62 4.31 4.31 0 0 1-2.06-.561v.06c0 1.087.346 2.047 1.036 2.88a4.457 4.457 0 0 0 2.608 1.572 4.405 4.405 0 0 1-1.191.166 5.04 5.04 0 0 1-.856-.082 4.41 4.41 0 0 0 1.594 2.25 4.417 4.417 0 0 0 2.655.904c-1.659 1.302-3.544 1.953-5.655 1.953-.365 0-.726-.024-1.083-.072C2.869 20.317 5.194 21 7.725 21c1.358 0 2.644-.18 3.858-.541 1.215-.361 2.288-.855 3.22-1.482a13.564 13.564 0 0 0 2.525-2.19 12.232 12.232 0 0 0 1.851-2.697c.484-.964.853-1.958 1.107-2.982a12.624 12.624 0 0 0 .369-3.644 9.266 9.266 0 0 0 2.262-2.345 8.9 8.9 0 0 1-2.607.714z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},31925:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M6.233.371a4.388 4.388 0 0 1 5.002 1.052c.421.459.713.992.904 1.554.143.421.263 1.173.22 1.894-.078 1.322-.638 2.408-1.399 3.316l-.127.152a.75.75 0 0 0 .201 1.13l2.209 1.275a4.75 4.75 0 0 1 2.375 4.114V16H.382v-1.143a4.75 4.75 0 0 1 2.375-4.113l2.209-1.275a.75.75 0 0 0 .201-1.13l-.126-.152c-.761-.908-1.322-1.994-1.4-3.316-.043-.721.077-1.473.22-1.894a4.346 4.346 0 0 1 .904-1.554c.411-.448.91-.807 1.468-1.052zM8 1.5a2.888 2.888 0 0 0-2.13.937 2.85 2.85 0 0 0-.588 1.022c-.077.226-.175.783-.143 1.323.054.921.44 1.712 1.051 2.442l.002.001.127.153a2.25 2.25 0 0 1-.603 3.39l-2.209 1.275A3.25 3.25 0 0 0 1.902 14.5h12.196a3.25 3.25 0 0 0-1.605-2.457l-2.209-1.275a2.25 2.25 0 0 1-.603-3.39l.127-.153.002-.001c.612-.73.997-1.52 1.052-2.442.032-.54-.067-1.097-.144-1.323a2.85 2.85 0 0 0-.588-1.022A2.888 2.888 0 0 0 8 1.5z'/>"},{size:24,svgContent:"<path d='M10.165 11.101a2.5 2.5 0 0 1-.67 3.766L5.5 17.173A2.998 2.998 0 0 0 4 19.771v.232h16.001v-.232a3 3 0 0 0-1.5-2.598l-3.995-2.306a2.5 2.5 0 0 1-.67-3.766l.521-.626.002-.002c.8-.955 1.303-1.987 1.375-3.19.041-.706-.088-1.433-.187-1.727a3.717 3.717 0 0 0-.768-1.334 3.767 3.767 0 0 0-5.557 0c-.34.37-.593.82-.768 1.334-.1.294-.228 1.021-.187 1.727.072 1.203.575 2.235 1.375 3.19l.002.002.521.626zm5.727.657-.52.624a.5.5 0 0 0 .134.753l3.995 2.306a5 5 0 0 1 2.5 4.33v2.232H2V19.77a5 5 0 0 1 2.5-4.33l3.995-2.306a.5.5 0 0 0 .134-.753l-.518-.622-.002-.002c-1-1.192-1.735-2.62-1.838-4.356-.056-.947.101-1.935.29-2.49A5.713 5.713 0 0 1 7.748 2.87a5.768 5.768 0 0 1 8.505 0 5.713 5.713 0 0 1 1.187 2.043c.189.554.346 1.542.29 2.489-.103 1.736-.838 3.163-1.837 4.355m-.001.001z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},27905:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M7.155.406a1.18 1.18 0 0 1 1.69 0L10.46 2.06l2.312-.027a1.18 1.18 0 0 1 1.195 1.194L13.94 5.54l1.654 1.615a1.18 1.18 0 0 1 0 1.69L13.94 10.46l.027 2.312a1.18 1.18 0 0 1-1.195 1.195l-2.312-.027-1.615 1.654a1.18 1.18 0 0 1-1.69 0L5.54 13.94l-2.312.027a1.18 1.18 0 0 1-1.195-1.195l.027-2.312L.406 8.845a1.18 1.18 0 0 1 0-1.69L2.06 5.54l-.027-2.313a1.18 1.18 0 0 1 1.195-1.194l2.312.027L7.155.406zm4.503 6.067a.75.75 0 0 0-1.06-1.06L6.647 9.36 5.446 8.157a.75.75 0 1 0-1.06 1.06l2.264 2.265 5.009-5.01z'/>"},{size:24,svgContent:"<path d='M10.814.5a1.658 1.658 0 0 1 2.372 0l2.512 2.572 3.595-.043a1.658 1.658 0 0 1 1.678 1.678l-.043 3.595 2.572 2.512c.667.65.667 1.722 0 2.372l-2.572 2.512.043 3.595a1.658 1.658 0 0 1-1.678 1.678l-3.595-.043-2.512 2.572a1.658 1.658 0 0 1-2.372 0l-2.512-2.572-3.595.043a1.658 1.658 0 0 1-1.678-1.678l.043-3.595L.5 13.186a1.658 1.658 0 0 1 0-2.372l2.572-2.512-.043-3.595a1.658 1.658 0 0 1 1.678-1.678l3.595.043L10.814.5zm6.584 9.12a1 1 0 0 0-1.414-1.413l-6.011 6.01-1.894-1.893a1 1 0 0 0-1.414 1.414l3.308 3.308 7.425-7.425z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},57318:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25H1.75zM0 2.75C0 1.784.784 1 1.75 1h12.5c.967 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75z'/><path d='m6 5 5.196 3L6 11V5z'/>"},{size:24,svgContent:"<path d='M1 6a3 3 0 0 1 3-3h16a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6zm3-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4z'/><path d='m10 9 5.196 3L10 15V9z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},67139:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M11.196 8 6 5v6l5.196-3z'/><path d='M15.002 1.75A1.75 1.75 0 0 0 13.252 0h-10.5a1.75 1.75 0 0 0-1.75 1.75v12.5c0 .966.783 1.75 1.75 1.75h10.5a1.75 1.75 0 0 0 1.75-1.75V1.75zm-1.75-.25a.25.25 0 0 1 .25.25v12.5a.25.25 0 0 1-.25.25h-10.5a.25.25 0 0 1-.25-.25V1.75a.25.25 0 0 1 .25-.25h10.5z'/>"},{size:24,svgContent:"<path d='M15.196 12 10 9v6l5.196-3z'/><path d='M21 4a3 3 0 0 0-3-3H6a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V4zm-3-1a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},31450:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M9.741.85a.75.75 0 0 1 .375.65v13a.75.75 0 0 1-1.125.65l-6.925-4a3.642 3.642 0 0 1-1.33-4.967 3.639 3.639 0 0 1 1.33-1.332l6.925-4a.75.75 0 0 1 .75 0zm-6.924 5.3a2.139 2.139 0 0 0 0 3.7l5.8 3.35V2.8l-5.8 3.35zm8.683 4.29V5.56a2.75 2.75 0 0 1 0 4.88z'/><path d='M11.5 13.614a5.752 5.752 0 0 0 0-11.228v1.55a4.252 4.252 0 0 1 0 8.127v1.55z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02zM17 20.127a8.504 8.504 0 0 0 0-16.253v2.125a6.502 6.502 0 0 1 0 12.003v2.125z'/><path d='M17 16.032V7.968a4.5 4.5 0 0 1 0 8.064z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},33356:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M10.016 1.125A.75.75 0 0 0 8.99.85l-6.925 4a3.639 3.639 0 0 0 0 6.299l6.925 4a.75.75 0 0 0 1.125-.65v-13a.75.75 0 0 0-.1-.375zM11.5 5.56a2.75 2.75 0 0 1 0 4.88V5.56z'/><path d='M16 8a5.752 5.752 0 0 1-4.5 5.614v-1.55a4.252 4.252 0 0 0 0-8.127v-1.55A5.752 5.752 0 0 1 16 8z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM17 20.127a8.504 8.504 0 0 0 0-16.253v2.125a6.502 6.502 0 0 1 0 12.003v2.125z'/><path d='M17 7.968a4.5 4.5 0 0 1 0 8.064V7.968z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},19953:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M13.86 5.47a.75.75 0 0 0-1.061 0l-1.47 1.47-1.47-1.47A.75.75 0 0 0 8.8 6.53L10.269 8l-1.47 1.47a.75.75 0 1 0 1.06 1.06l1.47-1.47 1.47 1.47a.75.75 0 0 0 1.06-1.06L12.39 8l1.47-1.47a.75.75 0 0 0 0-1.06z'/><path d='M10.116 1.5A.75.75 0 0 0 8.991.85l-6.925 4a3.642 3.642 0 0 0-1.33 4.967 3.639 3.639 0 0 0 1.33 1.332l6.925 4a.75.75 0 0 0 1.125-.649v-1.906a4.73 4.73 0 0 1-1.5-.694v1.3L2.817 9.852a2.141 2.141 0 0 1-.781-2.92c.187-.324.456-.594.78-.782l5.8-3.35v1.3c.45-.313.956-.55 1.5-.694V1.5z'/>"},{size:24,svgContent:"<path d='M17.293 15.207a1 1 0 0 0 1.414 0l1.793-1.793 1.793 1.793a1 1 0 0 0 1.414-1.414L21.914 12l1.793-1.793a1 1 0 0 0-1.414-1.414L20.5 10.586l-1.793-1.793a1 1 0 1 0-1.414 1.414L19.086 12l-1.793 1.793a1 1 0 0 0 0 1.414zM14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},97089:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M9.741.85a.75.75 0 0 1 .375.65v13a.75.75 0 0 1-1.125.65l-6.925-4a3.642 3.642 0 0 1-1.33-4.967 3.639 3.639 0 0 1 1.33-1.332l6.925-4a.75.75 0 0 1 .75 0zm-6.924 5.3a2.139 2.139 0 0 0 0 3.7l5.8 3.35V2.8l-5.8 3.35zm8.683 4.29V5.56a2.75 2.75 0 0 1 0 4.88z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02zM17 16.032V7.968a4.5 4.5 0 0 1 0 8.064z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},11608:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M9.741.85a.75.75 0 0 1 .375.65v13a.75.75 0 0 1-1.125.65l-6.925-4a3.642 3.642 0 0 1-1.33-4.967 3.639 3.639 0 0 1 1.33-1.332l6.925-4a.75.75 0 0 1 .75 0zm-6.924 5.3a2.139 2.139 0 0 0 0 3.7l5.8 3.35V2.8l-5.8 3.35zm8.683 6.087a4.502 4.502 0 0 0 0-8.474v1.65a2.999 2.999 0 0 1 0 5.175v1.649z'/>"},{size:24,svgContent:"<path d='M14.5 1.134A1 1 0 0 1 15 2v20a1 1 0 0 1-1.5.866L2.846 16.712a5.445 5.445 0 0 1 0-9.424L13.5 1.135a1 1 0 0 1 1 0zM3.847 9.02a3.444 3.444 0 0 0 0 5.96L13 20.268V3.732L3.847 9.02zM17 18.326a7 7 0 0 0 0-12.653v2.326c1.215.912 2 2.365 2 4a4.992 4.992 0 0 1-2 4v2.327z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},96518:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='m4.347 1.122-.403 1.899A2.25 2.25 0 0 0 2 5.25v5.5a2.25 2.25 0 0 0 1.944 2.23l.403 1.898c.14.654.717 1.122 1.386 1.122h4.535c.668 0 1.246-.468 1.385-1.122l.404-1.899A2.25 2.25 0 0 0 14 10.75v-5.5a2.25 2.25 0 0 0-1.943-2.23l-.404-1.898A1.417 1.417 0 0 0 10.267 0H5.734c-.67 0-1.247.468-1.386 1.122zM5.8 1.5h4.4l.319 1.5H5.48l.32-1.5zM10.52 13l-.319 1.5H5.8L5.481 13h5.038zM4.25 4.5h7.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-.75.75h-7.5a.75.75 0 0 1-.75-.75v-5.5a.75.75 0 0 1 .75-.75z'/>"},{size:24,svgContent:"<path d='M6.916 1.584A2 2 0 0 1 8.873 0h6.4a2 2 0 0 1 1.957 1.584l.761 3.584A3.001 3.001 0 0 1 20 8v8a3 3 0 0 1-2.009 2.832l-.761 3.584A2 2 0 0 1 15.273 24h-6.4a2 2 0 0 1-1.957-1.584l-.75-3.534A3.001 3.001 0 0 1 4 16V8c0-1.367.915-2.52 2.165-2.882l.751-3.534zM8.235 5h7.676l-.637-3H8.873l-.638 3zm0 14 .638 3h6.4l.638-3H8.235zM7 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H7z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},26310:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M.833 5.994a.217.217 0 0 0 .298.024A10.923 10.923 0 0 1 8 3.603c2.6 0 4.99.904 6.868 2.415.09.073.223.063.3-.024l.779-.882a.21.21 0 0 0-.024-.303A12.523 12.523 0 0 0 8 2C4.996 2 2.24 3.053.077 4.809a.21.21 0 0 0-.024.303l.78.882z'/><path d='M13.822 7.518a.21.21 0 0 0-.026-.304A9.324 9.324 0 0 0 8 5.205a9.323 9.323 0 0 0-5.796 2.009.21.21 0 0 0-.026.304l.78.883a.219.219 0 0 0 .298.026A7.725 7.725 0 0 1 8 6.808c1.787 0 3.433.604 4.745 1.619.09.07.22.06.297-.026l.78-.883z'/><path d='M11.695 9.926a.208.208 0 0 0-.03-.305A6.126 6.126 0 0 0 8 8.411a6.13 6.13 0 0 0-3.666 1.21.208.208 0 0 0-.029.305l.782.885a.222.222 0 0 0 .294.031A4.528 4.528 0 0 1 8 10.013c.975 0 1.879.307 2.619.83.092.065.22.053.294-.032l.782-.885zM8 11.616a2.93 2.93 0 0 1 1.518.421.201.201 0 0 1 .04.307L8.16 13.928a.214.214 0 0 1-.32 0l-1.4-1.584a.201.201 0 0 1 .041-.307A2.93 2.93 0 0 1 8 11.617z'/>"},{size:24,svgContent:"<path d='M17.692 14.572a.3.3 0 0 0-.03-.424A8.755 8.755 0 0 0 12 12.073a8.755 8.755 0 0 0-5.663 2.075.3.3 0 0 0-.029.424l.916 1.059a.302.302 0 0 0 .423.031A6.808 6.808 0 0 1 12 14.092c1.65 0 3.164.588 4.353 1.57a.302.302 0 0 0 .423-.031l.916-1.06z'/><path d='M20.309 11.545a.302.302 0 0 0-.028-.425A12.651 12.651 0 0 0 12 8.036c-3.155 0-6.044 1.16-8.28 3.084a.302.302 0 0 0-.029.425l.916 1.06a.299.299 0 0 0 .421.029A10.704 10.704 0 0 1 12 10.054c2.653 0 5.084.97 6.972 2.58a.299.299 0 0 0 .421-.03l.916-1.06z'/><path d='M1.99 9.578a.297.297 0 0 0 .42.029A14.599 14.599 0 0 1 12 6.018c3.656 0 7.003 1.35 9.59 3.589a.297.297 0 0 0 .42-.03l.916-1.059a.303.303 0 0 0-.028-.425C19.964 5.541 16.158 4 12 4 7.842 4 4.037 5.54 1.102 8.093a.303.303 0 0 0-.028.425l.916 1.06zm10.232 11.32L15 17.686a.293.293 0 0 0-.016-.405 4.384 4.384 0 0 0-5.966 0 .293.293 0 0 0-.016.405l2.777 3.212a.293.293 0 0 0 .444 0z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},83680:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:"<path d='M1.47 1.47a.75.75 0 0 1 1.06 0L8 6.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L9.06 8l5.47 5.47a.75.75 0 1 1-1.06 1.06L8 9.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L6.94 8 1.47 2.53a.75.75 0 0 1 0-1.06z'/>"},{size:24,svgContent:"<path d='M3.293 3.293a1 1 0 0 1 1.414 0L12 10.586l7.293-7.293a1 1 0 1 1 1.414 1.414L13.414 12l7.293 7.293a1 1 0 0 1-1.414 1.414L12 13.414l-7.293 7.293a1 1 0 0 1-1.414-1.414L10.586 12 3.293 4.707a1 1 0 0 1 0-1.414z'/>"}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=e.desc,r=e.descId,n?"<desc ".concat(r?'id="'.concat(r,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},93616:(e,t,n)=>{"use strict";n.d(t,{J:()=>c,L:()=>l});var o=n(68901),i=n(59496),r=n(30619),a=n(50998),s=["iconSize","semanticColor","color","title","titleId","desc","descId","autoMirror"],l=function(e,t){return e.sort((function(e,t){return e.size-t.size})).reduce((function(e,n){return n.size<=t&&n.size>e.size?n:e}))},c=Spicetify.ReactComponent.IconComponent=function(e){var t=e.iconSize,n=void 0===t?24:t,l=e.semanticColor,c=(e.color,e.title),u=e.titleId,d=e.desc,p=e.descId,f=e.autoMirror,h=(0,o.Z)(e,s);return i.createElement(a.Z,Object.assign({role:"img",height:n,width:n,iconSize:n,iconColor:l,autoMirror:f,"aria-labelledby":c&&u?u:h["aria-labelledby"],"aria-describedby":d&&p?p:h["aria-describedby"],"aria-hidden":!c&&!u},h,{"data-encore-id":r.e.Icon}))}},24697:(e,t,n)=>{"use strict";n.d(t,{E:()=>_});var o=n(83150),i=n(51163),r=n(68492),a=n(68901),s=n(59496),l=n(30619),c=n(64709),u=function(){return(0,c.iv)(["vertical-align:middle;"])},d=function(){return(0,c.iv)(["",";",";",";",";",";",";"],(function(e){return e.imageWidth&&(0,c.iv)(["inline-size:",";"],e.imageWidth)}),(function(e){return e.imageHeight&&(0,c.iv)(["block-size:",";"],e.imageHeight)}),(function(e){return e.borderRadius&&(0,c.iv)(["border-radius:",";"],e.borderRadius)}),(function(e){return e.circle&&(0,c.iv)(["border-radius:50%;"])}),(function(e){return e.crop&&(0,c.iv)(["object-fit:cover;"])}),(function(e){return e.fluid&&(0,c.iv)(["max-inline-size:100%;block-size:auto;"])}))},p=c.ZP.div.withConfig({displayName:"Image__PlaceholderImageWrapper",componentId:"sc-1u215sg-0"})(["overflow:hidden;img{",";filter:blur(20px);transform:scale(1.03);}",";"],u(),d()),f=c.ZP.img.withConfig({displayName:"Image__PlaceholderImage",componentId:"sc-1u215sg-1"})(["",";inline-size:100%;block-size:100%;"],u()),h=c.ZP.img.withConfig({displayName:"Image__StyledLazyImage",componentId:"sc-1u215sg-2"})(["",";display:",";",";"],u(),(function(e){return e.isLoaded?"initial":"none"}),d());const m=c.ZP.img.withConfig({displayName:"Image",componentId:"sc-1u215sg-3"})(["",";"],d());function g(e,t){var n="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype,o=(0,s.useRef)(null),i=(0,s.useCallback)((function(n){n.forEach((function(n){n.isIntersecting&&o.current&&e.current&&(o.current.unobserve(e.current),t())}))}),[t,e]),r=(0,s.useCallback)((function(){n?(o.current=new IntersectionObserver(i),e.current&&o.current.observe(e.current)):t()}),[t,i,n,e]);(0,s.useEffect)((function(){r()}),[r])}var v=["alt","onLoad"];var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.StyledLazyImage,n=void 0===t?h:t,o=e.PlaceholderImage,i=void 0===o?f:o,l=e.useInView,c=void 0===l?g:l;return function(e){var t=e.alt,o=void 0===t?"":t,l=e.onLoad,u=(0,a.Z)(e,v),d=(0,s.useRef)(null),f=(0,s.useState)(!1),h=(0,r.Z)(f,2),m=h[0],g=h[1],y=(0,s.useState)(!1),_=(0,r.Z)(y,2),b=_[0],S=_[1],E=s.createElement(n,Object.assign({},u,{alt:o,ref:d,onLoad:function(e){S(!0),l&&l(e)},isLoaded:b})),A=s.createElement(p,u,s.createElement(i,{alt:o,ref:d,src:u.placeholderSrc}));return c(d,(function(){g(!0)})),m?s.createElement(s.Fragment,null,!b&&A,E):A}}(),_=function(e){var t=(0,i.Z)({},((0,o.Z)(e),e));return"placeholderSrc"in t&&t.placeholderSrc?s.createElement(y,Object.assign({},t,{"data-encore-id":l.e.Image})):s.createElement(m,Object.assign({},t,{"data-encore-id":l.e.Image}))}},99966:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var o=n(59496),i=n(3992),r=n(68492);var a=i.Y.isUsingKeyboard,s=function(e){var t=function(e){var t=(0,o.useState)(e),n=(0,r.Z)(t,2),i=n[0],a=n[1],s=function(){return a(!1)},l=function(e){switch(e.key){case"Tab":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":a(!0)}};return(0,o.useEffect)((function(){return window.addEventListener("keydown",l),window.addEventListener("mousedown",s),window.addEventListener("touchstart",s),function(){window.removeEventListener("keydown",l),window.removeEventListener("mousedown",s),window.removeEventListener("touchstart",s)}}),[]),{isUsingKeyboard:i,setIsUsingKeyboard:a}}(a),n=t.isUsingKeyboard;return o.createElement(i.t.Provider,{value:{isUsingKeyboard:n}},e.children)}},9708:(e,t,n)=>{"use strict";n.d(t,{w:()=>N,l:()=>I});var o=n(68492),i=n(68901),r=n(59496),a=n(58706),s=n(58896),l=n(78400),c=n(55042),u=n(98306),d=n(83747),p=n(76084),f=n(64709),h={sm:a.hM$,md:a.dly,lg:a.dly,xl:a.nuo,xxl:a.nuo},m={sm:"2px",md:"2px",lg:"2px",xl:a.hM$,xxl:a.hM$},g={sm:a.mGT,md:a.JBZ,lg:a.cQs,xl:a.cQs,xxl:a.cQs},v=f.ZP.div.withConfig({displayName:"Areas__InteractiveArea",componentId:"sc-8gfrea-0"})(["& button,& a,& [role='button'],& [role='link']{position:relative;z-index:1;}"]),y=f.ZP.div.withConfig({displayName:"Areas__HeaderSideArea",componentId:"sc-8gfrea-1"})(["grid-column:1;gap:",";",""],a.o78,(function(e){var t=e.layout,n=e.hasBodyOrFooter;return"wide"===t&&n&&(0,f.iv)(["grid-row:span 2;"])})),_=f.ZP.div.withConfig({displayName:"Areas__HeaderSideAreaFlexContainer",componentId:"sc-8gfrea-2"})(["display:flex;gap:",";align-items:center;height:100%;",""],a.nuo,(function(e){return"wide"===e.layout&&(0,f.iv)(["height:auto;"])})),b=f.ZP.div.withConfig({displayName:"Areas__HeaderArea",componentId:"sc-8gfrea-3"})(["",""],(function(e){var t=e.horizontalGap;return(0,f.iv)(["grid-column-end:-1;gap:",";align-items:center;display:flex;justify-content:space-between;"],t)})),S=(0,f.ZP)(v).withConfig({displayName:"Areas__BottomArea",componentId:"sc-8gfrea-4"})([""," "," ",""],(function(e){return"wide"===e.layout?(0,f.iv)(["grid-column:2;"]):(0,f.iv)(["grid-column:span 2;"])}),(function(e){return e.hasNoBody&&(0,f.iv)(["display:flex;align-items:flex-end;"])}),(function(e){var t=e.hasNoBody,n=e.layout;return t&&"wide"!==n&&(0,f.iv)(["grid-column:span 2;"])})),E=(0,f.ZP)(v).withConfig({displayName:"Areas__Column",componentId:"sc-8gfrea-5"})(["",""],(function(e){var t=e.size,n=e.titleGap;return(0,f.iv)(["display:flex;flex-direction:column;gap:",";"],n||m[t])})),A=(0,f.ZP)(v).withConfig({displayName:"Areas__LeadingSlot",componentId:"sc-8gfrea-6"})(["flex-shrink:0;"]),T=(0,f.ZP)(v).withConfig({displayName:"Areas__TrailingSlot",componentId:"sc-8gfrea-7"})(["flex-shrink:0;align-self:stretch;display:flex;align-items:center;"]),P=n(37574),O=(0,f.ZP)(P.x).withConfig({displayName:"Box",componentId:"sc-8t9c76-0"})(["",""],(function(e){var t=e.hasLeadingOrMedia,n=e.contentAlign,o=e.verticalGap,i=e.horizontalGap;return(0,f.iv)(["display:grid;grid-gap:"," ",";grid-template-columns:",";grid-auto-rows:auto 1fr auto;&[disabled]{opacity:",";}",""],o,i,t?"auto 1fr":"1fr",a.crY,n&&(0,f.iv)(["margin-inline-start:-",";margin-inline-end:-",";"],a.nuo,a.nuo))})),C=n(88093),k=f.ZP.button.withConfig({displayName:"RowButton",componentId:"sc-xxkq4e-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:transparent;border:none;width:100%;&:focus{outline:none;}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],C.cp),R=f.ZP.div.withConfig({displayName:"RowMouseLink",componentId:"sc-hvecl1-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;"]),L=["title","disabled","aria-disabled","subtitle","pretitle","media","leading","trailing","body","footer","size","titleGap","verticalGap","horizontalGap","layout","contentAlign","onClick","onClickHint","isRedundantOnClick","isNavigational","isSelected","id"],I=(0,r.createContext)(null),N=r.forwardRef((function(e,t){var n=e.title,f=e.disabled,m=e["aria-disabled"],v=e.subtitle,P=e.pretitle,C=e.media,N=e.leading,w=e.trailing,D=e.body,M=e.footer,x=e.size,F=void 0===x?"lg":x,U=e.titleGap,B=e.verticalGap,V=void 0===B?a.dly:B,G=e.horizontalGap,J=void 0===G?a.nuo:G,j=e.layout,H=void 0===j?"regular":j,K=e.contentAlign,Y=void 0!==K&&K,W=e.onClick,z=e.onClickHint,q=e.isRedundantOnClick,X=void 0!==q&&q,Z=e.isNavigational,Q=void 0!==Z&&Z,$=e.isSelected,ee=e.id,te=(0,i.Z)(e,L);Q&&(0,s.iw)("isNavigational","isRedundantOnClick","ListRow");var ne=(0,r.useState)(!1),oe=(0,o.Z)(ne,2),ie=oe[0],re=oe[1],ae=!(!f&&!m),se=!(!D&&!M),le=!(!N&&!C);return r.createElement(I.Provider,{value:ee},r.createElement(O,Object.assign({role:"group","aria-labelledby":"listrow-title-".concat(ee),ref:t,paddingBlockStart:h[F],paddingBlockEnd:h[F],minBlockSize:g[F],contentAlign:Y,isInteractive:!!W,hasFocus:ie,tabIndex:void 0,hasLeadingOrMedia:le,disabled:ae,verticalGap:V,horizontalGap:J},te),W&&r.createElement(r.Fragment,null,X||Q?r.createElement(R,{onClick:W,onMouseDown:function(){return re(!0)},onTouchStart:function(){return re(!0)},onMouseUp:function(){return re(!1)},onTouchEnd:function(){return re(!1)},"data-testid":"mouse-only-link"}):r.createElement(k,{onClick:W,role:"boolean"==typeof $?"switch":void 0,disabled:!!ae,"aria-checked":$,"aria-labelledby":"listrow-title-".concat(ee," listrow-subtitle-").concat(ee),"aria-describedby":"onClickHint".concat(ee),onFocus:function(){return re(!0)},onBlur:function(){return re(!1)}}),r.createElement("div",{style:{display:"none"},id:"onClickHint".concat(ee)},z)),(N||C)&&r.createElement(y,{layout:H,hasBodyOrFooter:se},r.createElement(_,{layout:H},N&&r.createElement(A,null,N),(0,l.Q)(C,r.createElement(u.d,{size:F,src:C})))),r.createElement(b,{horizontalGap:J},r.createElement(E,{size:F,titleGap:U},(0,l.Q)(P,r.createElement(c.o,null,P)),(0,l.Q)(n,r.createElement(p.g,{variant:"sm"===F?"mesto":"ballad",id:"listrow-title-".concat(ee)},n)),(0,l.Q)(v,r.createElement(d.l,null,v))),w&&r.createElement(T,null,w)),D&&r.createElement(S,{hasNoBody:!D,layout:H},(0,l.Q)(D,r.createElement(c.o,null,D))),M&&r.createElement(S,{hasNoBody:!D,layout:H},(0,l.Q)(M,r.createElement(c.o,null,M)))))}))},55042:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var o=n(68901),i=n(59496),r=n(64709),a=n(56162),s=["lineClamp","children","variant","semanticColor","as","hasTextSeparator"],l=r.ZP.span.withConfig({displayName:"ListRowDetails__LineClamp",componentId:"sc-sozu4l-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),c=i.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,c=e.variant,u=void 0===c?"mesto":c,d=e.semanticColor,p=void 0===d?"textSubdued":d,f=e.as,h=void 0===f?"p":f,m=e.hasTextSeparator,g=void 0!==m&&m,v=(0,o.Z)(e,s),y=r;return g&&Array.isArray(r)&&(y=i.createElement(i.Fragment,null,r.map((function(e,t){return r.length-1===t?e:i.createElement(i.Fragment,null,e," • ")})))),i.createElement(a.D,Object.assign({as:h,variant:u,semanticColor:p},v,{ref:t}),n?i.createElement(l,{lineClamp:n},y):y)}))},98306:(e,t,n)=>{"use strict";n.d(t,{d:()=>p});var o=n(68901),i=n(59496),r=n(58706),a=n(48712),s=n(64709),l=n(24697),c=["size","imageWidth","imageHeight","borderRadius","alt"],u={sm:r.o78,md:r.g4V,lg:r.JBZ,xl:r.lM8,xxl:"88px"},d=(0,s.ZP)(l.E).withConfig({displayName:"ListRowImage__ListRowImageComponent",componentId:"sc-1uaxq9n-0"})(["flex-shrink:0;object-fit:cover;"]),p=function(e){var t=e.size,n=void 0===t?"lg":t,r=e.imageWidth,s=e.imageHeight,l=e.borderRadius,p=void 0===l?a.spacer4:l,f=e.alt,h=void 0===f?"":f,m=(0,o.Z)(e,c);return r||s?i.createElement(d,Object.assign({alt:h,imageWidth:r,imageHeight:s,borderRadius:p},m)):i.createElement(d,Object.assign({alt:h,imageWidth:u[n],imageHeight:u[n],borderRadius:p},m))}},83747:(e,t,n)=>{"use strict";n.d(t,{l:()=>l});var o=n(68901),i=n(59496),r=n(9708),a=n(55042),s=["id"],l=i.forwardRef((function(e,t){var n=e.id,l=(0,o.Z)(e,s),c=(0,i.useContext)(r.l),u=c?"listrow-subtitle-".concat(c):void 0;return i.createElement(a.o,Object.assign({ref:t,id:n||u},l))}))},76084:(e,t,n)=>{"use strict";n.d(t,{g:()=>p});var o=n(68901),i=n(59496),r=n(64709),a=n(9708),s=n(80885),l=n(56162),c=["lineClamp","children","variant","as","onClick","aria-describedby","id","href"],u=r.ZP.span.withConfig({displayName:"ListRowTitle__LineClamp",componentId:"sc-1xe2if1-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),d=(0,r.ZP)(l.D).withConfig({displayName:"ListRowTitle__ListRowType",componentId:"sc-1xe2if1-1"})(["outline:none;text-decoration:none;&:focus{","}",""],s.j4,(function(e){return(e.onClick||e.href)&&" &:hover {\n text-decoration: underline;\n }"})),p=i.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,s=e.variant,l=void 0===s?"ballad":s,p=e.as,f=void 0===p?"p":p,h=e.onClick,m=e["aria-describedby"],g=e.id,v=e.href,y=(0,o.Z)(e,c),_=(0,i.useContext)(a.l),b=_?"listrow-title-".concat(_):void 0,S=_&&h?"onClickHint".concat(_):void 0;return i.createElement(d,Object.assign({id:g||b,forwardedAs:v?"a":f,onClick:h,variant:l,"aria-describedby":m||S,ref:t,href:v},y),n?i.createElement(u,{lineClamp:n},r):r)}))},11216:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var o=n(68901),i=n(59496),r=n(30619),a=n(64709),s=n(3254),l=(0,a.F4)(["0%{animation-timing-function:cubic-bezier(1,0,0.7,1);opacity:0.5;transform:scale(1);}40%{animation-timing-function:cubic-bezier(0.3,0,0,1);opacity:0.75;transform:scale(1.3);}72.5%{animation-timing-function:linear;opacity:0.5;transform:scale(1);}100%{opacity:0.5;transform:scale(1);}"]),c=a.ZP.circle.withConfig({displayName:"LoadingIndicatorCircle",componentId:"sc-enjajd-0"})(["fill:",";animation:"," 1.32s linear infinite;transform-origin:center;&:nth-of-type(2){animation-delay:0.1s;}&:nth-of-type(3){animation-delay:0.2s;}[dir='rtl'] &{&:nth-of-type(1){animation-delay:0.2s;}&:nth-of-type(3){animation-delay:0s;}}"],(0,s.NE)(s.iK.essentialBase),l),u=n(18542),d=function(e){switch(e){case"sm":return 56;case"md":return 84;case"lg":return 112;default:return(0,u.vE)(e)}},p=a.ZP.svg.withConfig({displayName:"LoadingIndicatorSvg",componentId:"sc-dj4dcm-0"})(["content:'';block-size:","px;inline-size:","px;"],(function(e){return d(e.indicatorSize)/4.5}),(function(e){return d(e.indicatorSize)})),f=["indicatorSize","role","ariaValueText"];var h=Object.assign((function(e){var t=e.indicatorSize,n=void 0===t?"sm":t,a=e.role,s=void 0===a?"progressbar":a,l=e.ariaValueText,u=void 0===l?"Loading":l,d=(0,o.Z)(e,f);return i.createElement(p,Object.assign({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 1 100",xmlSpace:"preserve",indicatorSize:n,role:s,"aria-valuetext":u},d,{"data-encore-id":r.e.LoadingIndicator}),i.createElement(c,{stroke:"none",cx:"-140",cy:"50",r:"32"}),i.createElement(c,{stroke:"none",cx:"0",cy:"50",r:"32"}),i.createElement(c,{stroke:"none",cx:"140",cy:"50",r:"32"}))}),{sm:"sm",md:"md",lg:"lg"})},84588:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var o=n(68901),i=n(59496),r=n(64709),a=n(30619),s=n(3254),l=["list","children"],c=r.ZP.div.withConfig({displayName:"NavBar__NavBarPage",componentId:"sc-1guraqe-0"})(["color:",";overflow-wrap:break-word;"],(0,s.NE)(s.iK.textBase)),u=function(e){var t=e.list,n=e.children,r=(0,o.Z)(e,l);return i.createElement("section",Object.assign({},r,{"data-encore-id":a.e.NavBar}),t,i.createElement(c,null,n))}},78780:(e,t,n)=>{"use strict";n.d(t,{F:()=>p});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(30619),l=n(81239),c=n(49170),u=["as"],d=(0,a.ZP)(c.d).attrs({condensedAll:!0,listStyleReset:!0}).withConfig({displayName:"NavBarList__NavBarListElement",componentId:"sc-19lzbdt-0"})(["display:flex;margin-block-end:",";overflow-x:auto;overflow-wrap:break-word;padding:",";-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"],(0,l.mA)(-1,r.nuo),(0,l.mA)(-5,"2px")),p=i.forwardRef((function(e,t){var n=e.as,r=(0,o.Z)(e,u);return i.createElement(d,Object.assign({},r,{ref:t,forwardedAs:n,"data-encore-id":s.e.NavBarList}))}))},17096:(e,t,n)=>{"use strict";n.d(t,{c:()=>S});var o=n(68901),i=n(59496),r=n(4107),a=n(30619),s=n(58706),l=n(64709),c=n(98590),u=n(81239),d=n(3254),p=n(14911),f=n(46267),h=["component","isActive","isDisabled","isHover","isFocus","useBrowserDefaultFocusStyle","sentenceCase"],m=i.forwardRef((function(e,t){var n=e.component,r=(e.isActive,e.isDisabled,e.isHover,e.isFocus,e.useBrowserDefaultFocusStyle,e.sentenceCase,(0,o.Z)(e,h));return i.createElement(n,Object.assign({ref:t},r))}));m.displayName="NavBarListItemLink";var g=(0,l.ZP)(m).withConfig({displayName:"Link",componentId:"sc-1g2blu2-0"})(["",";border:0;display:inline-block;padding-block-start:",";padding-inline-end:",";padding-block-end:10px;padding-inline-start:",";text-decoration:none;transition:"," color linear;color:",";",";",";",";",";li:first-child > &{margin-inline-start:0;padding-inline-start:0;}li:last-child > &{margin-inline-end:0;padding-inline-end:0;}"," &::after{background-color:transparent;content:'';display:block;block-size:2px;margin-block-start:0;margin-inline-end:auto;margin-block-end:calc(-1 * ",");margin-inline-start:auto;position:relative;top:",";transition:background-color ",";inline-size:",";",";",";}","{margin-block-start:calc(-1 * ",");margin-block-end:calc(-1 * ",");}"],(function(e){return e.sentenceCase?(0,c.Vr)():(0,c.bx)()}),(0,u.mA)(-1,s.nuo),(0,u.mA)(0,s.o78),(0,u.mA)(0,s.o78),"0.2s",(0,d.NE)(d.iK.textSubdued),(function(e){return!e.isActive&&!e.isDisabled&&(0,l.iv)(["&:hover{color:",";}&:active{opacity:",";}"],(0,d.NE)(d.iK.textBase),p.MQ)}),(function(e){return(e.isActive||e.isHover)&&(0,l.iv)(["color:",";"],(0,d.NE)(d.iK.textBase))}),(function(e){return e.isFocus&&e.sentenceCase&&(0,l.iv)(["color:",";"],(0,d.NE)(d.iK.textBase))}),(function(e){return e.isDisabled&&(0,l.iv)(["opacity:",";cursor:not-allowed;pointer-events:none;"],p.Zx)}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,l.iv)(["&[href]:focus{outline:none;",";&:after{background-color:",";inline-size:100%;}}"],e.sentenceCase&&(0,l.iv)(["color:",";"],(0,d.NE)(d.iK.textBase)),(0,d.NE)(d.iK.essentialBase))}),(0,u.mA)(-5,"2px"),s.dly,"0.3s",(function(e){return e.sentenceCase?s.o78:"30px"}),(function(e){return e.isFocus&&(0,l.iv)(["background-color:",";inline-size:100%;"],(0,d.NE)(d.iK.essentialBase))}),(function(e){return e.isActive&&(0,l.iv)(["background-color:",";"],e.sentenceCase?(0,d.NE)(d.iK.essentialBase):(0,d.NE)(d.iK.essentialBrightAccent))}),f.s,(0,u.mA)(-4,s.hM$),(0,u.mA)(-4,s.hM$)),v=n(9465),y=n(93107),_=(0,l.ZP)(y.n).attrs({variant:"ballad",condensed:!0,listStyleReset:!0}).withConfig({displayName:"ListItem",componentId:"sc-qa47qy-0"})(["",";overflow-wrap:break-word;"],(0,v.D)()),b=["label","active","disabled","href","role","isHover","isFocus","component","sentenceCase","children"],S=i.forwardRef((function(e,t){var n=e.label,s=e.active,l=e.disabled,c=e.href,u=e.role,d=e.isHover,p=e.isFocus,f=e.component,h=void 0===f?"a":f,m=e.sentenceCase,v=void 0===m||m,y=e.children,S=(0,o.Z)(e,b),E=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(_,{"data-encore-id":a.e.NavBarListItem},i.createElement(g,Object.assign({ref:t,isActive:s,isDisabled:l,isHover:d,isFocus:p,component:h,sentenceCase:v,"aria-current":s?"page":void 0,useBrowserDefaultFocusStyle:E,href:l?void 0:c,"aria-disabled":l,role:l&&"button"!==h?"link":u},S),y||n))}))},36028:(e,t,n)=>{"use strict";n.d(t,{W:()=>b});var o=n(68901),i=n(59496),r=n(30619),a=n(3254),s=n(58706),l=n(64709),c=l.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-6c3c1v-0"})(["fill:",";stroke:transparent;"],(function(e){return e.useBrandColor?s.By7:(0,a.NE)(e.semanticColor)})),u=["condensed","color","semanticColor","useBrandColor","label"],d=function(e){var t=e.condensed,n=e.color,a=e.semanticColor,s=void 0===a?"decorativeBase":a,l=e.useBrandColor,d=e.label,p=void 0===d?"Spotify":d,f=(0,o.Z)(e,u);return i.createElement(c,Object.assign({role:"img",color:n,viewBox:t?"0 0 26 24":"0 0 78 24",semanticColor:s,useBrandColor:l,"aria-label":p,"aria-hidden":""===p},f,{"data-encore-id":r.e.LogoSpotify}),i.createElement("title",null,p),i.createElement("path",{d:"M18.616 10.639c-3.77-2.297-9.99-2.509-13.59-1.388a1.077 1.077 0 0 1-1.164-.363 1.14 1.14 0 0 1-.119-1.237c.136-.262.37-.46.648-.548 4.132-1.287 11-1.038 15.342 1.605a1.138 1.138 0 0 1 .099 1.863 1.081 1.081 0 0 1-.813.213c-.142-.02-.28-.07-.403-.145Zm-.124 3.402a.915.915 0 0 1-.563.42.894.894 0 0 1-.69-.112c-3.144-1.983-7.937-2.557-11.657-1.398a.898.898 0 0 1-.971-.303.952.952 0 0 1-.098-1.03.929.929 0 0 1 .54-.458c4.248-1.323 9.53-.682 13.14 1.595a.95.95 0 0 1 .3 1.286Zm-1.43 3.267a.73.73 0 0 1-.45.338.712.712 0 0 1-.553-.089c-2.748-1.722-6.204-2.111-10.276-1.156a.718.718 0 0 1-.758-.298.745.745 0 0 1-.115-.265.757.757 0 0 1 .092-.563.737.737 0 0 1 .457-.333c4.455-1.045 8.277-.595 11.361 1.338a.762.762 0 0 1 .241 1.028ZM11.696 0C5.237 0 0 5.373 0 12c0 6.628 5.236 12 11.697 12 6.46 0 11.698-5.372 11.698-12 0-6.627-5.238-12-11.699-12h.001Zm20.126 11.078c-2.019-.494-2.379-.84-2.379-1.57 0-.688.633-1.151 1.572-1.151.91 0 1.814.352 2.76 1.076a.131.131 0 0 0 .187-.03l.987-1.426a.139.139 0 0 0-.025-.185c-1.127-.928-2.396-1.378-3.88-1.378-2.18 0-3.703 1.342-3.703 3.263 0 2.06 1.315 2.788 3.585 3.352 1.932.457 2.258.84 2.258 1.524 0 .757-.659 1.229-1.72 1.229-1.18 0-2.141-.408-3.216-1.364a.13.13 0 0 0-.188.016l-1.106 1.35a.137.137 0 0 0 .013.188c1.252 1.147 2.79 1.752 4.451 1.752 2.35 0 3.869-1.317 3.869-3.356 0-1.723-1.003-2.676-3.465-3.29Zm10.487 2.31c0 1.454-.874 2.47-2.125 2.47-1.235 0-2.169-1.061-2.169-2.47 0-1.41.933-2.47 2.17-2.47 1.23 0 2.124 1.038 2.124 2.47Zm-1.706-4.354c-1.018 0-1.854.412-2.543 1.256v-.95a.136.136 0 0 0-.038-.095.132.132 0 0 0-.093-.04h-1.81a.131.131 0 0 0-.093.04.136.136 0 0 0-.039.096v10.546c0 .076.06.137.133.137h1.809a.132.132 0 0 0 .093-.041.136.136 0 0 0 .038-.096v-3.329c.69.794 1.525 1.18 2.543 1.18 1.893 0 3.808-1.494 3.808-4.35 0-2.858-1.915-4.354-3.808-4.354Zm8.72 6.839c-1.297 0-2.274-1.068-2.274-2.486 0-1.422.943-2.455 2.244-2.455 1.305 0 2.288 1.069 2.288 2.487 0 1.422-.949 2.454-2.258 2.454Zm0-6.838c-2.438 0-4.347 1.926-4.347 4.383 0 2.432 1.896 4.338 4.317 4.338 2.445 0 4.36-1.92 4.36-4.369 0-2.44-1.901-4.353-4.33-4.353Zm9.535.17h-1.99V7.117a.136.136 0 0 0-.08-.126.13.13 0 0 0-.052-.01h-1.809a.133.133 0 0 0-.093.04.136.136 0 0 0-.038.095v2.087h-.87a.131.131 0 0 0-.122.085.139.139 0 0 0-.01.052v1.595c0 .074.06.135.132.135h.87v4.126c0 1.667.809 2.513 2.404 2.513.648 0 1.186-.138 1.694-.434a.135.135 0 0 0 .067-.117V15.64a.137.137 0 0 0-.063-.115.13.13 0 0 0-.129-.006c-.349.18-.685.263-1.061.263-.58 0-.84-.271-.84-.876V11.07h1.99a.13.13 0 0 0 .094-.04.136.136 0 0 0 .039-.096V9.339a.137.137 0 0 0-.039-.096.132.132 0 0 0-.094-.04v.001Zm6.934.007v-.255c0-.755.281-1.092.914-1.092.376 0 .68.077 1.019.194a.13.13 0 0 0 .118-.02.135.135 0 0 0 .056-.11V6.365a.137.137 0 0 0-.026-.081.133.133 0 0 0-.068-.05 4.852 4.852 0 0 0-1.502-.22c-1.67 0-2.554.965-2.554 2.788v.393h-.87a.132.132 0 0 0-.093.04.136.136 0 0 0-.038.096v1.603c0 .075.059.136.132.136h.87v6.364c0 .075.058.135.131.135h1.809c.072 0 .131-.06.131-.135V11.07h1.69l2.586 6.362c-.294.669-.583.802-.977.802-.319 0-.654-.098-.998-.29a.133.133 0 0 0-.105-.01.135.135 0 0 0-.078.072l-.612 1.38a.137.137 0 0 0 .056.175 3.733 3.733 0 0 0 1.932.508c1.334 0 2.073-.638 2.724-2.355l3.137-8.317a.14.14 0 0 0-.014-.126.131.131 0 0 0-.108-.06h-1.883a.132.132 0 0 0-.126.092l-1.928 5.651L69.006 9.3a.133.133 0 0 0-.124-.088h-3.09v.001Zm-4.02-.008h-1.809a.132.132 0 0 0-.093.041.136.136 0 0 0-.038.096v8.094c0 .075.06.135.132.135h1.809c.072 0 .131-.06.131-.135V9.34a.136.136 0 0 0-.038-.096.133.133 0 0 0-.094-.04Zm-.896-3.685a1.295 1.295 0 0 0-.919.393c-.243.25-.379.586-.377.937a1.342 1.342 0 0 0 .377.938 1.304 1.304 0 0 0 .92.393c.346-.002.677-.143.92-.393s.379-.587.377-.938c0-.735-.581-1.33-1.296-1.33h-.002Zm15.918 4.49h-.331v.434h.331c.165 0 .264-.083.264-.216 0-.142-.099-.217-.264-.217Zm.215.619.36.517h-.304l-.323-.474h-.279v.474h-.254v-1.37h.595c.31 0 .515.163.515.436a.412.412 0 0 1-.31.417Zm-.282-1.31c-.652 0-1.146.532-1.146 1.183 0 .65.49 1.175 1.139 1.175.652 0 1.147-.532 1.147-1.183 0-.65-.492-1.174-1.14-1.174Zm-.007 2.488a1.259 1.259 0 0 1-.904-.384 1.296 1.296 0 0 1-.368-.92c0-.717.563-1.314 1.279-1.314a1.259 1.259 0 0 1 .903.384 1.295 1.295 0 0 1 .369.921c0 .717-.563 1.314-1.279 1.314Z"}))},p=l.ZP.div.withConfig({displayName:"Body",componentId:"sc-m7zahm-0"})(["flex:1;overflow-y:auto;position:relative;"]),f=n(14911),h=l.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1833vcv-0"})(["display:none;@media (min-width:","){display:block;position:relative;padding-inline-start:",";padding-inline-end:",";padding-block-start:",";}"],s.SA3,f.tS,f.tS,f.tS),m=n(81239),g=l.ZP.header.withConfig({displayName:"Header",componentId:"sc-f0r0bu-0"})(["h1,h2,h3,p{margin-block-end:0;margin-block-start:0;}@media (max-width:","){padding:",";}@media (min-width:","){padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}"],s.gXv,(0,m.mA)(0,s.o78),s.SA3,f.tS,f.tS,f.tS),v=n(9465),y=l.ZP.nav.attrs({role:"navigation"}).withConfig({displayName:"Nav",componentId:"sc-165gcru-0"})(["",";background-color:var(--background-base,",");color:var(--text-subdued,",");display:flex;flex-direction:column;overflow-wrap:break-word;@media (min-width:","){height:100vh;padding-block-end:",";padding-block-start:",";position:relative;inline-size:",";}.docs-story &{block-size:100%;}"],(0,v.D)(),a.cv.background.base,a.cv.text.subdued,s.SA3,f.tS,f.tS,f.V9),_=["children","colorSet","header","footer","className"],b=function(e){var t=e.children,n=e.colorSet,s=void 0===n?"mutedAccent":n,l=e.header,c=e.footer,u=e.className,f=(0,o.Z)(e,_);return i.createElement(y,Object.assign({className:(0,a.Mg)(s,u)},f,{"data-encore-id":r.e.Navigation}),l&&i.createElement(g,null,l),i.createElement(p,null,t),i.createElement(h,null,c?i.createElement(i.Fragment,null,c):i.createElement(d,{height:"24",semanticColor:"textSubdued","aria-label":"Spotify"})))}},99902:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var o=n(58706),i=n(64709),r=n(49170),a=(0,i.ZP)(r.d).attrs({condensedAll:!0,listStyleReset:!0,forwardedAs:"dl"}).withConfig({displayName:"List",componentId:"sc-bff34i-0"})(["",";@media (max-width:","){display:flex;inline-size:100%;}"],(function(e){return e.flex&&(0,i.iv)(["@media (max-width:","){justify-content:space-between;}"],o.gXv)}),o.gXv)},32333:(e,t,n)=>{"use strict";n.d(t,{b:()=>u});var o=n(68901),i=n(59496),r=n(30619),a=n(99902),s=n(58706),l=n(64709).ZP.div.withConfig({displayName:"Nav",componentId:"sc-y9ijly-0"})(["@media (max-width:","){display:flex;flex-direction:row;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:auto;white-space:nowrap;}"," &{@media (max-width:","){display:none;}}@media (min-width:","){display:block;}"],s.gXv,a.a,s.gXv,s.SA3),c=["flexMobile","children"],u=function(e){var t=e.flexMobile,n=void 0===t||t,s=e.children,u=(0,o.Z)(e,c);return i.createElement(l,Object.assign({},u,{"data-encore-id":r.e.NavigationList}),i.createElement(a.a,{flex:n},s))}},98252:(e,t,n)=>{"use strict";n.d(t,{_:()=>E});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(58706),c=n(64709),u=n(3254),d=n(14911),p=n(50823),f=n(98590),h=n(81239),m=n(99902),g=n(9465),v=c.ZP.dd.withConfig({displayName:"ListItem",componentId:"sc-1id3bok-0"})(["",";margin-inline-start:0;@media (max-width:","){display:inline-block;}"],(0,g.D)(),l.gXv),y=["component","active","disabled","useBrowserDefaultFocusStyle","isUsingKeyboard"],_=c.ZP.span.withConfig({displayName:"Link__LinkChildWrapper",componentId:"sc-7welv8-0"})(["position:relative;"]),b=(0,c.ZP)(i.forwardRef((function(e,t){var n=e.component,r=(e.active,e.disabled,e.useBrowserDefaultFocusStyle,e.isUsingKeyboard,(0,o.Z)(e,y));return i.createElement(n,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-7welv8-1"})(["color:var(--text-subdued,",");display:block;position:relative;transition:color ",";text-decoration:none;",":last-child ",":last-child &{@media (max-width:","){margin-inline-end:0;}}","::after{content:'';"," @media (max-width:","){",";border-width:2px;}}&:focus{","}&:hover,&:active{color:var(--text-base,",");}",";",";"," line-height:1;@media (max-width:","){margin-inline-end:",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (min-width:","){line-height:1;overflow:hidden;padding-block-start:9px;padding-block-end:9px;padding-inline-start:",";padding-inline-end:",";}"," "," &{@media (min-width:","){padding-inline-start:",";","}}"],u.cv.text.subdued,d.CR,m.a,v,l.gXv,_,(0,p._3)(1),l.gXv,(0,p._3)(-2),(function(e){var t=e.useBrowserDefaultFocusStyle,n=e.isUsingKeyboard;return!t&&n&&(0,c.iv)(["","::after{border-color:var(--text-base,",");@media (max-width:","){width:100%;left:0;[dir='rtl'] &{right:0;}}}outline:none;"],_,u.cv.text.base,l.gXv)}),u.cv.text.base,(function(e){return e.active&&(0,c.iv)(["&,&:hover{color:var(--text-base,",");}@media (max-width:","){","::after{border-color:var(--essential-bright-accent,",");border-width:2px;bottom:-",";left:calc(50% - ",");width:",";[dir='rtl'] &{right:calc(50% - ",");}}}&::before{content:'';left:0;position:absolute;@media (min-width:","){border-inline-start:4px solid var(--essential-bright-accent,",");block-size:18px;top:6px;[dir='rtl'] &{right:0;}}}"],u.cv.text.base,l.gXv,_,u.cv.text.brightAccent,l.dly,l.dly,l.o78,l.dly,l.SA3,u.cv.text.brightAccent)}),(function(e){return e.disabled&&(0,c.iv)(["&,&:focus,&:active,&:hover{opacity:",";pointer-events:none;}&::before{border-color:transparent;}"],d.Zx)}),(0,f.Dg)(),l.gXv,(0,h.mA)(0,l.o78),(0,h.mA)(-1,l.nuo),(0,h.mA)(-1,l.nuo),(0,h.Sq)("compact",l.o78),(0,h.Sq)("compact",l.o78),l.SA3,(0,h.Sq)("compact",l.g4V),(0,h.Sq)("compact",l.g4V),m.a,m.a,l.SA3,(0,h.mA)(3,l.mTH),(0,f.Ef)()),S=["active","disabled","href","role","component","children"],E=i.forwardRef((function(e,t){var n=e.active,l=e.disabled,c=e.href,u=e.role,d=e.component,p=void 0===d?"a":d,f=e.children,h=(0,o.Z)(e,S),m=(0,i.useContext)(a.t).isUsingKeyboard,g=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(v,{"data-encore-id":s.e.NavigationListItem},i.createElement(b,Object.assign({},h,{ref:t,active:n,href:l?void 0:c,disabled:l,"aria-disabled":l,role:l&&"button"!==p?"link":u,rel:c?"noopener noreferrer":void 0,"aria-current":n?"page":void 0,component:p,useBrowserDefaultFocusStyle:g,isUsingKeyboard:m}),i.createElement(_,null,f)))}))},14722:(e,t,n)=>{"use strict";n.d(t,{W:()=>m});var o=n(83150),i=n(51163),r=n(59496),a=n(30619),s=n(58706),l=n(64709),c=n(9465),u=n(98590),d=n(3254),p=n(81239),f=n(99902),h=l.ZP.dt.withConfig({displayName:"ListTitle",componentId:"sc-p72r5i-0"})([""," ",";color:var(--text-subdued,",");margin-block-end:",";margin-inline-start:",";margin-inline-end:",";"," "," &{margin-inline-start:",";}&:not(:first-child){@media (min-width:","){margin-block-start:",";}}@media (max-width:","){display:none;}"],(0,c.D)(),(0,u.QB)(),d.cv.text.subdued,(0,p.mA)(-4,s.hM$),(0,p.Sq)("compact",s.g4V),(0,p.Sq)("compact",s.g4V),f.a,f.a,(0,p.mA)(3,s.mTH),s.SA3,(0,p.mA)(1,s.g4V),s.gXv),m=function(e){var t=(0,i.Z)({},((0,o.Z)(e),e));return r.createElement(h,Object.assign({role:"listitem"},t,{"data-encore-id":a.e.NavigationListTitle}))}},3342:(e,t,n)=>{"use strict";n.d(t,{aV:()=>s});var o=n(58706),i=n(64709),r=n(14911),a="17px",s=i.ZP.div.withConfig({displayName:"Overlay",componentId:"sc-u80gmt-0"})(["display:flex;min-width:296px;pointer-events:none;position:absolute;z-index:",";",";",";",";",";",";",";",";",";",";",";",";",";"],r.rp,(function(e){return"top"===e.placement&&(0,i.iv)(["bottom:100%;justify-content:center;left:50%;transform:translate(-50%,-",");"],o.nuo)}),(function(e){return"topStart"===e.placement&&(0,i.iv)(["bottom:100%;justify-content:flex-end;right:50%;transform:translate(",",-",");[dir='rtl'] &&{right:unset;left:50%;transform:translate(-",",-",");}"],a,o.nuo,a,o.nuo)}),(function(e){return"topEnd"===e.placement&&(0,i.iv)(["bottom:100%;justify-content:flex-start;left:50%;transform:translate(-",",-",");[dir='rtl'] &&{right:50%;transform:translate(",",-",");}"],a,o.nuo,a,o.nuo)}),(function(e){return"bottom"===e.placement&&(0,i.iv)(["justify-content:center;left:50%;top:100%;transform:translate(-50%,",");"],o.nuo)}),(function(e){return"bottomStart"===e.placement&&(0,i.iv)(["justify-content:flex-end;right:50%;top:100%;transform:translate(",",",");[dir='rtl'] &&{right:unset;left:50%;transform:translate(-",",",");}"],a,o.nuo,a,o.nuo)}),(function(e){return"bottomEnd"===e.placement&&(0,i.iv)(["justify-content:flex-start;left:50%;top:100%;transform:translate(-",",",");[dir='rtl'] &&{left:unset;right:50%;transform:translate(",",",");}"],a,o.nuo,a,o.nuo)}),(function(e){return"start"===e.placement&&(0,i.iv)(["justify-content:flex-end;right:100%;top:50%;transform:translate(-",",-50%);[dir='rtl'] &&{right:unset;left:100%;transform:translate(",",-50%);}"],o.nuo,o.nuo)}),(function(e){return"startTop"===e.placement&&(0,i.iv)(["bottom:50%;justify-content:flex-end;right:100%;transform:translate(-",",",");[dir='rtl'] &&{right:unset;left:100%;transform:translate(",",",");}"],o.nuo,a,o.nuo,a)}),(function(e){return"startBottom"===e.placement&&(0,i.iv)(["justify-content:flex-end;right:100%;top:50%;transform:translate(-",",-",");[dir='rtl'] &&{right:unset;left:100%;transform:translate(",",-",");}"],o.nuo,a,o.nuo,a)}),(function(e){return"end"===e.placement&&(0,i.iv)(["justify-content:flex-start;left:100%;top:50%;transform:translate(",",-50%);[dir='rtl'] &&{left:unset;right:100%;transform:translate(-",",-50%);}"],o.nuo,o.nuo)}),(function(e){return"endTop"===e.placement&&(0,i.iv)(["bottom:50%;justify-content:flex-start;left:100%;transform:translate(",",",");[dir='rtl'] &&{left:unset;right:100%;transform:translate(-",",",");}"],o.nuo,a,o.nuo,a)}),(function(e){return"endBottom"===e.placement&&(0,i.iv)(["justify-content:flex-start;left:100%;top:50%;transform:translate(",",-",");[dir='rtl'] &&{left:unset;right:100%;transform:translate(-",",-",");}"],o.nuo,a,o.nuo,a)}))},92616:(e,t,n)=>{"use strict";n.d(t,{J:()=>L});var o=n(60901),i=n(68901),r=n(59496),a=n(30619),s=n(3254),l=n(61835),c=n(83680),u=n(58706),d=n(64709),p=n(30366),f=(0,d.ZP)(p.o).withConfig({displayName:"CloseButton",componentId:"sc-i2fggp-0"})(["position:absolute;top:",";right:",";[dir='rtl'] &{right:unset;left:",";}"],u.hM$,u.hM$,u.hM$),h=n(58896),m=n(91689),g=n(9465),v=n(98590),y=n(81239),_=n(3342),b=["arrow"],S=function(e){return e.large?"600px":"296px"},E=d.ZP.div.withConfig({displayName:"Popover__StyledPopover",componentId:"sc-1iog353-0"})(["",";",";",";",";",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";text-transform:initial;overflow-wrap:break-word;"," &{pointer-events:all;}"],(function(e){return(0,m.IJ)({maxWidth:e.large?"70vw":S(e),colorSet:e.colorSet})}),(function(e){return e.arrow&&(0,m.qE)(e.arrow)}),(0,g.D)(),(0,v.Ef)(),(function(e){return e.large&&"inline-size: ".concat(S(e))}),(0,y.mA)(0,u.o78),(0,y.mA)(0,u.o78),(0,y.mA)(1,u.F_T),(function(e){return e.paddedBody?"calc(".concat((0,y.mA)(-1,u.o78)," + ").concat((0,y.EW)("md",u.JBZ),")"):(0,y.mA)(1,u.F_T)}),_.aV),A=r.forwardRef((function(e,t){var n=e.arrow,o=(0,i.Z)(e,b);return n&&(0,h.u_)(n,"Popover"),r.createElement(E,Object.assign({ref:t,arrow:(0,l.a)(n)},o))})),T=n(56162),P=(0,d.ZP)(T.D).attrs({forwardedAs:"h1",variant:"cello"}).withConfig({displayName:"Title",componentId:"sc-bugxpe-0"})(["padding-block-end:",";padding-inline-end:",";"],(0,y.mA)(-2,u.dly),(0,y.mA)(3,u.JBZ)),O=["colorSet","popoverTitle","popoverTitleId","children","onClose","className","closeButtonAriaLabel","closeButtonRef"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var k=r.forwardRef((function(e,t){var n=e.colorSet,o=void 0===n?"base":n,l=e.popoverTitle,u=e.popoverTitleId,d=e.children,p=e.onClose,h=e.className,m=e.closeButtonAriaLabel,g=void 0===m?"Close":m,v=e.closeButtonRef,y=(0,i.Z)(e,O);return r.createElement(A,Object.assign({ref:t,role:"dialog","aria-labelledby":u,paddedBody:!(!p||l),className:(0,s.Mg)(o,h),colorSet:o},y,{"data-encore-id":a.e.Popover}),l&&r.createElement(P,{id:u},l),d,p&&r.createElement(f,{ref:v,onClick:p,"aria-label":g,type:"button",iconOnly:c.k}))})),R=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l.F),L=Object.assign(k,R)},97525:(e,t,n)=>{"use strict";n.d(t,{x:()=>S});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(64709),l=n(30619);var c=n(61835),u=n(87995),d=n(14911),p=s.ZP.div.withConfig({displayName:"Container__OverlayPortalContainer",componentId:"sc-1vwgkyp-0"})(["position:fixed;top:","px;left:","px;width:","px;height:","px;pointer-events:none;z-index:",";"],(function(e){return e.overlayPosition.top}),(function(e){return e.overlayPosition.left}),(function(e){return e.overlayPosition.width}),(function(e){return e.overlayPosition.height}),d.rp),f=["overlayPosition","closeOverlay"],h=function(e){var t=e.overlayPosition,n=void 0===t?{width:0,height:0,top:0,left:0}:t,o=e.closeOverlay,a=(0,i.Z)(e,f);return(0,r.useEffect)((function(){return o?(window.addEventListener("scroll",o,!0),function(){window.removeEventListener("scroll",o,!0)}):function(){}}),[o]),u.createPortal(r.createElement(p,Object.assign({overlayPosition:n},a)),document.body)},m=n(3342),g=["children","overlay","onHide","onShow","hideCloseButton","withPortal","placement"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var y=s.ZP.div.withConfig({displayName:"PopoverTrigger__PopoverTriggerContainer",componentId:"sc-yux5vv-0"})(["display:inline-flex;position:relative;"]),_=s.ZP.div.withConfig({displayName:"PopoverTrigger__TriggerContainer",componentId:"sc-yux5vv-1"})(["display:inline-flex;"]);var b=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c.F),S=Object.assign((function(e){var t=e.children,n=e.overlay,o=e.onHide,s=void 0===o?function(){}:o,u=e.onShow,d=void 0===u?function(){}:u,p=e.hideCloseButton,f=e.withPortal,v=e.placement,b=(0,i.Z)(e,g);v&&(0,a.u_)(v,"PopoverTrigger");var S=function(e){var t=e.overlay,n=e.onShow,o=e.onHide,i=e.withPortal,a=(0,r.useRef)(null),s=i?(0,r.createRef)():null;return(0,r.useEffect)((function(){var e=function(e){var n,i;t&&(!(e.target instanceof Node)||null!=(n=a.current)&&n.contains(e.target)||null!=s&&null!=(i=s.current)&&i.contains(e.target)||o(e))};return window.addEventListener("click",e,!0),function(){window.removeEventListener("click",e,!0)}})),{triggerRef:a,overlayRef:s,onClick:function(e){t?o(e):n(e)},onKeyDown:function(e){switch(e.which){case 38:case 40:t||n(e);break;case 27:t&&o(e)}}}}({overlay:n,onShow:d,onHide:s,withPortal:f}),E=S.triggerRef,A=S.overlayRef,T=S.onClick,P=function(e){27===e.keyCode&&s(e)};(0,r.useEffect)((function(){return window.addEventListener("keydown",P,!0),function(){window.removeEventListener("keydown",P,!0)}}));var O=null;return n&&"object"==typeof n&&(0,r.isValidElement)(n)&&(O=(0,r.cloneElement)(n,{onClose:p?void 0:T})),r.createElement(y,Object.assign({ref:E},b,{"data-encore-id":l.e.PopoverTrigger}),r.createElement(_,{onClick:T},t),n&&(f&&"function"!=typeof E&&E.current?r.createElement(h,{overlayPosition:E.current.getBoundingClientRect(),closeOverlay:s},r.createElement(m.aV,{ref:A,placement:(0,c.a)(v)},O)):r.createElement(m.aV,{ref:A,placement:(0,c.a)(v)},O)))}),b)},20287:(e,t,n)=>{"use strict";n.d(t,{k:()=>p});var o=n(68901),i=n(59496),r=n(30619),a=n(64709),s=n(3254),l=n(81239),c=a.ZP.div.withConfig({displayName:"ProgressBarBackground",componentId:"sc-1q0p8ti-0"})(["background-color:",";block-size:6px;border-radius:",";"],(0,s.NE)(s.iK.backgroundTintedBase),(0,l._S)("pill","3px")),u=a.ZP.div.withConfig({displayName:"ProgressBarIndicator",componentId:"sc-1b6tcn5-0"})(["inline-size:",";background-color:",";block-size:6px;border-radius:",";"],(function(e){return"".concat(e.progressValue,"%")}),(function(e){return(0,s.NE)(e.progressColor)}),(0,l._S)("pill","3px")),d=["value","semanticColor","color"],p=function(e){var t=e.value,n=void 0===t?0:t,a=e.semanticColor,s=void 0===a?"essentialBrightAccent":a,l=(e.color,(0,o.Z)(e,d));return i.createElement(c,Object.assign({role:"progressbar","aria-valuenow":n,"aria-valuemin":"0","aria-valuemax":"100"},l,{"data-encore-id":r.e.ProgressBar}),i.createElement(u,{progressValue:n,progressColor:s}))}},67526:(e,t,n)=>{"use strict";n.d(t,{A9:()=>y,M0:()=>v});var o=n(68492),i=n(68901),r=n(59496),a=n(49823),s=n(30619),l=n(3254),c=n(56162),u=n(58706),d=n(64709),p=n(91689),f=n(81239),h=n(14911),m=d.ZP.div.withConfig({displayName:"Container",componentId:"sc-eij2zk-0"})(["",""],(function(e){var t=e.colorSet,n=e.state;return(0,d.iv)([""," padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";overflow-wrap:break-word;text-align:center;position:fixed;overflow-x:hidden;text-overflow:ellipsis;z-index:",";transition-duration:","ms;transition-timing-function:ease-out;bottom:",";.docs-story{position:absolute;}@media (max-width:","){left:",";right:",";}@media (min-width:","){transform:translate(-50%);left:50%;[dir='rtl'] &{left:unset;right:50%;transform:translate(50%);}}",";",";",";"],(0,p.IJ)({maxWidth:"384px",colorSet:t}),(0,f.mA)(-1,u.nuo),(0,f.mA)(-1,u.nuo),(0,f.mA)(2,u.mGT),(0,f.mA)(2,u.mGT),h.x,v,u.JBZ,u.Eu5,u.dly,u.dly,u.SA3,"entering"===n&&(0,d.iv)(["opacity:0;transform:translate(-50%,",");[dir='rtl'] &{transform:translate(50%,",");}"],u.mTH,u.mTH),"entered"===n&&(0,d.iv)(["opacity:1;"]),"exiting"===n&&(0,d.iv)(["opacity:0;transition-timing-function:linear;"]))})),g=["onExited","colorSet","showSnackbar","className","children"],v=300,y=r.forwardRef((function(e,t){var n=e.onExited,u=e.colorSet,d=void 0===u?"base":u,p=e.showSnackbar,f=e.className,h=e.children,y=(0,i.Z)(e,g),_=(0,r.useState)(!1),b=(0,o.Z)(_,2),S=b[0],E=b[1];void 0===p&&console.warn('Warning: If you are not conditionally rendering Snackbar within an aria-live region (wrapping element with role="status") the component will be inaccessible on Windows operating systems. Please use the showSnackbar prop to conditionally render Snackbar. For guidance on how to implement this, refer to our Snackbar Accessibility documentation: https://encore-web.spotify.net/?path=/docs/components-snackbar--accessibility');var A=null==p||p;return(0,r.useEffect)((function(){A&&E(!0);var e=setTimeout((function(){return E(!1)}),5e3);return function(){return clearTimeout(e)}}),[A]),r.createElement("div",{role:"status"},A&&r.createElement(a.Z,{in:S,onExit:n,timeout:{enter:0,exit:v},unmountOnExit:!0,mountOnEnter:!0,"data-encore-id":s.e.Snackbar},(function(e){return r.createElement(m,Object.assign({ref:t,className:(0,l.Mg)(d,f),colorSet:d,state:e},y),r.createElement(c.D,{variant:"viola",semanticColor:"textBase"},h))})))}))},48415:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var o=n(59496),i=n(30619),r=n(64709).ZP.table.withConfig({displayName:"Table__TableElement",componentId:"sc-evwssh-0"})(["max-inline-size:100%;inline-size:100%;text-align:start;border-collapse:collapse;overflow-wrap:break-word;"]),a=o.forwardRef((function(e,t){return o.createElement(r,Object.assign({ref:t},e,{"data-encore-id":i.e.Table}))}))},30468:(e,t,n)=>{"use strict";n.d(t,{p:()=>T});var o=n(68901),i=n(59496),r=n(30619),a=n(58706),s=n(64709),l=n(9465),c=n(98590),u=n(81239),d=n(3254),p=n(88093),f=n(50823),h=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isActive","isFocus","semanticColor"],m=["semanticColor"],g=(0,s.iv)(["color:",";"],(0,d.NE)(d.iK.textBase)),v=(0,s.iv)([""," color:",";"],p.IT,(0,d.NE)(d.iK.textSubdued)),y=(0,s.ZP)(i.forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,a=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isActive,e.isFocus,e.semanticColor,(0,o.Z)(e,h));return i.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-me270r-0"})(["",""],(function(e){var t=e.semanticColor,n=void 0===t?"textSubdued":t,i=(0,o.Z)(e,m);return(0,s.iv)(["",";",";cursor:inherit;display:inline-flex;align-items:center;color:",";&:hover{","}"," &:active{","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{"," color:",";}"," ",";"],(0,l.D)(),(!i.component||"button"===i.component)&&(0,p.BX)(i.useBrowserDefaultFocusStyle),(0,d.NE)(n),g,i.isHover&&g,v,p.cp,(0,d.NE)(n),i.isActive&&v,!i.useBrowserDefaultFocusStyle&&(0,f.qy)(0,i.isUsingKeyboard,i.isFocus))})),_=n(50998),b=n(3342),S=s.ZP.span.withConfig({displayName:"Trigger",componentId:"sc-1qpjssw-0"})(["display:inline-flex;position:relative;"]);var E=s.ZP.td.withConfig({displayName:"TableCell__TableCellElement",componentId:"sc-1nn7cfv-0"})(["",";",";font-feature-settings:",";"," text-align:",";vertical-align:middle;padding:",";color:",";&:first-child{@media (max-width:","){padding-inline-start:",";}}&:last-child{@media (max-width:","){padding-inline-end:",";}}&:focus{outline:none;color:",";",";}",";> ",",> ",",> "," span:not(",") ","{position:relative;top:3px;}"],(0,l.D)(),(0,c.Ef)(),(function(e){return e.numerical?"'tnum'":void 0}),(function(e){return e.highlight&&(0,c.Dg)()}),(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),(function(e){return e.condensed?0:(0,u.mA)(-1,a.nuo)}),(function(e){return e.highlight?(0,d.NE)(d.iK.textBase):"inherit"}),a.gXv,(function(e){return e.condensed?0:(0,u.mA)(-4,a.hM$)}),a.gXv,(function(e){return e.condensed?0:(0,u.mA)(-4,a.hM$)}),(0,d.NE)(d.iK.textBase),(0,c.Dg)(),(function(e){return e.truncate&&(0,s.iv)(["",";max-inline-size:0;inline-size:100%;@media (min-width:","){max-inline-size:150px;inline-size:auto;}@media (min-width:",") and (max-width:","){max-inline-size:85px;inline-size:auto;}"],(0,s.iv)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),a.vmZ,a.SA3,a.SIq)}),_.Z,y,S,b.aV,y),A=["align"],T=function(e){var t=e.align,n=void 0===t?"start":t,a=(0,o.Z)(e,A);return i.createElement(E,Object.assign({align:n},a,{"data-encore-id":r.e.TableCell}))}},76669:(e,t,n)=>{"use strict";n.d(t,{x:()=>m});var o=n(68492),i=n(68901),r=n(59496),a=n(30619),s=n(58706),l=n(64709),c=n(3254),u=n(32867),d=function(){return(0,l.iv)(["@media screen and (max-width:","){display:block;inline-size:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;}"],s.gXv)},p=function(){return(0,l.iv)(["overflow:auto;max-block-size:100%;","{background-color:",";position:sticky;z-index:1;top:0;",";}"],u.T,(0,c.NE)(c.iK.backgroundBase),(function(e){return e.isSticky&&(0,l.iv)(["box-shadow:-3px 0 0 ",",3px 0 0 ",",0 1px 6px ",";"],(0,c.NE)(c.iK.backgroundBase),(0,c.NE)(c.iK.backgroundBase),(0,c.NE)(c.iK.backgroundTintedBase))}))},f=l.ZP.div.withConfig({displayName:"TableContainer__Container",componentId:"sc-86p3fa-0"})(["",";",";"],(function(e){return e.responsive&&d}),(function(e){return e.stickyHeader&&p})),h=["responsive","stickyHeader"],m=function(e){var t=e.responsive,n=e.stickyHeader,s=(0,i.Z)(e,h),l=(0,r.useState)(!1),c=(0,o.Z)(l,2),u=c[0],d=c[1];return r.createElement(f,Object.assign({responsive:t,stickyHeader:n,onScroll:function(e){return d(e.target instanceof HTMLElement&&0!==e.target.scrollTop)},isSticky:u},s,{"data-encore-id":a.e.TableContainer}))}},32867:(e,t,n)=>{"use strict";n.d(t,{T:()=>c});var o=n(58706),i=n(64709),r=n(9465),a=n(98590),s=n(3254),l=n(81239),c=i.ZP.th.withConfig({displayName:"TableHeaderCell__TableHeaderCellElement",componentId:"sc-16kf5kl-0"})(["",";"," color:",";padding:",";text-align:",";vertical-align:bottom;&:first-child{@media (max-width:","){padding-inline-start:",";}}&:last-child{@media (max-width:","){padding-inline-end:",";}}",";",";"],(0,r.D)(),(0,a.I_)(),(function(e){return e.active?(0,s.NE)(s.iK.textBase):(0,s.NE)(s.iK.textSubdued)}),(0,l.mA)(-1,o.nuo),(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),o.gXv,(0,l.mA)(-4,o.hM$),o.gXv,(0,l.mA)(-4,o.hM$),(function(e){return e.selectable&&(0,i.iv)(["cursor:default;&:hover{color:",";}"],(0,s.NE)(s.iK.textBase))}),(function(e){return e.isHover&&(0,i.iv)(["color:",";"],(0,s.NE)(s.iK.textBase))}))},36098:(e,t,n)=>{"use strict";n.d(t,{x:()=>v});var o=n(68901),i=n(59496),r=n(30619),a=n(60901),s=n(30366),l=n(77675),c=n(16004),u=n(32867),d=["align","sortedByDirection","iconPlacement","onClick","children"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=e.currentButtonIconProp,n=e.iconPlacement,o=e.sortedByDirection;if("none"!==o)return n===t?"ascending"===o?c.U:l.i:void 0}var m=function(e){var t=e.align,n=e.sortedByDirection,r=e.iconPlacement,a=void 0===r?"trailing":r,l=e.onClick,c=e.children,p=(0,o.Z)(e,d),m=f("none"!==n?{"aria-sort":n}:{},p);return i.createElement(u.T,Object.assign({role:"columnheader",active:"none"!==n,align:t},m),i.createElement(s.o,{onClick:l,buttonSize:"sm",semanticColor:"textBase",condensedAll:!0,iconLeading:h({currentButtonIconProp:"leading",iconPlacement:a,sortedByDirection:n}),iconTrailing:h({currentButtonIconProp:"trailing",iconPlacement:a,sortedByDirection:n}),type:"button"},c))},g=["align","scope","isHover"],v=function(e){var t=e.align,n=void 0===t?"start":t,a=e.scope,s=void 0===a?"col":a,l=e.isHover,c=(0,o.Z)(e,g);return c.sortable?i.createElement(m,Object.assign({align:n,scope:s},c,{isHover:l,"data-encore-id":r.e.TableHeaderCell})):i.createElement(u.T,Object.assign({align:n,scope:s},c,{isHover:l,"data-encore-id":r.e.TableHeaderCell}))}},28356:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var o=n(83150),i=n(51163),r=n(59496),a=n(30619),s=n(64709),l=n(3254),c=(0,s.iv)(["outline:none;border:3px solid ",";"],(0,l.NE)(l.iK.essentialBase)),u=s.ZP.tr.withConfig({displayName:"TableRow__TableRowElement",componentId:"sc-1kuhzdh-0"})(["border-bottom:1px solid ",";color:",";",";",";",";&:focus{","}"],(0,l.NE)(l.iK.decorativeSubdued),(0,l.NE)(l.iK.textSubdued),(function(e){return e.hover&&(0,s.iv)(["cursor:default;&:hover{background-color:",";border-bottom:1px solid ",";color:",";}"],(0,l.NE)(l.iK.backgroundTintedHighlight),(0,l.NE)(l.iK.decorativeSubdued),(0,l.NE)(l.iK.textBase))}),(function(e){return e.select&&(0,s.iv)(["background-color:",";border-bottom:1px solid ",";color:",";"],(0,l.NE)(l.iK.backgroundTintedHighlight),(0,l.NE)(l.iK.decorativeSubdued),(0,l.NE)(l.iK.textBase))}),(function(e){return e.isFocus&&c}),c),d=(0,r.forwardRef)((function(e,t){var n=(0,i.Z)({},((0,o.Z)(e),e));return r.createElement(u,Object.assign({ref:t},n,{"data-encore-id":a.e.TableRow}))}))},46267:(e,t,n)=>{"use strict";n.d(t,{s:()=>v});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(3254),l=n(14911),c=n(9465),u=n(81239),d=n(50823),p=n(62621),f=n(71965),h=n(92543),m=["component","active","focus","hover","colorSet","fallbackSet","isUsingKeyboard"],g=["colorSet","fallbackSet"],v=(0,a.ZP)((function(e){var t=e.component,n=void 0===t?"span":t,r=(e.active,e.focus,e.hover,e.colorSet,e.fallbackSet,e.isUsingKeyboard,(0,o.Z)(e,m));return i.createElement(n,r)})).withConfig({displayName:"Tag__TagElement",componentId:"sc-15ycdu9-0"})(["",""],(function(e){var t=e.colorSet,n=e.fallbackSet,i=(0,o.Z)(e,g),m=t?(0,s.NE)(s.iK.backgroundBase,n.background.base):(0,s.NE)(s.iK.backgroundTintedBase,n.background.tinted.base),v="\n ".concat(f.e," {\n background-color: ").concat(m,";\n }\n ").concat(h.g," {\n background-color: ").concat((0,s.NE)(s.iK.backgroundBase,n.background.base),";\n }\n ").concat(f.e,", ").concat(h.g," {\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n opacity: ").concat(l.Zx,";\n }\n ").concat(p.v," {\n border-color: transparent;\n }\n "),y="mutedAccent"===t?(0,s.NE)(s.iK.backgroundHighlight,n.background.highlight):(0,s.NE)(s.iK.backgroundTintedHighlight,n.background.tinted.highlight),_="\n ".concat(f.e," {\n background-color: ").concat(y,";\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n }\n ").concat(h.g," {\n background-color: ").concat((0,s.NE)(s.iK.backgroundHighlight,n.background.highlight),";\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n }\n "),b="mutedAccent"===t?(0,s.NE)(s.iK.backgroundPress,n.background.press):(0,s.NE)(s.iK.backgroundTintedPress,n.background.tinted.press),S="\n ".concat(f.e," {\n background-color: ").concat(b,";\n color: ").concat((0,s.NE)(s.iK.textSubdued,n.text.subdued),";\n }\n ").concat(h.g," {\n background-color: ").concat((0,s.NE)(s.iK.backgroundPress,n.background.press),";\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n }\n "),E="\n outline: none;\n\n ".concat(p.v," {\n border-color: ").concat((0,s.NE)(s.iK.essentialBase,n.essential.base),"\n }\n ");return(0,a.iv)(["",";position:relative;display:inline-block;transition:box-shadow 0.2s,transform 0.2s;align-self:center;flex-shrink:0;overflow-wrap:break-word;&:not(:last-child){margin-inline-end:",";}","{transition:border-color "," ",";}"," &[href]:hover{",";}&[href]:active{",";}&[href]:focus{",";}&[disabled],&[aria-disabled='true']{","}&&{"," "," "," ","}"],(0,c.D)(),(0,u.mA)(-2,r.dly),p.v,d.IW,d.qr,"button"===i.component&&(0,a.iv)(["&:hover{",";}&:active{",";}&:focus{",";}"],_,S,i.isUsingKeyboard&&E),_,S,i.isUsingKeyboard&&E,v,"\n &[href],\n &[href]:focus,\n &[href]:hover {\n text-decoration: none;\n box-shadow: none;\n }\n ",i.hover&&_,i.active&&S,i.focus&&i.isUsingKeyboard&&E)}))},62621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var o=n(58706),i=n(64709),r=n(50823),a=n(81239),s=i.ZP.div.withConfig({displayName:"TagFocus",componentId:"sc-oozknb-0"})([""," display:block;position:absolute;pointer-events:none;background:transparent;border:","px solid transparent;border-radius:",";box-sizing:border-box;"],(0,r.Nz)(),r.Ef,(0,a._S)("xl",o.dly))},71965:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var o=n(58706),i=n(64709),r=n(3254),a=n(98590),s=n(81239),l=i.ZP.div.withConfig({displayName:"TagInner",componentId:"sc-1uxwtix-0"})(["",""],(function(e){var t=e.colorSet,n=e.fallbackSet,l=t?(0,r.NE)(r.iK.backgroundBase,n.background.base):(0,r.NE)(r.iK.backgroundTintedBase,n.background.tinted.base);return(0,i.iv)(["",";background-color:",";color:",";padding-block-start:",";padding-inline-end:",";padding-block-end:",";padding-inline-start:",";border-radius:",";transition:background-color 0.2s,color 0.2s;"],(0,a.VW)(),l,(0,r.NE)(r.iK.textBase,n.text.base),(0,s.mA)(-4,o.hM$),(0,s.mA)(-2,o.dly),(0,s.mA)(-4,o.hM$),(0,s.mA)(-2,o.dly),(0,s._S)("md",o.hM$))}))},92543:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var o=n(64709),i=n(3254),r=n(71965),a=(0,o.ZP)(r.e).withConfig({displayName:"TagInnerSelected",componentId:"sc-19i8max-0"})(["",""],(function(e){var t=e.fallbackSet;return(0,o.iv)(["background-color:",";color:",";"],(0,i.NE)(i.iK.backgroundBase,t.background.base),(0,i.NE)(i.iK.textBase,t.text.base))}))},835:(e,t,n)=>{"use strict";n.d(t,{V:()=>h});var o=n(68901),i=n(59496),r=n(3992),a=n(30619),s=n(58896),l=n(3254),c=n(46267),u=n(62621),d=n(71965),p=n(92543),f=["colorSet","selectedColorSet","selected","children","color","className"],h=function(e){var t=e.colorSet,n=e.selectedColorSet,h=e.selected,m=e.children,g=(e.color,e.className),v=(0,o.Z)(e,f);h&&(0,s.Zh)("selected","Tag","Please use the Chip component with a selected prop instead."),n&&(0,s.Zh)("selectedColorSet","Tag","Please use the Chip component with a selectedColorSet prop instead.");var y=(0,i.useContext)(r.t).isUsingKeyboard,_=h?p.g:d.e,b=h?n||"invertedDark":t,S=l.uH[b||l.Y7];return i.createElement(c.s,Object.assign({},v,{colorSet:b,fallbackSet:S,isUsingKeyboard:y,"data-encore-id":a.e.Tag}),i.createElement(_,{className:(0,l.Mg)(b,g),colorSet:b,fallbackSet:S},m),i.createElement(u.v,null))}},80885:(e,t,n)=>{"use strict";n.d(t,{j4:()=>f,rU:()=>b});var o=n(68901),i=n(59496),r=n(64709),a=n(50823),s=n(3254),l=n(14911),c=n(9465),u=n(88093),d=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isFocus","isActive","standalone","semanticColor"],p=function(e){var t=e.color;return(0,r.iv)(["text-decoration:underline;color:",";"],t)},f=(0,r.iv)(["box-shadow:",";transition:box-shadow "," ",";&&{text-decoration:none;}"],"0 3px 0 0",a.IW,a.qr),h=(0,r.iv)(["color:",";"],(0,s.NE)(s.iK.textBrightAccent)),m=(0,r.iv)(["color:",";opacity:",";cursor:not-allowed;"],(0,s.NE)(s.iK.textSubdued),l.Zx),g=function(e){var t=e.semanticColor;return(0,r.iv)(["text-decoration:underline;color:",";"],(0,s.NE)(t||s.iK.textSubdued))},v=(0,r.iv)(["color:",";"],(0,s.NE)(s.iK.textBase)),y=function(e){var t=e.semanticColor;return(0,r.iv)(["text-decoration:underline;color:",";"],(0,s.NE)(t||s.iK.textBase))},_=(0,r.iv)(["text-decoration:none;"]),b=(0,r.ZP)(i.forwardRef((function(e,t){var n=e.component,r=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isFocus,e.isActive,e.standalone,e.semanticColor,(0,o.Z)(e,d));return i.createElement(n,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-k8gsk-0"})(["",";",";"," align-items:center;text-decoration:none;&[href],&:hover:not([disabled]){text-decoration:underline;}&[href]:hover{",";}"," &[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}",""],(0,c.D)(),(function(e){return"button"===e.component&&(0,r.iv)(["",";font-family:inherit;font-size:inherit;&:focus{","}"],(0,u.BX)(e.useBrowserDefaultFocusStyle),e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&f)}),(function(e){return e.semanticColor?(0,r.iv)(["color:",";"],(0,s.NE)(e.semanticColor)):(0,r.iv)(["color:inherit;"])}),(function(e){return e.semanticColor?p({color:(0,s.NE)(e.semanticColor)}):p({color:(0,s.NE)(s.iK.textBrightAccent)})}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,r.iv)(["&[href]:focus{outline:none;",";}"],e.isUsingKeyboard&&f)}),h,(function(e){return e.isHover&&(e.semanticColor?p({color:(0,s.NE)(e.semanticColor)}):p({color:(0,s.NE)(s.iK.textBrightAccent)}))}),(function(e){return e.isFocus&&!e.useBrowserDefaultFocusStyle&&f}),(function(e){return e.isActive&&h}),m,(function(e){return e.standalone&&(0,r.iv)(["color:",";display:inline-flex;&,&[href]{text-decoration:none;}&[href]:hover,&[href]:hover:focus{",";}&[href]:focus{text-decoration:none;",";}&[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}"],e.semanticColor?(0,s.NE)(e.semanticColor):(0,s.NE)(s.iK.textSubdued),g({semanticColor:e.semanticColor}),e.isUsingKeyboard&&v,y({semanticColor:e.semanticColor}),e.isHover&&g({semanticColor:e.semanticColor}),e.isFocus&&v,e.isActive&&y({semanticColor:e.semanticColor}),_)}))},65735:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(80885),c=["children","color","semanticColor","component","href","disabled","role"],u=i.forwardRef((function(e,t){var n=e.children,u=e.color,d=e.semanticColor,p=e.component,f=void 0===p?"a":p,h=e.href,m=e.disabled,g=e.role,v=(0,o.Z)(e,c),y=(0,i.useContext)(a.t).isUsingKeyboard,_=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(l.rU,Object.assign({component:f,isUsingKeyboard:y,useBrowserDefaultFocusStyle:_,color:u,semanticColor:d,ref:t,href:m?void 0:h,disabled:m,"aria-disabled":m,role:m&&"button"!==f?"link":g},v,{"data-encore-id":s.e.TextLink}),n)}))},67353:(e,t,n)=>{"use strict";n.d(t,{u:()=>m});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(30619),l=n(9465),c=n(91689),u=n(98590),d=n(81239),p=n(3254),f=["colorSet","className"],h=a.ZP.div.withConfig({displayName:"Tooltip__TooltipWrapper",componentId:"sc-muq3yw-0"})(["",";",";",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";text-transform:initial;color:var(--text-base,",");overflow-wrap:break-word;"],(0,l.D)(),(0,c.IJ)({maxWidth:"240px"}),(0,u.Ef)(),(0,d.mA)(-2,r.dly),(0,d.mA)(-2,r.dly),(0,d.mA)(-1,r.nuo),(0,d.mA)(-1,r.nuo),p.cv.text.base),m=i.forwardRef((function(e,t){var n=e.colorSet,r=void 0===n?"base":n,a=e.className,l=(0,o.Z)(e,f);return i.createElement(h,Object.assign({ref:t,className:(0,p.Mg)(r,a),role:"tooltip"},l,{"data-encore-id":s.e.Tooltip}))}))},56162:(e,t,n)=>{"use strict";n.d(t,{D:()=>_});var o=n(60901),i=n(68901),r=n(59496),a=n(30619),s=n(64709),l=n(14911),c=n(98590),u=n(9465),d=n(3254),p=n(18542),f=s.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"sc-goli3j-0"})(["",";margin-block-start:0;margin-block-end:0;",";",";"," ",";"],(0,u.D)(),Spicetify._fontStyle=(function(e){return e.variant?function(e){switch(e){case"bass":return(0,c.l8)();case"forte":return(0,c.Yt)();case"brio":return(0,c.R)();case"altoBrio":return(0,c.AH)();case"alto":return(0,c.h2)();case"canon":return(0,c.xi)();case"celloCanon":return(0,c.BS)();case"cello":return(0,c.GW)();case"ballad":return(0,c.Mp)();case"balladBold":return(0,c.Vr)();case"viola":default:return(0,c.Ef)();case"violaBold":return(0,c.Dg)();case"mesto":return(0,c.Ue)();case"mestoBold":return(0,c.I_)();case"metronome":return(0,c.As)();case"finale":return(0,c.QB)();case"finaleBold":return(0,c.VW)();case"minuet":return(0,c.gI)();case"minuetBold":return(0,c.bx)()}}(e.variant):void 0}),(function(e){return e.paddingBottom&&(0,s.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,s.iv)(["color:",";"],(0,d.NE)(e.semanticColor)):(0,s.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,s.iv)(["font-weight:",";"],function(e){switch(e){case"book":return l.tE;case"bold":return l.Y$;case"black":return l.nj;default:return(0,p.vE)(e)}}(e.weight))})),h=["color","semanticColor","paddingBottom","variant"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=Spicetify.ReactComponent.TextComponent=r.forwardRef((function(e,t){e.color;var n=e.semanticColor,o=e.paddingBottom,s=e.variant,l=void 0===s?"viola":s,c=(0,i.Z)(e,h);return r.createElement(f,Object.assign({variant:l,semanticColor:n,paddingBottom:o,ref:t},c,{"data-encore-id":a.e.Type}))})),y=g(g({},{h1:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h1",ref:t},e))})),h2:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h2",ref:t},e))})),h3:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h3",ref:t},e))})),h4:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h4",ref:t},e))})),h5:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h5",ref:t},e))})),h6:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"h6",ref:t},e))})),p:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"p",ref:t},e))})),small:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"small",ref:t},e))})),li:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"li",ref:t},e))})),span:r.forwardRef((function(e,t){return r.createElement(v,Object.assign({as:"span",ref:t},e))}))}),{book:"book",bold:"bold",black:"black"}),_=Object.assign(v,y)},49170:(e,t,n)=>{"use strict";n.d(t,{d:()=>f});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(30619),l=n(9465),c=["listStyleReset"],u=a.ZP.ul.attrs((function(e){return{role:e.role||"list",listStyleReset:e.listStyleReset||!1}})).withConfig({displayName:"TypeList__TypeListElement",componentId:"sc-1jhixr6-0"})(["",";padding-inline-start:",";padding-inline-end:0;padding-block-end:",";margin-block-start:0;margin-block-end:0;overflow-wrap:break-word;",";"],(0,l.D)(),(function(e){return e.condensedAll?"0":r.mGT}),(function(e){return e.condensed&&"0"}),(function(e){return!1!==e.listStyleReset&&(0,a.iv)(["list-style-type:none;"])})),d={ul:u.withComponent("ul",{target:"e188cash0"}),ol:u.withComponent("ol",{target:"e188cash1"})},p=i.forwardRef((function(e,t){var n=e.listStyleReset,r=void 0!==n&&n,a=(0,o.Z)(e,c);return i.createElement(u,Object.assign({},a,{ref:t,listStyleReset:r,"data-encore-id":s.e.TypeList}))})),f=Object.assign(p,d)},93107:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var o=n(68901),i=n(59496),r=n(64709),a=n(30619),s=n(56162),l=["as","listStyleReset"],c=(0,r.ZP)(s.D).withConfig({displayName:"TypeListItem__TypeListItemElement",componentId:"sc-q1l2mf-0"})(["display:list-item;padding-block-end:",";",";"],(function(e){return!e.condensed&&"1em"}),(function(e){return e.listStyleReset&&"list-style-type: none"})),u=i.forwardRef((function(e,t){var n=e.as,r=void 0===n?"li":n,s=e.listStyleReset,u=void 0!==s&&s,d=(0,o.Z)(e,l);return i.createElement(c,Object.assign({},d,{ref:t,forwardedAs:r,listStyleReset:u,"data-encore-id":a.e.TypeListItem}))}))},18845:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var o=n(68901),i=n(59496),r=n(64709),a=n(30619),s=n(87577),l=["component"],c=(0,r.ZP)(i.forwardRef((function(e,t){var n=e.component,r=void 0===n?"span":n,a=(0,o.Z)(e,l);return i.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"VisuallyHidden__VisuallyHiddenElement",componentId:"sc-17bibe8-0"})(["",""],(0,s.j)()),u=i.forwardRef((function(e,t){return i.createElement(c,Object.assign({},e,{ref:t,"data-encore-id":a.e.VisuallyHidden}))}))},4107:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var o={useBrowserDefaultFocusStyle:!1},i=n(59496).createContext(o);i.displayName="BrowserDefault"},56079:(e,t,n)=>{"use strict";n.d(t,{S9:()=>l,U0:()=>r,W1:()=>a,k3:()=>i,lR:()=>s});var o=n(59496),i={experimental:"experimental",next:"next",deprecated:"deprecated"},r={button:"button",list:"list"},a={experimental:[],next:[],deprecated:[]},s=function(e,t){var n=void 0;return Object.keys(i).forEach((function(o){(function(e,t){return t.indexOf(e)>-1})(e,t[o])&&(n=o)})),n},l=o.createContext(a);l.displayName="Encore"},3992:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,t:()=>r});var o=n(59496),i={isUsingKeyboard:!0},r=o.createContext(i);r.displayName="KeyboardDetection"},30619:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var o={Accordion:"accordion",AccordionContent:"accordionContent",AccordionItem:"accordionItem",AccordionTitle:"accordionTitle",App:"app",AppBanner:"appBanner",AppBannerLayout:"appBannerLayout",AppFooter:"appFooter",AppFooterLink:"appFooterLink",Backdrop:"backdrop",Banner:"banner",BrowserDefaultFocusStyleProvider:"browserDefaultFocusStyleProvider",Button:"button",ButtonIcon:"buttonIcon",ButtonPrimary:"buttonPrimary",ButtonSecondary:"buttonSecondary",ButtonTertiary:"buttonTertiary",Chip:"chip",ChipClear:"chipClear",CollapseButton:"collapseButton",DialogAlert:"dialogAlert",DialogConfirmation:"dialogConfirmation",DialogFullScreen:"dialogFullScreen",Dropdown:"dropdown",DropdownItem:"dropdownItem",DropdownLink:"dropdownLink",DropdownList:"dropdownList",DropdownTrigger:"dropdownTrigger",EmptyState:"emptyState",EmptyStateButton:"emptyStateButton",EmptyStateText:"emptyStateText",EmptyStateTitle:"emptyStateTitle",EncoreProvider:"encoreProvider",FlyOut:"flyOut",FlyOutAccount:"flyOutAccount",FlyOutBody:"flyOutBody",FlyOutControl:"flyOutControl",FlyOutFooter:"flyOutFooter",FlyOutHeader:"flyOutHeader",FlyOutHeaderTitle:"flyOutHeaderTitle",FlyOutLink:"flyOutLink",FormCheckbox:"formCheckbox",FormGroup:"formGroup",FormHelpText:"formHelpText",FormInput:"formInput",FormInputIcon:"formInputIcon",FormPopoverTrigger:"formPopoverTrigger",FormRadio:"formRadio",FormSelect:"formSelect",FormTextarea:"formTextarea",FormToggle:"formToggle",GlobalStyles:"globalStyles",HorizontalRule:"horizontalRule",Icon:"icon",IconWithText:"iconWithText",Image:"image",KeyboardDetectionProvider:"keyboardDetectionProvider",List:"list",ListItem:"listItem",LoadingIndicator:"loadingIndicator",LogoSpotify:"logoSpotify",LogoSpotifyForArtists:"logoSpotifyForArtists",NavBar:"navBar",NavBarList:"navBarList",NavBarListItem:"navBarListItem",NavPill:"navPill",NavPillList:"navPillList",NavPillListItem:"navPillListItem",NavPillPanel:"navPillPanel",NavStepper:"navStepper",NavStepperItem:"navStepperItem",Navigation:"navigation",NavigationAction:"navigationAction",NavigationList:"navigationList",NavigationListItem:"navigationListItem",NavigationListTitle:"navigationListTitle",OverlayPortal:"overlayPortal",OverlayTrigger:"overlayTrigger",PaginationControls:"paginationControls",PaginationDropdown:"paginationDropdown",PaginationDropdownItem:"paginationDropdownItem",PaginationDropdownLink:"paginationDropdownLink",PaginationDropdownList:"paginationDropdownList",PaginationDropdownTrigger:"paginationDropdownTrigger",Popover:"popover",PopoverNavigation:"popoverNavigation",PopoverNavigationItem:"popoverNavigationItem",PopoverNavigationLink:"popoverNavigationLink",PopoverOnboarding:"popoverOnboarding",PopoverTrigger:"popoverTrigger",ProgressBar:"progressBar",SkipLink:"skipLink",Snackbar:"snackbar",StatusIndicator:"statusIndicator",Table:"table",TableCell:"tableCell",TableCheckbox:"tableCheckbox",TableContainer:"tableContainer",TableHeaderCell:"tableHeaderCell",TablePagination:"tablePagination",TableRow:"tableRow",TableSortIcon:"tableSortIcon",TableThumbnail:"tableThumbnail",Tag:"tag",TextLink:"textLink",Tooltip:"tooltip",TooltipTrigger:"tooltipTrigger",Type:"type",TypeList:"typeList",TypeListItem:"typeListItem",UnsupportedBrowser:"unsupportedBrowser",VerifiedBadge:"verifiedBadge",VisuallyHidden:"visuallyHidden"}},58896:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>c,Zh:()=>u,iw:()=>d,u_:()=>p});var o,i,r=n(61835),a=n(14224),s="undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==a&&(null==a||null==(o={})?void 0:o.MUTE_ENCORE_WARNINGS)||void 0,l="undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==a&&(null==a||null==(i={})?void 0:i.NODE_ENV)||void 0;function c(e){"true"!==s&&"production"!==l&&console.warn(e)}function u(e,t,n){c("The ".concat(e," prop in ").concat(t," has been deprecated. ").concat(n||""))}function d(e,t,n,o){c("The ".concat(e," prop in ").concat(n," has been deprecated. Please use ").concat(t," instead. ").concat(o||""))}function p(e,t){return Object.keys(r.F).filter((function(e){return"top"!==e&&"bottom"!==e})).includes(e)?d(e,(0,r.a)(e),t,"This allows us to support localization."):null}},81239:(e,t,n)=>{"use strict";function o(e,t){return"var(--spacer-".concat(e,", ").concat(t,")")}function i(e,t){return"var(--border-radius-".concat(e,", ").concat(t,")")}function r(e,t){return"var(--control-size-".concat(e,", ").concat(t,")")}function a(e,t,n){return n?"calc(-1 * var(--layout-margin-".concat(e,", ").concat(t,"))"):"var(--layout-margin-".concat(e,", ").concat(t,")")}n.d(t,{EW:()=>r,Sq:()=>a,_S:()=>i,mA:()=>o})},9465:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var o=n(64709),i=function(){return(0,o.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])}},89312:(e,t,n)=>{"use strict";n.d(t,{O3:()=>a,VZ:()=>r,i8:()=>s});var o=n(58706),i=n(98590),r={sm:"sm",md:"md",lg:"lg"},a=function(e){switch(e){case"sm":return(0,i.VW)();case"md":default:return(0,i.Dg)();case"lg":return(0,i.Vr)()}},s={sm:o.dly,md:"14px",lg:o.o78}},88093:(e,t,n)=>{"use strict";n.d(t,{BX:()=>A,Dx:()=>f,FN:()=>m,IT:()=>S,Lm:()=>_,Z7:()=>g,ZG:()=>y,cp:()=>b,lK:()=>v,l_:()=>E});var o=n(58706),i=n(64709),r=n(56079),a=n(18542),s=n(89312),l=n(98590),c=n(30659),u=n(9465),d=n(50823),p=n(14911),f="500px",h={sm:o.o78,md:o.mGT,lg:o.JBZ},m={sm:o.nuo,md:o.F_T,lg:o.g4V},g={sm:"5px",md:o.nuo,lg:"10px"},v=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="".concat("deprecated"===(arguments.length>2?arguments[2]:void 0)?(0,a.zg)(s.i8[e])-n:(0,a.zg)(c.sz[e])-n,"px");var o="".concat((0,a.zg)(h[e])-n,"px"),i="".concat(function(e){var t=m[e],n=g[e],o=c._[e];return(0,a.zg)(t)+o+(0,a.zg)(n)}(e)-n,"px");return{paddingTopBottom:t,paddingLeftRight:o,withIconPaddingLeftRight:i}},y=function(e,t,n,o,r,a){var s=v(e,r,a),l=s.paddingTopBottom,u=s.paddingLeftRight,d=s.withIconPaddingLeftRight,p=(0,i.iv)(["inline-size:",";block-size:",";"],c.il[e],c.il[e]),f=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],l,l,u,u),h=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],l,l,d,d),m=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],l,l,t?d:u,n?d:u);return o?p:t||n?t&&n?h:m:f},_=function(e,t,n){return(0,i.iv)(["",";"," ",";background-color:transparent;border:0;border-radius:",";cursor:pointer;display:inline-block;position:relative;text-align:center;text-decoration:none;text-transform:",";touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],(0,u.D)(),!t&&d.Cs,function(e,t){if(t===r.k3.deprecated)return(0,s.O3)(e);switch(e){case"sm":return(0,l.I_)();case"md":default:return(0,l.Vr)();case"lg":return(0,l.GW)()}}(e,n),f,"none","33ms")},b=(0,i.iv)(["cursor:",";opacity:",";transform:scale(1);"],p.fn,p.Zx),S=(0,i.iv)(["opacity:",";outline:none;transform:scale(1);"],p.MQ),E=(0,i.iv)(["transform:scale(",");"],"1.04"),A=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(["background-color:transparent;border:0;color:inherit;cursor:pointer;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&d.Cs)}},30659:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,il:()=>i,sz:()=>r});var o=n(58706),i={sm:o.mGT,md:o.JBZ,lg:o.cQs},r={sm:o.hM$,md:o.dly,lg:o.nuo},a={sm:16,md:24,lg:24}},50823:(e,t,n)=>{"use strict";n.d(t,{Bg:()=>a,Cs:()=>c,Ef:()=>r,F5:()=>u,IW:()=>s,Nz:()=>d,_3:()=>h,k2:()=>f,qr:()=>l,qy:()=>g,s8:()=>m});var o=n(64709),i=n(3254),r=3,a=(0,i.NE)(i.iK.essentialBase),s="200ms",l="ease-in",c=(0,o.iv)(["&:focus{outline:none;}"]);function u(){return{dimension:"".concat(4*r,"px"),position:"-".concat(2*r,"px")}}var d=function(){var e=u(),t=e.dimension,n=e.position;return(0,o.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(t,")"),"calc(100% + ".concat(t,")"),n,n)},p=(0,o.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],s,l),f=function(e){return(0,o.iv)([""," "," background:transparent;border-radius:",";border:","px solid transparent;"],p,d(),e,r)},h=function(e){return(0,o.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],p,e-2*r,r)},m=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,o.iv)(["position:relative;"," ",""],c,t&&(0,o.iv)(["&::after{"," content:'';}&:focus::after{border-color:",";}",""],f(e),a,n&&(0,o.iv)(["&::after{border-color:",";}"],a)))},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,o.iv)(["position:relative;"," ",""],c,t&&(0,o.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],h(e),n&&(0,o.iv)(["&::after{border-color:inherit;}"])))}},42626:(e,t,n)=>{"use strict";n.d(t,{DW:()=>p,GN:()=>d,O0:()=>m,d_:()=>f,lm:()=>u,oi:()=>h});var o=n(58706),i=n(64709),r=n(30659),a=n(3254),s=n(14911),l=n(9465),c=n(98590),u=function(e){return(0,i.iv)(["-webkit-appearance:none;background-image:none;border:0;display:block;",";transition:box-shadow ease-in-out 0.1s,color ease-in-out 0.1s;inline-size:100%;&::placeholder{opacity:1;}"," &:disabled{cursor:not-allowed;opacity:1;}"],(0,c.Mp)(),!e&&(0,i.iv)(["&:focus,&:hover:focus{outline:0;}"]))},d=function(){return(0,i.iv)(["",";margin-block-start:0;margin-block-end:0;appearance:none;box-shadow:none;text-indent:0.01px;text-overflow:'';&::-ms-expand{display:none;}border-radius:",";padding-block-start:",";padding-block-end:",";padding-inline-start:14px;padding-inline-end:44px;"],(0,l.D)(),o.hM$,r.sz.md,r.sz.md)},p=function(){return(0,i.iv)(["color:",";pointer-events:none;position:absolute;right:14px;[dir='rtl'] &{left:14px;right:auto;}"],(0,a.NE)(a.iK.essentialSubdued))},f=function(){return(0,i.iv)(["",";align-items:center;display:flex;padding-block-end:",";padding-block-start:",";position:relative;min-block-size:",";"],(0,l.D)(),o.hM$,o.hM$,o.mGT)},h=function(e){return(0,i.iv)(["",";background:transparent;border-radius:",";display:inline-block;block-size:",";position:relative;user-select:none;inline-size:",";flex-shrink:0;align-self:flex-start;top:0;"],(0,l.D)(),e,o.o78,o.o78)},m=function(e){var t=e.isUsingKeyboard,n=void 0===t||t,o=e.isHover,r=e.isFocus,l=e.useBrowserDefaultFocusStyle,c=e.error,u=(0,i.iv)(["box-shadow:inset 0 0 0 1px ",";"],(0,a.NE)(a.iK.essentialBase)),d=(0,i.iv)(["box-shadow:inset 0 0 0 ","px ",";"],n?3:1.5,(0,a.NE)(a.iK.essentialBase)),p=(0,i.iv)(["&,&:hover{box-shadow:inset 0 0 0 1px ",";}&:focus{box-shadow:inset 0 0 0 ","px ",";}"],(0,a.NE)(a.iK.essentialNegative),n?3:1.5,(0,a.NE)(a.iK.essentialNegative));return(0,i.iv)(["background-color:",";box-shadow:inset 0 0 0 1px ",";color:",";&:hover,&[readonly]:hover{","}"," &:focus,&[readonly]:focus{","}&&{",";}&::placeholder{color:",";}&:disabled{opacity:",";box-shadow:inset 0 0 0 1px ",";}&[readonly]{box-shadow:inset 0 0 0 1px ",";}&:invalid{",";}",""],(0,a.NE)(a.iK.backgroundBase),(0,a.NE)(a.iK.essentialSubdued),(0,a.NE)(a.iK.textBase),u,o&&u,!l&&d,r&&!l&&d,(0,a.NE)(a.iK.textSubdued),s.Zx,(0,a.NE)(a.iK.essentialSubdued),(0,a.NE)(a.iK.decorativeSubdued),void 0===c&&p,c&&p)}},7734:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var o=n(64709),i=function(){return(0,o.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"])}},61835:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,a:()=>a});var o=n(91689),i={top:"top",topRight:"topRight",topLeft:"topLeft",left:"left",leftTop:"leftTop",leftBottom:"leftBottom",bottom:"bottom",bottomLeft:"bottomLeft",bottomRight:"bottomRight",right:"right",rightTop:"rightTop",rightBottom:"rightBottom"},r={top:"top",topRight:"topEnd",topLeft:"topStart",left:"start",leftTop:"startTop",leftBottom:"startBottom",bottom:"bottom",bottomLeft:"bottomStart",bottomRight:"bottomEnd",right:"end",rightTop:"endTop",rightBottom:"endBottom"};function a(e){var t,n;if(e)return t=e,n=o.LR,t in n?e:r[e]}},91689:(e,t,n)=>{"use strict";n.d(t,{WZ:()=>h,IJ:()=>f,qE:()=>m,Jh:()=>d,LR:()=>p});var o=n(58706),i=n(64709),r=n(14911),a=n(18542),s=n(3254),l="rgba(0, 0, 0, 0.05)",c="var(--background-elevated-base, ".concat(s.cv.background.elevated.base,")"),u=function(e){var t=e.color,n=void 0===t?c:t,r=e.position,a=e.offset,s=e.width,u=void 0===s?o.dly:s,d="-".concat(u);return(0,i.iv)(["position:relative;&&::after{bottom:auto;content:'';left:auto;position:absolute;right:auto;top:auto;",";",";",";",";",";",";",";",";}"],"bottom"===r&&(0,i.iv)(["border-block-end:0;border-inline-start:"," solid transparent;border-inline-end:"," solid transparent;border-block-start:"," solid ",";"],u,u,u,n),"top"===r&&(0,i.iv)(["border-block-end:"," solid ",";border-inline-start:"," solid transparent;border-inline-end:"," solid transparent;border-block-start:0;"],u,n,u,u),"end"===r&&(0,i.iv)(["border-block-end:"," solid transparent;border-inline-start:"," solid ",";border-inline-end:0;border-block-start:"," solid transparent;"],u,u,n,u),"start"===r&&(0,i.iv)(["border-block-end:"," solid transparent;border-inline-start:0;border-inline-end:"," solid ",";border-block-start:"," solid transparent;"],u,u,n,u),"top"===r&&(0,i.iv)(["left:",";top:",";filter:drop-shadow(0 -2px 1px ",");[dir='rtl'] &{left:unset;right:",";}"],"center"===a?"calc(50% - ".concat(u,")"):a,d,l,"center"===a?"calc(50% - ".concat(u,")"):a),"bottom"===r&&(0,i.iv)(["bottom:",";left:",";filter:drop-shadow(0 2px 1px ",");[dir='rtl'] &{left:unset;right:",";}"],d,"center"===a?"calc(50% - ".concat(u,")"):a,l,"center"===a?"calc(50% - ".concat(u,")"):a),"start"===r&&(0,i.iv)(["left:",";top:",";filter:drop-shadow(-2px 0 1px ",");[dir='rtl'] &{left:unset;right:",";filter:drop-shadow(2px 0 1px ",");}"],d,"center"===a?"calc(50% - ".concat(u,")"):a,l,d,l),"end"===r&&(0,i.iv)(["right:",";top:",";filter:drop-shadow(2px 0 1px ",");[dir='rtl'] &{right:unset;left:",";filter:drop-shadow(-2px 0 1px ",");}"],d,"center"===a?"calc(50% - ".concat(u,")"):a,l,d,l))},d="0 ".concat(o.hM$," ").concat(o.nuo," 0 rgba(0, 0, 0, 0.2)"),p={top:"top",topEnd:"topEnd",topStart:"topStart",start:"start",startTop:"startTop",startBottom:"startBottom",bottom:"bottom",bottomStart:"bottomStart",bottomEnd:"bottomEnd",end:"end",endTop:"endTop",endBottom:"endBottom"},f=function(e){var t=e.maxWidth,n=void 0===t?"296px":t,r=e.colorSet,a=void 0===r?"base":r;return(0,i.iv)(["background:",";color:",";border-radius:",";box-shadow:",";text-align:start;cursor:default;display:inline-block;max-inline-size:",";position:relative;"],(0,s.NE)(s.iK.backgroundElevatedBase,s.uH[a].background.elevated.base),(0,s.NE)(s.iK.textBase,s.uH[a].text.base),o.dly,d,n)},h=function(e){var t=e.colorSet;return(0,i.iv)(["",";display:flex;flex-direction:column;max-block-size:90vh;z-index:",";@media (min-width:","){max-block-size:80vh;}"],f({maxWidth:"calc(100% - ".concat(o.JBZ,")"),colorSet:t}),r.x,o.SA3)},m=function(e){switch(e){case"top":return u({offset:"center",position:"top"});case"topStart":return u({offset:o.dly,position:"top"});case"topEnd":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"top"});case"bottom":return u({offset:"center",position:"bottom"});case"bottomStart":return u({offset:o.dly,position:"bottom"});case"bottomEnd":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"bottom"});case"start":return u({offset:"center",position:"start"});case"startTop":return u({offset:o.dly,position:"start"});case"startBottom":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"start"});case"end":return u({offset:"center",position:"end"});case"endTop":return u({offset:o.dly,position:"end"});case"endBottom":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"end"});default:return(0,a.vE)(e)}}},98590:(e,t,n)=>{"use strict";n.d(t,{h2:()=>W,AH:()=>z,Mp:()=>Q,Vr:()=>$,l8:()=>H,R:()=>Y,xi:()=>q,GW:()=>X,BS:()=>Z,QB:()=>re,VW:()=>ae,Yt:()=>K,Ue:()=>ne,I_:()=>oe,As:()=>ie,gI:()=>se,bx:()=>le,Ef:()=>ee,Dg:()=>te});var o=n(58706);const i={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},r={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},a={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},s={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},l={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},c={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},u={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},d={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},p={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},f={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},h={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},m={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},g={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},v={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},y={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},_={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},b={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},S={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},E={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},A={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},T={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},P={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},O={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},C={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},k={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},R={fontSize:"6rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},L={fontSize:"4.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},I={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},N={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},w={fontSize:"0.75rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},D={fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},M={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},x={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},F={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},U={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},B={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},V={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},G={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"};var J=n(64709),j=function(e,t){var n=e.fontSize!==t.fontSize,i=e.fontWeight!==t.fontWeight,r=e.textTransform!==t.textTransform,a=e.letterSpacing!==t.letterSpacing,s=e.fontFamily!==t.fontFamily,l=n||i||s||r||a;return(0,J.iv)(["font-size:",";font-weight:",";text-transform:",";letter-spacing:",";font-family:var(--font-family,",");",";"],e.fontSize,e.fontWeight,e.textTransform,e.letterSpacing,e.fontFamily,l&&(0,J.iv)(["@media (min-width:","){font-size:",";font-weight:",";font-family:",";text-transform:",";letter-spacing:",";}"],o.eqR.screenSmMin,n&&t.fontSize,i&&t.fontWeight,s&&"var(--font-family, ".concat(t.fontFamily,")"),r&&t.textTransform,a&&t.letterSpacing))},H=function(){return j(u,R)},K=function(){return j(d,L)},Y=function(){return j(p,I)},W=function(){return j(_,U)},z=function(){return j(y,F)},q=function(){return j(b,B)},X=function(){return j(E,G)},Z=function(){return j(S,V)},Q=function(){return j(i,A)},$=function(){return j(r,T)},ee=function(){return j(a,P)},te=function(){return j(s,O)},ne=function(){return j(l,C)},oe=function(){return j(c,k)},ie=function(){return j(v,N)},re=function(){return j(f,M)},ae=function(){return j(h,x)},se=function(){return j(m,w)},le=function(){return j(g,D)}},87577:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var o=n(64709),i=function(){return(0,o.iv)(["border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"])}},3254:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>v,Ev:()=>O,D6:()=>_,NE:()=>b,cv:()=>p,Y7:()=>d,uH:()=>u,EG:()=>m,iK:()=>T});var o=n(60901),i=n(68492);const r={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#117a37",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#169b45",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#12833a",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#17a449",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}};var a=n(74654),s=n.n(a);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=r,d="base",p=u[d],f=(Object.keys(u),function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,o){var r,a=(0,i.Z)(o,2),s=a[0],l=a[1],u=s;return""!==n&&(u="".concat(n).concat((r=s).charAt(0).toUpperCase()+r.slice(1))),"object"==typeof l?c(c({},t),e(l,u)):"string"==typeof l?(t[u]=l,t):t}),{})});function h(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function m(e){return e?"encore-".concat(h(e),"-set"):""}function g(e){if(!e)return"";var t=e.replace("Set","");return"encore-".concat(h(t),"-set")}function v(e,t){return e in r?[m(e),t].join(" ").trim():[g(e),t].join(" ").trim()}function y(e){return"--".concat(h(e))}function _(e){return Object.entries(f(e)).map((function(e){var t=(0,i.Z)(e,2),n=t[0],o=t[1];return"\n ".concat(y(n),": ").concat(o," !important;\n ")}))}function b(e,t){var n=f(p)[e];return t&&(n=t),"var(".concat(y(e),", ").concat(n,")")}var S={textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"},E={essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"},A={decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"},T=(c(c(c({},S),E),A),c(c(c(c({},{backgroundBase:"backgroundBase",backgroundHighlight:"backgroundHighlight",backgroundPress:"backgroundPress",backgroundElevatedBase:"backgroundElevatedBase",backgroundElevatedHighlight:"backgroundElevatedHighlight",backgroundElevatedPress:"backgroundElevatedPress",backgroundTintedBase:"backgroundTintedBase",backgroundTintedHighlight:"backgroundTintedHighlight",backgroundTintedPress:"backgroundTintedPress",backgroundUnsafeForSmallTextBase:"backgroundUnsafeForSmallTextBase",backgroundUnsafeForSmallTextHighlight:"backgroundUnsafeForSmallTextHighlight",backgroundUnsafeForSmallTextPress:"backgroundUnsafeForSmallTextPress"}),S),E),A)),P=function(e,t){return e.contrast(t)},O=function(e,t){var n=s()(e),o=void 0;t&&(o=s()(t));var i,r,a,l=o&&P(n,o)>=4.45?o:(i=n,r=s()("#FFFFFF"),a=s()("#000000"),P(i,r)>=P(i,a)?r:a),c=l.luminosity()>=n.luminosity(),u=c?s()(n.lightness(n.hsl().object().l-5)):s()(n.lightness(n.hsl().object().l+5)),d=c?s()(u.lightness(u.hsl().object().l-5)):s()(u.lightness(u.hsl().object().l+5));return{background:{base:n.hex(),highlight:u.hex(),press:d.hex(),elevated:{base:n.hex(),highlight:u.hex(),press:d.hex()},tinted:{base:n.hex(),highlight:u.hex(),press:d.hex()},unsafeForSmallText:{base:n.hex(),highlight:u.hex(),press:d.hex()}},text:{base:l.hex(),subdued:l.hex(),brightAccent:l.hex(),negative:l.hex(),warning:l.hex(),positive:l.hex(),announcement:l.hex()},essential:{base:l.hex(),subdued:l.hex(),brightAccent:l.hex(),negative:l.hex(),warning:l.hex(),positive:l.hex(),announcement:l.hex()},decorative:{base:l.hex(),subdued:l.hex()}}}},14911:(e,t,n)=>{"use strict";n.d(t,{CR:()=>h,CV:()=>c,MQ:()=>g,Tu:()=>l,V9:()=>p,Y$:()=>a,Zx:()=>m,fn:()=>v,nj:()=>s,rp:()=>d,tE:()=>r,tS:()=>f,x:()=>u});var o=n(58706),i=n(81239),r=400,a=700,s=900,l=0,c=1040,u=1050,d=1060,p="200px",f=(0,i.Sq)("compact",o.g4V),h="0.1s",m=o.YhY,g=o.crY,v="not-allowed"},18542:(e,t,n)=>{"use strict";function o(e){throw new Error("Unreachable value")}n.d(t,{vE:()=>o,zg:()=>i});var i=function(e){return parseInt(e,10)}},78400:(e,t,n)=>{"use strict";function o(e,t){return function(e){return e&&"string"==typeof e.valueOf()}(e)?t:e}n.d(t,{Q:()=>o})},90093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClient=void 0,t.createSemanticMetricClient=function(e){return{name:"SemanticMetricClient",environments:["browser","device"],data:e}}},69499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClientNonAuth=void 0,t.createSemanticMetricClientNonAuth=function(e){return{name:"SemanticMetricClientNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}},41302:(e,t)=>{"use strict";t.F=void 0,t.F=function(e){return{name:"ConfigurationApplied",environments:["device","browser"],data:e}}},64342:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"ConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},72611:(e,t)=>{"use strict";t.T=void 0,t.T=function(e){return{name:"DefaultConfigurationApplied",environments:["device","browser"],data:e}}},24769:(e,t)=>{"use strict";t.$=void 0,t.$=function(e){return{name:"DefaultConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},43319:(e,t)=>{"use strict";t.C=void 0,t.C=function(e){return{name:"SptCookieConsentClientNonAuth",environments:["browsernonauth"],data:e}}},75887:(e,t)=>{"use strict";t.i=void 0,t.i=function(e){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},32885:(e,t)=>{"use strict";t.t=void 0,t.t=function(e){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:e}}},4842:(e,t)=>{"use strict";t.U=void 0,t.U=function(e){return{name:"UbiExpr2PageView",environments:["device","browser","desktop"],data:e}}},87699:(e,t)=>{"use strict";t.z=void 0,t.z=function(e){return{name:"UbiExpr5ImpressionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},69274:(e,t)=>{"use strict";t.Y=void 0,t.Y=function(e){return{name:"UbiExpr6InteractionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},2584:(e,t)=>{"use strict";t.S=void 0,t.S=function(e){return{name:"UbiProd1Impression",environments:["device","browser","desktop"],data:e}}},77393:(e,t)=>{"use strict";t.E=void 0,t.E=function(e){return{name:"UbiProd1Interaction",environments:["device","browser","desktop"],data:e}}},13799:(e,t)=>{"use strict";t.x=void 0,t.x=function(e){return{name:"WwwExperiments",environments:["browser"],data:e}}},74263:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"WwwExperimentsNonAuth",environments:["browsernonauth"],data:e}}},33334:(e,t,n)=>{"use strict";function o(e){return{name:"AdError",environments:["device"],data:e}}n.d(t,{v:()=>o})},96481:(e,t,n)=>{"use strict";function o(e){return{name:"AdEvent",environments:["browser","device","desktop"],data:e}}n.d(t,{X:()=>o})},71666:(e,t,n)=>{"use strict";function o(e){return{name:"AdViewContext",environments:["browser","device","desktop"],data:e}}n.d(t,{u:()=>o})},23926:(e,t,n)=>{"use strict";function o(e){return{name:"BetamaxPlaybackErrorDevice",environments:["device","desktop"],data:e}}n.d(t,{c:()=>o})},8136:(e,t,n)=>{"use strict";function o(e){return{name:"CastTransfer",environments:["device","browser"],data:e}}n.d(t,{I:()=>o})},16364:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableExtendedCredit",environments:["browser"],data:e}}n.d(t,{v:()=>o})},12050:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableExtendedCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{Y:()=>o})},54946:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableTrackCredit",environments:["browser","device","desktop"],data:e}}n.d(t,{x:()=>o})},63437:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableTrackCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{d:()=>o})},35889:(e,t,n)=>{"use strict";function o(e){return{name:"ClientStreamSignals",environments:["browser","desktop"],data:e}}n.d(t,{m:()=>o})},12505:(e,t,n)=>{"use strict";function o(e){return{name:"ClientVerificationCompleted",environments:["browser","desktop"],data:e}}n.d(t,{h:()=>o})},46378:(e,t,n)=>{"use strict";function o(e){return{name:"ClientVerificationPresented",environments:["browser","desktop"],data:e}}n.d(t,{x:()=>o})},81460:(e,t,n)=>{"use strict";function o(e){return{name:"ClientVerificationRequestFailed",environments:["browser","desktop"],data:e}}n.d(t,{b:()=>o})},72595:(e,t,n)=>{"use strict";function o(e){return{name:"ConnectDevicePickerClosed",environments:["device","desktop","browser"],data:e}}n.d(t,{n:()=>o})},56129:(e,t,n)=>{"use strict";function o(e){return{name:"ConnectNudgeRequestedDesktopExperiment",environments:["desktop"],data:e}}n.d(t,{U:()=>o})},25515:(e,t,n)=>{"use strict";function o(e){return{name:"DeeplinkOpen",environments:["browser","device"],data:e}}n.d(t,{K:()=>o})},22372:(e,t,n)=>{"use strict";function o(e){return{name:"KmInteraction",environments:["browser"],data:e}}n.d(t,{p:()=>o})},21950:(e,t,n)=>{"use strict";function o(e){return{name:"KmInteractionNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>o})},43115:(e,t,n)=>{"use strict";function o(e){return{name:"KmPageView",environments:["browser"],data:e}}n.d(t,{v:()=>o})},16064:(e,t,n)=>{"use strict";function o(e){return{name:"KmPageViewNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{t:()=>o})},4174:(e,t,n)=>{"use strict";function o(e){return{name:"MinimumLyricsCharactersSeen",environments:["device","desktop"],data:e}}n.d(t,{N:()=>o})},64265:(e,t,n)=>{"use strict";function o(e){return{name:"PodcastAdCtaCardEvent",environments:["desktop"],data:e}}n.d(t,{createPodcastAdCtaCardEvent:()=>o})},81022:(e,t,n)=>{"use strict";function o(e){return{name:"ScrollTrackCredits",environments:["browser","desktop","device"],data:e}}n.d(t,{d:()=>o})},72703:(e,t,n)=>{"use strict";function o(e){return{name:"ScrollTrackCreditsNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{W:()=>o})},99583:(e,t,n)=>{"use strict";function o(e){return{name:"Share",environments:["browser","device"],data:e}}n.d(t,{G:()=>o})},30045:(e,t,n)=>{"use strict";function o(e){return{name:"WindowSize",environments:["desktop","browser"],data:e}}n.d(t,{_:()=>o})},42116:(e,t,n)=>{"use strict";function o(e){return{name:"WwwAnalytics",environments:["browser"],data:e}}n.d(t,{t:()=>o})},7572:(e,t,n)=>{"use strict";function o(e){return{name:"WwwAnalyticsNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>o})},50787:(e,t,n)=>{"use strict";function o(e){return{name:"WwwExperiments",environments:["browser"],data:e}}n.d(t,{x:()=>o})},79739:(e,t,n)=>{"use strict";function o(e){return{name:"WwwExperimentsNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{k:()=>o})},37105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBase64=void 0;var o=n(47739);t.hexToBase64=function(e){if(!e||e.length%2!=0)throw new TypeError("Invalid hexString value.");var t=e.split("").reduce((function(e,t,n){return n%2==0?(e.push(t),e):(e[e.length-1]=""+e[e.length-1]+t,e)}),[]),n=String.fromCharCode.apply(null,t.map((function(e){var t=parseInt(e,16);if(isNaN(t))throw new TypeError("Invalid hexString value.");return t})));return o.Base64.encode(n)}},52756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationContext=void 0,t.createApplicationContext=function(e){return function(){return{name:"context_application",data:e}}}},88010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationDesktopContext=void 0,t.createApplicationDesktopContext=function(e){return function(){return{name:"context_application_desktop",data:e}}}},80393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCacheIdContext=void 0;var o=n(37105);t.createCacheIdContext=function(e){var t=o.hexToBase64(e);return function(){return{name:"context_cache_id",data:{value:t}}}}},57298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIdContext=void 0;var o=n(37105);t.createClientIdContext=function(e){var t=o.hexToBase64(e);return function(){return{name:"context_client_id",data:{value:t}}}}},77950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIpContext=void 0,t.createClientIpContext=function(e){return function(){return{name:"context_client_ip",data:{value:e}}}}},81538:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCorrelationIdContext=void 0,t.createCorrelationIdContext=function(e){return function(){return{name:"context_correlation_id",data:{value:e}}}}},26844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceContext=void 0,t.createDeviceContext=function(e){return function(){return{name:"context_device",data:e}}}},28936:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceDesktopContext=void 0,t.createDeviceDesktopContext=function(e){return function(){return{name:"context_device_desktop",data:e}}}},35267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(96583);o.__exportStar(n(52756),t),o.__exportStar(n(88010),t),o.__exportStar(n(80393),t),o.__exportStar(n(57298),t),o.__exportStar(n(77950),t),o.__exportStar(n(81538),t),o.__exportStar(n(26844),t),o.__exportStar(n(28936),t),o.__exportStar(n(3755),t),o.__exportStar(n(63758),t),o.__exportStar(n(33095),t)},3755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInstallationIdContext=void 0;var o=n(37105);t.createInstallationIdContext=function(e){var t=o.hexToBase64(e);return function(){return{name:"context_installation_id",data:{value:t}}}}},63758:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOsContext=void 0,t.createOsContext=function(e){return function(){return{name:"context_os",data:e}}}},33095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserAgentContext=void 0,t.createUserAgentContext=function(e){if(!e&&"undefined"==typeof navigator)throw new Error("userAgent is not provided and navigator.UserAgent is not available");return function(){return{name:"context_user_agent",data:{value:e||navigator.userAgent}}}}},52381:(e,t,n)=>{"use strict";var o;n.r(t),n.d(t,{Environment:()=>o,EventSenderEvent:()=>i,createEventSender:()=>P}),function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(o||(o={}));var i,r=n(96583),a=n(72755),s=n(86338),l=n(53016);!function(e){e.UPLOAD_SUCCEEDED="upload_succeeded",e.UPLOAD_FAILED="upload_failed",e.UPLOAD_REQUEST_FAILED="upload_request_failed"}(i||(i={}));const c=s.P.forTag("Uploader");function u(e,t){const{event_name:n,fragments:o}=e,{message:i}=o;return{reason:t,contexts:(0,r.__rest)(o,["message"]),event_data:{name:n,data:i}}}class d extends l.vp{constructor(e){var t;super(),this._suppressPersist=!1,this._backoff=!1,this._authorize=null===(t=e.authorize)||void 0===t||t,this._transport=e.transport,this._suppressPersist=!!e.suppressPersist,this._endpoint=this._authorize?"@webgate/gabo-receiver-service/v3/events":"@webgate/gabo-receiver-service/public/v3/events"}_uploadBatch(e,t=!1){const n=this._transport,o=t&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(o,{method:a.Method.POST,metadata:{eventSenderEventNames:e.map((e=>e.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:e}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{body:o,headers:r,status:a}=n,s=this._authorize;if(200!==a||!o)return c.warn("Upload request failed",n),this.emit(i.UPLOAD_REQUEST_FAILED,{authorize:s,status:a}),this._backoff=!0,Promise.resolve(e);const l=[],d=[],p=[];if(o.error&&o.error.length){c.info("response errors",e,o.error);for(let t=0,n=o.error.length;t<n;t++){const{transient:n,index:i,reason:r}=o.error[t],a=u(e[i],r);n?(l.push(e[i]),d.push(a)):p.push(a)}}this._backoff=!("true"!==(null==r?void 0:r.get("backoff")));const f=d.length+p.length,h=e.length-f;return f>0&&this.emit(i.UPLOAD_FAILED,{authorize:s,rejected:p,will_retry:d}),h>0&&this.emit(i.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:h}),Promise.resolve(l)}upload(e,t=[]){let n=t;if(!e.length)return Promise.resolve({nack:n,backoff:this._backoff});const o=[...e];return this._uploadBatch(o.splice(0,20)).then((e=>{if(n=[...n,...e],this._backoff)n=[...n,...o];else if(o.length)return this.upload(o,n);return{nack:n,backoff:this._backoff}}))}lastUpload(e){return e.length?this._uploadBatch(e.splice(0,100),!0).then((e=>0===e.length),(()=>!1)):Promise.resolve(!0)}shouldBackoff(){return this._backoff}}function p(e){return new d(e)}var f,h=n(19713),m=n(32885);!function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(f||(f={}));const g="4.0.3";var v=n(75887);class y{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class _{_addEventsToEventSenderStatsData(e,t){Object.keys(t).map((n=>{for(let o=0;o<t[n].length;o++){const i=t[n][o];i.sequence_number<e[i.sequence_id][i.event_name].sequence_number_min&&(e[i.sequence_id][i.event_name].sequence_number_min=i.sequence_number),e[i.sequence_id][i.event_name].storage_size++}}))}_initializeESSEventData(e,t,n){Object.keys(e).includes(n)||(e[n]={});for(const[o,i]of Object.entries(t))e[n][o]={sequence_number_min:i+1,sequence_number_next:i+1,storage_size:0}}_formatESS2UnauthEventData(e){const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[]};return Object.entries(e).map((([e,n])=>{if(y.isMissingFromArray(t.sequence_ids,e))t.sequence_ids.push(e),t.loss_stats_num_entries_per_sequence_id.push(Object.keys(n).length);else{const o=t.sequence_ids.indexOf(e);t.loss_stats_num_entries_per_sequence_id[o]+=Object.keys(n).length}Object.entries(n).map((([e,n])=>{y.pushToArrIfMissing(t.event_names,e);const o=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(o);const i=Object.keys(n);for(let e=0;e<i.length;e++){const o=`loss_stats_${i[e]}s`;t[o].push(n[i[e]])}}))})),t}createESSEvent(e,t,n){const o={};this._initializeESSEventData(o,t,n),this._addEventsToEventSenderStatsData(o,e);return(0,v.i)(this._formatESS2UnauthEventData(o))}}var b=n(47739);const S={generateBase64:function(e){return b.Base64.encode(function(e){let t="";for(let n=0;n<e;n++)t+=String.fromCharCode(256*Math.random()|0);return t}(e))}};class E{constructor(){this._sequenceId=S.generateBase64(16),this._sequenceNumbers={}}static create(){return new E}getSequenceId(){return this._sequenceId}nextSequenceNumber(e){return this._sequenceNumbers[e]||(this._sequenceNumbers[e]=0),++this._sequenceNumbers[e]}getAllSequenceNumberCounters(){return this._sequenceNumbers}}const A={baseTime:200,ceiling:3e5,maxDuration:18e5};class T extends l.vp{constructor(e){var t;super(),this._sequenceIdGenerator=E.create(),this._statsSender=new _,this._instanceContexts={},this._sdkVersion=`${g}${null!==(t=e._experimentSuffix)&&void 0!==t?t:""}`,this._transport=e.transport,this._ownerProvider=e.ownerProvider,this._events={authorized:[],unauthorized:[]},this._uploaders=e.uploaders,this._ongoingUploads={authorized:!1,unauthorized:!1},this._uploadWaiting={authorized:!1,unauthorized:!1},this._backoffTimeSettings=Object.assign(Object.assign({},A),e.backoffTimeOverrides),this.upload=this.upload.bind(this),this._essLastSent=null;"undefined"!=typeof window&&"function"==typeof window.addEventListener&&!e.disableBeforeUnloadListener&&window.addEventListener("beforeunload",this.onBeforeDisconnect.bind(this)),this.initializeContexts(e.context);const n={[i.UPLOAD_SUCCEEDED]:i.UPLOAD_SUCCEEDED,[i.UPLOAD_FAILED]:i.UPLOAD_FAILED,[i.UPLOAD_REQUEST_FAILED]:i.UPLOAD_REQUEST_FAILED};this.proxyEmitAll(this._uploaders.authorized,n),this.proxyEmitAll(this._uploaders.unauthorized,n)}onBeforeDisconnect(){this.uploadFlush()}uploadFlush(){return Promise.all([this._uploaders.authorized.lastUpload(this._events.authorized.splice(0)),this._uploaders.unauthorized.lastUpload(this._events.unauthorized.splice(0))]).then((([e,t])=>e&&t)).catch((()=>!1))}initializeContexts(e){if(!(null==e?void 0:e.length))return;const t=this._instanceContexts;for(const n of e){const e=n();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}initFlush(e){const t=this._uploaders[e].shouldBackoff(),{ceiling:n,maxDuration:o,baseTime:i}=this._backoffTimeSettings;return h.V.init((()=>this.upload(e)),{curve:"exponential",backoffInitial:t,retryPredicate:()=>this._transport.isOnline(),ceiling:n,baseTime:t?n:i,maxDuration:o})}waitForConnection(){return new Promise((e=>{this._transport.once(a.TransportEvent.CONNECTION_ONLINE,(()=>e()))}))}upload(e){return this._uploaders[e].upload(this._events[e].splice(0)).then((t=>{if(t.nack.length)throw this._events[e]=t.nack.concat(this._events[e]),new Error("Backoff requested");return t}))}sendToGabito(e){const t=e?"authorized":"unauthorized";this._transport.isOnline()||this._ongoingUploads[t]||(this._ongoingUploads[t]=this.waitForConnection());const n=this._ongoingUploads[t];if(n)return this._uploadWaiting[t]||(this._uploadWaiting[t]=!0,this._ongoingUploads[t]=n.then((()=>(this._ongoingUploads[t]=!1,this._uploadWaiting[t]=!1,this.sendToGabito(e))))),this._ongoingUploads[t];if(!this._events[t].length)return Promise.resolve({nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()});if(!this._essLastSent||Date.now()-this._essLastSent.getTime()>3e5){const e=[this.makeEvent(this._statsSender.createESSEvent(this._events,this._sequenceIdGenerator.getAllSequenceNumberCounters(),this._sequenceIdGenerator.getSequenceId()))];this._uploaders.unauthorized.upload(e).finally((()=>{this._essLastSent=new Date}))}const o=this.initFlush(t).then((e=>(this._ongoingUploads[t]=!1,e))).catch((()=>(this._ongoingUploads[t]=!1,this._transport.isOnline()?(T.consoleLogger.warn(`The events in the queue could not be uploaded. Throwing away ${this._events[t].length} ${t} events.`),this._events[t]=[],{nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()}):this.sendToGabito(e))));return this._ongoingUploads[t]=o,o}storeEvent(e,t){const n=this.makeEvent(t);this._events[e?"authorized":"unauthorized"].push(n)}makeEvent(e){const t=this._sequenceIdGenerator;return{sequence_id:t.getSequenceId(),sequence_number:t.nextSequenceNumber(e.name),event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this._sdkVersion,type:"javascript"},context_time:{timestamp:Date.now()}},this._instanceContexts),{message:e.data})}}validateEventData(e,t,n){return e.name?function(e){let t=e.length,n=t;for(;n--;){const o=e.charCodeAt(n);o>127&&o<=2047?t++:o>2047&&o<=65535&&(t+=2),o>=56320&&o<=57343&&n--}return t}(JSON.stringify(e.data))>5e3?f.PAYLOAD_SIZE_LIMIT_EXCEEDED:t&&n&&!n()?f.UNKNOWN_OWNER:null:f.INVALID_NAME}checkIsEventAuthorized(e){return!e.endsWith("NonAuth")}flush(e=!0){return this.sendToGabito(e).then((()=>{})).catch((()=>{}))}flushAll(){return Promise.all([this.sendToGabito(!0),this.sendToGabito(!1)]).then((()=>{})).catch((()=>{}))}finalFlush(){return this.uploadFlush()}log(e,t={}){this.send(e,t)}send(e,{flush:t=!0}={}){const n=this.checkIsEventAuthorized(e.name);let o=this.validateEventData(e,n,this._ownerProvider);if(o===f.UNKNOWN_OWNER&&(T.consoleLogger.warn(`Trying to send an authenticated event without a current owner: ${e.name}`),o=null),o){const t=(0,m.t)({event_name:e.name,reject_reason:o});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${o}`))}return this.storeEvent(n,e),t?this.flush(n):Promise.resolve()}hasContext(...e){return e.every((e=>!!this._instanceContexts[e]))}}function P(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new T(Object.assign(Object.assign({},e),{uploaders:{authorized:p(t),unauthorized:p(Object.assign(Object.assign({},t),{authorize:!1}))}}))}T.consoleLogger=s.P.forTag("EventSender")},90091:(e,t,n)=>{"use strict";function o(e){return()=>({name:"context_application",data:e})}function i(e){return()=>({name:"context_application_desktop",data:e})}n.d(t,{UR:()=>o,UY:()=>i,jx:()=>s,sr:()=>l,CF:()=>c,IE:()=>u,Mb:()=>d});var r=n(6714);function a(e){if(!e||e.length%2!=0)throw new TypeError("Invalid hexString value.");const t=e.split("").reduce(((e,t,n)=>n%2==0?(e.push(t),e):(e[e.length-1]=`${e[e.length-1]}${t}`,e)),[]),n=String.fromCharCode.apply(null,t.map((e=>{const t=parseInt(e,16);if(isNaN(t))throw new TypeError("Invalid hexString value.");return t})));return(0,r.encode)(n)}function s(e){const t=a(e);return()=>({name:"context_client_id",data:{value:t}})}function l(e){return()=>({name:"context_correlation_id",data:{value:e}})}function c(e){return()=>({name:"context_device_desktop",data:e})}function u(e){const t=a(e);return()=>({name:"context_installation_id",data:{value:t}})}function d(e){if(!e&&"undefined"==typeof navigator)throw new Error("userAgent is not provided and navigator.UserAgent is not available");return()=>({name:"context_user_agent",data:{value:e||navigator.userAgent}})}},57920:(e,t,n)=>{"use strict";n.d(t,{_S:()=>r,UY:()=>i.UY,jx:()=>i.jx,CF:()=>i.CF,mi:()=>ie,IE:()=>i.IE});var o,i=n(90091);!function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(o||(o={}));var r,a=n(96583),s=n(72755),l=n(86338),c=n(53016);!function(e){e.UPLOAD_SUCCEEDED="upload_succeeded",e.UPLOAD_FAILED="upload_failed",e.UPLOAD_REQUEST_FAILED="upload_request_failed"}(r||(r={}));const u=l.P.forTag("Uploader");class d extends c.vp{constructor(e){var t;super(),this._suppressPersist=!1,this._backoff=!1,this._authorize=null===(t=e.authorize)||void 0===t||t,this._transport=e.transport,this._suppressPersist=!!e.suppressPersist,this._endpoint=this._authorize?"@webgate/gabo-receiver-service/v3/events":"@webgate/gabo-receiver-service/public/v3/events"}_uploadBatch(e,t=!1){const n=this._transport,{events:o}=e,i=t&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(i,{method:s.Method.POST,metadata:{eventSenderEventNames:o.map((e=>e.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:o}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{events:o,keys:i}=e;if(!i.length)return Promise.resolve([]);const{body:s,headers:l,status:c}=n,d=this._authorize;if(200!==c||!s)return u.warn("Upload request failed",n),this.emit(r.UPLOAD_REQUEST_FAILED,{authorize:d,status:c}),this._backoff=!0,Promise.reject(i);const p=[],f=[],h=[],m=[],g=[],v=s.errors;v&&v.length&&(u.info("response errors",i,v),v.forEach((e=>{const{transient:t,index:n,reason:r}=e,s=i[n],l=function(e,t){const{event_name:n,fragments:o}=e,{message:i}=o;return{reason:t,contexts:(0,a.__rest)(o,["message"]),event_data:{name:n,data:i}}}(o[n],r);p.push(s),t?(h.push(s),m.push(l)):(f.push(s),g.push(l))})));const y=i.filter((e=>!p.includes(e)));this._backoff=!("true"!==(null==l?void 0:l.get("Spotify-Back-Off")));const _=f.length+h.length,b=y.length;_>0&&this.emit(r.UPLOAD_FAILED,{authorize:d,rejected:g,will_retry:m}),b>0&&this.emit(r.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:b});const S=[...y,...f];return Promise.resolve(S)}upload(e){const{events:t}=e;return t.length?this._uploadBatch(e):Promise.resolve([])}lastUpload(e){const{events:t}=e;return t.length?this._uploadBatch(e,!0).then((()=>[])):Promise.resolve([])}shouldBackoff(){return this._backoff}}function p(e){return new d(e)}var f,h,m,g,v=n(32885),y=n(19713);!function(e){e.JS_SDK_MULTI_ENV_TEST="JSSDKMultiEnvTest",e.JS_SDK_MULTI_ENV_TEST_NON_AUTH="JSSDKMultiEnvTestNonAuth"}(f||(f={})),function(e){e.AUTHORIZED="authorized",e.UNAUTHORIZED="unauthorized"}(h||(h={})),function(e){e.AUTH="Auth",e.NON_AUTH="NonAuth"}(m||(m={})),function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(g||(g={}));const _="5.0.0-rc.0";function b(e){let t=e.length,n=t;for(;n--;){const o=e.charCodeAt(n);o>127&&o<=2047?t++:o>2047&&o<=65535&&(t+=2),o>=56320&&o<=57343&&n--}return t}var S;!function(e){e.IMMEDIATE="flush_strategy_kind_immediate",e.SCHEDULED="flush_strategy_kind_scheduled"}(S||(S={}));var E=n(6714);class A{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class T{constructor(e){this.installationId=e}getIdHash(e){const t=(e=>{let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return String(t)})(e);return(0,E.encode)(t)}getId(e,t){const n=t?`${this.installationId}-${t}-${e}`:`${this.installationId}-${e}`;return this.getIdHash(n)}}class P{setItem(e,t){try{return window.localStorage.setItem(e,t),!0}catch(e){return!1}}getItem(e){return window.localStorage.getItem(e)}removeItem(e){window.localStorage.removeItem(e)}clear(){window.localStorage.clear()}getKeys(){return Object.keys(window.localStorage)}}class O{constructor(){this.items=new Map([])}setItem(e,t){try{return this.items.set(e,t),!0}catch(e){return!1}}getItem(e){const t=this.items.get(e);return null!=t?t:null}removeItem(e){this.items.delete(e)}clear(){this.items.clear()}getKeys(){return Array.from(this.items.keys())}}var C;n(20464);function k(e=1){let t;try{t=window.localStorage;const n="__storage_test__",o="x".repeat(e);return t.setItem(n,o),t.removeItem(n),C.OK}catch(e){return function(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)}(e)&&t&&0!==t.length?C.LOW_STORAGE_SPACE:C.NOT_SUPPORTED}}!function(e){e.OK="OK",e.NOT_SUPPORTED="NOT_SUPPORTED",e.LOW_STORAGE_SPACE="LOW_STORAGE_SPACE"}(C||(C={}));const R=4*[["PLAYGROUND_APP|ES|STORAGE_ID","c8f10253-7492-4747-b7f2-37acea03f75d"],["PLAYGROUND_APP|ES|INSTALLATION_ID","1a2dfa7a-7dd4-436b-9f98-fe31d4911f10"]].flat(1).map(b).reduce(((e,t)=>e+t)),L="|";var I,N,w,D;function M(e){return e.split(L)}function x(e,t){return M(e)[t]}function F(...e){return e.join(L)}!function(e){e.EVENTS="EVENT",e.SEQ_NUM="SEQ_NUM",e.GLOBAL_SEQ_NUM="GLOBAL_SEQ_NUM",e.DROPPED_EVENT="DROPPED_EVENT"}(I||(I={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.GLOBAL_SEQ_NUM=1]="GLOBAL_SEQ_NUM",e[e.SEQ_ID=2]="SEQ_ID",e[e.EVENT_NAME=3]="EVENT_NAME",e[e.EVENT_SEQ_NUM=4]="EVENT_SEQ_NUM"}(N||(N={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(w||(w={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(D||(D={}));const U="STORAGE_ID",B="INSTALLATION_ID";function V(e){let t=0;for(const n of e)localStorage.hasOwnProperty(n)&&(t+=2*(localStorage[n].length+n.length));return t}var G;!function(e){e.CUSTOM_STORAGE="CS",e.IN_MEMORY_STORAGE="IMS",e.LOCAL_STORAGE="LS"}(G||(G={}));class J{constructor(e){this.currentTotalSizeForEvents=0,this.currentTotalSizeForDroppedCounters=0,this.maxStorageCapacityForEventsInBytes=0,this.maxStorageCapacityForDroppedCountersInBytes=0;const t=e.storagePrefix.replace(/\|/g,"");this.storageKeyPrefix=`${F("ES",t)}${L}`,this.storage=this.createStorage(e),this.configureMaxStorageCapacity(e),this.configureMaxStorageCapacity=this.configureMaxStorageCapacity.bind(this),this.configureMaxStorageCapacity(e),this.setTotalEventStorageSizeAtStartup=this.setTotalEventStorageSizeAtStartup.bind(this),this.setTotalEventStorageSizeAtStartup(),this.setTotalDroppedCountersStorageSizeAtStartup=this.setTotalDroppedCountersStorageSizeAtStartup.bind(this)}configureMaxStorageCapacity(e){let t,n;this.storage.maxCapacityInBytes?t=this.storage.maxCapacityInBytes:e.maxCapacityInBytes&&(t=e.maxCapacityInBytes),this.storage.maxCapacityForDroppedInPercentage?n=this.storage.maxCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage),void 0!==t&&void 0!==n?(this.maxStorageCapacityForDroppedCountersInBytes=t*n,this.maxStorageCapacityForEventsInBytes=t-this.maxStorageCapacityForDroppedCountersInBytes):(this.maxStorageCapacityForEventsInBytes=void 0,this.maxStorageCapacityForDroppedCountersInBytes=void 0)}setTotalEventStorageSizeAtStartup(){const e=this.getKeys(!0);this.currentTotalSizeForEvents=V(e)}setTotalDroppedCountersStorageSizeAtStartup(){const e=this.getKeys(!0).filter((e=>M(e)[D.ITEM_GROUP_ID]===I.DROPPED_EVENT));this.currentTotalSizeForDroppedCounters=V(e)}createStorage(e){if(e.storage)return e.storage;let t=2e6;void 0!==e.maxCapacityInBytes&&(t=e.maxCapacityInBytes);let n=.1;void 0!==e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage);const o={maxCapacityInBytes:t,adapter:new P,flushStrategy:{kind:S.SCHEDULED,interval:e.flushIntervalMs||1e4},maxCapacityForDroppedInPercentage:n},i={adapter:new O,flushStrategy:{kind:S.IMMEDIATE}};switch(k(R)){case C.OK:return o;case C.LOW_STORAGE_SPACE:return(e.requiredPersistentStorageItems||[]).every((e=>{const t=`${this.storageKeyPrefix}${e}`;return!!o.adapter.getItem(t)}))?o:i;case C.NOT_SUPPORTED:default:return i}}getItemSizeInBytes(e,t){return 2*e.length+2*t.length}canMakeEventsStorageFull(e){return void 0!==this.maxStorageCapacityForEventsInBytes&&e+this.currentTotalSizeForEvents>this.maxStorageCapacityForEventsInBytes}canMakeDroppedCountersStorageFull(e){return void 0!==this.maxStorageCapacityForDroppedCountersInBytes&&e+this.currentTotalSizeForDroppedCounters>this.maxStorageCapacityForDroppedCountersInBytes}get storageType(){return this.storageAdapter instanceof P?G.LOCAL_STORAGE:this.storageAdapter instanceof O?G.IN_MEMORY_STORAGE:G.CUSTOM_STORAGE}get storageAdapter(){return this.storage.adapter}get flushStrategy(){return this.storage.flushStrategy}getOrCreateId(e,t){const n=this.getItem(e);if(n)return n;const o=t||"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));return this.addItemInEventsStorage(e,o),o}updateItemInEventsStorage(e,t){if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItem(e);let o=0;n&&(o=this.getItemSizeInBytes(e,n));const i=this.getItemSizeInBytes(e,t);return!(i>o&&this.canMakeEventsStorageFull(i-o))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=i-o,!0))}return this.setItem(e,t)}updateItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItem(e);let o=0;n&&(o=this.getItemSizeInBytes(e,n));const i=this.getItemSizeInBytes(e,t);return!(i>o&&this.canMakeDroppedCountersStorageFull(i-o))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=i-o,!0))}return this.setItem(e,t)}addItemInEventsStorage(e,t){if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeEventsStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=n,!0))}return this.setItem(e,t)}addItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeDroppedCountersStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=n,!0))}return this.setItem(e,t)}setItem(e,t){return this.storageAdapter.setItem(`${this.storageKeyPrefix}${e}`,t)}getItem(e){return this.storageAdapter.getItem(`${this.storageKeyPrefix}${e}`)}removeItemInEventsStorage(e){if(void 0!==this.maxStorageCapacityForEventsInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}removeItemInDroppedCountersStorage(e){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}getKeys(e=!1){const t=this.storageAdapter.getKeys(),n=[];for(const o of t)o.startsWith(this.storageKeyPrefix)&&(e?n.push(o):n.push(o.replace(this.storageKeyPrefix,"")));return n}clear(){return this.storageAdapter.clear()}setCounterItem(e,t,n=9){const o="string"==typeof t?t:String(t);"1"===o?this.addItemInEventsStorage(e,o.padStart(n,"0")):this.updateItemInEventsStorage(e,o.padStart(n,"0"))}}class j{constructor(e){this.storageManager=e}commitSequenceNumber(e,t){this.storageManager.setCounterItem(e,t)}getNextSequenceNumber(e){const t=this.storageManager.getItem(e);return(e=>{let t=1;return e&&(t=e+1),t})(Number(t))}generateNextSequenceNumber(e){const t=this.getNextSequenceNumber(e);return[t,()=>{this.commitSequenceNumber(e,t)}]}generateNextEventSequenceNumber(e,t){const n=F(I.SEQ_NUM,t,e);return this.generateNextSequenceNumber(n)}generateNextGlobalSequenceNumber(){const e=F(I.GLOBAL_SEQ_NUM);return this.generateNextSequenceNumber(e)}getEventsSequenceNumbers(e){const t={},n=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[w.ITEM_GROUP_ID]===I.SEQ_NUM&&n[w.SEQ_ID]===t})(t,e)));return n.forEach((e=>{const n=this.storageManager.getItem(e),o=x(e,w.EVENT_NAME);n&&(t[o]=Number(n))})),t}getSequenceNumbersPerSequenceId(e){const t={};return e.forEach((e=>{t[e]=this.getEventsSequenceNumbers(e)})),t}}var H=n(75887);class K{getInitialESSData(e){const t={};for(const[n,o]of Object.entries(e)){Object.keys(t).includes(n)||(t[n]={});for(const[e,i]of Object.entries(o))t[n][e]={sequence_number_min:i+1,sequence_number_next:i+1,storage_size:0}}return t}addEventsToESSData(e,t){const n=Object.assign({},e);for(const[o]of Object.entries(e)){t[o].forEach((e=>{const t=x(e,N.EVENT_NAME),i=Number(x(e,N.EVENT_SEQ_NUM));i<n[o][t].sequence_number_min&&(n[o][t].sequence_number_min=i),n[o][t].storage_size++}))}return n}addLossStatsData(e){const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[]};for(const[n,o]of Object.entries(e)){t.sequence_ids.push(n),t.loss_stats_num_entries_per_sequence_id.push(Object.keys(o).length);for(const[e,n]of Object.entries(o)){A.pushToArrIfMissing(t.event_names,e);const o=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(o),t.loss_stats_sequence_number_mins.push(n.sequence_number_min),t.loss_stats_sequence_number_nexts.push(n.sequence_number_next),t.loss_stats_storage_sizes.push(n.storage_size)}}return t}addDroppedEventsCountersData(e,t){let n=Object.assign(Object.assign({},e),{drop_list_num_entries_per_sequence_id:[],drop_list_event_name_index:[],drop_list_counts_unreported:[],drop_list_counts_total:[]});const o=e.sequence_ids||[];if(n=this.addDroppedEventsCounters(n,t,o),!Object.keys(t).length)return n;const i=Object.keys(t).filter((e=>!o.includes(e)));return i.length&&(n=this.addDroppedEventsCounters(n,t,i),i.forEach((e=>{n.sequence_ids.push(e),n.loss_stats_num_entries_per_sequence_id.push(0)}))),n}addDroppedEventsCounters(e,t,n){const o=Object.assign({},e);return n.forEach((n=>{var i;const r=t[n];if(r&&Object.keys(r).length){o.drop_list_num_entries_per_sequence_id.push(r?Object.keys(r).length:0);for(const[t,n]of Object.entries(r)){o.drop_list_counts_unreported.push(n.unreported),o.drop_list_counts_total.push(n.total);const r=e.event_names.indexOf(t);r>-1?o.drop_list_event_name_index.push(r):(null===(i=o.event_names)||void 0===i||i.push(t),o.drop_list_event_name_index.push((null==o?void 0:o.event_names.length)-1))}}else o.drop_list_num_entries_per_sequence_id.push(0)})),o}provideEventSenderStats(e,t,n){const o=this.getInitialESSData(e),i=this.addEventsToESSData(o,t);let r=this.addLossStatsData(i);r=this.addDroppedEventsCountersData(r,n);return(0,H.i)(r)}}class Y{constructor(e){this.storageManager=e.storageManager}updateDroppedEventCount(e,t){const n=F(I.DROPPED_EVENT,t,e),o=this.storageManager.getItem(n);if(o){const{unreported:e,total:t=e}=JSON.parse(o);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({unreported:e+1,total:t+1}))}else this.storageManager.addItemInDroppedCountersStorage(n,JSON.stringify({unreported:1,total:1}))}getDroppedEventCounters(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[D.ITEM_GROUP_ID]===I.DROPPED_EVENT&&n[D.SEQ_ID]===t})(t,e)));if(t.length>0){const e={};return t.forEach((t=>{const n=this.storageManager.getItem(t);if(n){const o=x(t,D.EVENT_NAME),{unreported:i,total:r=i}=JSON.parse(n);e[o]={unreported:i,total:r}}})),e}}getDroppedEventsCountersPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getDroppedEventCounters(e);n&&Object.keys(n).length&&(t[e]=n)})),t}updateReportedEventCounters(e){for(const[t,n]of Object.entries(e))for(const[e,o]of Object.entries(n)){const n=F(I.DROPPED_EVENT,t,e),i=this.storageManager.getItem(n);if(i){const{unreported:e,total:t=e}=JSON.parse(i);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({total:t,unreported:e-o.unreported}))}}}}var W=n(20484);const z={encode:function(e){const t=(0,W.encode)(e);return(0,E.encode)(t)},decode(e){const t=(0,E.decode)(e);return(0,W.decode)(t)}},q=[28,43,34,35,35,12,43,43,16,5,23,13,24,36,10,4,41,3,12,2,36,43,39,12,10,23,44,42,22,3],X=function(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e.charCodeAt(n)^q[n%q.length]);return t};var Z;!function(e){e.XOR="1"}(Z||(Z={}));const Q=(e,t)=>{const n=M(e),o=M(t);return Number(n[N.GLOBAL_SEQ_NUM])-Number(o[N.GLOBAL_SEQ_NUM])};class ${constructor(e){this.storageManager=e.storageManager}getEvent(e){const t=this.storageManager.getItem(e);return t?function(e){try{const t=e.charAt(0),n=e.substring(1);let o;switch(t){case Z.XOR:o=X(n);break;default:{const{event:t}=JSON.parse(e);o=z.decode(t);break}}return JSON.parse(o)}catch(e){return null}}(t):null}getEventKey(e,t){return F(I.EVENTS,t.toString(),e.sequence_id,e.event_name,e.sequence_number.toString())}getGlobalSequenceNumberFromEventKey(e){const t=Number(x(e,N.GLOBAL_SEQ_NUM));if(Number.isNaN(t))throw new Error(`Unable to parse event key: ${e}`);return Number(t)}addEvent(e,t){const n=this.getEventKey(e,t),o=function(e){const t=JSON.stringify(e);return`${Z.XOR}${X(t)}`}(e);return this.storageManager.addItemInEventsStorage(n,o)}getEventsKeys(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[N.ITEM_GROUP_ID]===I.EVENTS&&n[N.SEQ_ID]===t})(t,e)));return t}getEvents({minimumGlobalSequenceNumber:e=0,sequenceId:t,size:n=20}){const o=[],i=[],r=this.getEventsKeys(t),a=[],s=r.sort(Q).filter(e>0?t=>this.getGlobalSequenceNumberFromEventKey(t)>=e:()=>!0).slice(0,n);return s.length&&s.forEach((e=>{const t=this.getEvent(e);t?(i.push(t),o.push(e)):a.push(e)})),a.length&&this.removeEvents(a),{events:i,keys:o}}getEventsKeysPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getEventsKeys(e);t[e]=n})),t}removeEvents(e){e.forEach((e=>{this.storageManager.removeItemInEventsStorage(e)}))}}const ee=(e,t,n)=>{const o={};var i;return((e,t)=>{Object.entries(t).forEach((([t,n])=>{e[t]={},Object.entries(n).forEach((([n,o])=>{e[t][n]={sequence_number_min:o+1,sequence_number_next:o+1,storage_size:0}}))}))})(o,e),((e,t)=>{Object.keys(e).forEach((n=>{var o;(null!==(o=t[n])&&void 0!==o?o:[]).forEach((t=>{const o=x(t,N.EVENT_NAME),i=Number(x(t,N.EVENT_SEQ_NUM)),r=e[n][o];r.sequence_number_min=Math.min(i,r.sequence_number_min),r.storage_size++}))}))})(o,t),((e,t)=>{Object.entries(t).forEach((([t,n])=>{Object.entries(n).forEach((([n,o])=>{var i,r;const{total:a,unreported:s}=o,l=null!==(r=null===(i=e[t])||void 0===i?void 0:i[n])&&void 0!==r?r:{};e[t]=Object.assign(Object.assign({},e[t]),{[n]:Object.assign(Object.assign({},l),{drop_list_counts_total:a,drop_list_counts_unreported:s})})}))}))})(o,n),i=o,Object.entries(i).forEach((([e,t])=>{delete t.EventSenderStats2NonAuth,0===Object.keys(t).length&&delete i[e]})),o},te=e=>{const t=(e=>{const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[],drop_list_counts_unreported:[],drop_list_counts_total:[],drop_list_event_name_index:[],drop_list_num_entries_per_sequence_id:[]};return Object.entries(e).forEach((([e,n])=>{t.sequence_ids.push(e);let o=0,i=0;Object.entries(n).forEach((([e,n])=>{let r=t.event_names.indexOf(e);-1===r&&(r=t.event_names.length,t.event_names.push(e)),"sequence_number_min"in n&&(t.loss_stats_sequence_number_mins.push(n.sequence_number_min),t.loss_stats_storage_sizes.push(n.storage_size),t.loss_stats_sequence_number_nexts.push(n.sequence_number_next),t.loss_stats_event_name_index.push(r),i++),void 0!==n.drop_list_counts_total&&void 0!==n.drop_list_counts_unreported&&(t.drop_list_counts_total.push(n.drop_list_counts_total),t.drop_list_counts_unreported.push(n.drop_list_counts_unreported),t.drop_list_event_name_index.push(r),o++)})),t.loss_stats_num_entries_per_sequence_id.push(i),t.drop_list_num_entries_per_sequence_id.push(o)})),t})(e);return(0,H.i)(t)},ne="FAKE_ESS_DB_KEY";class oe extends c.vp{constructor(e){var t;super(),this.instanceContexts={},this.uploadingInProgress=!1,this.transport=e.transport,this.ownerProvider=e.ownerProvider,this.uploaders=e.uploaders,"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",this.onBeforeDisconnect.bind(this)),this.useOptimizedESS2NA=null!==(t=e.useOptimizedESS2NA)&&void 0!==t&&t,this.sendESStats=this.sendESStats.bind(this),this.flush=this.flush.bind(this),this.initializeContexts(e.context),this.storageManager=new J({storage:e.storage,flushIntervalMs:e.flushIntervalMs,requiredPersistentStorageItems:[B,U],storagePrefix:e.storagePrefix,maxCapacityInBytes:e.maxStorageCapacityInBytes,maxStorageCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage}),this.droppedEventsTracker=new Y({storageManager:this.storageManager}),this.eventsManager=new $({storageManager:this.storageManager}),this.installationId=this.setupInstallationId(),this.sequenceIdProvider=new T(this.installationId),this.sequenceNumberProvider=new j(this.storageManager),this.statsProvider=new K;const n={[r.UPLOAD_SUCCEEDED]:r.UPLOAD_SUCCEEDED,[r.UPLOAD_FAILED]:r.UPLOAD_FAILED,[r.UPLOAD_REQUEST_FAILED]:r.UPLOAD_REQUEST_FAILED};this.proxyEmitAll(this.uploaders.authorized,n),this.proxyEmitAll(this.uploaders.unauthorized,n),this.initSendingEvents(),this.storageManager.getOrCreateId(U)}initSendingEvents(){this.storageManager.flushStrategy.kind===S.SCHEDULED&&(this.sendEventsInterval=setInterval(this.flush,this.storageManager.flushStrategy.interval))}initializeContexts(e){if(!(null==e?void 0:e.length))return;const t=this.instanceContexts;for(const n of e){const e=n();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}buildEvent(e,t){const n=this.sequenceIdProvider.getId(this.getStorageId(),t?this.ownerProvider():null),[o,i]=this.sequenceNumberProvider.generateNextEventSequenceNumber(e.name,n);return{event:{sequence_id:n,sequence_number:o,event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this.getVersion(),type:"javascript"},context_time:{timestamp:Date.now()}},this.instanceContexts),{message:e.data})},commitEventSequenceNumber:i}}getSpecificContext(e){return this.instanceContexts[e]||null}setupInstallationId(){var e;const t=null===(e=this.getSpecificContext("context_correlation_id"))||void 0===e?void 0:e.value;return t?this.storageManager.getOrCreateId(B,t):this.storageManager.getOrCreateId(B)}getStorageId(){return this.storageManager.getOrCreateId(U)}onBeforeDisconnect(){this.destroy(),this.lastFlush()}lastFlush(){return(0,a.__awaiter)(this,void 0,void 0,(function*(){if(this.storageManager.flushStrategy.kind!==S.IMMEDIATE)return Promise.resolve({fired:!1,reason:`Events cannot be forcefully flushed with the current storage type (${this.storageManager.storageType})`});const e=[];if(e.push(this.sendESStats(!0)),this.ownerProvider()){const t=this.getEvents({owner:this.ownerProvider(),size:100});e.push(this.uploaders.authorized.lastUpload(t))}const t=this.getEvents({owner:null,size:100});return e.push(this.uploaders.unauthorized.lastUpload(t)),yield Promise.all(e),{fired:!0}}))}flush(){return(0,a.__awaiter)(this,void 0,void 0,(function*(){if(!this.uploadingInProgress)try{this.uploadingInProgress=!0;(void 0===this.essLastSent||Date.now()-this.essLastSent.getTime()>18e4)&&(yield this.sendESStats()),yield this.sendEvents(h.UNAUTHORIZED),this.ownerProvider()&&(yield this.sendEvents(h.AUTHORIZED))}catch(e){oe.consoleLogger.warn(e)}finally{this.uploadingInProgress=!1}}))}sendEvents(e){return(0,a.__awaiter)(this,void 0,void 0,(function*(){const t=e===h.AUTHORIZED?this.ownerProvider():null;let n,o=!1;for(;!o;){const i=this.getEvents({owner:t,minimumGlobalSequenceNumber:n});if(i.events.length){const t=i.keys[i.keys.length-1];n=this.eventsManager.getGlobalSequenceNumberFromEventKey(t)+1;const o=yield this.sendToGabito(e,i);this.eventsManager.removeEvents(o)}else o=!0}return Promise.resolve()}))}sendESStats(e=!1){const t=this.ownerProvider();let n=[this.sequenceIdProvider.getId(this.getStorageId(),null)];t&&(n=[...n,this.sequenceIdProvider.getId(this.getStorageId(),t)]);const o=this.sequenceNumberProvider.getSequenceNumbersPerSequenceId(n),i=this.eventsManager.getEventsKeysPerSequenceId(n),r=this.droppedEventsTracker.getDroppedEventsCountersPerSequenceId(n);if(this.useOptimizedESS2NA)return this.sendESS2NAWithOptimization(o,i,r,e);const a=this.statsProvider.provideEventSenderStats(o,i,r);return this.commitAndUploadESStats(a,e,r)}sendESS2NAWithOptimization(e,t,n,o){const i=ee(e,t,n),r=((e,t,n)=>!e&&!!t&&!(!n||Date.now()-n.getTime()>828e5))(o,this.previousESS2NA,this.fullESS2NALastSent),a=r?((e,t)=>{if(!t)return e;const n=Object.entries(e).reduce(((e,[n,o])=>{const i=Object.entries(o).reduce(((e,[o,i])=>{var r;const a=null===(r=t[n])||void 0===r?void 0:r[o];return JSON.stringify(a)===JSON.stringify(i)?e:Object.assign(Object.assign({},e),{[o]:i})}),{});return Object.keys(i).length?Object.assign(Object.assign({},e),{[n]:i}):e}),{});return Object.keys(n).length?n:null})(i,this.previousESS2NA):i;return a?this.commitAndUploadESStats(te(a),o,n,r,i):Promise.resolve()}commitAndUploadESStats(e,t,n,o=!1,i){const{event:r,commitEventSequenceNumber:a}=this.buildEvent(e,!1);a();return(t?this.uploaders.unauthorized.lastUpload.bind(this.uploaders.unauthorized):this.uploaders.unauthorized.upload.bind(this.uploaders.unauthorized))({events:[r],keys:[ne]}).then((e=>{e.includes(ne)&&(this.onSuccessfullySentESStats(n),this.essLastSent=new Date,this.previousESS2NA=i,o||(this.fullESS2NALastSent=new Date))}))}onSuccessfullySentESStats(e){this.droppedEventsTracker.updateReportedEventCounters(e)}sendToGabito(e,t){if(!this.transport.isOnline()&&!this.uploadingInProgress)throw Promise.resolve([]);return t.events.length?y.V.init((()=>this.uploaders[e].upload(t)),{backoffInitial:this.uploaders[e].shouldBackoff(),baseTime:1e4,curve:"static",jitter:!1,maxRetries:3,retryPredicate:()=>this.transport.isOnline()}).catch((()=>[])):Promise.resolve([])}getEvents({owner:e,size:t=20,minimumGlobalSequenceNumber:n}){const o=this.sequenceIdProvider.getId(this.getStorageId(),e);return this.eventsManager.getEvents({sequenceId:o,size:t,minimumGlobalSequenceNumber:n})}storeEvent(e,t){const{event:n,commitEventSequenceNumber:o}=this.buildEvent(t,e),[i,r]=this.sequenceNumberProvider.generateNextGlobalSequenceNumber();this.eventsManager.addEvent(n,i)?(o(),r()):this.droppedEventsTracker.updateDroppedEventCount(n.event_name,n.sequence_id)}validateEventData(e,t,n){let o=null;if(e.name){if(b(JSON.stringify(e.data))>5e3)o=g.PAYLOAD_SIZE_LIMIT_EXCEEDED;else if(t&&n&&!n())return g.UNKNOWN_OWNER}else o=g.INVALID_NAME;return o||null}send(e,t={}){const n=!e.name.endsWith(m.NON_AUTH);const o=this.validateEventData(e,n,this.ownerProvider);if(o){const t=(0,v.t)({event_name:e.name,reject_reason:o});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${o}`))}return this.storeEvent(n,e),this.storageManager.flushStrategy.kind===S.IMMEDIATE?this.flush():Promise.resolve()}hasContext(...e){return e.every((e=>!!this.instanceContexts[e]))}destroy(){this.sendEventsInterval&&clearInterval(this.sendEventsInterval)}getStorageType(){return this.storageManager.storageType}isUsingESS2NAOptimization(){return this.useOptimizedESS2NA}getVersion(){return`${_}-${this.storageManager.storageType}${this.isUsingESS2NAOptimization()?"-essopt":""}`}finalFlush(){return this.lastFlush()}}function ie(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new oe(Object.assign(Object.assign({},e),{uploaders:{authorized:p(t),unauthorized:p(Object.assign(Object.assign({},t),{authorize:!1}))}}))}oe.consoleLogger=l.P.forTag("EventSender")},41082:(e,t,n)=>{"use strict";var o;n.d(t,{_j:()=>Ao,cI:()=>f,ih:()=>p,cJ:()=>bn,zq:()=>h,nA:()=>En,BE:()=>To}),function(e){e.CAPPING_USER_IS_CAPPED="CAPPING_USER_IS_CAPPED",e.EME_API_NOT_SUPPORTED="EME_API_NOT_SUPPORTED",e.EME_MEDIA_KEYS_NOT_SUPPORTED="EME_MEDIA_KEYS_NOT_SUPPORTED",e.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED="EME_MEDIA_KEY_SESSION_NOT_SUPPORTED",e.EME_NO_SUPPORTED_KEYSYSTEM="EME_NO_SUPPORTED_KEYSYSTEM",e.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED="EME_PLAYER_MEDIA_KEYS_SETTING_FAILED",e.EME_ERROR_UNKNOWN="EME_ERROR_UNKNOWN",e.EME_LICENSE_REQUEST_EMPTY_RESPONSE="EME_LICENSE_REQUEST_EMPTY_RESPONSE",e.EME_LICENSE_REQUEST_FAILED_WITH_STATUS="EME_LICENSE_REQUEST_FAILED_WITH_STATUS",e.EME_LICENSE_REQUEST_WIDEVINE_ERROR="EME_LICENSE_REQUEST_WIDEVINE_ERROR",e.EME_LICENSE_UPDATE_FAILED="EME_LICENSE_UPDATE_FAILED",e.EME_HEADER_KEY_VALUE_MISMATCH="EME_HEADER_KEY_VALUE_MISMATCH",e.EME_HEADER_MISSING_CHALLENGE="EME_HEADER_MISSING_CHALLENGE",e.EME_INIT_DATA_MALFORMED="EME_INIT_DATA_MALFORMED",e.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM="EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM",e.EME_MEDIA_KEY_SESSION_V0_1B_ERROR="EME_MEDIA_KEY_SESSION_V0_1B_ERROR",e.EME_MEDIA_KEY_SESSION_SAFARI_ERROR="EME_MEDIA_KEY_SESSION_SAFARI_ERROR",e.EME_NO_SUPPORTED_CONFIGURATION="EME_NO_SUPPORTED_CONFIGURATION",e.EME_NOT_SUPPORTED_ERROR="EME_NOT_SUPPORTED_ERROR",e.EME_INVALID_STATE_ERROR="EME_INVALID_STATE_ERROR",e.EME_UNKNOWN_ERROR="EME_UNKNOWN_ERROR",e.DISALLOW_PROTECTED_TRACK_ERROR="DISALLOW_PROTECTED_TRACK_ERROR",e.FILE_FORMAT_NOT_SUPPORTED="FILE_FORMAT_NOT_SUPPORTED",e.FILE_MALFORMED_SEEKTABLE="FILE_MALFORMED_SEEKTABLE",e.FILE_MALFORMED_PSSH="FILE_MALFORMED_PSSH",e.FILE_NOT_RESOLVED="FILE_NOT_RESOLVED",e.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_ZERO="FRAGMENT_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_STATUS="FRAGMENT_REQUEST_FAILED_WITH_STATUS",e.FRAGMENT_REQUEST_EMPTY_RESPONSE="FRAGMENT_REQUEST_EMPTY_RESPONSE",e.FRAGMENT_REQUEST_UNEXPECTED_LENGTH="FRAGMENT_REQUEST_UNEXPECTED_LENGTH",e.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE="PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE",e.PLAYER_BUFFER_QUOTA_EXCEEDED="PLAYER_BUFFER_QUOTA_EXCEEDED",e.PLAYER_CANNOT_FIND_PLAYABLE_URI="PLAYER_CANNOT_FIND_PLAYABLE_URI",e.PLAYER_INVALID_INTERNAL_STATE="PLAYER_INVALID_INTERNAL_STATE",e.PLAYER_MEDIA_ERROR="PLAYER_MEDIA_ERROR",e.PLAYER_PLAYBACK_ERROR="PLAYER_PLAYBACK_ERROR",e.MEDIA_ABORTED="MEDIA_ABORTED",e.MEDIA_DECODING_ERROR="MEDIA_DECODING_ERROR",e.MEDIA_NETWORK_ERROR="MEDIA_NETWORK_ERROR",e.MEDIA_NOT_SUPPORTED="MEDIA_NOT_SUPPORTED",e.LICENSE_RESOLVE_INVALID_RESPONSE="LICENSE_RESOLVE_INVALID_RESPONSE",e.LICENSE_RESOLVER_CANT_RESOLVE_URL="LICENSE_RESOLVER_CANT_RESOLVE_URL",e.LICENSE_RESOLVER_DEPRECATED_VERSION="LICENSE_RESOLVER_DEPRECATED_VERSION",e.LIST_PLAYER_NO_TRACK_PLAYER="LIST_PLAYER_NO_TRACK_PLAYER",e.LIST_PLAYER_NO_LIST="LIST_PLAYER_NO_LIST",e.LIST_PLAYER_INVALID_ARGUMENT="LIST_PLAYER_INVALID_ARGUMENT",e.LIST_PLAYER_FORBIDDEN="LIST_PLAYER_FORBIDDEN",e.STORAGE_ERROR="STORAGE_ERROR",e.STORAGE_FAILED_WITH_STATUS="STORAGE_FAILED_WITH_STATUS",e.STORAGE_RETURNED_NO_TRACKS="STORAGE_RETURNED_NO_TRACKS",e.STORAGE_TRACK_MANIFEST_FAILED="STORAGE_TRACK_MANIFEST_FAILED",e.STORAGE_TRACK_MANIFEST_EMPTY="STORAGE_TRACK_MANIFEST_EMPTY",e.STORAGE_VIDEO_MANIFEST_FAILED="STORAGE_VIDEO_MANIFEST_FAILED",e.TRACK_DATA_ALREADY_FINALIZED="TRACK_DATA_ALREADY_FINALIZED",e.TSV_SENDING_FAILED="TSV_SENDING_FAILED",e.PLAYBACK_STATS_SENDING_FAILED="PLAYBACK_STATS_SENDING_FAILED",e.PLAYBACK_START_SENDING_FAILED="PLAYBACK_START_SENDING_FAILED",e.UNKNOWN="UNKNOWN"}(o||(o={}));var i,r=n(72226);!function(e){e.USER_INFO_REQUEST_EMPTY_RESPONSE="USER_INFO_REQUEST_EMPTY_RESPONSE",e.USER_INFO_REQUEST_FAILED_WITH_STATUS="USER_INFO_REQUEST_FAILED_WITH_STATUS",e.HARMONY_NO_TRACKS_LOADED="HARMONY_NO_TRACKS_LOADED",e.HARMONY_OPERATION_FORBIDDEN="HARMONY_OPERATION_FORBIDDEN",e.HARMONY_LOCAL_PLAYER_DISABLED="HARMONY_LOCAL_PLAYER_DISABLED",e.HARMONY_INVALID_DESCRIPTOR_ID="HARMONY_INVALID_DESCRIPTOR_ID",e.CONNECTAPI_CLIENT_INVALID_ARGUMENTS="CONNECTAPI_CLIENT_INVALID_ARGUMENTS",e.CONNECTAPI_CLIENT_MISSING_DEVICE_ID="CONNECTAPI_CLIENT_MISSING_DEVICE_ID",e.CONNECTAPI_CLIENT_NO_CONNECTION_ID="CONNECT_API_CLIENT_NO_CONNECTION_ID",e.CONNECTAPI_CLIENT_NO_DEVICE="CONNECTAPI_CLIENT_NO_DEVICE",e.CONNECTAPI_CLIENT_NO_SESSION_ID="CONNECTAPI_CLIENT_NO_SESSION_ID",e.CONNECTAPI_CLIENT_NO_STATE="CONNECTAPI_CLIENT_NO_STATE",e.CONNECTAPI_CLIENT_INVALID_POSITION="CONNECT_API_CLIENT_INVALID_POSITION",e.CONNECTAPI_CLIENT_INVALID_VOLUME="CONNECT_API_CLIENT_INVALID_VOLUME",e.CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED="CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED",e.CONNECTAPI_REGISTRATION_FAILED_WITH_STATUS="CONNECTAPI_REGISTRATION_FAILED_WITH_STATUS",e.CP_NO_DEVICE_DESCRIPTOR="CP_NO_DEVICE_DESCRIPTOR",e.CP_NO_CONNECTION_ID="CP_NO_CONNECTION_ID",e.CP_REGISTRATION_FAILED_WITH_STATUS="CP_REGISTRATION_FAILED_WITH_STATUS",e.CP_REGISTRATION_FAILED_NON_PREMIUM="CP_REGISTRATION_FAILED_NON_PREMIUM",e.CP_REQUEST_FAILED_WITH_STATUS="CP_REQUEST_FAILED_WITH_STATUS",e.CP_NO_DEVICE_ID="CP_NO_DEVICE_ID",e.CP_NO_RESPONSE_BODY="CP_NO_RESPONSE_BODY",e.CP_NO_TRACKING_DATA="CP_NO_TRACKING_DATA",e.CP_INVALID_STATE="CP_INVALID_STATE",e.QUEUE_MANAGER_NO_STATE="QUEUE_MANAGER_NO_STATE",e.QUEUE_OPERATION_STALE_REVISION="QUEUE_OPERATION_STALE_REVISION",e.TP_NO_RESPONSE_BODY="TP_NO_RESPONSE_BODY",e.TP_REGISTRATION_FAILED_NON_PREMIUM="TP_REGISTRATION_FAILED_NON_PREMIUM",e.TP_REGISTRATION_FAILED_WITH_STATUS="TP_REGISTRATION_FAILED_WITH_STATUS",e.TP_MAX_SUBSCRIPTIONS_REACHED="TP_MAX_SUBSCRIPTIONS_REACHED",e.TP_UPDATE_REQUEST_EMPTY_RESPONSE="TP_UPDATE_REQUEST_EMPTY_RESPONSE",e.TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS="TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS",e.TP_UNKNOWN_COMMAND="TP_UNKNOWN_COMMAND",e.TP_CANNOT_CREATE_STATE_REF="TP_CANNOT_CREATE_STATE_REF",e.TP_MISSING_INITIAL_STATE="TP_MISSING_INITIAL_STATE",e.TP_INVALID_STATE_REFERENCE="TP_INVALID_STATE_REFERENCE",e.TP_CONFLICT_REQUEST_FAILED_WITH_STATUS="TP_CONFLICT_REQUEST_FAILED_WITH_STATUS"}(i||(i={}));n(61207);var a=n(72755);var s,l=n(53016);!function(e){e.APPLOAD="appload",e.BACK_BUTTON="backbtn",e.CLICK_ROW="clickrow",e.CLICK_SIDE="clickside",e.END_PLAY="endplay",e.FORWARD_BUTTON="fwdbtn",e.LOGOUT="logout",e.PLAY_BUTTON="playbtn",e.POPUP="popup",e.REMOTE="remote",e.TRACK_DONE="trackdone",e.TRACK_ERROR="trackerror",e.UNKNOWN="unknown",e.URI_OPEN="uriopen",e.CAPPED="capped",e.SEEK="seek"}(s||(s={}));var c=n(60220);const u="@local",d=65535;var p,f,h;!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_ERROR="authentication_error",e.AUTOPLAY_FAILED="autoplay_failed",e.BEFORE_DISCONNECT="before_disconnect",e.BEFORE_VOLUME_CHANGE="before_volume_change",e.BUFFER_STALLED="stalled",e.BUFFERING_END="buffering_end",e.BUFFERING_START="buffering_start",e.CONNECTED="connected",e.CONNECTION_ERROR="connection_error",e.DEVICES_CHANGED="devices_changed",e.DEVICE_DEACTIVATED="device_deactivated",e.DEVICE_DESCRIPTOR_CHANGED="descriptor_changed",e.DISCONNECTED="disconnected",e.DURATION_CHANGED="duration_changed",e.ERROR="error",e.LAST_ACTIVE_DEVICE_INFO_CHANGED="last_active_device_info_changed",e.LOCAL_CONTEXT_ENDED="local_context_ended",e.LOCAL_PLAYER_DISABLED="local_player_disabled",e.LOCAL_PLAYER_ENABLED="local_player_enabled",e.LOCAL_PLAYER_LOGGED_OUT="local_player_logged_out",e.LOGGED_OUT="logged_out",e.MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.MAX_SUBSCRIPTIONS_REACHED="max_subscriptions_reached",e.PLAYBACK_CAPPED="playback_capped",e.PLAYER_INITIALIZATION_DONE="player_initialization_done",e.PLAYER_INITIALIZATION_FAILED="player_initialization_failed",e.PRODUCT_STATE_CHANGED="product_state_changed",e.PROGRESS="progress",e.PLAYER_QUEUE_CHANGED="player_queue_changed",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.REMOTE_OBSERVER_DISABLED="remote_observer_disabled",e.REMOTE_OBSERVER_ENABLED="remote_observer_enabled",e.SERVICE_REGISTRATION_ERROR="service_registration_error",e.STATE_CHANGED="state_changed",e.STOPPED_ON_BACKGROUND="stopped_on_background",e.TRACK_ENDED="track_ended",e.UNRECOVERABLE_FAILURE="unrecoverable_failure",e.VIDEO_ELEMENT_APPENDED="video_element_appended",e.VIDEO_ELEMENT_REMOVED="video_element_removed",e.VOLUME_CHANGED="volume_changed",e.DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.SPEED_CHANGED="speed_changed"}(p||(p={})),function(e){e.CLOUD_PLAYBACK="cloud-playback",e.CONNECT_API="connect-api",e.HARMONY="harmony",e.PLAYBACK="playback",e.TRACK_PLAYBACK="track-playback",e.TRANSPORT="transport"}(f||(f={})),function(e){e[e.OFF=0]="OFF",e[e.CONTEXT=1]="CONTEXT",e[e.TRACK=2]="TRACK"}(h||(h={}));class m extends Error{constructor(e,t){super(t),this.status=-1,this.unrecoverable=!1,this.debug={},this.code=e,this.name="HarmonyError"}static fatal(e,t){const n=new m(e,t);return n.unrecoverable=!0,n}}function g(e,t){return!e&&!t||!(!e||!t)&&(e.id===t.id&&e.is_active===t.is_active&&e.is_controllable===t.is_controllable&&e.is_observable===t.is_observable&&e.is_being_activated===t.is_being_activated&&e.local===t.local&&e.name===t.name&&e.type===t.type&&e.version===t.version&&e.volume===t.volume)}class v extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.code=e,this.name="PlayerQueueError"}}const y=":::";function _(e,t={ignoreMetaForTrack:!1}){var n,o,i,r,a;const s=[],l=[];let c=!1,u=!1;if(!(null==e?void 0:e.length))return{items:s,tracks:l,hasQueuedTracks:c};for(const d of e){const e="spotify:delimiter"===d.uri||/^spotify:meta:/.test(d.uri)?"meta":"track",p=`${d.uid}${y}${null!==(o=null===(n=d.metadata)||void 0===n?void 0:n.iteration)&&void 0!==o?o:""}`,f={type:e,uri:d.uri,uid:d.uid,qid:p,metadata:d.metadata||{},hidden:"true"===(null===(i=d.metadata)||void 0===i?void 0:i.hidden),queued:"true"===(null===(r=d.metadata)||void 0===r?void 0:r.is_queued),provider:d.provider,removed_reasons:d.removed,$blck_rs:d.blocked};f.queued&&(c=!0),s.push(f),"meta"===f.type?u=!0:!t.ignoreMetaForTrack&&u||"track"!==f.type||f.hidden||(null===(a=f.removed_reasons)||void 0===a?void 0:a.length)||l.push(f)}return{items:s,tracks:l,hasQueuedTracks:c}}function b(e,t={}){if(!Array.isArray(e))throw new TypeError("Items is not an array.");if(!e.length)return[];const n=[];for(let o of e){if(!o)continue;"string"==typeof o&&(o={type:"track",uri:o});const e={uri:o.uri,uid:o.uid,metadata:o.metadata||{},removed:o.removed_reasons,blocked:o.$blck_rs,provider:o.provider};(o.queued||t.queued)&&(e.metadata.is_queued="true",e.provider="queue"),(o.hidden||"meta"===o.type)&&(e.metadata.hidden="true"),n.push(e)}return n}function S(e){const[t,n]=e.split(y),o={type:"track",uid:t};return n&&(o.metadata={iteration:n}),o}class E extends l.vp{constructor(e){super(),this._hasInitialState=!1,this._reportInactiveQueues=!1,this._onlyLocalQueue=!1,this._currentPlayerState=null,this._currentInternalQueue=null,this._currentQueue=null,this._hasQueuedTracks=!1,this._connectClient=e.connectClient,this._runner=e.runner||(e=>e()),this._parsePlayerState=this._parsePlayerState.bind(this),this._onlyLocalQueue=!!e.onlyLocalQueue,this._reportInactiveQueues=!!e.reportInactiveQueues,this._connectClient.on("player_state_changed",this._onPlayerStateChanged.bind(this)),e.initialContextPlayerState&&this._parsePlayerState(e.initialContextPlayerState)}static create(e){return new E(e)}_onPlayerStateChanged(e){const{playerState:t,orphaned:n,isLocal:o}=e.data;this._parsePlayerState(t,n,o)}_parsePlayerState(e,t,n){var o,i,r;if(this._hasInitialState=!0,this._onlyLocalQueue&&!n||!this._reportInactiveQueues&&t)this._currentPlayerState=null,this._currentInternalQueue=null,this._currentQueue=null;else if(this._currentPlayerState=null!=e?e:null,e){if(e.queue_revision===(null===(o=this._currentInternalQueue)||void 0===o?void 0:o.revision))return null;this._hasQueuedTracks=!1;const t={ignoreMetaForTrack:null===(i=e.options)||void 0===i?void 0:i.repeating_context},n=e.queue_revision,a=_([e.track]).items[0],s=_(e.next_tracks,t),l=_(e.prev_tracks,t);this._hasQueuedTracks=s.hasQueuedTracks;const c={uri:e.context_uri,metadata:null!==(r=e.context_metadata)&&void 0!==r?r:void 0};this._currentInternalQueue={revision:n,context:c,current_track:a,next_items:s.items,previous_items:l.items},this._currentQueue={revision:n,context:c,current_track:a,next_tracks:s.tracks,previous_tracks:l.tracks}}else this._hasQueuedTracks=!1,this._currentInternalQueue=null,this._currentQueue=null;return this.emit(p.PLAYER_QUEUE_CHANGED,{internalPlayerQueue:this._currentInternalQueue,playerQueue:this._currentQueue}),this._currentInternalQueue}_setQueueNext(e,t){const n=this._currentPlayerState;if(!n)return Promise.reject(new v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const o={next_tracks:e,prev_tracks:n.prev_tracks,queue_revision:n.queue_revision};return this._runner((()=>this._connectClient.setQueue(o,t)),t)}_appendQueued(e,t){var n,o;const r=this._currentPlayerState;if(!r)return Promise.reject(new v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const a=Array.from(null!==(n=r.next_tracks)&&void 0!==n?n:[]);if(this._hasQueuedTracks){let t=!1;for(let n=0,i=a.length;n<i;n++){const i=a[n];if("true"!==(null===(o=null==i?void 0:i.metadata)||void 0===o?void 0:o.is_queued)){a.splice(n,0,...e),t=!0;break}}t||a.push(...e)}else a.unshift(...e);return this._setQueueNext(a,t)}getInternalPlayerQueue(){return this._hasInitialState?Promise.resolve(this._currentInternalQueue):new Promise((e=>{this.on(p.PLAYER_QUEUE_CHANGED,(t=>{e(t.data.internalPlayerQueue)}))}))}getPlayerQueue(){return this._hasInitialState?Promise.resolve(this._currentQueue):new Promise((e=>{this.on(p.PLAYER_QUEUE_CHANGED,(t=>{e(t.data.playerQueue)}))}))}setInternalPlayerQueue(e,t,n={ignoreRevision:!1}){if(!this._currentPlayerState)return Promise.reject(new v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));if(e.revision!==this._currentPlayerState.queue_revision&&!n.ignoreRevision)return Promise.reject(new v(i.QUEUE_OPERATION_STALE_REVISION,"Cannot perform operation; revision is stale."));const o={next_tracks:b(e.next_items),prev_tracks:b(e.previous_items),queue_revision:n.ignoreRevision?void 0:this._currentPlayerState.queue_revision};return this._runner((()=>this._connectClient.setQueue(o,t)),t)}addToQueue(e,t){if(!Array.isArray(e))return Promise.reject(new TypeError("Argument `items` must be an array."));const n=b(e,{queued:!0});return n.length?1===n.length?this._runner((()=>this._connectClient.addToQueue(n[0],t)),t):this._appendQueued(n,t):Promise.resolve(!1)}removeNext(e,t){var n,o,r;const a=this._currentPlayerState;if(!a)return Promise.reject(new v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));let s;s="string"==typeof e?S(e):e;const l=Array.from(null!==(n=a.next_tracks)&&void 0!==n?n:[]),c=l.length;for(let e=0;e<c;e++){const t=l[e];if((null==t?void 0:t.uid)===s.uid&&(null===(o=null==t?void 0:t.metadata)||void 0===o?void 0:o.iteration)===(null===(r=s.metadata)||void 0===r?void 0:r.iteration)){l.splice(e,1);break}}return l.length===c?Promise.resolve(!1):this._setQueueNext(l,t)}}class A extends l.vp{constructor(e){super(),this._hasFakeState=!1,this._localPlayerEnabled=!1,this._localPlayback=!1,this._lastDeviceList=[],this._deferredStreamer=(0,c.$)(),this._client=e.client,this._streamer=e.streamer,this._controller=e.controller,this._hidden=!!e.hidden,this._onlyLocalState=!!e.onlyLocalState,this._preferController=!this._onlyLocalState&&!!e.preferControllerState,this._claimInactivePlayerStates=!!e.claimInactivePlayerStates,this._enableControllerWithoutStreamer=!!e.enableControllerWithoutStreamer,this._autoActivateElement=!!e.autoActivateElement,this._deactivateOnStop=!!e.experimentalDeactivateOnStop,this._parseDeviceList=this._parseDeviceList.bind(this),this._init()}static create(e){return new A(e)}_init(){this._createStreamerDeferred();const e=this._client;e.on("error",this._onError.bind(this)),this.proxyEmit(e,"authenticated",p.AUTHENTICATED),this.proxyEmit(e,"authentication_error",p.AUTHENTICATION_ERROR),this.proxyEmit(e,"before_disconnect",p.BEFORE_DISCONNECT),this.proxyEmit(e,"connected",p.CONNECTED),this.proxyEmit(e,"connection_error",p.CONNECTION_ERROR),this.proxyEmit(e,"descriptor_changed",p.DEVICE_DESCRIPTOR_CHANGED),this.proxyEmit(e,"product_state_changed",p.PRODUCT_STATE_CHANGED),this.proxyEmit(e,"reconnected",p.RECONNECTED),this.proxyEmit(e,"reconnecting",p.RECONNECTING),this.proxyEmit(e,"unrecoverable_failure",p.UNRECOVERABLE_FAILURE),this.proxyEmit(e,"logged_out",p.LOGGED_OUT);const t=this._controller;t.on("device_info_changed",(e=>{this._onDeviceStateChanged(e.data)})),t.on("devices_changed",this._onDevicesChanged.bind(this)),t.on("state_changed",this._onPlayerStateChanged.bind(this)),t.on("progress",this._onControllerProgress.bind(this)),this.proxyEmitAll(t,{max_subscriptions_reached:p.MAX_SUBSCRIPTIONS_REACHED,device_deactivated:p.DEVICE_DEACTIVATED}),t.on("registered",this.emit.bind(this,p.REMOTE_OBSERVER_ENABLED,null)),t.on("deregistered",this.emit.bind(this,p.REMOTE_OBSERVER_DISABLED,null));const n=this._streamer;n?(n.on("deregistered",this._onStreamerDeregistered.bind(this)),n.on("registered",this._onStreamerRegistered.bind(this)),n.on("registration_aborted",this._onStreamerRegistrationAborted.bind(this)),n.on("state_changed",this._onStreamerStateChanged.bind(this)),n.on("stopped_on_background",this._onStreamerStoppedOnBackground.bind(this)),n.on("streamer_seek_handled",this._onSeekHandled.bind(this)),this.proxyEmitSync(n,"before_volume_change",p.BEFORE_VOLUME_CHANGE),this.proxyEmit(n,"autoplay_failed",p.AUTOPLAY_FAILED),this.proxyEmit(n,"stalled",p.BUFFER_STALLED),this.proxyEmit(n,"buffering_end",p.BUFFERING_END),this.proxyEmit(n,"buffering_start",p.BUFFERING_START),this.proxyEmit(n,"duration_changed",p.DURATION_CHANGED),this.proxyEmit(n,"max_list_errors_reached",p.MAX_LIST_ERRORS_REACHED),this.proxyEmit(n,"max_subscriptions_reached",p.MAX_SUBSCRIPTIONS_REACHED),this.proxyEmit(n,"playback_capped",p.PLAYBACK_CAPPED),this.proxyEmit(n,"player_initialization_done",p.PLAYER_INITIALIZATION_DONE),this.proxyEmit(n,"player_initialization_failed",p.PLAYER_INITIALIZATION_FAILED),this.proxyEmit(n,"progress",p.PROGRESS),this.proxyEmit(n,"registration_error",p.SERVICE_REGISTRATION_ERROR),this.proxyEmit(n,"track_ended",p.TRACK_ENDED),this.proxyEmit(n,"video_element_appended",p.VIDEO_ELEMENT_APPENDED),this.proxyEmit(n,"video_element_removed",p.VIDEO_ELEMENT_REMOVED),this.proxyEmit(n,"volume_changed",p.VOLUME_CHANGED),this.proxyEmit(n,"displayed_cues_changed",p.DISPLAYED_CUES_CHANGED),this.proxyEmit(n,"subtitle_languages_loaded",p.SUBTITLE_LANGUAGES_LOADED),this.proxyEmit(n,"speed_changed",p.SPEED_CHANGED),this.proxyEmitSync(n,"internal_endcontent","internal_endcontent"),n.on("context_ended",this.emit.bind(this,p.LOCAL_CONTEXT_ENDED,null)),n.on("logged_out",this.emit.bind(this,p.LOCAL_PLAYER_LOGGED_OUT,null))):(this._disableLocalTarget(),this.on(p.AUTHENTICATED,(()=>{this.emit(p.LOCAL_PLAYER_DISABLED,null)})))}_createStreamerDeferred(){this._deferredStreamer=(0,c.$)(),this._deferredStreamer.promise.catch((function(){}))}_isTargetIdLocal(e){return e?e===u?Promise.resolve(!0):this._client.getDeviceDescriptor().then((function(t){return e===t.getId()})):Promise.resolve(!!this._localPlayback)}_onStreamerRegistered(e){this._deferredStreamer.resolve(e.data),this._createStreamerDeferred(),this._deferredStreamer.resolve(e.data),this._localPlayerEnabled=!0,this._controller.register(),this.emit(p.LOCAL_PLAYER_ENABLED,null)}_onStreamerDeregistered(){this._disableLocalTarget(),this.emit(p.LOCAL_PLAYER_DISABLED,null)}_onStreamerRegistrationAborted(){this._disableLocalTarget(),this._enableControllerWithoutStreamer&&this._controller.register(),this.emit(p.LOCAL_PLAYER_DISABLED,null)}_disableLocalTarget(){this._localPlayerEnabled=!1;const e=new m(i.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot perform command; local player is disabled.");this._deferredStreamer.reject(e),this._createStreamerDeferred(),this._deferredStreamer.reject(e)}_onStreamerConnect(){return this._deferredStreamer.promise}_onDeviceStateChanged(e){const t=!!this._localPlayback,n=(e=!1)=>{this._generateLocalDeviceInfo(e).then((e=>{this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,{deviceInfo:e,hasOrphanedState:!1})}))};if(this._localPlayerEnabled&&e.hasOrphanedState&&this._claimInactivePlayerStates)return this._hasFakeState=!0,void n(!0);if(this._hasFakeState=!1,this._localPlayback=!(!e.deviceInfo||!e.deviceInfo.local),this._localPlayback){if(!this._streamer)throw new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");this._streamer.getVolume().then((t=>{e.deviceInfo&&(e.deviceInfo.volume=t),this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,e)})).catch((function(){}))}else this._onlyLocalState?(this._localPlayback||t)&&n():this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,e)}_onDevicesChanged(e){this._parseDeviceList(e.data).then((e=>{(function(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Invalid devices list.");if(e.length!==t.length)return!1;for(let n=0,o=e.length;n<o;n++)if(!g(e[n],t[n]))return!1;return!0})(this._lastDeviceList,e)||(this._lastDeviceList=e,this.emit(p.DEVICES_CHANGED,{devices:e,localDevice:null}))}))}_onError(e){const t=e.data.error;e.data.source===f.PLAYBACK&&t&&t.unrecoverable&&(this._disableLocalTarget(),this._streamer&&this._streamer.deregister()),this.emit(p.ERROR,e.data)}_onPlayerStateChanged(e){if(!this._onlyLocalState&&(this._preferController||!this._localPlayback)){let t;t=this._localPlayerEnabled&&this._claimInactivePlayerStates?e.data.state:e.data.orphaned?null:e.data.state,this.emit(p.STATE_CHANGED,{state:t})}}_onControllerProgress(e){this._onlyLocalState||this._localPlayback||this.emit(p.PROGRESS,e.data)}_onStreamerStateChanged(e){this._preferController||(this._onlyLocalState?this._triggerLocalStateChanges(e.data):this._hidden?this._handleHidden(e.data):this._localPlayback&&this.emit(p.STATE_CHANGED,e.data))}_onStreamerStoppedOnBackground(){this._deactivateOnStop&&(this._localPlayback=!1),this.emit(p.STOPPED_ON_BACKGROUND,null)}_handleHidden(e){e.state?(this._controller.suppressEvents(),this._triggerLocalStateChanges(e)):this._controller.unsuppressEvents()}_parseDeviceList(e){const t=e.devices.slice(0).map((e=>Promise.resolve(e)));return t.length&&e.localDevice?this._hasFakeState&&e.localDevice&&(e.localDevice.is_active=!0):t.push(this._generateLocalDeviceInfo(this._hasFakeState)),Promise.all(t).then((e=>e))}_triggerLocalStateChanges(e){this._generateLocalDeviceInfo().then((e=>{this._onDeviceStateChanged({deviceInfo:e,hasOrphanedState:!1})})),this.emit(p.STATE_CHANGED,e)}_canStartNewContext(e){return this._runOnDevice(e,(()=>this._streamer?Promise.resolve(!0):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided."))),(()=>Promise.resolve(!0)),{bypassFakeState:!0})}_activateElement(){this._autoActivateElement=!1,this._streamer&&this._streamer.activateElement().catch((()=>{}))}_runOnDevice(e=undefined,t,n,o){return this._hasFakeState&&!(null==o?void 0:o.bypassFakeState)?(this._autoActivateElement&&this._activateElement(),this._claimStateAndRun(n,o)):this._isTargetIdLocal(e).then((e=>e?this._onStreamerConnect().then(t):n()))}_claimStateAndRun(e,t){return this._onStreamerConnect().then((()=>{this._hasFakeState=!1;const e={paused:!0};return(null==t?void 0:t.loggingParams)&&(e.loggingParams=t.loggingParams),Promise.all([this._controller.transfer(u,e),new Promise(((e,t)=>{this._streamer?this._streamer.once("track_loaded",e):t(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided."))}))])})).then((()=>e()))}_generateLocalDeviceInfo(e=!1){const t=this._client,n=this._streamer;let o=Promise.resolve(!1),i=Promise.resolve(-1);return this._localPlayerEnabled&&(e?o=Promise.resolve(!0):n&&(o=n.getCurrentState().then((e=>!!e))),n&&(i=n.getVolume())),Promise.all([t.getClientDescriptor(),t.getSDKId(),o,i]).then((([e,t,n,o])=>{var i;const r={hifi_status:{fully_supported:void 0,user_eligible:void 0,device_supported:null===(i=e.capabilities)||void 0===i?void 0:i.lossless_playback}};return{hidden:this._hidden,id:e.id,is_active:n,is_group:!1,is_being_activated:!1,is_controllable:this._localPlayerEnabled,is_observable:!!this._localPlayerEnabled&&!this._hidden,local:!0,metadata:e.metadata||{},name:e.name,type:e.type,version:t,volume:o,capabilities:{supports_lossless_audio:!1},playback_features:r,has_inactive_player_state:this._hasFakeState}}))}_movePosition(e,t){return this.getCurrentState().then((n=>{if(!n||isNaN(n.position))return Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Seeking not allowed with invalid track."));const o=e,r=Math.min(n.duration,Math.max(0,n.position+o));return this.seek(r,t)}))}_prepareSkipTrack(e){let t;return t="string"==typeof e?S(e):e,t}_cycleRepeatMode(e){return this.getCurrentState().then((t=>{if(!t)return Promise.reject(new m(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));let n=null;const o=t.disallows;switch(t.repeat_mode){case h.OFF:if(o.toggling_repeat_context){if(o.toggling_repeat_track)return Promise.resolve(!1);n=h.TRACK}else n=h.CONTEXT;break;case h.CONTEXT:n=o.toggling_repeat_track?h.OFF:h.TRACK;break;case h.TRACK:default:n=h.OFF}return this.setRepeatMode(n,e)}))}_onSeekHandled(e){this._controller.seek(e.data.position)}getClientDescriptor(){return this._client.getClientDescriptor()}getProductState(){return this._client.getProductState()}getPublicTransport(){return this._client.getPublicTransport()}getUserInfo(){return this._client.getUserInfo()}getVersionDescriptor(){return this._client.getVersionDescriptor()}logAppMetrics(e,t){return this._client.logAppMetrics(e,t)}setName(e){return this._client.setName(e)}setNameTemplate(e){return this._client.setNameTemplate(e)}getContextPlayerState(){return this._controller.getContextPlayerState()}updateCurrentContext(e,t){return this._controller.updateCurrentContext(e,t)}getLastActiveDevice(){return this._onlyLocalState||this._hasFakeState?this._generateLocalDeviceInfo(this._hasFakeState):this._controller.getActiveDevice().then((e=>(null==e?void 0:e.local)&&this._streamer?(e.hidden=this._hidden,this._streamer.getVolume().then((t=>(e.volume=t,e)))):e))}getCurrentState(){if(!this._onlyLocalState&&(this._preferController||!this._localPlayback)){const e=!this._localPlayerEnabled||!this._claimInactivePlayerStates;return this._controller.getCurrentState(e).then((e=>!this._preferController&&this._localPlayback?this.getCurrentState():e))}return this._onStreamerConnect().then(this._streamer.getCurrentState.bind(this._streamer))}pause(e,t){return this._runOnDevice(e,(()=>this._streamer.pause()),this._controller.pause.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}resume(e,t){return this._runOnDevice(e,(()=>this._streamer.resume()),this._controller.resume.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}togglePlay(e,t){return this._runOnDevice(e,(()=>this._streamer.togglePlay()),this._controller.togglePlay.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}playURI(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playURI(e,t,n))))}playPages(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playPages(e,t,n))))}playTracks(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playTracks(e,t,n))))}nextTrack(e,t){const n={};let o=()=>this._streamer.nextTrack(s.FORWARD_BUTTON);const i=this._controller.nextTrack.bind(this._controller,e,n);return(null==t?void 0:t.track)&&(o=i,n.track=this._prepareSkipTrack(t.track)),(null==t?void 0:t.loggingParams)&&(n.loggingParams=t.loggingParams),this._runOnDevice(e,o,i,{loggingParams:null==t?void 0:t.loggingParams})}smartPreviousTrack(e,t){return this.getCurrentState().then((n=>{if(!n)return Promise.reject(new m(i.HARMONY_NO_TRACKS_LOADED,"No current state."));return(n.disallows||{}).seeking||n.position<3e3&&n.track_window&&n.track_window.previous_tracks&&n.track_window.previous_tracks.length>0?this.previousTrack(e,t):this.seek(0,e)}))}previousTrack(e,t){const n={};let o=()=>this._streamer.previousTrack(s.FORWARD_BUTTON);const i=this._controller.previousTrack.bind(this._controller,e,n);return(null==t?void 0:t.track)&&(o=i,n.track=this._prepareSkipTrack(t.track)),(null==t?void 0:t.loggingParams)&&(n.loggingParams=t.loggingParams),this._runOnDevice(e,o,i,{loggingParams:null==t?void 0:t.loggingParams})}seek(e,t){return this._runOnDevice(t,(()=>this._streamer.seek(e)),this._controller.seek.bind(this._controller,e,t))}seekForward(e=15e3,t){return this._movePosition(e,t)}seekBackward(e=15e3,t){return this._movePosition(-1*e,t)}getVolume(){return this._streamer?this._streamer.getVolume():Promise.resolve(-1)}setVolume(e,t){return this._runOnDevice(t,(()=>this._streamer.setVolume(e)),this._controller.setVolume.bind(this._controller,e),{bypassFakeState:!0})}getVideoProfiles(){if(!this._streamer)throw new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");return this._streamer.getVideoVariants()}setPreferredBitrate(e){if(!this._streamer)throw new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");return this._streamer.setPreferredBitrate(e)}getDevices(){return this._controller.getDevices().then(this._parseDeviceList).then((e=>(this._lastDeviceList=e,e)))}setQueue(e,t,n){console.warn("Harmony.setQueue is deprecated; migrate to new PlayerQueue API");const o=this._controller.setQueue.bind(this._controller,e,t,n);return this._runOnDevice(n,o,o)}addToQueue(e,t){const n=e.map((e=>"string"==typeof e?e:e.uri));return this._controller.getQueueManager().addToQueue(n,t)}setShuffle(e,t,n){const o=this._controller.setShuffle.bind(this._controller,e,t,n);return this._runOnDevice(t,o,o,{loggingParams:null==n?void 0:n.loggingParams})}toggleShuffle(e,t){const n=this._controller.toggleShuffle.bind(this._controller,e,t);return this._runOnDevice(e,n,n,{loggingParams:null==t?void 0:t.loggingParams})}setRepeatMode(e,t){const n=this._controller.setRepeatMode.bind(this._controller,e,t);return this._runOnDevice(t,n,n)}cycleRepeatMode(e){const t=this._cycleRepeatMode.bind(this,e);return this._runOnDevice(e,t,t)}transfer(e,t){const n=e||u,o=this._controller.transfer.bind(this._controller,n,t);return this._autoActivateElement&&this._activateElement(),this._runOnDevice(n,o,o,{bypassFakeState:!0,loggingParams:null==t?void 0:t.loggingParams})}logout(e){return this._controller.logout(e||u)}activateElement(){return this._streamer?this._streamer.activateElement():Promise.reject(new m(i.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot activate element; local player is disabled."))}getQueueManager(){return this._controller.getQueueManager(((e,t)=>this._runOnDevice(t,e,e)),{reportInactiveQueues:this._claimInactivePlayerStates,onlyLocalQueue:this._onlyLocalState,reportInitial:this._hasFakeState||this._localPlayback})}hideSubtitles(){return this._localPlayback?this._streamer?this._streamer.hideSubtitles():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot hide subtitles on remote player."))}showSubtitles(){return this._localPlayback?this._streamer?this._streamer.showSubtitles():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."))}areSubtitlesShown(){return this._localPlayback?this._streamer?this._streamer.areSubtitlesShown():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."))}getSubtitleLanguages(){return this._localPlayback?this._streamer?this._streamer.getSubtitleLanguages():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot get subtitle languages on remote player."))}getActiveSubtitleLanguage(){return this._localPlayback?this._streamer?this._streamer.getActiveSubtitleLanguage():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot get subtitle language on remote player."))}setSubtitleLanguage(e){return this._localPlayback?this._streamer?this._streamer.setSubtitleLanguage(e):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot set subtitle languages on remote player."))}deactivateSubtitleEvents(){return this._localPlayback?this._streamer?this._streamer.activateSubtitleEvents():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot deactivate subtitle events on remote player."))}activateSubtitleEvents(){return this._localPlayback?this._streamer?this._streamer.activateSubtitleEvents():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot activate subtitle events on remote player."))}setBackgrounded(e){return this._localPlayback?this._streamer?this._streamer.setBackgrounded(e):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot set background mode on remote player."))}setVideoResolution(e){return this._localPlayback?this._streamer?this._streamer.setVideoResolution(e):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot set preferred video resolution on remote player."))}getMediaConfig(){return this._streamer?this._streamer.getMediaConfig():Promise.reject(new m(i.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot activate element; local player is disabled."))}setPlaybackSpeed(e){const t=this._streamer;return t?this.getCurrentState().then((n=>{var o;return"episode"!==(null===(o=null==n?void 0:n.track_window.current_track)||void 0===o?void 0:o.type)?Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot change playback speed; content type is not an episode.")):t.setPlaybackSpeed(e)})):Promise.reject(new m(i.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot change speed; local player is disabled."))}}var T=n(77321),P=n(30212),O=n(42450);const C="spotify:user:attributes:mutated";class k extends l.vp{constructor(e){super(),this._currentState=null,this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/melody",this._handleUserUpdate=this._handleUserUpdate.bind(this),this._init()}static create(e){return new k(e)}_init(){this.register()}_handleUserUpdate(){clearTimeout(this._debounce),this._debounce=setTimeout((()=>{this._transport.forceTokenRefresh().catch((function(){})),this.getCurrentState(!0).then((e=>{this.emit(O.j.PRODUCT_STATE_CHANGED,{productState:e})}))}),300)}_shouldRetry(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}getCurrentState(e){return!e&&this._currentState?Promise.resolve(this._currentState):this._transport.request(`${this._endpoint}/v1/product_state`,{method:"GET",responseType:"json",retry:{condition:this._shouldRetry}}).then((e=>{if(e.status!==P.G.OK||!e.body)throw this._currentState=null,new Error("Cannot get the user's product state.");return this._currentState=e.body,e.body}))}register(){return this._transport.matchMessages(C,this._handleUserUpdate),Promise.resolve(!0)}deregister(){return this._transport.unmatchMessages(C,this._handleUserUpdate),Promise.resolve(!0)}}const R=/(edge)[\s\/:]([\w\d\.]+)/,L=new RegExp("(opera|ie|firefox|chrome|trident|crios|version)[\\s/:]([\\w\\d\\.]+)?.*?(safari|(?:rv[\\s\\/:]|version[\\s\\/:])([\\w\\d\\.]+)|$)"),I={};function N(e){if(!e)return e;const t=function(e,t){var n,o,i;const r=e.toLowerCase();let a=t?t.toLowerCase():"";const s=`${r}:${a}`,l=I[s];if(l)return l;const c=r.match(R),u=r.match(L)||[null,"unknown",0],d=c||u;"trident"===d[1]?(d[1]="ie",d[4]&&(d[2]=d[4])):"crios"===d[1]&&(d[1]="chrome"),a=r.match(/ip(?:ad|od|hone)/)?"ios":null!==(n=(r.match(/(?:webos|android)/)||r.match(/mac|win|linux|cros/)||[])[0])&&void 0!==n?n:"other","win"===a&&(a="windows");const p="version"===d[1]?d[3]:d[1],f="opera"===d[1]&&d[4]?d[4]:d[2],h={name:null!==(o=null==p?void 0:p.toString())&&void 0!==o?o:"unknown",version:null!==(i=null==f?void 0:f.toString())&&void 0!==i?i:"unknown",platform:a};return I[s]=h,h}(navigator.userAgent,navigator.platform);return e.replace(/\{\{([^}]+?)\}\}/g,(function(e,n){return o=n,(i=t)&&i.hasOwnProperty(o)?t[n]:"";var o,i}))}var w,D;!function(e){e.FILE_URLS_MP3="file_urls_mp3",e.FILE_URLS_EXTERNAL="file_urls_external",e.FILE_IDS_MP3="file_ids_mp3",e.FILE_IDS_MP4="file_ids_mp4",e.FILE_IDS_MP4_DUAL="file_ids_mp4_dual",e.FILE_IDS_CBCS="file_ids_mp4_cbcs",e.FILE_IDS_MP4FLAC="file_ids_mp4flac",e.MANIFEST_IDS_VIDEO="manifest_ids_video"}(w||(w={})),function(e){e.UNKNOWN="unknown",e.COMPUTER="computer",e.TABLET="tablet",e.SMARTPHONE="smartphone",e.SPEAKER="speaker",e.TV="tv",e.AVR="avr",e.STB="stb",e.AUDIO_DONGLE="audio_dongle",e.GAME_CONSOLE="game_console",e.CAST_VIDEO="cast_video",e.CAST_AUDIO="cast_audio",e.AUTOMOBILE="automobile",e.SMARTWATCH="smartwatch",e.CHROMEBOOK="chromebook"}(D||(D={}));const M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",x={},F={};function U(e,t,n){let o=0;for(let i=0;i<e.length;++i){const r=e[i]*t+o;e[i]=r%n,o=~~(r/n)}for(;o;)e.push(o%n),o=~~(o/n)}function B(e,t,n,o){let i,r,a=0;for(r=0;r<t.length;++r)i=~~e[r]+t[r]*n+a,e[r]=i%o,a=~~(i/o);for(;a;)i=~~e[r]+a,e[r]=i%o,a=~~(i/o),++r}function V(e,t,n){const o=[0],i=[1];for(const r of e)B(o,i,r,n),U(i,t,n);return o}function G(e,t){const n=[];for(const o of e)n.push(t[o]);return n.reverse()}function J(e,t=0){for(;e.length<t;)e.push(0);return e}function j(e,t){const n=V(G(e.split(""),F),62,16);return G(J(n,t),M).join("")}!function(){for(let e=0,t=M.length;e<t;++e)F[M[e]]=e;for(let e=0;e<16;++e)x["0123456789abcdef"[e]]=e;for(let e=0;e<16;++e)x["0123456789ABCDEF"[e]]=e}();n(20464);const H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(()=>{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t<H.length;++t)e[H.charCodeAt(t)]=t;String.fromCharCode(...e)})();let K=null,Y=null;"undefined"!=typeof window&&window.btoa&&window.atob&&(K=e=>window.btoa(e),Y=e=>window.atob(e));function W(){const e=new Uint8Array(16);crypto.getRandomValues(e);return j(e.join(""),40).slice(0,40)}function z(){const e=new Array(27);let t=e.length;for(;t--;)e[t]=Math.floor(8*Math.random());return j(e.join(""),40)}const q="undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?W:z,X="_spharmony_device_id";const Z={get:function(e,t=!1){if(e&&"string"==typeof e)return e;if(t)return q();let n=localStorage.getItem(X);return n||(n=q(),localStorage.setItem(X,n)),n},generate:q,generateWithCrypto:W,generateWithRandom:z};class Q extends l.vp{constructor(e){var t;if(super(),this._platformVersion="",this._metadata={},this._manifestPrependOffset=0,!e)throw new TypeError("Invalid argument `options`.");if(!e.id)throw new TypeError("Argument `options.id` is required.");if(!e.name||!e.model||!e.type)throw new TypeError("Incomplete `options` value.");this._id=e.id,this._type=e.type,this._brand=e.brand,this._model=e.model,this._isGroup=!!e.is_group,this._name=e.name,this._platformName=e.platform_name,this._platformIdentifier=e.platform_identifier,this._platformVersion=e.platform_version||"",this._metadata=e.metadata||{},this._capabilities=e.capabilities||{manifest_formats:[]},this._manifestPrependOffset=(null===(t=this._capabilities.manifest_formats)||void 0===t?void 0:t.length)||0}static create(e){return new Q({id:Z.get(e.id,e.randomizeId),model:e.model||N("harmony-{{name}}.{{version}}-{{platform}}").toLowerCase(),name:e.nameTemplate?N(e.nameTemplate):e.name||(t=N("Spotify ({{name}}/{{platform}})"),t.replace(/\b[a-z]/g,(e=>e.toUpperCase()))),type:e.type||D.COMPUTER,brand:e.brand||"SpotifyHarmonyGeneric",platform_name:e.platform_name,platform_identifier:e.platform_identifier,platform_version:e.platform_version,metadata:e.metadata||{},capabilities:e.capabilities||{},is_group:!!e.is_group});var t}getId(){return this._id}setCapability(e,t){if("manifest_formats"===e)throw new TypeError('Cannot change capability "manifest_formats"');return this._capabilities[e]=t,this.emit("descriptor_changed",{descriptor:this.toJSON()}),!0}getCapability(e){if("manifest_formats"===e)throw new TypeError("Use `descriptor.getManifestFormats()`.");return this._capabilities[e]}setName(e){return this._name=e,this.emit("descriptor_changed",{descriptor:this.toJSON()}),!0}getName(){return this._name}getType(){return this._type}getBrand(){return this._brand}getModel(){return this._model}getPlatformIdentifier(){return this._platformIdentifier||`Partner ${this._brand} ${this._model}`}getPlatformName(){return this._platformName||this.getPlatformIdentifier()}getPlatformVersion(){return this._platformVersion}getManifestFormats(){return this._capabilities.manifest_formats||[]}appendManifestFormat(...e){const t=this._capabilities.manifest_formats;Array.isArray(t)&&t.push(...e)}prependManifestFormat(...e){const t=this._capabilities.manifest_formats;Array.isArray(t)&&t.splice(this._manifestPrependOffset,0,...e)}toJSON(){return{brand:this._brand,capabilities:Object.assign({},this._capabilities),id:this._id,metadata:Object.assign({},this._metadata),model:this._model,name:this._name,platform_name:this._platformName,platform_identifier:this._platformIdentifier,platform_version:this._platformVersion,type:this._type}}toTrackPlaybackDeviceInfo(){return{brand:this._brand,capabilities:Object.assign({},this._capabilities),device_id:this._id,device_type:this._type,metadata:Object.assign({},this._metadata),model:this._model,name:this._name,platform_name:this._platformName,platform_identifier:this._platformIdentifier,is_group:this._isGroup}}}const $={tagged:"4.27.1-af7f4f3",version:"4.27.1",revision:"af7f4f3"};var ee=n(6768);class te{constructor(e){this._melodyLogger=new ee.Hx(e)}logClientEvent(e,t){return e?this._melodyLogger.sendLog("/v1/msg/batch",{type:"client_event",message:{source:e.source||ee.eV.UNKNOWN,context:e.context||ee.eV.UNKNOWN,event:e.event||ee.eV.UNKNOWN,event_version:e.event_version||ee.eV.EMPTY,test_version:e.test_version||ee.eV.EMPTY,source_version:e.source_version||ee.eV.UNKNOWN,source_vendor:e.source_vendor||ee.eV.UNKNOWN,json_data:"json"===t?e.json_data||"{}":JSON.stringify(e.json_data||{})}},{batch:!0}):Promise.reject(new TypeError("Logger.logClientEvent `data` cannot be null."))}logMetrics(e,t){if(!e&&!t)return Promise.resolve(!0);const n=e||[],o=t||[];if(!n.length&&!o.length)return Promise.resolve(!0);if(!Array.isArray(n)||!Array.isArray(o))return Promise.reject(new TypeError("Logger.logMetrics `meters` and `timers` must be null or an array."));for(const e of n)if(!("what"in e)||!("result"in e)||!("reason"in e))return Promise.reject(new TypeError("Logger.logMetrics: Invalid meter format in `meters` array."));for(const e of o)if(!("what"in e)||!("duration"in e))return Promise.reject(new TypeError("Logger.logMetrics: Invalid timer format in `timers` array."));return this._melodyLogger.sendLog("/v1/metric",{sdk_id:void 0,platform:void 0,client_version:void 0,meters:n,timers:o})}logJSSDKError(e,t){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:{source:e.source||ee.eV.UNKNOWN,source_version:e.source_version||ee.eV.UNKNOWN,type:e.type||ee.eV.UNKNOWN,message:e.message||ee.eV.EMPTY,stack:JSON.stringify(e.stack||ee.eV.EMPTY),json_data:"json"===t?e.json_data||"{}":JSON.stringify(e.json_data||{}),json_data_version:e.json_data_version||ee.eV.EMPTY_VERSION}},{batch:!0})}logJSSDKContentRequest(e){var t;return this._melodyLogger.sendLog("/v1/msg/jssdk_content_request",{source:e.source||ee.eV.UNKNOWN,type:e.type||ee.eV.UNKNOWN,http_status:null!==(t=e.http_status)&&void 0!==t?t:void 0,ms_request_duration:e.ms_request_duration||ee.eV.EMPTY,n_retries:e.n_retries||ee.eV.ZERO,playback_id:e.playback_id||ee.eV.EMPTY})}}const ne=T.P.forTag("harmonyclient"),oe=/^[a-zA-Z0-9_%:-]{1,40}$/;class ie extends l.vp{constructor(e){if(super(),this._platformIdentifier=(0,c.$)(),this._platformVersion=(0,c.$)(),!e)throw new TypeError("Argument `options` is not defined.");if(!e.transport)throw new TypeError("No Transport instance provided");if(!e.transport.hasPlugin("dealer"))throw new TypeError("Transport has no Dealer plugin.");this._transport=e.transport,this._deviceDescriptor=this._initDeviceDescriptor(e),this._logger=new te({transport:this._transport.toPublic(),sdkId:this.getSDKId(),platform:this._platformIdentifier.promise,clientVersion:this._platformVersion.promise}),this._productStateObserver=k.create({transport:this._transport}),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onConnectionError=this._onConnectionError.bind(this),this._onAuthenticationError=this._onAuthenticationError.bind(this),this._onShortSessionDisconnect=this._onShortSessionDisconnect.bind(this),this._attachListeners()}static create(e){return new ie(e)}static of(e){return e._client}_createDeviceDescriptor(e,t={}){var n,o;if((null==t?void 0:t.id)&&!oe.test(t.id))throw m.fatal(i.HARMONY_INVALID_DESCRIPTOR_ID,"Invalid device id.");const r=t.capabilities||{},a={change_volume:null===(n=r.change_volume)||void 0===n||n,endsong_snooping:r.endsong_snooping,enable_play_token:!0,supports_file_media_type:!0,play_token_lost_behavior:e.playTokenLostBehavior||"pause",disable_connect:!!e.hidden,audio_podcasts:null===(o=r.audio_podcasts)||void 0===o||o,video_playback:r.video_playback,lossless_playback:r.lossless_playback,volume_steps:void 0!==r.volume_steps&&r.volume_steps>=0&&r.volume_steps<d?r.volume_steps:void 0,manifest_formats:[w.FILE_IDS_MP3,w.FILE_URLS_MP3]},s=Q.create(Object.assign(Object.assign({},t),{capabilities:a}));return this._platformIdentifier.resolve(s.getPlatformIdentifier()),this._platformVersion.resolve(s.getPlatformVersion()),this.proxyEmit(s,"descriptor_changed","descriptor_changed"),s}_initDeviceDescriptor(e){return Promise.resolve(e.descriptor).then(this._createDeviceDescriptor.bind(this,e)).catch((e=>(this._onError(f.HARMONY,{error:e}),Promise.reject(e))))}_attachListeners(){const e=this._transport;e.on(a.TransportEvent.CONNECTED,this._onConnected),e.on(a.TransportEvent.AUTHENTICATED,this._onAuthenticated),e.on(a.TransportEvent.CONNECTION_FAILED,this._onConnectionError),e.on(a.TransportEvent.AUTHENTICATION_FAILED,this._onAuthenticationError),this.proxyEmit(e,a.TransportEvent.RECONNECTING,"reconnecting"),this.proxyEmit(e,a.TransportEvent.RECONNECTED,"reconnected"),this.proxyEmit(e,a.TransportEvent.LOGGED_OUT,"logged_out"),this.proxyEmitSync(e,a.TransportEvent.BEFORE_OFFLINE_DISCONNECT,"before_offline_disconnect"),this.proxyEmitSync(e,a.TransportEvent.BEFORE_ONLINE_DISCONNECT,"before_disconnect"),e.on(a.TransportEvent.SHORT_SESSION_DISCONNECTED,this._onShortSessionDisconnect.bind(this)),this.proxyEmit(this._productStateObserver,a.TransportEvent.PRODUCT_STATE_CHANGED,"product_state_changed"),this.on("before_disconnect",(e=>{const t=this._productStateObserver.deregister().catch((()=>{}));e.data.awaitPromise(t)}))}_onError(e,t){this.emit("error",{source:e,error:t.error}),t.error&&t.error.unrecoverable&&this.emit("unrecoverable_failure",{source:e,error:t.error})}_onConnected(){this.emit("connected",null)}_onAuthenticated(){this.emit("authenticated",null)}_onConnectionError(e){this._onError(f.TRANSPORT,{error:e.data.error}),this.emit("connection_error",e.data)}_onAuthenticationError(e){this._onError(f.TRANSPORT,{error:e.data.error}),this.emit("authentication_error",e.data)}_onShortSessionDisconnect(e){this._logger.logClientEvent({source:"transport",source_version:$.tagged,source_vendor:"spotify",event:e.type,event_version:"1.0.0",json_data:{disconnectCount:e.data.disconnectCount,sessionLength:e.data.sessionLength}},"object").catch((t=>ne.warn(`${e.type} Logging Error:`,t)))}getVersionDescriptor(){return Object.assign({},$)}getSDKId(){return`harmony:${$.tagged}`}getUntaggedSDKId(){return`harmony:${$.version}`}getPlatformIdentifier(){return this._platformIdentifier.promise}getPlatformVersion(){return this._platformVersion.promise}getLogger(){return this._logger}logAppMetrics(e,t){if(!this._logger)throw new TypeError("Invalid logger instance");return this._logger.logMetrics(e,t)}request(e,t){return this._transport.request(e,t)}getPublicTransport(){return this._transport.toPublic()}getClientDescriptor(){return this._deviceDescriptor.then((e=>e.toJSON()))}getDeviceDescriptor(){return this._deviceDescriptor}getUserInfo(){return this._transport.request("@webapi/v1/me",{responseType:"json"}).then((e=>{const t=e.body;if(200!==e.status){const t=new m(i.USER_INFO_REQUEST_FAILED_WITH_STATUS,`User info request failed with status ${e.status}`);return t.status=e.status,Promise.reject(t)}return t?{display_name:t.display_name,followers:t.followers,id:t.id,images:t.images,uri:t.uri}:Promise.reject(new m(i.USER_INFO_REQUEST_EMPTY_RESPONSE,"Unexpected empty response."))}))}getProductState(){return this._productStateObserver.getCurrentState()}setName(e){return this._deviceDescriptor.then((function(t){return t.setName(e)}))}setNameTemplate(e){return this.setName(N(e))}setCapability(e,t){return this._deviceDescriptor.then((n=>n.setCapability(e,t)))}notifyError(e,t){this._onError(e,{error:t})}}var re,ae,se,le,ce,ue=n(26336),de=n(46506),pe=n(46712);!function(e){e.KEY_SESSION_MESSAGE="message",e.KEY_SESSION_STATUSES_CHANGE="keystatuseschange",e.MEDIA_SOURCE_OPEN="sourceopen",e.MEDIA_SOURCE_CLOSE="sourceclose",e.SOURCE_BUFFER_UPDATE_END="updateend",e.MS_KEY_ADDED="mskeyadded",e.MS_KEY_ERROR="mskeyerror",e.MS_KEY_MESSAGE="mskeymessage",e.MS_NEEDKEY="msneedkey",e.WEBKIT_KEY_ADDED="webkitkeyadded",e.WEBKIT_KEY_ERROR="webkitkeyerror",e.WEBKIT_KEY_MESSAGE="webkitkeymessage",e.WEBKIT_NEEDKEY="webkitneedkey",e.V0_1B_KEY_ADDED="keyadded",e.V0_1B_KEY_ERROR="keyerror",e.V0_1B_KEY_MESSAGE="keymessage",e.V0_1B_NEEDKEY="needkey",e.MEDIA_CANPLAY="canplay",e.MEDIA_CANPLAYTHROUGH="canplaythrough",e.MEDIA_DURATIONCHANGE="durationchange",e.MEDIA_ENCRYPTED="encrypted",e.MEDIA_ENDED="ended",e.MEDIA_ERROR="error",e.MEDIA_LOADEDMETADATA="loadedmetadata",e.MEDIA_PAUSE="pause",e.MEDIA_PLAY="play",e.MEDIA_PLAYING="playing",e.MEDIA_SEEKING="seeking",e.MEDIA_TIMEUPDATE="timeupdate",e.MEDIA_WAITING="waiting",e.MEDIA_RATECHANGE="ratechange",e.MEDIA_RESIZE="resize",e.INTERNAL_ENCRYPTED="__encrypted",e.INTERNAL_PLAYER_CANPLAY="__canplay",e.INTERNAL_PLAYER_CANPLAYTHROUGH="__canplaythrough",e.INTERNAL_MEDIA_REQUIRES_DURATION="__requiresduration",e.INTERNAL_PLAYER_LOADED_METADATA="__loadedmetadata",e.BUFFER_APPEND_ERROR="append_error",e.BUFFER_STALLED="stalled",e.BUFFERING_START="buffering_start",e.BUFFERING_END="buffering_end",e.BUFFER_SOURCE_OPEN="source_open",e.BUFFER_SOURCE_CLOSE="source_close",e.BUFFER_QUOTA_EXCEEDED="quota_exceeded",e.FRAGMENT_APPENDED="fragment_appended",e.EME_LICENSE_REQUEST_ERROR="license_request_error",e.EME_LICENSE_REQUEST_CAPPED="license_request_capped",e.LIST_PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.LIST_PLAYER_BEFORE_LIST_CHANGE="before_list_change",e.LIST_PLAYER_BEFORE_NEXT="before_next",e.LIST_PLAYER_BEFORE_PLAYER_LOAD="before_player_load",e.LIST_PLAYER_BEFORE_PREVIOUS="before_previous",e.LIST_PLAYER_BEFORE_TRACK_LOAD="before_track_load",e.LIST_PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.LIST_PLAYER_BUFFER_STALLED="stalled",e.LIST_PLAYER_BUFFERING_START="buffering_start",e.LIST_PLAYER_BUFFERING_END="buffering_end",e.LIST_PLAYER_CAPPED="capped",e.LIST_PLAYER_CLEARED="cleared",e.LIST_PLAYER_DURATION_CHANGED="duration_changed",e.LIST_PLAYER_ERROR="error",e.LIST_PLAYER_ERROR_SYNC="error_sync",e.LIST_PLAYER_LIST_CHANGED="list_change",e.LIST_PLAYER_LIST_ENDED="list_ended",e.LIST_PLAYER_LOAD_VIDEO="load_video",e.LIST_PLAYER_MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.LIST_PLAYER_PAUSED="paused",e.LIST_PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.LIST_PLAYER_PLAYER_LOAD="player_load",e.LIST_PLAYER_PLAYING="playing",e.LIST_PLAYER_POSITION_CHANGED="position_changed",e.LIST_PLAYER_PROGRESS="progress",e.LIST_PLAYER_REPEAT_MODE_CHANGED="repeat_mode_changed",e.LIST_PLAYER_SHUFFLE_CHANGED="shuffle_changed",e.LIST_PLAYER_STOPPED="stopped",e.LIST_PLAYER_STOPPED_VIDEO="stopped_video",e.LIST_PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_TRACK_ENDED="track_ended",e.LIST_PLAYER_TRACK_LOADED="track_loaded",e.LIST_PLAYER_TRACK_TIMEOUT="track_timeout",e.LIST_PLAYER_TRACK_UNPLAYABLE="track_unplayable",e.LIST_PLAYER_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_VOLUME_CHANGED="volume_changed",e.LIST_PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.LIST_PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.LIST_PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.LIST_PLAYER_SEEK_HANDLED="list_player_seek_handled",e.LIST_PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.LIST_PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.LOGGER_ERROR="error",e.PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.PLAYER_BEFORE_LOAD="before_load",e.PLAYER_BEFORE_STOP="before_stop",e.PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.PLAYER_BUFFER_STALLED="stalled",e.PLAYER_BUFFERING_START="buffering_start",e.PLAYER_BUFFERING_END="buffering_end",e.PLAYER_CAN_PRELOAD="can_preload",e.PLAYER_CAPPED="capped",e.PLAYER_DURATION_CHANGED="duration_changed",e.PLAYER_ENDED="ended",e.PLAYER_ENDED_VIDEO="ended_video",e.PLAYER_ERROR="error",e.PLAYER_WARNING="warning",e.PLAYER_FIRST_BYTES="first_bytes",e.PLAYER_KEY_RECEIVED="key",e.PLAYER_LOAD="load",e.PLAYER_LOAD_VIDEO="load_video",e.PLAYER_LOADING_FAILED="loading_failed",e.PLAYER_PAUSED="paused",e.PLAYER_PLAY="play",e.PLAYER_PLAYING="playing",e.PLAYER_POSITION_CHANGED="position_changed",e.PLAYER_PRELOADING_ERROR="preloading_error",e.PLAYER_PROGRESS="progress",e.PLAYER_STALLED="stalled",e.PLAYER_STOPPED="stopped",e.PLAYER_STOPPED_VIDEO="stopped_video",e.PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.PLAYER_TIMEOUT="timeout",e.PLAYER_PLAYBACK_START="playback_start",e.PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.PLAYER_SEEKING="seeking",e.PLAYER_FRAGMENT_FETCHED="fragment_fetched",e.PLAYER_FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.PLAYER_VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.PLAYER_VIDEO_RESIZED="resize",e.PLAYER_MANAGER_READY="ready",e.TRACKER_PLAYBACK_START="playback_start",e.TRACKER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.TRACKER_TRACKING_DATA_CREATED="tracking_data_created",e.TRACKER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.ABR_MANAGER_BITRATE_CHANGE="bitrate_change"}(re||(re={})),function(e){e.WIDEVINE="com.widevine.alpha",e.PLAYREADY="com.microsoft.playready",e.PLAYREADY_HARDWARE="com.microsoft.playready.hardware",e.FAIRPLAY="com.apple.fps.1_0",e.INVALID_SPOTIFY_KEY="com.spotify.invalid"}(ae||(ae={})),function(e){e.SUCCESS="RESULT_SUCCESS",e.INVALID="RESULT_INVALID",e.FORBIDDEN="RESULT_FORBIDDEN",e.OUT_OF_BOUNDS="RESULT_OUT_OF_BOUNDS",e.NO_LIST="RESULT_NO_LIST",e.NO_TRACK="RESULT_NO_TRACK",e.LIST_END="RESULT_LIST_END",e.INVALID_TRACK="RESULT_INVALID_TRACK",e.CANCELLED="CANCELLED",e.NO_TRACK_PLAYER="NO_TRACK_PLAYER"}(se||(se={})),function(e){e.MP3="MP3",e.MP4="MP4",e.MP4_DUAL="MP4_DUAL",e.MP4_CBCS="MP4_CBCS",e.MP4_FLAC="MP4_FLAC",e.MANIFEST_ID="MANIFEST_ID"}(le||(le={})),function(e){e.FRAGMENT_FETCHED="fragment_fetched",e.FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.VIDEO_PROFILE_CHANGED="video_profile",e.SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded"}(ce||(ce={}));class fe extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.code=e,this.message=t,this.name="PlaybackError"}static fatal(e,t){const n=new fe(e,t);return n.unrecoverable=!0,n}}class he extends Error{constructor(e=o.STORAGE_ERROR,t="File Error"){super(t),this.canPlayNext=!0,this.debug={},this.code=e,this.message=t,this.name="FileError"}}var me=n(39222);class ge extends Error{constructor(e=o.EME_ERROR_UNKNOWN,t){super(t),this.status=-1,this.licenseServer="",this.shouldRefreshEndpoint=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.message=t,this.name="EMEError"}static fatal(e=o.EME_ERROR_UNKNOWN,t){const n=new ge(e,t);return n.unrecoverable=!0,n}}class ve extends Error{constructor(e,t){super(t),this.name="CappingError",this.message=t,this.code=e}}function ye(e){const t=document.createEvent("Event");t.initEvent("encrypted",!1,!1),t.initDataType="cenc",t.initData=e.initData,t.fromPolyfill=!0,this.dispatchEvent(t)}class _e extends l.B{constructor(e){super(re.KEY_SESSION_MESSAGE,null),this.messageType="license-request",this.message=e}}class be extends l.vp{constructor(e){super(),this._nativeKeySession=null,this._lastUpdateDeferred=(0,me.$)(),this._lastGenerateDeferred=(0,me.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){const e=this._nativeKeySession;e&&(e.addEventListener(re.MS_KEY_ADDED,this._onKeyAdded),e.addEventListener(re.MS_KEY_ERROR,this._onKeyError),e.addEventListener(re.MS_KEY_MESSAGE,this._onKeyMessage))}_detach(){const e=this._nativeKeySession;e&&(e.removeEventListener(re.MS_KEY_ADDED,this._onKeyAdded),e.removeEventListener(re.MS_KEY_ERROR,this._onKeyError),e.removeEventListener(re.MS_KEY_MESSAGE,this._onKeyMessage))}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _e(e.message.buffer)),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null))}_onKeyAdded(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null),this.emit(re.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error;this._lastGenerateDeferred&&(this._lastGenerateDeferred.reject(e),this._lastGenerateDeferred=null),this._lastUpdateDeferred&&(this._lastUpdateDeferred.reject(e),this._lastUpdateDeferred=null),this.emit(re.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=e,this._lastGenerateDeferred.reject=n),this._nativeKeySession=this._nativeMediaKeys.createSession("audio/mp4",new Uint8Array(t),null),this._attach()}))}update(e){return new Promise(((t,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=t,this._lastGenerateDeferred.reject=n),this._nativeKeySession&&this._nativeKeySession.update(new Uint8Array(e))}))}close(){return new Promise((e=>{this._nativeKeySession&&this._nativeKeySession.close(),this._detach(),e(!0)}))}}class Se{constructor(e){this._lastBoundSetter=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new MSMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.msSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(re.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.msSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(re.MEDIA_LOADEDMETADATA,n),e.addEventListener(re.MS_NEEDKEY,ye),t()}))}detach(e){this._lastBoundSetter&&(e.removeEventListener(re.MS_NEEDKEY,ye),e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(){return Promise.reject(new ge(o.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){return new be(this._nativeMediaKeys)}}function Ee(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class Ae{constructor(e,t){if(this._configuration=null,this.keySystem=e,!this._checkConfig(t))throw new ge(o.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem;for(const i of e){const e={initDataTypes:i.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:i.label};let r;if(i.audioCapabilities&&i.audioCapabilities.length&&e.audioCapabilities){r=!1;for(const n of i.audioCapabilities){const i=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.audioCapabilities.push(n),r=!0)}}if(i.videoCapabilities&&i.videoCapabilities.length&&e.videoCapabilities){r=!1;for(const t of i.videoCapabilities){const i=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.videoCapabilities.push(t),r=!0)}}if(r)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new Se(this.keySystem))}))}}const Te=de.P.forTag("eme_polyfill.v0_1b");class Pe extends l.vp{constructor(e,t,n){super(),this._mediaElement=null,this._lastUpdateDeferred=null,this._lastGenerateResolver=null,this.sessionId=null,this._keySystem=e,this._mediaElement=t,this._prefix=n,this.addEventListener=this.addListener,this.removeEventListener=this.removeListener}_addPrefix(e){return this._prefix?this._prefix+e.replace(/\b[a-z]/,(function(e){return e.toUpperCase()})):e}generateComplete(e){this.emitEvent(new _e(e)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null)}updateComplete(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this.emit(re.KEY_SESSION_STATUSES_CHANGE,null)}handleErrorEvent(e){const t=new ge(o.EME_MEDIA_KEY_SESSION_V0_1B_ERROR,"MediaKeySession v0.1b Error");t.debug.errorCode=e.errorCode,t.debug.systemCode=e.systemCode,!e.sessionId&&this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):e.sessionId&&this._lastUpdateDeferred?(this._lastUpdateDeferred.reject(t),this._lastUpdateDeferred=null):this.emit(re.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return this._mediaElement?new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{this._mediaElement[this._addPrefix("generateKeyRequest")](this._keySystem,new Uint8Array(t))}catch(e){n(e),this._lastGenerateResolver=null}})):Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."))}update(e){if(!this._mediaElement)return Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."));if(this._lastUpdateDeferred){const t=this.update.bind(this,e);return this._lastUpdateDeferred.promise.then(t,t)}const t=(0,me.$)();this._lastUpdateDeferred=t;try{this._mediaElement[this._addPrefix("addKey")](this._keySystem,new Uint8Array(e),null,this.sessionId)}catch(e){t.reject(e),this._lastUpdateDeferred=null}return t.promise}close(){if(this.sessionId&&this._mediaElement)try{this._mediaElement[this._addPrefix("cancelKeyRequest")](this._keySystem,this.sessionId)}catch(e){Te.warn("Could not close keysession",e)}return Promise.resolve(!0)}}class Oe{constructor(e,t=""){this._mediaElement=null,this._waitingForSessionIds=[],this._sessionMap={},this.shouldRefreshPerTrack=!0,this._keySystem=e,this._prefix=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}attach(e){this._mediaElement=e;const t=this._prefix;e.addEventListener(t+re.V0_1B_NEEDKEY,ye);const n=e.addEventListener.bind(e);n(t+re.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+re.V0_1B_KEY_ERROR,this._onKeyError),n(t+re.V0_1B_KEY_MESSAGE,this._onKeyMessage)}detach(e){this._mediaElement=null;const t=this._prefix;e.removeEventListener(t+re.V0_1B_NEEDKEY,ye);const n=e.removeEventListener.bind(e);n(t+re.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+re.V0_1B_KEY_ERROR,this._onKeyError),n(t+re.V0_1B_KEY_MESSAGE,this._onKeyMessage)}_getSession(e){const t=this._sessionMap[e];if(t)return t;const n=this._waitingForSessionIds.shift();return n?(n.sessionId=e,this._sessionMap[e]=n,n):null}_onKeyMessage(e){const t=this._getSession(e.sessionId);t?t.generateComplete(e.message):Te.warn("Got keymessage without session.")}_onKeyAdded(e){const t=this._getSession(e.sessionId);t?t.updateComplete():Te.warn("Got keyadded without session.")}_onKeyError(e){const t=this._getSession(e.sessionId);t?t.handleErrorEvent(e):Te.warn("Got keyerror without session.")}setServerCertificate(){return Promise.reject(new ge(o.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){const e=new Pe(this._keySystem,this._mediaElement,this._prefix);return this._waitingForSessionIds.push(e),e}}function Ce(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class ke{constructor(e,t,n){if(this._configuration=null,this.keySystem=e,this._prefix=n,!this._checkConfig(t))throw new ge(o.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem,i=document.createElement("video");for(const r of e){const e={initDataTypes:r.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:r.label};let a=!1;if(r.audioCapabilities&&r.audioCapabilities.length&&e.audioCapabilities){a=!1;for(const n of r.audioCapabilities){const r=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];r&&i.canPlayType(r,o)&&(e.audioCapabilities.push(n),a=!0)}}if(r.videoCapabilities&&r.videoCapabilities.length&&e.videoCapabilities){a=!1;for(const t of r.videoCapabilities){const r=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];r&&i.canPlayType(r,o)&&(e.videoCapabilities.push(t),a=!0)}}if(a)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new Oe(this.keySystem,this._prefix))}))}}function Re(e){navigator.requestMediaKeySystemAccess=function(t,n){return new Promise((o=>{o(new ke(t,n,e))}))};const t=HTMLMediaElement.prototype;delete t.mediaKeys,t.setMediaKeys=Ce}const Le=de.P.forTag("eme_polyfill.safari");class Ie extends l.vp{constructor(e,t){super(),this._attached=!1,this._nativeKeySession=null,this._lastGenerateResolver=(0,me.$)(),this._lastUpdateResolver=(0,me.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._serverCertificate=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){if(this._attached)return;const e=this._nativeKeySession;e?(e.addEventListener(re.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.addEventListener(re.WEBKIT_KEY_ADDED,this._onKeyAdded),e.addEventListener(re.WEBKIT_KEY_ERROR,this._onKeyError)):Le.warn("Tried to attach with no WebKitMediaKeySession")}_detach(){if(!this._attached)return;const e=this._nativeKeySession;e?(e.removeEventListener(re.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.removeEventListener(re.WEBKIT_KEY_ADDED,this._onKeyAdded),e.removeEventListener(re.WEBKIT_KEY_ERROR,this._onKeyError)):Le.warn("Tried to detach with no WebKitMediaKeySession")}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _e(e.message.buffer)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null))}_onKeyAdded(){this._lastUpdateResolver&&(this._lastUpdateResolver.resolve(!0),this._lastUpdateResolver=null),this.emit(re.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error,t=new ge(o.EME_MEDIA_KEY_SESSION_SAFARI_ERROR,e&&e.message||"MediaKeySession Safari Error");e&&(t.debug.errorCode=e.code,t.debug.systemCode=e.systemCode),this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):this._lastUpdateResolver&&(this._lastUpdateResolver.reject(t),this._lastUpdateResolver=null)}_rebuildInitData(e){const t=new Uint8Array(e);if(new DataView(t.buffer).getUint32(0,!0)+4!==t.byteLength)throw new ge(o.EME_INIT_DATA_MALFORMED,"Malformed init data");const n=function(e){const t=Math.floor(e.byteLength/2),n=new Uint16Array(t),o=new DataView(e.buffer);for(let e=0;e<t;e++)n[e]=o.getUint16(2*e,!0);return String.fromCharCode.apply(null,n)}(t.slice(4)),i=n.match(/^skd:\/\/([0-9a-fA-F]+)/);if(!(null==i?void 0:i[1]))throw new ge(o.EME_INIT_DATA_MALFORMED,"Invalid content ID");const r=i[1],a=new Uint8Array(function(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer),o=e.split("");for(let e=0,t=o.length;e<t;e++){const t=o[e].charCodeAt(0);n.setUint16(2*e,t,!0)}return t.buffer}(r)),s=this._serverCertificate,l=new Uint8Array(t.byteLength+4+a.byteLength+4+s.byteLength);let c=0;l.set(t,c),c+=t.byteLength;const u=new DataView(l.buffer);return u.setUint32(c,a.byteLength,!0),c+=4,l.set(a,c),c+=a.byteLength,u.setUint32(c,s.byteLength,!0),c+=4,l.set(s,c),l}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{const e=this._rebuildInitData(t);this._nativeKeySession=this._nativeMediaKeys.createSession("video/mp4",new Uint8Array(e),null),this._attach()}catch(e){this._lastGenerateResolver=null,n(e)}}))}update(e){const t=(0,me.$)();if(this._lastUpdateResolver=t,!this._nativeKeySession)return Le.warn("Tried to update with no WebKitMediaKeySession"),t.promise;try{this._nativeKeySession.update(new Uint8Array(e))}catch(e){t.reject(e)}return t.promise}close(){return new Promise((e=>{this._detach(),e(!0)}))}}class Ne{constructor(e){this._lastBoundSetter=null,this._serverCertificate=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new WebKitMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.webkitSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(re.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.webkitSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(re.MEDIA_LOADEDMETADATA,n),e.addEventListener(re.WEBKIT_NEEDKEY,ye),t()}))}detach(e){e.removeEventListener(re.WEBKIT_NEEDKEY,ye),this._lastBoundSetter&&(e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(e){return this._serverCertificate=new Uint8Array(e),Promise.resolve(!0)}createSession(){if(!this._serverCertificate)throw new ge(o.EME_INVALID_STATE_ERROR,"The server certificate is not available");return new Ie(this._nativeMediaKeys,this._serverCertificate)}}class we{constructor(e,t){this.keySystem=e;const n=this._checkConfig(t);if(!n)throw new ge(o.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations");this._configuration=n}_checkConfig(e){const t=this.keySystem;let n=!1;for(const o of e){const e={initDataTypes:o.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"]};if(o.audioCapabilities)for(const i of o.audioCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.audioCapabilities.push(i),n=!0)}if(o.videoCapabilities)for(const i of o.videoCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.videoCapabilities.push(i),n=!0)}if(n)return e}return null}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new Ne(this.keySystem))}))}}function De(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e?e.attach(this):Promise.resolve()}const Me=de.P.forTag("eme_polyfills.tester");function xe(){return"undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.requestMediaKeySystemAccess)&&"undefined"==typeof WebKitMediaKeys&&"undefined"!=typeof MediaKeySystemAccess&&(null===MediaKeySystemAccess||void 0===MediaKeySystemAccess?void 0:MediaKeySystemAccess.prototype.getConfiguration)?(Me.log("Using native EME implementation."),"native"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.webkitGenerateKeyRequest)?(Me.log('Detected "webkit" Prefixed EME v0.1b. Polyfilling.'),Re("webkit"),"v0.1b-webkit"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.generateKeyRequest)?(Me.log("Detected Unprefixed EME v0.1b. Polyfilling."),Re(),"v0.1b"):"undefined"!=typeof MSMediaKeys?(Me.log("Detected MS IE EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new Ae(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=Ee}(),"ms-ie"):"function"==typeof WebKitMediaKeys?(Me.log("Detected Safari EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new we(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=De}(),"safari"):(Me.warn("Detected no EME APIs."),null)}const Fe={[ae.WIDEVINE]:{commonName:"widevine",licenseServer:"https://@webgate/widevine-license",withCertificate:!0,pssh_field:{audio:"pssh_widevine",video:"encryption_data"}},[ae.PLAYREADY]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[ae.PLAYREADY_HARDWARE]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[ae.FAIRPLAY]:{commonName:"fairplay",licenseServer:"https://@webgate/fairplay-license",withCertificate:!0,pssh_field:{audio:"pssh_fairplay",video:"asset_id"}},[ae.INVALID_SPOTIFY_KEY]:{commonName:"spotify-invalid",licenseServer:"https://@webgate",withCertificate:!1,pssh_field:{audio:"pssh_invalid",video:"encryption_data"}}},Ue=[{label:"video-sw-decode",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_DECODE"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:""},{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:""},{contentType:'video/webm; codecs="vp8"',robustness:""},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:""},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:""}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]}];function Be(e,t){var n,o;for(const i of e){const e={audioCapabilities:[],videoCapabilities:[]};let r,a=!1;if(null===(n=i.audioCapabilities)||void 0===n?void 0:n.length){a=!1;for(const n of i.audioCapabilities)r=n.contentType,r&&t(r)&&(e.audioCapabilities.push(n),a=!0)}if(null===(o=i.videoCapabilities)||void 0===o?void 0:o.length){a=!1;for(const n of i.videoCapabilities)r=n.contentType,r&&t(r)&&(e.videoCapabilities.push(n),a=!0)}if(a)return e}return null}const Ve=/([^;]+)(?:;\s?codecs="(.*)")?/;function Ge(e){var t;const[,n="unknown",o="unknown"]=null!==(t=e.match(Ve))&&void 0!==t?t:[];return{mimeType:n,codec:o,contentType:e}}const Je=/([^;]+)(?:;\s?codecs="(.*)")?/,je=de.P.forTag("playback.eme_manager"),He={EMPTY:"-no-robustness",SW_CRYPTO:"-sw-crypto",SW_DECODE:"-sw-decode",HW_CRYPTO:"-hw-crypto",HW_DECODE:"-hw-decode",HW_ALL:"-hw-all"};function Ke(e,t){var n;const o=[],i=new RegExp(`codecs="(${t.join("|")})"`);for(const t of e)i.test(null!==(n=t.contentType)&&void 0!==n?n:"")||o.push(t);return o.length?o:null}function Ye(e,{audio:t,video:n}){var o,i,r,a;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length))return e;let{audioCapabilities:s,videoCapabilities:l}=e;return(null==t?void 0:t.length)&&(null===(o=e.audioCapabilities)||void 0===o?void 0:o.length)&&(s=null!==(i=Ke(e.audioCapabilities,t))&&void 0!==i?i:void 0,!s)||(null==n?void 0:n.length)&&(null===(r=e.videoCapabilities)||void 0===r?void 0:r.length)&&(l=null!==(a=Ke(e.videoCapabilities,n))&&void 0!==a?a:void 0,!l)?null:Object.assign(Object.assign({},e),{audioCapabilities:s,videoCapabilities:l})}class We extends l.vp{constructor(e){var t;super(),this._unauthServerCertificateBase="",this._disallowCodecs={},this._keySystemDeferred=(0,me.$)(),this._configuration=(0,me.$)(),this._keySystemSettings=null,this._keySessions=[],this._configs=[],this._pendingCertificateRequest=null,this._certificate=null,this._transport=e.transport,this._emeImpl=e.emeImpl,this._noServerCertificate=!!e.noServerCertificate,this._precacheServerCertificate=null===(t=e.precacheServerCertificate)||void 0===t||t,this._unauthServerCertificateBase=e.unauthServerCertificateBase||"https://spclient.wg.spotify.com",this._configFilter=function(e){const t=["--ensure-no-match--"];if(null==e?void 0:e.length){let n=e.length;for(;n--;){const o=e[n];o&&He.hasOwnProperty(o)&&t.push(He[o])}}return new RegExp(`(${t.join("|")})$`)}(e.disallowRobustnessValues||[]),this._disallowCodecs=e.disallowCodecs,this._preferredKeySystems=e.preferredKeySystems||[ae.WIDEVINE,ae.PLAYREADY,ae.PLAYREADY_HARDWARE,ae.FAIRPLAY]}static create(e){return new Promise((t=>{const n=xe();if(!n)throw ge.fatal(o.EME_API_NOT_SUPPORTED,"Platform does not support navigator.requestMediaKeySystemAccess");t(new We(Object.assign(Object.assign({},e),{emeImpl:n})).init())}))}_prepareConfiguration(e){const t=e.getConfiguration();je.info("KeySystem configured as ",t.label),t.audioCapabilities&&t.audioCapabilities.length||this._appendProbableMediaCapabilities(e.keySystem,t);const n={keySystem:e.keySystem,keySystemImpl:this._emeImpl,audioFormats:this._parseCapabilities(t.audioCapabilities),videoFormats:this._parseCapabilities(t.videoCapabilities)};return this._keySystemSettings=Fe[e.keySystem],this._configuration.resolve(n),n}_parseCapabilities(e){var t;if(!e)return[];const n=[];for(const o of e){if(!(null==o?void 0:o.contentType))continue;const[,e,i]=null!==(t=o.contentType.match(Je))&&void 0!==t?t:[];e&&n.push({contentType:o.contentType,mimeType:e,codec:null!=i?i:""})}return n}_appendProbableMediaCapabilities(e,t){const n=Be(this._configs,(t=>(-1===t.indexOf("webm")||e!==ae.PLAYREADY&&e!==ae.PLAYREADY_HARDWARE)&&!!MediaSource.isTypeSupported(t)));n&&(t.audioCapabilities=n.audioCapabilities,t.videoCapabilities=n.videoCapabilities)}_trySetServerCertificate(e,t){const n=this._certificate;return(n&&n.expiry>Date.now()?Promise.resolve(n):this._requestServerCertificate(e)).then((e=>t.setServerCertificate(e.contents))).then((()=>this)).catch((e=>(je.warn("Error from setting server certificate",e),this)))}_cacheServerCertificate(e){let t="";switch(e){case ae.FAIRPLAY:t="fairplay";break;case ae.WIDEVINE:t="widevine";break;default:return Promise.resolve(this)}return this._requestServerCertificate(`${this._unauthServerCertificateBase}/${t}-license`,!1).then((()=>this),(e=>(je.warn("Cannot precache server certificate",e),this)))}_requestServerCertificate(e,t=!0){if(this._pendingCertificateRequest)return this._pendingCertificateRequest;return this._transport.request(`${e}/v1/application-certificate`,{authorize:t,responseType:"arraybuffer",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()===t.SERVER_ERROR}}).then((e=>{var t;if(!e.body)throw new TypeError("Response body is invalid");this._pendingCertificateRequest=null;let n=3600;const o=null===(t=e.headers)||void 0===t?void 0:t.get("cache-control");if(o){const e=o.match(/(?:^|,|\s)max-age=(\d+)(?:,|$)/);e&&e[1]&&(n=1e3*parseInt(e[1],10))}return this._certificate={expiry:Date.now()+(n-600),contents:e.body},this._certificate}))}_extractPlayReadyChallenge(e,t){var n;let i=null;const r=new Uint16Array(e),a=String.fromCharCode.apply(null,r);if(-1===a.indexOf("PlayReadyKeyMessage"))return je.info("Using unextracted PlayReady message."),e;const s=(new DOMParser).parseFromString(a,"application/xml"),l=s.getElementsByTagName("Challenge")[0],c=null===(n=null==l?void 0:l.childNodes[0])||void 0===n?void 0:n.nodeValue;if(c)try{i=atob(c);const e=s.getElementsByTagName("name"),t=s.getElementsByTagName("value");if(e.length!==t.length)throw new ge(o.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")}catch(e){this.emit(re.EME_LICENSE_REQUEST_ERROR,{signal:t,error:e}),i=null}else this.emit(re.EME_LICENSE_REQUEST_ERROR,{signal:t,error:new ge(o.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")});return i}_onMessage(e,t){e.timeMap.generate.end=Date.now();let n="message"in t?t.message:null;const o="messageType"in t?t.messageType:void 0;if(je.info("Got EME message event with type",o),n&&e.keySystem===ae.PLAYREADY&&(n=this._extractPlayReadyChallenge(n,e.signal)),!n)return void je.info("Ignoring message event: no valid request payload");if(!e.licenseServer)return void je.info("Ignoring message event: no licenseServer url");e.timeMap.request.start=Date.now();let i=e.licenseServer;e.keySystem===ae.FAIRPLAY&&(i=`${i}${-1!==i.indexOf("?")?"&":"?"}assetId=hex`),this._transport.request(i,{method:"POST",payload:n,responseType:"arraybuffer",retry:{condition:(e,t)=>400!==e.status&&402!==e.status&&403!==e.status&&(!e.body||e.getStatusFamily()!==t.SUCCESS)}}).then(this._handleLicenseResponse.bind(this,e))}_handleLicenseResponse(e,t){const n=t=>{e.licenseServer&&(t.licenseServer=e.licenseServer),this.emit(re.EME_LICENSE_REQUEST_ERROR,{signal:e.signal,error:t})};let i,r;if(e.timeMap.request.end=Date.now(),200!==t.status){try{if(t.body){const e=new Uint8Array(t.body),n=String.fromCharCode.apply(String,e);r=JSON.parse(n).errorMsg}}catch(e){}402===t.status?this.emit(re.EME_LICENSE_REQUEST_CAPPED,{signal:e.signal,error:new ve(o.CAPPING_USER_IS_CAPPED,"User is capped.")}):400===t.status&&"widevine error"===r?(i=ge.fatal(o.EME_LICENSE_REQUEST_WIDEVINE_ERROR,"Widevine license server failed to parse request."),i.status=t.status,i.shouldRefreshEndpoint=!0,n(i)):(i=new ge(o.EME_LICENSE_REQUEST_FAILED_WITH_STATUS,`License request failed (${r||"unknown"})`),i.status=t.status,i.shouldRefreshEndpoint=400===t.status||403===t.status,n(i))}else{if(!t.body)return i=new ge(o.EME_LICENSE_REQUEST_EMPTY_RESPONSE,"Empty license response body"),i.status=t.status,void n(i);try{e.timeMap.update.start=Date.now(),e.keySession.update(t.body).catch((e=>{n(new ge(o.EME_LICENSE_UPDATE_FAILED,e.message||"License update failed."))})),je.info("KeySession updated.")}catch(e){const{message:t}=e;n(new ge(o.EME_LICENSE_UPDATE_FAILED,t||"License update failed."))}}}_selectKeySystem(e){const t=this._preferredKeySystems;for(let n=0,o=t.length;n<o;n++){const o=t[n];if(o&&o in e)return e[o]}return null}_testMediaKeys(e){return new Promise((t=>{t(e.createMediaKeys())})).then((t=>{if(!t)return Promise.reject(ge.fatal(o.EME_MEDIA_KEYS_NOT_SUPPORTED,"Cannot create MediaKeys from KeySystemAccess"));e.keySystem===ae.FAIRPLAY&&t.setServerCertificate(new ArrayBuffer(0));try{if(!t.createSession())throw new Error("")}catch(e){const{message:t}=e;return Promise.reject(ge.fatal(o.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED,t||"Cannot create MediaKeySession from KeySystemAccess"))}return Promise.resolve(e)}),(e=>(je.error(e.name),Promise.reject(ge.fatal(o.EME_MEDIA_KEYS_NOT_SUPPORTED,e.message||"Unknown error")))))}_saveSession(e){this._keySessions.push(e)}destroySessions(){const e=[],t=this._keySessions;for(const n of t)try{const t=n.keySession;if(!t)continue;n.onMessageListener&&t.removeEventListener(re.KEY_SESSION_MESSAGE,n.onMessageListener),n.onKeyStatusChangeListener&&t.removeEventListener(re.KEY_SESSION_STATUSES_CHANGE,n.onKeyStatusChangeListener);const o=Promise.resolve(t.close()).catch((e=>{je.warn("Failed to close KeySession",e)}));e.push(o),n.keySession=null,n.onMessageListener=null,n.onKeyStatusChangeListener=null,je.info("Closed KeySession")}catch(e){je.warn("Failed to close KeySession",e)}return this._keySessions=[],Promise.all(e)}init(){const e=this._keySystemDeferred,t={},n=[],i=[];for(let e of Ue)if(!e.label||!this._configFilter.test(e.label)){if(this._disallowCodecs){const t=Ye(e,this._disallowCodecs);if(!t)continue;e=t}i.push(e)}this._configs=i;for(const e in ae){if(!Object.prototype.hasOwnProperty.call(ae,e))continue;const o=e;n.push(navigator.requestMediaKeySystemAccess(ae[o],i).then((e=>{t[e.keySystem]=e})).catch((()=>{})))}return Promise.all(n).then(this._selectKeySystem.bind(this,t)).then((e=>e?this._testMediaKeys(e):Promise.reject(new ge(o.EME_NO_SUPPORTED_KEYSYSTEM,"No supported keysystem was found.")))).then((t=>(this._prepareConfiguration(t),e.resolve(t),this._precacheServerCertificate?this._cacheServerCertificate(t.keySystem):this))).catch((t=>{const n=t.code||o.EME_NO_SUPPORTED_KEYSYSTEM,i=t.message||"No supported keysystem";return e.reject(ge.fatal(n,i)),e.promise.then((()=>this))}))}createMediaKeys(e){return this._keySystemDeferred.promise.then((e=>e.createMediaKeys())).then((t=>Promise.all([e.setMediaKeys(t),t]))).then((([t,n])=>{if(!e.mediaKeys)throw new ge(o.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED,"Failed to set MediaKeys on HTMLMediaElement");return this._configuration.promise.then((()=>{const e=this._keySystemSettings;return e&&!this._noServerCertificate&&e.withCertificate?this._trySetServerCertificate(e.licenseServer,n):this}))}))}removeMediaKeys(e){return Promise.resolve(e.setMediaKeys(null)).then((()=>this))}getKeySystemInfo(){return this._configuration.promise}getKeySystemImpl(){return this._emeImpl}createSessionWithParams(e){return new Promise(((t,n)=>{je.info("Creating KeySession",e.keySystem);const i=e.mediaKeys.createSession(),r={generate:{start:0,end:0},request:{start:0,end:0},update:{start:0,end:0}},a=this._keySystemSettings&&this._keySystemSettings.licenseServer||void 0,s=this._onMessage.bind(this,{keySystem:e.keySystem,keySession:i,licenseServer:e.licenseServer||a,signal:e.signal,timeMap:r});i.addEventListener(re.KEY_SESSION_MESSAGE,s);const l=()=>{je.info("KeyStatus change"),r.update.end=Date.now(),t({elapsed:{generate:Math.max(r.generate.end-r.generate.start,0),request:Math.max(r.request.end-r.request.start,0),update:Math.max(r.update.end-r.update.start,0)}})};return i.addEventListener(re.KEY_SESSION_STATUSES_CHANGE,l),this._saveSession({keySession:i,onMessageListener:s,onKeyStatusChangeListener:l}),je.info("Generating KeySession request",e.keySystem),r.generate.start=Date.now(),Promise.resolve(i.generateRequest(e.initDataType,e.initData.buffer)).catch((e=>{if(!e)return;let t;switch(e.name){case"NotSupportedError":t=o.EME_NOT_SUPPORTED_ERROR;break;case"InvalidStateError":t=o.EME_INVALID_STATE_ERROR;break;default:t=o.EME_UNKNOWN_ERROR}n(new ge(t,e.message||"Unknown error message."))}))}))}}class ze extends Error{constructor(e,t,n,o={}){super(t),this.code=e,this.message=t,this.status=n,this.debug=o,this.name="FragmentError"}}var qe=n(68035);class Xe{constructor(e){var t;if(this._fallbackURLs=[],this._fragments=[],this._loaded=!1,this._mediaType="audio",this._noAuth=!1,this._resolvedURLs=[],this._segmentLength=0,this._duration=0,!e.fileId&&!e.resolvedURL)throw new TypeError("Missing: provide either fileId or resolvedURL");this._abrManager=e.abrManager,this._mediator=e.mediator,this._disableCache=e.disableCache,this._fileId=e.fileId,this._format=e.format,this._isAd=e.isAd||!1,this._keySystem=e.keySystem,this._keySystemSettings=Fe[this._keySystem],this._licenseEndpoint=e.licenseEndpoint,this._logData=e.logData||{displayTrack:"",playbackId:""},this._resolver=e.resolver,this._resolvedURL=e.resolvedURL,this._noAuth=null!==(t=e.noAuth)&&void 0!==t&&t,this._transport=e.transport,this._uri=e.uri,this._audioGainDb=e.audioGain}_parsePSSHBox(e){const t=qe.D.decode(e),n=new Uint8Array(t.length);for(let e=0,o=t.length;e<o;e++)n[e]=t.charCodeAt(e);return n}_parseAssetID(e){const t=qe.D.decode(e),n=new Array(t.length);for(let e=0,o=t.length;e<o;e++){const o=t.charCodeAt(e).toString(16);n[e]=1===o.length?`0${o}`:o}return n.join("")}getCalculatedDuration(){return this._duration}getFileId(){return this._fileId}getFormat(){return this._format||""}getAudioGain(){return this._audioGainDb}getFragmentLength(){return this._segmentLength}canLowerBitrate(){return!1}getInitFragment(){return this._initFragment}getInitParams(){const e={keySystem:this._keySystem,initDataType:this._protection,initData:this._psshBox,licenseServer:null};return Promise.resolve(e)}getKeySystem(){return this._keySystem}getLicenseEndpoint(){return this._licenseEndpoint}getLogData(){return this._logData||{}}getMediaType(){return this._mediaType}getResolvedURL(){return this._resolvedURL}getResolvedURLs(){return this._resolvedURLs}getHLSURL(){throw new he(o.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.")}releaseHLSURL(){}getURI(){return this._uri}isAd(){return this._isAd}isProtected(){return!!this._protection&&!!this._psshBox}setLogData(e){return this._logData=e,this}toLogJSON(){return{uri:this._uri,fileId:this._fileId,format:this._format||"",resolved_url:this._resolvedURL}}}const Ze="application/vnd.apple.mpegurl";function Qe(e){var t;const n=function(e){return e.map((e=>{if(e.byteEnd&&void 0!==e.byteStart){let t=""+(1+e.byteEnd-e.byteStart);return t+=`@${e.byteStart}`,`#EXTINF:${e.duration},\n#EXT-X-BYTERANGE:${t}\n${e.url}`}return`#EXTINF:${e.duration},\n${e.url}`})).join("\n")}(e.segments),o=e.assetID?`#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://${e.assetID}",KEYFORMATVERSIONS="1",KEYFORMAT="com.apple.streamingkeydelivery"`:"";let i=e.map?`#EXT-X-MAP:URI="${e.map.url}"`:"";return(null===(t=e.map)||void 0===t?void 0:t.byteEnd)&&void 0!==e.map.byteStart&&(i+=`,BYTERANGE="${1+e.map.byteEnd}@${e.map.byteStart}"`),`#EXTM3U\n#EXT-X-VERSION:6\n#EXT-X-TARGETDURATION:${Math.floor(e.targetDuration)}\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-PLAYLIST-TYPE:VOD\n${i?`${o}\n${i}`:o}\n${n}\n#EXT-X-ENDLIST`}function $e(e){return`data:application/vnd.apple.mpegurl;base64,${btoa(e)}`}function et(e){const t=new Blob([e],{type:Ze});return URL.createObjectURL(t)}function tt(e){return et(Qe(e))}function nt(e){return $e(Qe(e))}const ot=/avc1\.(([0-9a-f]{2})[0-9a-f]{2}([0-9a-f]{2}))/,it="4d";function rt(e,t){const n=e.toLowerCase().match(ot),o=t.toLowerCase().match(ot);if(!n||!o)return!1;const[,i,r,a]=n,[,s,l,c]=o;return i===s||r===it&&l===it&&parseInt(a,16)>=parseInt(c,16)}function at(e,t){return e.sort(((e,n)=>"video_bitrate"in e&&"video_bitrate"in n?t?e.video_resolution===n.video_resolution?e.video_bitrate-n.video_bitrate:e.video_resolution-n.video_resolution:e.video_bitrate-n.video_bitrate:e.max_bitrate-n.max_bitrate))}function st(e,t){return void 0!==t&&Array.isArray(e.encryption_indices)&&-1===e.encryption_indices.indexOf(t)}function lt(e,t){if(!t)return!1;return t(Object.assign({mimeType:e.mime_type},function(e){return"video_codec"in e}(e)?{type:"video",codec:e.video_codec,bitrate:e.video_bitrate,height:e.video_height,width:e.video_width,resolution:e.video_resolution}:{type:"audio",codec:e.audio_codec,bitrate:e.audio_bitrate}))}function ct(e){return"audio_codec"in e?e.audio_codec:e.video_codec}function ut(e){const{codec:t,formats:n,profiles:o,encryptionIndex:i,disallowProfile:r,preferredKeySystem:a,preferredVideoResolution:s,allowMixedAVC1Codecs:l}=e;for(const e of n){const n=[];let c="spotify/unknown-mimetype",u="unknown-codec";for(const s of o){const o=ct(s);!(t in s)||st(s,i)||a===ae.FAIRPLAY&&"ts"!==s.file_type||lt(s,r)||(a!==ae.FAIRPLAY||"ts"!==s.file_type?"unknown-codec"!==u||s.mime_type!==e.mimeType||o!==e.codec&&!rt(e.codec,o)?s.mime_type===c&&(o===u||l&&rt(u,o))&&(n.push(s),s.__effective_codec=u):(c=e.mimeType,u=l?e.codec:o,n.push(s),s.__effective_codec=e.codec):n.push(s))}if(n.length)return at(n,s)}return[]}const dt=de.P.forTag("playback.video_content");function pt(e){if(!e)return"";const t=e.__effective_codec||("audio_codec"in e?e.audio_codec:e.video_codec);return`${e.mime_type};codecs="${t}"`}const ft={method:"GET",responseType:"arraybuffer",timing:!0,retry:{condition:(e,t)=>{if(0===e.status)return!0;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR}}};class ht extends Xe{constructor(e){super(e),this._assetId="",this._endTime=0,this._videoFormats=[],this._audioFormats=[],this._subtitleLanguages=[],this._videoProfile=null,this._videoProfiles=[],this._audioProfile=null,this._audioProfiles=[],this._baseURL="",this._initTemplate="",this._segmentTemplate="",this._subtitleTemplate="",this._initSegments={},this._hlsURLs=[],this._allowMixedAVC1Codecs=!1,this._initTemplate="",this._isAd=e.isAd||!1,this._mediaType="video",this._resolver=e.resolver,this._videoFormats=e.videoFormats,this._audioFormats=e.audioFormats,this._disallowProfile=e.disallowProfile,this._videoResolution=e.videoResolution,this._allowMixedAVC1Codecs=!!e.allowMixedAVC1Codecs,this._keySystem===ae.FAIRPLAY&&this._audioFormats.unshift({mimeType:"audio/mp2t",codec:"mp4a.40.2"}),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new ht(e)}_isQualityMatched(e,t,n){var o,i,r,a;if(this._videoResolution){const t=null!==(o=this._videoResolution.max)&&void 0!==o?o:9007199254740991,a=null!==(i=this._videoResolution.min)&&void 0!==i?i:0;if(n){const n=null!==(r=this._videoResolution.start)&&void 0!==r?r:t;return e.video_resolution<=n}return e.video_resolution>=a&&e.video_resolution<=t}const s=null!==(a=null==t?void 0:t.audio_bitrate)&&void 0!==a?a:0,l=this._abrManager.getBandwidthEstimate();return e.video_bitrate+s<2*l-1e5}_updateVariants(e){var t;const n=this._audioProfiles[0];this._audioProfile=null!=n?n:null;const o=this._videoProfiles,i=this._videoProfile;let r=null,a=o.length;if(a){for(;a--;){const t=o[a];if(t&&this._isQualityMatched(t,n,!!e)){r=t;break}}r||(r=o[0]),this._videoProfile=r,(null==i?void 0:i.id)!==r.id&&(dt.log(`Video profile changed. ID ${r.id} (${r.video_codec}), Bitrate ${r.video_bitrate}, ${r.video_width}x${r.video_height}`),null===(t=this._mediator)||void 0===t||t.emit(ce.VIDEO_PROFILE_CHANGED,{profile:{type:"video",mimeType:r.mime_type,codec:r.video_codec,bitrate:r.video_bitrate,height:r.video_height,width:r.video_width,resolution:r.video_resolution}}))}}_constructFragmentURL(e,t,n){if(!t&&!n)throw new Error("Both audioProfile and videoProfile is null");return e.init?this._resolver.getInitSegmentURLs(this._baseURL,this._initTemplate,t,n):this._resolver.getSegmentURLs(this._baseURL,this._segmentTemplate,e.timeStart,t,n)}_fetchBufferData(e,t,n,o){return this._transport.request(e,Object.assign(Object.assign({},ft),{metadata:{timeStart:Date.now(),fragment:t,profile:n,loggingURL:o}})).then(this._parseFragmentResponse)}_fetchInitSegmentBuffers(e,t){const n=this._initFragment;if(!n)return Promise.reject(new he(o.FILE_NOT_RESOLVED,"Cannot fetch Init Segment buffers: File not resolved."));let i;try{i=this._constructFragmentURL(n,e,t)}catch(e){return Promise.reject(e)}const r=this._initSegments;let a=Promise.resolve(null);if(e){const t=r[e.id];(null==t?void 0:t.buffer.byteLength)?a=Promise.resolve(t):(null==i?void 0:i.audio)&&(a=this._fetchBufferData(i.audio,n,e,i.audioLogging).then((t=>(r[e.id]=t,t))))}let s=Promise.resolve(null);if(t){const e=r[t.id];(null==e?void 0:e.buffer.byteLength)?s=Promise.resolve(e):(null==i?void 0:i.video)&&(s=this._fetchBufferData(i.video,n,t,i.videoLogging).then((e=>(r[t.id]=e,e))))}return Promise.all([a,s]).then((([e,t])=>({audio:e,video:t})))}_fetchBufferForFragment(e,t,n){let o;try{o=this._constructFragmentURL(e,t,n)}catch(e){return Promise.reject(e)}return Promise.all([this._fetchInitSegmentBuffers(t,n),!e.init&&o.audio?this._fetchBufferData(o.audio,e,t,o.audioLogging):null,!e.init&&o.video?this._fetchBufferData(o.video,e,n,o.videoLogging):null]).then((([t,n,o])=>{var i,r;let a;return e.init?a={audio:null!==(i=t.audio)&&void 0!==i?i:void 0,video:null!==(r=t.video)&&void 0!==r?r:void 0}:(a={audio:null!=n?n:void 0,video:null!=o?o:void 0},e.cacheBufferSet&&(e.bufferSet=a),a.audio&&(null==t?void 0:t.audio)&&(a.audio.initBuffer=t.audio.buffer),a.video&&(null==t?void 0:t.video)&&(a.video.initBuffer=t.video.buffer)),a})).catch((e=>Promise.reject(e)))}_parseFragmentResponse(e){var t,n,i,r;const{fragment:a,profile:s,timeStart:l,loggingURL:c}=e.metadata,u=pt(s),d=function(e){return e?"audio_bitrate"in e?e.audio_bitrate:e.video_bitrate:0}(s),p="video_resolution"in s?s.video_resolution:void 0,f=`${a.timeStart}-${a.timeEnd}`,h="video_resolution"in s?"video":"audio";switch(e.status){case 0:{const e=new ze(o.FRAGMENT_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:f,mimetype:u,resolution:p,bitrate:d});return null===(t=this._mediator)||void 0===t||t.emit(ce.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:c,start_time:l,init:a.init,error:e}),Promise.reject(e)}case 200:case 206:{const t=e.body;if(!(null==t?void 0:t.byteLength)){const t=new ze(o.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:f,mimetype:u,resolution:p,bitrate:d});return null===(n=this._mediator)||void 0===n||n.emit(ce.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:c,start_time:l,init:a.init,error:t}),Promise.reject(t)}const r=t.byteLength;this._abrManager.sample(r,Date.now()-l),this._updateVariants();const m=8e3*r/e.timing.completed;return null===(i=this._mediator)||void 0===i||i.emit(ce.FRAGMENT_FETCHED,{media_type:"video",segment_type:h,url:c,init:a.init,byte_length:r,start_time:l,end_time:Date.now(),resolution:p,bandwidth:m}),Promise.resolve({profileId:`${this._fileId}-${s.id}`,bufferURL:c,byteStart:0,byteEnd:r-1,buffer:t,mimetype:u,resolution:p,bitrate:d,bandwidth:m})}}const m=new ze(o.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:f,mimetype:u,resolution:p,bitrate:d});return null===(r=this._mediator)||void 0===r||r.emit(ce.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:c,init:a.init,start_time:l,error:m}),Promise.reject(m)}_getHLSURLForProfile(e){const t=this._duration,n=this._segmentLength,o=this._segmentTemplate,i=[];for(let r=0;r<t;r+=n){const a=r+n>t?t-r:n,s=o.replace("{{profile_id}}",e.id.toString(10)).replace("{{segment_timestamp}}",r.toString(10)).replace("{{file_type}}",e.file_type);i.push({duration:a,url:`${this._baseURL}${s}`})}const r=("undefined"==typeof MediaSource?tt:nt)({assetID:this._assetId,targetDuration:n,segments:i});return this._hlsURLs.push(r),r}_calculateFragments(e){this._duration=e.end_time_millis/1e3;const t=this._segmentLength;this._initFragment={init:!0,cacheBufferSet:!1,timeStart:-1,timeEnd:-1,byteRanges:{}};for(let e=0;e<this._duration;e+=t)this._fragments.push({cacheBufferSet:!e&&!this._disableCache,timeStart:e,timeEnd:e+t,byteRanges:{}})}setVideoResolution(e){this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),this._updateVariants()}getCurrentBitrate(){var e,t;return null!==(t=null===(e=this._videoProfile)||void 0===e?void 0:e.video_bitrate)&&void 0!==t?t:0}getBufferForFragment(e){var t,n;if(!e)return Promise.reject(new TypeError("No fragment provided"));const o=this._audioProfile,i=this._videoProfile,r=null===(n=null===(t=e.bufferSet)||void 0===t?void 0:t.video)||void 0===n?void 0:n.resolution;return e.bufferSet&&(!i||r&&r>=i.video_resolution)?Promise.resolve(e.bufferSet):this._fetchBufferForFragment(e,null!=o?o:void 0,null!=i?i:void 0)}clearCachedBuffers(){this._initFragment&&(this._initSegments={}),this._fragments.forEach((e=>{e.bufferSet=null}))}getDuration(){return this._endTime}getFragmentAfterTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[1];for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[0];for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getSubtitleLanguages(){return this._subtitleLanguages}getSubtitles(){return this._subtitleLanguages.map((e=>({lang:e,url:this._subtitleTemplate.replace("{{language_code}}",e)})))}load(e={resolveLatency:0,manifestLatency:0}){if(this._loaded)return e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this);if(!this._fileId)throw new TypeError("Missing: provide either fileId or resolvedURL");const t=Date.now();return this._resolver.getManifest(this._fileId,this._noAuth).then((n=>{var i,r,a;let s;e.resolveLatency=0,e.manifestLatency=Date.now()-t;const l=n.contents[0];if(!l)return s=new he(o.FILE_MALFORMED_SEEKTABLE,"Malformed seektable: no contents."),s.track=this.toLogJSON(),Promise.reject(s);this._resolvedURLs=n.base_urls.slice();const[c,...u]=n.base_urls;let d;if(c&&(this._baseURL=c,this._fallbackURLs=u),this._resolvedURL=this._baseURL,this._initTemplate=n.initialization_template,this._segmentTemplate=n.segment_template,this._segmentLength=l.segment_length,null===(i=l.encryption_infos)||void 0===i?void 0:i.length){const e=l.encryption_infos,t=this._keySystemSettings.commonName;let n;for(let o=0,i=e.length;o<i;o++){const i=e[o];if(i&&i.key_system===t){d=o,n=i[this._keySystemSettings.pssh_field.video];break}}if(!n)return s=new he(o.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),s.track=this.toLogJSON(),Promise.reject(s);switch(this._keySystemSettings.commonName){case"widevine":case"playready":this._protection="cenc";try{this._psshBox=this._parsePSSHBox(n)}catch(e){return s=new he(o.FILE_MALFORMED_PSSH,"Invalid PSSH value."),s.track=this.toLogJSON(),Promise.reject(s)}break;case"fairplay":this._protection="hls",this._psshBox=new Uint8Array([]);try{this._assetId=this._parseAssetID(n)}catch(e){return s=new he(o.FILE_MALFORMED_PSSH,"Invalid PSSH value."),s.track=this.toLogJSON(),Promise.reject(s)}break;default:return s=new he(o.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),s.track=this.toLogJSON(),Promise.reject(s)}}return this._endTime=n.end_time_millis,this._videoProfiles=ut({codec:"video_codec",formats:this._videoFormats,profiles:l.profiles,encryptionIndex:d,disallowProfile:this._disallowProfile,preferredKeySystem:this._keySystem,preferredVideoResolution:this._videoResolution,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs}),this._audioProfiles=ut({codec:"audio_codec",formats:this._audioFormats,profiles:l.profiles,encryptionIndex:d,preferredKeySystem:this._keySystem}),this._updateVariants(!0),this._calculateFragments(n),this._subtitleLanguages=n.subtitle_language_codes||[],null===(r=this._mediator)||void 0===r||r.emit(ce.SUBTITLE_LANGUAGES_LOADED,{languages:this._subtitleLanguages}),(null===(a=n.subtitle_base_urls)||void 0===a?void 0:a.length)&&n.subtitle_template?this._subtitleTemplate=`${n.subtitle_base_urls[0]}${n.subtitle_template}`:(dt.info("No subtitles available"),this._subtitleTemplate=""),this}))}adaptToBandwidth(){return this._updateVariants(),Promise.resolve(!0)}getPlayableCodecs(){var e,t;return[pt(null!==(e=this._videoProfile)&&void 0!==e?e:void 0),pt(null!==(t=this._audioProfile)&&void 0!==t?t:void 0)].filter((e=>!!e))}getAudioProfile(){return this._audioProfile}getVideoProfile(){return this._videoProfile}getVideoProfiles(){return this._videoProfiles}getHLSURL(){if(!this._resolvedURL)throw new he(o.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const e=[],t=this._audioProfiles[0];t&&e.push(`#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="eng",NAME="English",AUTOSELECT=YES,URI="${this._getHLSURLForProfile(t)}"`);for(const n of this._videoProfiles)e.push(`#EXT-X-STREAM-INF:BANDWIDTH=${n.max_bitrate},RESOLUTION=${n.video_width}x${n.video_height},CODECS="${(null==t?void 0:t.audio_codec)?`mp4a.40.2, ${n.video_codec}`:n.video_codec}"${(null==t?void 0:t.audio_codec)?',AUDIO="audio"':""}\n${this._getHLSURLForProfile(n)}`);const n=`#EXTM3U\n${e.join("\n")}`,i=("undefined"==typeof MediaSource?et:$e)(n);return this._hlsURLs.push(i),i}releaseHLSURL(){for(const e of this._hlsURLs)URL.revokeObjectURL(e);this._hlsURLs=[]}canLowerBitrate(){var e;const t=this._videoProfiles[0];return(null===(e=this._videoProfile)||void 0===e?void 0:e.id)!==(null==t?void 0:t.id)}}var mt;!function(e){e[e.MP3_256=3]="MP3_256",e[e.MP3_320=4]="MP3_320",e[e.MP3_160=5]="MP3_160",e[e.MP3_96=6]="MP3_96",e[e.MP4_128=10]="MP4_128",e[e.MP4_256=11]="MP4_256",e[e.MP4_128_DUAL=12]="MP4_128_DUAL",e[e.MP4_256_DUAL=13]="MP4_256_DUAL",e[e.MP4_128_CBCS=14]="MP4_128_CBCS",e[e.MP4_256_CBCS=15]="MP4_256_CBCS",e[e.MP4_FLAC=17]="MP4_FLAC"}(mt||(mt={}));const gt={[mt.MP3_256]:"audio/mp3",[mt.MP3_320]:"audio/mp3",[mt.MP3_160]:"audio/mp3",[mt.MP3_96]:"audio/mp3",[mt.MP4_128]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_128_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_128_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_FLAC]:'audio/mp4; codecs="flac"'};class vt extends Xe{constructor(e){if(super(e),this._lastResolveTimestamp=0,this._profileId=`${Date.now()}`,this._initBufferPromise=null,this._lastFetchedBuffer=null,this._hlsURL=null,this._bypassResolve=!!this._resolvedURL,this._emitWarning=e.emitWarning||function(){},this._mediaType="audio",this._noManifest=!!e.noManifest,this._preloadedManifest=e.preloadedManifest,this._resolver=e.resolver,this._segmentLength=0,this._fileFormat=e.fileFormat,this._fileFormat)this._audioCodec=gt[this._fileFormat];else switch(this._format){case le.MP3:this._audioCodec=gt[mt.MP3_160];break;case le.MP4:case le.MP4_DUAL:case le.MP4_CBCS:this._audioCodec=gt[mt.MP4_128];break;default:throw new TypeError(`Unknown audio format ${this._format}`)}this._fileId&&(this._profileId=this._fileId),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new vt(e)}_parseFragmentResponse(e){const{requestURL:t,fragment:n,byteRangeHeader:i,expectedLength:r}=e.metadata,a=`${n.timeStart}-${n.timeEnd}`;switch(e.status){case 0:{if(e.offline)return Promise.reject(new ze(o.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:a,byte_range:i}));const r=new ze(o.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0);let s=!1;return this._resolvedURL!==t?s=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(s=!0,this._resolvedURL=this._fallbackURLs.shift()),r.debug.has_fallback=s,s?(this._emitWarning(r,this.toLogJSON()),this.getBufferForFragment(n)):Promise.reject(r)}case 200:case 206:{const s=e.body;if(!s)return Promise.reject(new ze(o.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:a,byte_range:i}));if(s.byteLength!==r)return Promise.reject(new ze(o.FRAGMENT_REQUEST_UNEXPECTED_LENGTH,"Received buffer of unexpected length.",e.status,{time_range:a,byte_range:i,received_length:s.byteLength,expected_length:r}));const l={audio:{profileId:this._profileId,bufferURL:t,byteStart:n.byteRanges.audio.start,byteEnd:n.byteRanges.audio.end,buffer:s,mimetype:this._audioCodec,bandwidth:8e3*s.byteLength/e.timing.completed}};if(n.cacheBufferSet&&s&&s.byteLength){n.bufferSet=l;const e=n.sliceInto;if(null==e?void 0:e.length)for(const t of e){const e=t.fragment;(null==e?void 0:e.cacheBufferSet)&&(e.bufferSet={audio:Object.assign(Object.assign({},l.audio),{buffer:s.slice(t.start,t.end),byteStart:e.byteRanges.audio.start,byteEnd:e.byteRanges.audio.end})})}}return this._abrManager.sample(s.byteLength,e.timing.completed),Promise.resolve(l)}case 403:return this.resolve().then((()=>this.getBufferForFragment(n)));default:{let r=!1;return this._resolvedURL!==t?r=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(r=!0,this._resolvedURL=this._fallbackURLs.shift()),r?this.getBufferForFragment(n):Promise.reject(new ze(o.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:a,byte_range:i}))}}}_getInitBuffer(){var e,t;if(!this._initFragment)throw new he(o.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return(null===(t=null===(e=this._initFragment.bufferSet)||void 0===e?void 0:e.audio)||void 0===t?void 0:t.buffer.byteLength)?Promise.resolve(this._initFragment.bufferSet.audio.buffer):(this._initBufferPromise||(this._initBufferPromise=this.getBufferForFragment(this._initFragment).then((e=>{var t;if(!(null===(t=e.audio)||void 0===t?void 0:t.buffer.byteLength))throw new Error("Empty initialization segment buffer");return e.audio.buffer}))),this._initBufferPromise)}_calculateFragments(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.segments,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;e<l;e++){const i=n[e];if(!(null==i?void 0:i.length))continue;const[l,c]=i,u=c/o,d={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:a,timeEnd:a+u,byteRanges:{audio:{start:t,end:t+(l-1)}}};r[e]=d,t+=l,s+=c,a+=u,Math.floor(u)>this._segmentLength&&(this._segmentLength=Math.floor(u))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=s/o}_calculateFragmentsV1(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.references,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;e<l;e++){const i=n[e];if(!i)continue;const l=i.duration/o,c={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:s,timeEnd:s+l,byteRanges:{audio:{start:t,end:t+(i.size-1)}}};r[e]=c,t+=i.size,a+=i.duration,s+=l,Math.floor(l)>this._segmentLength&&(this._segmentLength=Math.floor(l))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=a/o}_getManifest(e){if(this._noManifest)return e&&(e.manifestLatency=0),Promise.resolve(null);if(this._preloadedManifest)return e&&(e.manifestLatency=0),Promise.resolve(this._preloadedManifest);if(!this._fileId)throw new TypeError("Missing: fileId");const t=Date.now();return this._resolver.getManifest(this._fileId).then((function(n){return e&&(e.manifestLatency=Date.now()-t),n}))}getHLSURL(){var e,t;const n=this._resolvedURL,i=this._initFragment;if(!n||!i)throw new he(o.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const r={url:n,byteStart:null===(e=i.byteRanges.audio)||void 0===e?void 0:e.start,byteEnd:null===(t=i.byteRanges.audio)||void 0===t?void 0:t.end},a=this._fragments.map((e=>{var t,o;return{url:n,duration:e.timeEnd-e.timeStart,byteStart:null===(t=e.byteRanges.audio)||void 0===t?void 0:t.start,byteEnd:null===(o=e.byteRanges.audio)||void 0===o?void 0:o.end}})),s="undefined"==typeof MediaSource?tt:nt;return this._hlsURL=s({assetID:this._fileId,targetDuration:10,map:r,segments:a}),this._hlsURL}releaseHLSURL(){this._hlsURL&&URL.revokeObjectURL(this._hlsURL),this._hlsURL=null}clearCachedBuffers(){this._headFragment&&delete this._headFragment,this._initFragment&&(this._initFragment.bufferSet=null),this._fragments[0]&&(this._fragments[0].bufferSet=null),this._lastFetchedBuffer=null}getPlayableCodecs(){return[this._audioCodec]}getFirstFragment(){var e;return null!==(e=this._fragments[0])&&void 0!==e?e:null}getHeadFragment(){const e=this._initFragment,t=this._fragments[0];if(!(null==e?void 0:e.byteRanges.audio)||!(null==t?void 0:t.byteRanges.audio))throw new he(o.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return this._headFragment||(this._headFragment={init:!0,cacheBufferSet:!0,timeStart:0,timeEnd:0,byteRanges:{audio:{start:e.byteRanges.audio.start,end:t.byteRanges.audio.end}},sliceInto:[{fragment:e,start:0,end:t.byteRanges.audio.start},{fragment:t,start:t.byteRanges.audio.start,end:void 0}]}),this._headFragment}getFragmentAfterTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[1])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[0])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getBufferForFragment(e){var t;if(!e)return Promise.reject(new Error("FIXME: error type?"));if((null===(t=this._lastFetchedBuffer)||void 0===t?void 0:t.fragment)===e)return Promise.resolve(this._lastFetchedBuffer.bufferSet);if(e.bufferSet)return Promise.resolve(e.bufferSet);if(!this._resolvedURL)return Promise.reject(new he(o.FILE_NOT_RESOLVED,"Cannot fetch buffer: No resolved URL"));const n=e.byteRanges.audio,i=`${n.start}-${n.end}`,r=n.end+1-n.start,a=this._resolvedURL,s=e.init?Promise.resolve(null):this._getInitBuffer();return Promise.all([s,this._transport.request(a,{method:"GET",responseType:"arraybuffer",headers:{Range:`bytes=${i}`},timing:!0,metadata:{requestURL:a,fragment:e,byteRangeHeader:i,expectedLength:r},retry:{condition:(e,t)=>{if(0===e.status)return e.offline;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR||!(n!==t.SUCCESS||!e.body)&&e.body.byteLength!==r}}}).then(this._parseFragmentResponse)]).then((([t,n])=>(t&&n.audio&&(n.audio.initBuffer=t),this._lastFetchedBuffer={fragment:e,bufferSet:n},n)))}resolve(e){const t=this._fileId;if(this._bypassResolve)return e&&(e.resolveLatency=0),Promise.resolve({uri:this._resolvedURL,uris:[],protection:this._preloadedManifest||!this._noManifest?"cenc":void 0});if(!t)throw new TypeError("Missing: fileId is required to resolve content URL");clearTimeout(this._lastResolveToken);const n=()=>(this._lastResolveTimestamp=Date.now(),this._resolver.getCDNURL(t,this._fileFormat).then((t=>(e&&(e.resolveLatency=Date.now()-this._lastResolveTimestamp),t)))),o=Date.now()-this._lastResolveTimestamp;let i;return i=o<1001?new Promise(((e,t)=>{this._lastResolveToken=setTimeout((()=>{n().then(e,t)}),1001-o)})):n(),i.then((e=>{this._resolvedURLs=[];for(const t of e.uris){const e=t.split("?")[0];this._resolvedURLs.push(e)}return this._fallbackURLs=e.uris,this._resolvedURL=this._fallbackURLs.shift(),e})).catch((e=>(e&&(e.track=this.toLogJSON()),Promise.reject(e))))}load(e={resolveLatency:0,manifestLatency:0}){return this._loaded?(e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this)):Promise.all([this.resolve(e),this._getManifest(e)]).then((([e,t])=>{var n;if(this._loaded=!0,!e.protection||!t)return this;if(this._keySystem===ae.INVALID_SPOTIFY_KEY)return this._protection=t.protection||"cenc",this._psshBox=new Uint8Array(0),this;let i;const r=this._keySystemSettings.pssh_field.audio;let a=function(e,t){return t.hasOwnProperty(e)}(r,t)?`${t[r]}`:null;if(!a&&"pssh_widevine"===r&&"pssh"in t&&(a=null!==(n=t.pssh)&&void 0!==n?n:null),!a)return i=new he(o.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),i.track=this.toLogJSON(),Promise.reject(i);if(this._protection=t.protection||"cenc",this._psshBox=this._parsePSSHBox(a),"segments"in t&&t.segments)this._calculateFragments(t);else{if(!("references"in t)||!t.references)return i=new he(o.FILE_MALFORMED_SEEKTABLE,"Malformed seektable."),i.track=this.toLogJSON(),Promise.reject(i);this._calculateFragmentsV1(t)}return this}))}adaptToBandwidth(){return Promise.resolve(!1)}}class yt{constructor(e){if(this._estimate=0,this._totalWeight=0,e<0)throw new TypeError("Halflife must be set to a positive value.");this._weightingDecrease=Math.exp(Math.log(.5)/e)}sample(e,t){const n=Math.pow(this._weightingDecrease,e),o=t*(1-n)+n*this._estimate;isNaN(o)||(this._estimate=o,this._totalWeight+=t)}getEstimate(){return this._estimate/1-Math.pow(this._weightingDecrease,this._totalWeight)}}class _t{constructor(e=4e5){this._totalBytes=0,this._overrideBitrate=0,this._currentBandwidth=e,this._short=new yt(2),this._long=new yt(5),this._init()}_init(){if("undefined"==typeof navigator)return;const e=navigator;e.connection&&e.connection.downlink&&(this._currentBandwidth=1e6*e.connection.downlink,this._onConnectionChange=this._onConnectionChange.bind(this),e.connection.addEventListener("change",this._onConnectionChange))}_onConnectionChange(e){const t=e.target.downlink||0;this._setBandwidth(t)}_setBandwidth(e){this._currentBandwidth=1e6*e}getBandwidthEstimate(){if(this._overrideBitrate)return this._overrideBitrate;if(this._totalBytes<128e3)return this._currentBandwidth;const e=this._short.getEstimate(),t=this._long.getEstimate();return Math.min(e,t)}sample(e,t){if(e<16e3)return;const n=t/1e3,o=8*e/n;this._totalBytes+=e,this._short.sample(n,o),this._long.sample(n,o)}overrideBitrate(e){this._overrideBitrate=e<=0?0:e}}var bt;!function(e){e.SHOWING="showing",e.HIDDEN="hidden"}(bt||(bt={}));const St=Array.prototype.slice,Et="function"==typeof Array.from?e=>Array.from(e):e=>St.call(e);function At(e,t){const n=Et(e.getElementsByTagName(t));for(const t of n)e.removeChild(t)}function Tt(e){const t=e;return{id:t.id,text:t.text}}const Pt="visible",Ot="hidden",Ct=/^[A-Za-z]{2,4}([_-][A-Za-z]{4})?([_-]([A-Za-z]{2}|[0-9]{3}))?$/;class kt extends l.vp{constructor(e){super(),this._isVisible=!1,this._player=null,this._crossOrigin=null,this._currentVideoContent=null,this._unsubscribers=[],this._displayedCues=[],this._deactivateListeners=!1,this._activeLanguage=void 0,this._preferredLanguage=e.language.toLowerCase(),e.deactivateListeners&&(this._deactivateListeners=!0),this._onEnter=this._onEnter.bind(this),this._onExit=this._onExit.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this.setPlayer(e.player)}_subscribeToCueEvents(e){var t;const{track:n}=e;if(!n)throw new Error("No track");if(n.mode=this._isVisible?bt.SHOWING:bt.HIDDEN,null===(t=n.cues)||void 0===t?void 0:t.length){this._displayedCues=n.activeCues?Array.from(n.activeCues):[],this._emitDisplayedCues();for(let e=0;e<n.cues.length;e++){const t=n.cues[e];t&&(t.addEventListener("enter",this._onEnter),t.addEventListener("exit",this._onExit),this._unsubscribers.push((()=>{t.removeEventListener("enter",this._onEnter),t.removeEventListener("exit",this._onExit)})))}}else{const t=()=>{this._subscribeToCueEvents(e),e.removeEventListener("load",t)};e.addEventListener("load",t)}}_unsubscribeFromCueEvents(){this._unsubscribers.forEach((e=>e())),this._unsubscribers=[]}_onEnter(e){const t=e.target;this._displayedCues.indexOf(t)>-1||(this._displayedCues.push(t),this._emitDisplayedCues())}_onExit(e){const t=e.target,n=this._displayedCues.indexOf(t);n>-1&&(this._displayedCues.splice(n,1),this._emitDisplayedCues())}_emitDisplayedCues(){this.emit(re.PLAYER_DISPLAYED_CUES_CHANGED,{cues:this._displayedCues.map(Tt)})}_updateVisibleState(){var e,t;if(!this._player)return;const n=this.getActiveLanguage();Array.from(null!==(t=null===(e=this._player)||void 0===e?void 0:e.querySelectorAll("track"))&&void 0!==t?t:[]).forEach((e=>{e.style.visibility=this._isVisible?Pt:Ot}));const o=this._player.textTracks;for(let e=0,t=o.length;e<t;e++){const t=o[e];t&&(t.mode=this._isVisible&&t.language.toLowerCase()===n?bt.SHOWING:bt.HIDDEN)}}_updateTextTracks(){const e=this._player;e&&(e.readyState>=1?this._onLoadedMetadata():this._currentVideoContent&&e.addEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata))}_onLoadedMetadata(){const e=this._player;if(!e)return;if(At(e,"track"),!this._currentVideoContent)return;e.crossOrigin="anonymous";const t=this._updateActiveLanguage();for(const{lang:n,url:o}of this._currentVideoContent.getSubtitles()){const i=n.toLowerCase()===t,r=document.createElement("track");r.label=`${n} subtitles`,r.kind="subtitles",r.srclang=n,r.src=o,r.default=i,r.style.visibility=this._isVisible?Pt:Ot,e.appendChild(r),i&&!this._deactivateListeners&&this._subscribeToCueEvents(r)}}_updateActiveLanguage(){if(!this._player||!this._currentVideoContent)return void(this._activeLanguage=void 0);const e=this._currentVideoContent.getSubtitleLanguages(),t=this._preferredLanguage.split("-")[0];let n=null;for(const o of e){const e=o.toLowerCase();if(e===this._preferredLanguage)return this._activeLanguage=e,this._activeLanguage;e.split("-")[0]===t&&null===n&&(n=e)}return this._activeLanguage=null!=n?n:"en-us",this._activeLanguage}getActiveLanguage(){if(this._player&&this._currentVideoContent)return this._activeLanguage}setVideoContent(e){this._unsubscribeFromCueEvents(),this._displayedCues=[],this._currentVideoContent=e,e||this.clear(),this._updateTextTracks()}setPlayer(e){var t;const n="VIDEO"===(null==e?void 0:e.tagName)?e:null;this._player!==n&&this.clear(),this._player=n||null,this._crossOrigin=null!==(t=null==n?void 0:n.crossOrigin)&&void 0!==t?t:null,this._updateTextTracks()}getAvailableLanguages(){var e,t;return null!==(t=null===(e=this._currentVideoContent)||void 0===e?void 0:e.getSubtitleLanguages())&&void 0!==t?t:[]}setLanguage(e){if(!e.length)throw new TypeError("Argument `code` must be a non-empty string. Hide subtitles using `hideSubtitles()`.");if(!Ct.test(e))throw new TypeError("Argument `code` must be a valid BCP 47 formatted language code");this._preferredLanguage=e.toLowerCase(),this._updateTextTracks()}hide(){this._isVisible=!1,this._updateVisibleState()}show(){this._isVisible=!0,this._updateVisibleState()}deactivateListeners(){if(this._deactivateListeners)return;this._player&&(this._deactivateListeners=!0,this._unsubscribeFromCueEvents())}activateListeners(){this._deactivateListeners&&(this._deactivateListeners=!1,this._updateTextTracks())}areListenersActivated(){return!this._deactivateListeners}clear(){const e=this._player;e&&(this._unsubscribeFromCueEvents(),this._currentVideoContent=null,this._displayedCues=[],At(e,"track"),e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.crossOrigin=this._crossOrigin)}visible(){return this._isVisible}}class Rt{constructor(e){this.bandwidthEstimator=e.bandwidthEstimator}static create(e){return new Rt(e)}getSample(e,t){var n,o;const i=this.bandwidthEstimator.getBandwidthEstimate(),r=function(e,t){const n=e.length;for(let o=0;o<n;o++)if(e.start(o)<=t&&t<=e.end(o))return 1e3*(e.end(o)-t);return 0}(e.buffered,e.currentTime);if(t instanceof vt){const e=null===(o=null===(n=t.getFirstFragment())||void 0===n?void 0:n.bufferSet)||void 0===o?void 0:o.audio,a=null==e?void 0:e.bitrate;return{bandwidth:i,bufferAvailability:r,audio:{contentType:null==e?void 0:e.mimetype,bitrate:a}}}const a=t.getAudioProfile(),s=t.getVideoProfile(),l=t.getVideoProfiles(),c="getVideoPlaybackQuality"in e?e.getVideoPlaybackQuality():{creationTime:void 0,droppedVideoFrames:void 0,totalVideoFrames:void 0};return{bandwidth:i,bufferAvailability:r,video:{creationTime:c.creationTime,droppedVideoFrames:c.droppedVideoFrames,totalVideoFrames:c.totalVideoFrames,bitrate:null==s?void 0:s.video_bitrate,availableBitrates:l.map((e=>e.video_bitrate)),height:null==s?void 0:s.video_height,width:null==s?void 0:s.video_width,resolution:null==s?void 0:s.video_resolution,contentType:pt(null!=s?s:void 0)},audio:{bitrate:null==a?void 0:a.audio_bitrate,contentType:pt(null!=a?a:void 0)}}}}const Lt=de.P.forTag("playback.audio_processor");class It{constructor(e){this._audioContext=null,this._mediaElementSource=null,this._gainNode=null,this._nodes=[],(null==e?void 0:e.disable)?Lt.info("AudioProcessor disabled"):(this._audioContext=(null==e?void 0:e.audioContext)||("undefined"!=typeof AudioContext?new AudioContext:null),this._audioContext?(this._gainNode=this._audioContext.createGain(),this._buildNodePipeline(null==e?void 0:e.nodes)):Lt.warn("The AudioContext API is not supported. Any future operation related to `AudioProcessor` will be skipped."))}static create(e){return new It(e)}_setMediaElementSource(e){var t;this._audioContext&&(this._mediaElementSource&&(Lt.info("Disconnecting previous media element source"),this._mediaElementSource.disconnect()),Lt.info("Creating new media element source"),this._mediaElementSource=this._audioContext.createMediaElementSource(e)||null,this._mediaElementSource.connect(null!==(t=this._nodes[0])&&void 0!==t?t:this._audioContext.destination))}_buildNodePipeline(e=[]){var t;if(!this._audioContext)return;Lt.info("Disconnecting previous nodes");const n=this._nodes;for(const e of n)e.disconnect();const o=[this._gainNode,...e];let i=null;for(const e of o)i&&i.connect(e),i=e;null===(t=o[o.length-1])||void 0===t||t.connect(this._audioContext.destination),Lt.info("Node pipeline built"),this._nodes=o}setPlayer(e){var t;e&&((null===(t=this._mediaElementSource)||void 0===t?void 0:t.mediaElement)!==e?this._setMediaElementSource(e):Lt.info("The new player is the same as the current player"))}setAudioGain(e=0){if(!this._gainNode)return Lt.info("The default gain node is not available"),!1;const t=Math.pow(10,e/20);return this._gainNode.gain.value=t,Lt.info("Main gain set to",t),!0}getAudioContext(){return this._audioContext}resume(){return this._audioContext&&"running"!==this._audioContext.state?this._audioContext.resume():Promise.resolve()}suspend(){return this._audioContext&&"suspended"!==this._audioContext.state?this._audioContext.suspend():Promise.resolve()}destroy(){var e;this._audioContext&&(null===(e=this._mediaElementSource)||void 0===e||e.connect(this._audioContext.destination)),this._nodes=[],this._audioContext=null,this._gainNode=null,this._mediaElementSource=null,Lt.info("The AudioProcessor is destroyed")}}const Nt=de.P.forTag("playback.media_source_manager");function wt(e){if(!e)return"";const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n]?`="${e[n]}"`:"";t.push(`${n}${o}`)}return t.length?`; ${t.join("; ")}`:""}class Dt extends l.vp{constructor(e){super(),this._mediaSource=null,this._sourceBuffers={},this._currentInitSegments={},this._updateQueue=[],this._codecs=[],this._playId=0,this._lastBufferClearTime=Date.now(),this._customSourceBufferParams="";const{codecs:t,customSourceBufferParams:n,disableBufferAbort:o}=e;this._codecs=t,this._customSourceBufferParams=wt(n),this._disableBufferAbort=!!o,this._onSourceOpen=this._onSourceOpen.bind(this),this._onSourceClose=this._onSourceClose.bind(this),this.dequeueUpdates=this.dequeueUpdates.bind(this),e.noInit||this._init()}static create(e){return new Dt(e)}_init(){this._mediaSource=new MediaSource,this._mediaSource.addEventListener(re.MEDIA_SOURCE_OPEN,this._onSourceOpen),this._mediaSource.addEventListener(re.MEDIA_SOURCE_CLOSE,this._onSourceClose),this._sourceBuffers={},this._currentInitSegments={}}_onSourceOpen(){var e;Nt.info("MediaSource opened.");const t=this._mediaSource;if(0===(null===(e=null==t?void 0:t.sourceBuffers)||void 0===e?void 0:e.length)&&"open"===(null==t?void 0:t.readyState)){Nt.info("Creating source buffers for codecs",this._codecs);for(const e of this._codecs){const n=t.addSourceBuffer(e+this._customSourceBufferParams);n.addEventListener(re.SOURCE_BUFFER_UPDATE_END,this.dequeueUpdates),this._sourceBuffers[e]=n}}this.dequeueUpdates(),this.emit(re.BUFFER_SOURCE_OPEN,null)}_onSourceClose(){Nt.info("MediaSource closed."),this._destroySourceBuffers(),this.emit(re.BUFFER_SOURCE_CLOSE,null)}_destroySourceBuffers(){const e=this._mediaSource;if(!e)return;const t=e.sourceBuffers;if(t.length)for(let n=0,o=t.length;n<o;n++){const o=t[n];if(o){o.removeEventListener("updateend",this.dequeueUpdates);try{e.removeSourceBuffer(o),Nt.info("Removed source buffer")}catch(e){Nt.warn("Failed to remove sourcebuffer",e)}}}this._sourceBuffers={},this._currentInitSegments={}}_endUpdate(e){var t;this._isUpdating()?this._updateQueue.push(e):"open"===(null===(t=this._mediaSource)||void 0===t?void 0:t.readyState)&&(this._mediaSource.endOfStream(),e.resolve&&e.resolve(!0))}_durationUpdate(e){this._isUpdating()?this._updateQueue.push(e):(this._mediaSource&&(this._mediaSource.duration=e.duration),e.resolve&&e.resolve(!0))}_isUpdating(){if(!this._mediaSource)return!1;const e=this._mediaSource.sourceBuffers;for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&n.updating)return!0}return!1}_appendUpdate(e){var t,n;const o=this._sourceBuffers[e.codec];if(!o||o.updating)return void this._updateQueue.push(e);let i=e.buffer;if(e.fragment.init&&this._currentInitSegments[e.codec]===e.profileId)return null===(t=e.resolve)||void 0===t||t.call(e,!0),void Promise.resolve().then(this.dequeueUpdates);if(e.initBuffer&&e.buffer&&this._currentInitSegments[e.codec]!==e.profileId){const t=new Uint8Array(e.initBuffer.byteLength+e.buffer.byteLength);t.set(new Uint8Array(e.initBuffer),0),t.set(new Uint8Array(e.buffer),e.initBuffer.byteLength),i=t.buffer}try{o.appendBuffer(i)}catch(t){let n=!1;return"QuotaExceededError"===t.name?(Nt.warn("Failed to append buffer: exceeded quota."),n=!0,this.emitSync(re.BUFFER_QUOTA_EXCEEDED,null)):Nt.warn("Failed to append buffer",t),void new Promise((e=>{n?setTimeout(e,500):e()})).then((()=>{this.emitSync(re.FRAGMENT_APPENDED,e.fragment),this.dequeueUpdates()})).then((()=>{e.init&&this._updateQueue.push(e)}))}this.emitSync(re.FRAGMENT_APPENDED,e.fragment);const r=i.byteLength>e.buffer.byteLength;(e.fragment.init||r)&&(this._currentInitSegments[e.codec]=e.profileId),null===(n=e.resolve)||void 0===n||n.call(e,!0),r?Nt.info(`Injected combined init segment and playable segment (${e.codec}, ${e.profileId})`):e.init&&Nt.info(`Injected individual init segment (${e.codec}, ${e.profileId})`)}_abortUpdate(e){var t;"fragment"in e&&this.emitSync(re.FRAGMENT_APPENDED,e.fragment),null===(t=e.resolve)||void 0===t||t.call(e,!1),Promise.resolve().then(this.dequeueUpdates)}dequeueUpdates(){const e=this._updateQueue.shift();e&&this.tryUpdate(e)}tryUpdate(e){if(e.playId!==this._playId)return Nt.info("Try update dropped: playId has changed"),void this._abortUpdate(e);if(e.timestamp<this._lastBufferClearTime)return Nt.info("Try update dropped: update is older than the last clear"),void this._abortUpdate(e);const t=this._mediaSource;t&&"open"!==t.readyState&&"ended"!==t.readyState?this._updateQueue.push(e):"end"===e.type?this._endUpdate(e):"duration"===e.type?this._durationUpdate(e):"append"===e.type&&this._appendUpdate(e)}appendBufferData(e,t,n,o=Date.now()){const i=[];if(e.audio){const r=(0,me.$)();this.tryUpdate({playId:n,timestamp:o,fragment:t,type:"append",profileId:e.audio.profileId,buffer:e.audio.buffer,initBuffer:e.audio.initBuffer,codec:e.audio.mimetype,init:!!t.init,resolve:r.resolve}),i.push(r.promise)}if(e.video){const r=(0,me.$)();this.tryUpdate({playId:n,timestamp:o,fragment:t,type:"append",profileId:e.video.profileId,buffer:e.video.buffer,initBuffer:e.video.initBuffer,codec:e.video.mimetype,init:!!t.init,resolve:r.resolve}),i.push(r.promise)}return Promise.all(i)}endOfStream(){this._mediaSource&&"ended"!==this._mediaSource.readyState&&this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"end"})}abort(e=!1){if(this._lastBufferClearTime=Date.now(),this._disableBufferAbort)return void Nt.info("MediaSource abort skipped; action disabled.");const t=this._mediaSource;if(t){const n=t.sourceBuffers;for(let o=0,i=n.length;o<i;o++){const i=n[o];if("open"===t.readyState&&i)try{i.abort();const t=i.buffered;if(e&&t.length){const e=t.start(0),n=t.end(t.length-1);i.remove(e,n),Nt.info("Cleared buffer range",e,n)}}catch(e){Nt.warn("MediaSourceManager.clear failed.",e)}}}this._currentInitSegments={}}destroy(){const e=this._mediaSource;e&&(Nt.info("Source destroyed"),e.removeEventListener("sourceopen",this._onSourceOpen),e.removeEventListener("sourceclose",this._onSourceClose),this._destroySourceBuffers(),this._mediaSource=null)}recreate(e){this.abort(),this.destroy(),this._codecs=e.codecs,e.customSourceBufferParams&&(this._customSourceBufferParams=wt(e.customSourceBufferParams)),this._init()}setDuration(e){return new Promise((t=>{this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"duration",duration:e,resolve:t})}))}getMediaSource(){return this._mediaSource}setPlayId(e){this._playId=e}getPlayId(){return this._playId}}const Mt=de.P.forTag("playback.content_buffer");var xt;function Ft(){}!function(e){e[e.AUDIO=10]="AUDIO",e[e.VIDEO=20]="VIDEO"}(xt||(xt={}));class Ut extends l.vp{constructor(e,t=[],n={}){super(),this._appendingFragments=[],this._tracker=e;const{customSourceBufferParams:o,noInit:i,disableBufferAbort:r}=n;this._mediaSourceManager=Dt.create({codecs:t,noInit:i,customSourceBufferParams:o,disableBufferAbort:r}),this._removeAppendingFragment=this._removeAppendingFragment.bind(this),this._mediaSourceManager.on(re.FRAGMENT_APPENDED,(({data:e})=>this._removeAppendingFragment(e))),this.proxyEmitAll(this._mediaSourceManager,{[re.BUFFER_SOURCE_OPEN]:re.BUFFER_SOURCE_OPEN,[re.BUFFER_SOURCE_CLOSE]:re.BUFFER_SOURCE_CLOSE,[re.BUFFER_QUOTA_EXCEEDED]:re.BUFFER_QUOTA_EXCEEDED})}static create(e,t=[],n={}){return new Ut(e,t,n)}_trackBufferingProgress(e){e.audio&&e.audio.buffer&&this._tracker.trackBytesDownloaded(e.audio.buffer.byteLength),e.video&&e.video.buffer&&this._tracker.trackBytesDownloaded(e.video.buffer.byteLength)}_checkStalling(e,t,n){var o,i;const r=t.byteRanges.video?t.byteRanges.video.start:null!==(i=null===(o=t.byteRanges.audio)||void 0===o?void 0:o.start)&&void 0!==i?i:-1;var a;e>9e3&&this.emit(re.BUFFER_STALLED,{byteStart:r,timeStart:(a=t.timeStart,Math.ceil(1e3*a)),stallAmount:e-9e3,didTimeout:n})}_removeAppendingFragment(e){if(!e)return;const t=this._appendingFragments,n=t.indexOf(e);-1!==n&&t.splice(n,1)}dequeueUpdates(){this._mediaSourceManager.dequeueUpdates()}appendFragment(e,t,n=!1){if(-1!==this._appendingFragments.indexOf(t))return Promise.resolve([]);this._appendingFragments.push(t),this.emit(re.BUFFERING_START,null);const o=Date.now(),i=this._mediaSourceManager.getPlayId(),r=e.toLogJSON();return e.getBufferForFragment(t).then((e=>{var r,a,s,l,c,u;return this._trackBufferingProgress(e),i!==this._mediaSourceManager.getPlayId()?(Mt.info("Append fragment dropped: playId has changed."),[]):(n||this._checkStalling(Date.now()-o,t,!1),null!==(null===(r=e.audio)||void 0===r?void 0:r.bandwidth)&&this._tracker.trackBufferURL((null===(a=e.audio)||void 0===a?void 0:a.bufferURL)||"",{bandwidth:(null===(s=e.audio)||void 0===s?void 0:s.bandwidth)||0}),null!==(null===(l=e.video)||void 0===l?void 0:l.bandwidth)&&this._tracker.trackBufferURL((null===(c=e.video)||void 0===c?void 0:c.bufferURL)||"",{bandwidth:(null===(u=e.video)||void 0===u?void 0:u.bandwidth)||0}),this.emit(re.BUFFERING_END,null),this._mediaSourceManager.appendBufferData(e,t,i,o))})).catch((e=>(this._removeAppendingFragment(t),n||this._checkStalling(Date.now()-o,t,!0),this.emit(re.BUFFER_APPEND_ERROR,{error:e,canPlayNext:!0,track:r}),Promise.reject(e))))}abort(e=!1){this._appendingFragments=[],this._mediaSourceManager.abort(e)}getMediaSource(){return this._mediaSourceManager.getMediaSource()}destroy(){this._mediaSourceManager.destroy()}progress(e,t,n){const o=this._mediaSourceManager.getMediaSource();if(!o)return;const i="video"===e.getMediaType()?xt.VIDEO:xt.AUDIO;if("open"===o.readyState||"ended"===o.readyState){let r;const a=function(e,t){var n;const o=null===(n=e.sourceBuffers[e.sourceBuffers.length-1])||void 0===n?void 0:n.buffered;if(o){let e,n;for(let i=0;i<o.length;i++)if(e=o.start(i),n=o.end(i),e<=t&&t<=n)return{start:e,end:n}}return null}(o,n);if(a){if(n+i>o.duration)return void("open"===o.readyState&&this._mediaSourceManager.endOfStream());const s=e.getFragmentLength();Math.ceil(n/s)>Math.floor(a.end/s)&&(r=e.getFragmentForTime(n),r&&this.appendFragment(e,r,t).catch(Ft));const l=Math.floor(a.end-n);if(l>i)return;const c=Math.min(e.getFragmentLength(),i-l);if(c<1)return;const u=Math.floor(a.end+c);r=e.getFragmentForTime(u),r?this.appendFragment(e,r,t).catch(Ft):this._mediaSourceManager.endOfStream()}else if(r=e.getFragmentForTime(n),r){const o=this.appendFragment(e,r,t).catch(Ft);if(r.timeEnd<n+5){const n=e.getFragmentAfterTime(r.timeStart);n?this.appendFragment(e,n,t).catch(Ft):o.then((()=>{this._mediaSourceManager.endOfStream()}))}}else this._mediaSourceManager.endOfStream()}}recreate(e){this._appendingFragments=[],this._mediaSourceManager.recreate({codecs:e})}setDuration(e){return this._mediaSourceManager.setDuration(e)}setPlayId(e){this._mediaSourceManager.setPlayId(e)}}const Bt=de.P.forTag("playback.player"),Vt=/^blob:/,Gt={[le.MP4]:!0,[le.MP4_DUAL]:!0,[le.MP4_CBCS]:!0,[le.MP4_FLAC]:!0,[le.MP3]:!1,[le.MANIFEST_ID]:!1};function Jt(e){return Math.ceil(1e3*e)}function jt(e){return e/1e3}function Ht(e){return document.createElement(e)}class Kt extends l.vp{constructor(e){super(),this._cubicVolume=!1,this._player=null,this._emeManager=null,this._mediator=new l.vp,this._currentContent=null,this._upcomingContent=null,this._preloadingTracks={},this._playId=0,this._abortController=null,this._loaded=!1,this._licenseRequested=!1,this._playerActivated=!1,this._pauseToken=0,this._syntheticEndedToken=0,this._activeCodecs=[],this._playerVolume=1,this._playerSpeed=1,this._fatalOnNextError=!1,this._canPreloadEmitted=!1,this._lastTimeUpdatePostion=0,this._buffering=!1,this._preferredBitrate=0,this._disableLicensePrefetch=!1,this._allowMixedAVC1Codecs=!1,this._disableBufferingBeforeLicense=!1,this._audioResolver=e.audioResolver,this._clearBufferOnSeek=!!e.clearBufferOnSeek,this._createPlayer=e.createPlayer||Ht,this._cubicVolume=e.cubicVolume,this._disableCache=!!e.disableCache,this._licenseURLResolver=e.licenseURLResolver,this._newBufferPerTrack=!!e.newBufferPerTrack,this._newElementPerTrack=!!e.newElementPerTrack,this._newMediaKeysPerTrack=!!e.newMediaKeysPerTrack,this._rebufferOnQuotaExceeded=!!e.rebufferOnQuotaExceeded,this._disableLicensePrefetch=!!e.disableLicensePrefetch,this._synthesizeEnded=!!e.synthesizeEnded,this._tracker=e.tracker,this._transport=e.transport,this._videoPlayerContainer=e.videoPlayerContainer,this._audioPlayerContainer=e.audioPlayerContainer,this._allowMixedAVC1Codecs=e.allowMixedAVC1Codecs,this._videoResolver=e.videoResolver,this._abrManager=new _t,this._emeManager=e.disallowProtectedTracks?null:e.emeManager||null,this._disallowProfile=e.disallowProfile,this._disableBufferingBeforeLicense=!!e.disableBufferingBeforeLicense,this._cache=new pe.z(e.trackCacheSize||2),this._subtitleManager=new kt({language:e.preferredSubtitleLanguage||navigator.language,player:this._player}),this._videoResolution=e.videoResolution,Bt.info("Setting Player track cache to:",e.trackCacheSize||2),this._bufferManager=Ut.create(this._tracker,void 0,{disableBufferAbort:!!e.disableBufferAbort,reinjectInitsOnAbort:!!e.reinjectInitsOnAbort,noInit:!0,customSourceBufferParams:e.customSourceBufferParams}),this._statistics=Rt.create({bandwidthEstimator:this._abrManager}),this._audioProcessor=It.create(e.audioProcessorOptions),this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onTimeUpdate=this._onTimeUpdate.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onPlay=this._onPlay.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onPause=this._onPause.bind(this),this._onSeeking=this._onSeeking.bind(this),this._onEncrypted=this._onEncrypted.bind(this),this._onEnded=this._onEnded.bind(this),this._onError=this._onError.bind(this),this._onRequiresDuration=this._onRequiresDuration.bind(this),this._onQuotaExceeded=this._onQuotaExceeded.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this._onWaiting=this._onWaiting.bind(this),this._onFragmentFetched=this._onFragmentFetched.bind(this),this._onProfileChanged=this._onProfileChanged.bind(this),this._onPlayedThresholdReached=this._onPlayedThresholdReached.bind(this),this._onSyntheticEnded=this._onSyntheticEnded.bind(this),this._onLicenseRequestCapped=this._onLicenseRequestCapped.bind(this),this._onLicenseRequestError=this._onLicenseRequestError.bind(this),this._onNavigatorOffline=this._onNavigatorOffline.bind(this),this._onBufferError=this._onBufferError.bind(this),this._emitWarning=this._emitWarning.bind(this),this._handleLoadingComplete=this._handleLoadingComplete.bind(this),this._onRateChange=this._onRateChange.bind(this),this._onVideoResize=this._onVideoResize.bind(this),this._setAudioGain=this._setAudioGain.bind(this),this._init()}static create(e){const t=Object.assign({},e);return e.disallowProtectedTracks?Kt.createWithOptions(t):We.create({transport:e.transport,disallowRobustnessValues:e.disallowRobustnessValues,disallowCodecs:e.disallowCodecs,noServerCertificate:e.noServerCertificate,precacheServerCertificate:e.precacheServerCertificate,unauthServerCertificateBase:e.unauthServerCertificateBase,preferredKeySystems:e.preferredKeySystems}).then((e=>{t.emeManager=e;const n=new Kt(t);return t.preinitMediaElement?n._preinitMediaElement():n})).catch((n=>{if(e.enableWithoutEME)return Kt.createWithOptions(t);throw n}))}static createWithOptions(e){return new Promise((t=>{const n=new Kt(e);t(e.preinitMediaElement?n._preinitMediaElement():n)}))}_init(){this._disableCache&&Bt.info("Cache disabled."),this._transport.on(this._transport.EVENT_CONNECTION_OFFLINE,this._onNavigatorOffline),this.proxyEmitAllSync(this._tracker,{[re.TRACKER_TRACKING_DATA_CREATED]:re.PLAYER_TRACKING_DATA_CREATED,[re.TRACKER_TRACKING_DATA_FINALIZED]:re.PLAYER_TRACKING_DATA_FINALIZED,[re.TRACKER_PLAYBACK_START]:re.PLAYER_PLAYBACK_START}),this._tracker.on(re.TRACKER_PLAYED_THRESHOLD_REACHED,this._onPlayedThresholdReached),this._emeManager&&this._emeManager.addListeners({[re.EME_LICENSE_REQUEST_CAPPED]:this._onLicenseRequestCapped,[re.EME_LICENSE_REQUEST_ERROR]:this._onLicenseRequestError}),this._bufferManager.addListeners({[re.BUFFER_APPEND_ERROR]:this._onBufferError,[re.BUFFER_QUOTA_EXCEEDED]:this._onQuotaExceeded}),this.proxyEmitAll(this._bufferManager,{[re.BUFFER_STALLED]:re.PLAYER_BUFFER_STALLED}),this._mediator.addListeners({[ce.FRAGMENT_FETCHED]:this._onFragmentFetched,[ce.VIDEO_PROFILE_CHANGED]:this._onProfileChanged}),this.proxyEmitAll(this._mediator,{[ce.FRAGMENT_FETCH_ERROR]:re.PLAYER_FRAGMENT_FETCH_ERROR,[ce.SUBTITLE_LANGUAGES_LOADED]:re.PLAYER_SUBTITLE_LANGUAGES_LOADED}),this.proxyEmitSync(this._subtitleManager,re.PLAYER_DISPLAYED_CUES_CHANGED,re.PLAYER_DISPLAYED_CUES_CHANGED),this.proxyEmitAll(this._videoResolver,{[re.VIDEO_MANIFEST_RESOLVED]:re.PLAYER_VIDEO_MANIFEST_RESOLVED,[re.VIDEO_MANIFEST_RESOLVE_FAILED]:re.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED})}_onRateChange(){this._player&&(this._tracker.trackSpeedChanged(this._player.playbackRate),this.emit(re.PLAYER_PLAYBACK_SPEED_CHANGED,{playback_speed:this._player.playbackRate}))}_onLicenseRequestError(e){if(e.data.signal.aborted)return;const t=this._currentContent;if(!t)return;const n=e.data.error;n.shouldRefreshEndpoint&&this._licenseURLResolver.remove(t.getKeySystem(),t.getMediaType()),this._emitError(n,!n.unrecoverable,t.toLogJSON())}_onFragmentFetched(e){const{data:t}=e;this._tracker.trackFragment(t),this.emit(re.PLAYER_FRAGMENT_FETCHED,t)}_onProfileChanged(e){const{data:t}=e;this._tracker.trackProfileChanged(t.profile),this.emit(re.PLAYER_VIDEO_PROFILE_CHANGED,t)}_onLicenseRequestCapped(e){if(e.data.signal.aborted)return;this._currentContent&&(this.pause(),this.emit(re.PLAYER_CAPPED,null))}_shouldNextErrorBeFatal(){const e=this._currentContent;if(!e)return!1;if(e.isAd()||!e.isProtected())return!1;if(!this._player)return!1;const t=this._player.error;if(!(t&&t instanceof MediaError))return this._fatalOnNextError=!1,!1;switch(t.code){case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:case MediaError.MEDIA_ERR_DECODE:return!0;default:return!1}}_onNavigatorOffline(){this._tracker.trackNavigatorOffline()}_onBufferError(e){this._emitError(e.data.error,e.data.canPlayNext,e.data.track)}_addPlayerEvents(e){e.addEventListener(re.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.addEventListener(re.MEDIA_PLAY,this._onPlay),e.addEventListener(re.MEDIA_PLAYING,this._onPlaying),e.addEventListener(re.MEDIA_PAUSE,this._onPause),e.addEventListener(re.MEDIA_SEEKING,this._onSeeking),e.addEventListener(re.MEDIA_ENCRYPTED,this._onEncrypted),e.addEventListener(re.MEDIA_ENDED,this._onEnded),e.addEventListener(re.MEDIA_ERROR,this._onError),e.addEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.addEventListener(re.MEDIA_DURATIONCHANGE,this._onDurationChange),e.addEventListener(re.MEDIA_WAITING,this._onWaiting),e.addEventListener(re.MEDIA_CANPLAY,this._onCanPlay),e.addEventListener(re.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.addEventListener(re.MEDIA_RATECHANGE,this._onRateChange),e.addEventListener(re.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.addEventListener(re.MEDIA_RESIZE,this._onVideoResize)}_removePlayerEvents(e){e.removeEventListener(re.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.removeEventListener(re.MEDIA_PLAY,this._onPlay),e.removeEventListener(re.MEDIA_PLAYING,this._onPlaying),e.removeEventListener(re.MEDIA_PAUSE,this._onPause),e.removeEventListener(re.MEDIA_SEEKING,this._onSeeking),e.removeEventListener(re.MEDIA_ENCRYPTED,this._onEncrypted),e.removeEventListener(re.MEDIA_ENDED,this._onEnded),e.removeEventListener(re.MEDIA_ERROR,this._onError),e.removeEventListener(re.MEDIA_WAITING,this._onWaiting),e.removeEventListener(re.MEDIA_CANPLAY,this._onCanPlay),e.removeEventListener(re.MEDIA_RATECHANGE,this._onRateChange),e.removeEventListener(re.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.removeEventListener(re.MEDIA_DURATIONCHANGE,this._onDurationChange),e.removeEventListener(re.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.removeEventListener(re.MEDIA_RESIZE,this._onVideoResize)}_recreateMediaElement(e,t,n,o){if(t.aborted)return Bt.info("Recreate player dropped: operation aborted."),Promise.resolve(!1);const i=this._player;if(i){if(!this._newElementPerTrack&&("AUDIO"!==i.tagName||"video"!==n)){let t=!0;for(const n of e)if('audio/mp2t;codecs="mp4a.40.2"'!==n&&!i.canPlayType(n)){t=!1;break}if(t)return Bt.info("Reusing media element."),e.join(",")===this._activeCodecs.join(",")&&!this._newBufferPerTrack||o||(Bt.info("Recreating buffer."),this._bufferManager.recreate(e),this._activeCodecs=e),Promise.resolve(!0)}this._removePlayerEvents(i),i.pause(),this._emeManager&&this._emeManager.removeMediaKeys(i).catch((function(e){Bt.warn("Failed to remove media keys.",e)})),this._player=null;const t=this._getContainerElement(this._videoPlayerContainer);t&&i.parentNode===t&&(t.removeChild(i),this.emit(re.PLAYER_VIDEO_ELEMENT_REMOVED,null));const r=this._getContainerElement(this._audioPlayerContainer);r&&i.parentNode===r&&r.removeChild(i)}Bt.info("Creating new media element.");const r=this._createPlayer(n),a=this._playerVolume;return r.volume=this._cubicVolume?a*a*a:a,r.autoplay=!1,r.loop=!1,"playsInline"in r&&(r.playsInline=!0),this._player=r,this._subtitleManager.setPlayer(r),this._playerActivated=!1,this._addPlayerEvents(r),o||this._bufferManager.recreate(e),this._activeCodecs=e,Promise.resolve(!0)}_getContainerElement(e){return"string"==typeof e?document.querySelector(e):e||null}_onVideoResize(){if(!(this._player instanceof HTMLVideoElement))return;const{videoWidth:e,videoHeight:t}=this._player;this.emit(re.PLAYER_VIDEO_RESIZED,{width:e,height:t})}_onDurationChange(){var e;const t=null===(e=this._abortController)||void 0===e?void 0:e.signal,n=()=>{if(!this._player)return;if(null==t?void 0:t.aborted)return void Bt.info("Duration changed drop: operation aborted.");const e=Jt(this._player.duration),n=Jt(this._player.currentTime);this._tracker.setActualDuration(e),this.emit(re.PLAYER_DURATION_CHANGED,{timestamp:Date.now(),position:n,duration:e})};this._loaded?n():this.once(re.PLAYER_LOAD,n)}_onPlay(){var e;if(!this._player||!this._currentContent)return;const t=Jt(this._player.currentTime);this._tracker.trackPlay(t,this._player.playbackRate),this.emit(re.PLAYER_PLAY,{timestamp:Date.now(),position:t,logData:null!==(e=this._currentContent.getLogData())&&void 0!==e?e:null})}_onPlaying(){if(!this._player)return;this._playerActivated=!0;const e=this._currentContent,t=Jt(this._player.currentTime);this._tracker.trackPlaying(t),this.emit(re.PLAYER_PLAYING,{timestamp:Date.now(),position:t,logData:e?e.getLogData():null})}_onPause(){if(!this._player)return;const e=Jt(this._player.currentTime);this._tracker.trackPaused(e);const t=this._currentContent?this._currentContent.getLogData():null;this._pauseToken=setTimeout((()=>{clearTimeout(this._syntheticEndedToken),this.emit(re.PLAYER_PAUSED,{position:e,logData:t})}),10)}_onSeeking(){this.emit(re.PLAYER_SEEKING,null),this._bufferManager.abort(this._clearBufferOnSeek),this._lastTimeUpdatePostion=0,this._onTimeUpdate()}_onRequiresDuration(){this._currentContent&&this._currentContent.isProtected()&&this._player&&(this._player.duration=this._currentContent.getCalculatedDuration())}_onQuotaExceeded(){this._player&&this._rebufferOnQuotaExceeded&&(Bt.info("Exceeded quota: rebuffering current track."),this._bufferManager.abort(!0),this._player.currentTime=this._player.currentTime,this._onTimeUpdate())}_onEncrypted(e){Bt.info("Got Encrypted event");this._currentContent&&this.emitSync(re.INTERNAL_ENCRYPTED,{initData:e.initData,fromPolyfill:!!e.fromPolyfill})}_onEnded(){!this._currentContent||this._synthesizeEnded&&this._currentContent.isProtected()||(Bt.info("Native ended emitted."),this._emitEnded())}_onSyntheticEnded(){this._synthesizeEnded&&this._currentContent&&this._currentContent.isProtected()&&(Bt.info("Synthetic ended emitted."),this._emitEnded())}_onError(){if(!this._player)return;const e=this._player.error;let t,n=!1;const i=this._currentContent;let r,a,s,l=!1;i&&(n=i.isProtected(),t=i.toLogJSON(),l=i.isAd(),i.clearCachedBuffers());let c=!0;const u=!i||l||!this._fatalOnNextError,d=e&&e.msExtendedCode?`0x${(e.msExtendedCode>>>0).toString(16).toUpperCase()}`:null,p=`data:${(null==t?void 0:t.fileId)||"unknown"}`;if(e instanceof MediaError){switch(e.code){case MediaError.MEDIA_ERR_ABORTED:r=o.MEDIA_ABORTED,a="Media aborted.";break;case MediaError.MEDIA_ERR_NETWORK:r=o.MEDIA_NETWORK_ERROR,a="Network error.";break;case MediaError.MEDIA_ERR_DECODE:r=o.MEDIA_DECODING_ERROR,a="Media decoding error.",c=u;break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:r=o.MEDIA_NOT_SUPPORTED,a="Media not supported.",c=u;break;default:r=o.PLAYER_MEDIA_ERROR,a="Media error.",s=!0}a+=` (${e.message||d||p||e.toString()})`}else r=o.PLAYER_PLAYBACK_ERROR,a="Error message undefined",s=!0;this._bufferManager.abort(!0);const f=new fe(r,a);c||(f.unrecoverable=!0),f.listPlayerIgnore=l,f.debug.src_url=p,f.debug.protected=n,f.debug.extendedCode=d,f.debug.rawExCode=e&&e.msExtendedCode||null,s&&e&&(f.debug.nativeCode=e.code||null,f.debug.errorData=e),this._emitError(f,c,t)}_onLoadedMetadata(){this.emitSync(re.INTERNAL_PLAYER_LOADED_METADATA,null)}_onCanPlay(){this._buffering=!1,this.emitSync(re.INTERNAL_PLAYER_CANPLAY,null),this.emit(re.PLAYER_FIRST_BYTES,null)}_onCanPlayThrough(){this.emitSync(re.INTERNAL_PLAYER_CANPLAYTHROUGH,null)}_onWaiting(){clearTimeout(this._syntheticEndedToken);const e=this._player;if(!e||!this._currentContent)return;const t=e.seeking;this._buffering=!0;const n=this._currentContent.canLowerBitrate(),o=this._tracker;this.emit(re.PLAYER_BUFFERING_START,Object.assign({position:Jt(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,seeking:t},o.getStallsInformation())),this._getBufferingLatency().then((i=>{t||this._tracker.trackMsStalled(i),this.emit(re.PLAYER_BUFFERING_END,Object.assign({position:Jt(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,msStalled:i,seeking:t},o.getStallsInformation()))}))}_onPlayedThresholdReached(e){this._currentContent&&this._player&&this.emit(re.PLAYER_PLAYED_THRESHOLD_REACHED,{played:e.data.played,threshold:e.data.threshold,position:Jt(this._player.currentTime)})}_emitEnded(){this._currentContent&&"video"===this._currentContent.getMediaType()&&this.emit(re.PLAYER_ENDED_VIDEO,null),clearTimeout(this._pauseToken),this.emit(re.PLAYER_ENDED,null)}_emitError(e,t,n){Bt.error("Player Error",e,n,t),this._tracker.setHadError(!0),!this._disableCache&&n&&n.fileId&&this._cache.remove(n.fileId),this.emit(re.PLAYER_ERROR,{playId:this._playId,error:e,track:n,canPlayNext:t,position:this._player?Jt(this._player.currentTime):0})}_emitWarning(e,t){Bt.error("Player Warning",e,t,!0),this._tracker.trackWarning(),this.emit(re.PLAYER_WARNING,{playId:this._playId,error:e,track:t,canPlayNext:!0,position:this._player?Jt(this._player.currentTime):0})}_prepareMediaElement(e,t){return t.aborted||!this._upcomingContent?(Bt.info("Loading content dropped: operation aborted."),Promise.resolve(!1)):this._recreateMediaElement(this._upcomingContent.getPlayableCodecs(),t,this._upcomingContent.getMediaType(),this._upcomingContent.getKeySystem()===ae.FAIRPLAY).then((n=>{var o;if(!n||t.aborted)return Bt.info("Loading content dropped after recreate: operation aborted."),Promise.resolve(!1);this._player.playbackRate=(null===(o=this._loadingOptions)||void 0===o?void 0:o.useDefaultPlaybackSpeed)?1:this._playerSpeed;const i=this._player;return"VIDEO"===(null==i?void 0:i.tagName)&&(e.poster?i.poster=e.poster:i.removeAttribute("poster")),i&&this._upcomingContent&&this._upcomingContent.isProtected()&&this._emeManager&&(!i.mediaKeys||i.mediaKeys.shouldRefreshPerTrack||this._newMediaKeysPerTrack)?(Bt.info("Creating media keys"),this._emeManager.createMediaKeys(i).then((()=>!0)).catch((e=>(e.unrecoverable=!0,this._emitError(e,!1,this._upcomingContent?this._upcomingContent.toLogJSON():void 0),Promise.reject(e))))):Promise.resolve(!0)}))}_handleLoadingComplete(e){const t=this._currentContent&&this._currentContent.getMediaType(),n=this._getContainerElement("video"===t?this._videoPlayerContainer:this._audioPlayerContainer);return n&&this._player&&this._player.parentNode!==n&&(n.appendChild(this._player),"video"===t&&this.emit(re.PLAYER_VIDEO_ELEMENT_APPENDED,null)),this._upcomingContent=null,e}_handleLoadingError(e,t,n,o){if(this._upcomingContent=null,n.aborted)return Promise.resolve(!1);if(this._tracker.trackLoadFailed(),this.emit(re.PLAYER_LOADING_FAILED,{uri:e,logData:t.logData}),o){const n=o.track||{uri:e,fileId:t.fileId,format:t.format,deviceId:t.logData.deviceId};this._emitError(o,"StorageError"!==o.name||!!o.canPlayNext,n)}return Promise.reject(o)}_handleLoadedMetadata(e,t,n){if(e.aborted)return void Bt.info("LoadedMetadata operations dropped: operation aborted.");this._loaded=!0;const o=this._player;if(!o)return;this._bufferManager.dequeueUpdates();const i=n.position>o.duration?0:n.position;this._lastTimeUpdatePostion=0,(isNaN(o.currentTime)||o.currentTime<i)&&(Bt.info("Resetting initial position after metadata."),o.currentTime=i),this._tracker.trackLoadDone(Jt(o.currentTime)),this.emitSync(re.PLAYER_LOAD,{autoplay:n.autoplay,position:Jt(i),logData:t}),Promise.resolve().then((()=>{this._onTimeUpdate()}));let r=()=>{o.currentTime<i&&(Bt.info("Resetting initial position after playable."),o.currentTime=i)};n.autoplay&&!o.error&&(r=()=>{if(o.currentTime<i&&(Bt.info("Resetting initial position after playable."),o.currentTime=i),e.aborted)return void Bt.info("Play trigger dropped: operation aborted");new Promise((e=>e(this._player&&this._player.play()))).catch((e=>{if(e){if("NotSupportedError"===e.name)return Promise.reject(e);if("NotAllowedError"===e.name)return this.emit(re.PLAYER_AUTOPLAY_FAILED,null),Promise.reject(e)}return this._player?this._player.play():Promise.resolve()})).catch((()=>{this._onPause()}))}),o.readyState>2?(Bt.info("Ready to play, triggering play."),r()):(Bt.info("Waiting to be playable."),this.once(re.INTERNAL_PLAYER_CANPLAY,r))}_handleCanPlayThrough(e){e.aborted?Bt.info("CanPlayThrough operations dropped: operation aborted."):this._tracker.trackCanPlayThrough()}_loadContent(e,t){if(t.aborted||!this._upcomingContent)return Bt.info("Loading content dropped: operation aborted."),Promise.resolve(!1);if(!this._player)throw new fe(o.PLAYER_INVALID_INTERNAL_STATE,"Cannot load content without an HTMLMediaElement");this._canPreloadEmitted=!1;const n=this._upcomingContent;this._upcomingContent=null,this._currentContent=n,this._setAudioGain(n),this._subtitleManager.setVideoContent(n instanceof ht?n:null);const i=e.callback;i&&this.once(re.PLAYER_LOAD,(()=>{t.aborted?Bt.info("Load content event dropped: operation aborted."):i()})),this.once(re.INTERNAL_PLAYER_LOADED_METADATA,this._handleLoadedMetadata.bind(this,t,this._currentContent.getLogData(),e)),this.once(re.INTERNAL_PLAYER_CANPLAYTHROUGH,this._handleCanPlayThrough.bind(this,t));let r=e.position;const a=n.getCalculatedDuration();a&&r>a&&(r=e.position=0);try{this._player.currentTime=r}catch(e){Bt.warn("Cannot set initial position before loading.",e)}const s=n.isProtected();return this._tracker.setProtected(s),n.getKeySystem()===ae.FAIRPLAY?n instanceof vt&&!s?Promise.resolve(this._loadUnprotectedTrack()):Promise.resolve(this._loadHLSProtectedTrack(e,t)):n instanceof ht?this._loadVideoTrack(e,t):s?this._loadProtectedTrack(e,t):Promise.resolve(this._loadUnprotectedTrack())}_getBufferingLatency(){return new Promise((e=>{if(!this._player)return void e(0);const t=Date.now();this._player.addEventListener("canplaythrough",(function n(){this.removeEventListener("canplaythrough",n),e(Date.now()-t)}))}))}_loadVideoTrack(e,t){if(!(this._player&&this._currentContent&&this._currentContent instanceof ht))return Promise.resolve(!1);const n=this._currentContent;Bt.info("_loadVideoTrack");const i=()=>{this._currentContent&&this._currentContent.isProtected()&&this._requestLicense(t).then((()=>{t.aborted||(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}))};this._disableLicensePrefetch?this.once(re.INTERNAL_ENCRYPTED,i):this._bufferManager.once(re.BUFFER_SOURCE_OPEN,i);const r=this.getMediaSource();if(!r)throw new fe(o.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(r);const a=n.getVideoProfile(),s=n.getAudioProfile();return s||a?(this._tracker.trackVideoLoadStart({bitrate:null==a?void 0:a.video_bitrate,audioProfile:null!=s?s:void 0,videoProfile:null!=a?a:void 0}),this._tracker.trackBufferLoadStart(),this._bufferManager.setDuration(n.getCalculatedDuration()).then((()=>this._bufferManager.appendFragment(n,n.getInitFragment()))).then(this._onAppendedHeadSegment(t))):Promise.resolve(!1)}_loadHLSProtectedTrack(e,t){if(Bt.info("Load HLS Protected Track"),!this._player||!this._currentContent)return!1;const n=this._currentContent.getResolvedURL();if(!n)throw new he(o.FILE_NOT_RESOLVED,"Cannot load HLS protected track: File not resolved.");const i=e=>{e.data.fromPolyfill&&(this.removeListener(re.INTERNAL_ENCRYPTED,i),this._requestLicense(t,{initData:e.data.initData}))};this.on(re.INTERNAL_ENCRYPTED,i);const r=this._currentContent;if(r instanceof ht){const e=r.getVideoProfile(),t=r.getAudioProfile();this._tracker.trackVideoLoadStart({bitrate:null==e?void 0:e.video_bitrate,audioProfile:null!=t?t:void 0,videoProfile:null!=e?e:void 0})}this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(n,{bandwidth:0});const a=document.createElement("source");return a.src=this._currentContent.getHLSURL(),a.type=Ze,this._player.appendChild(a),this._player.load(),!0}_loadUnprotectedTrack(){if(!this._player||!this._currentContent)return!1;const e=this._currentContent.getResolvedURL();return!!e&&(Bt.info("_loadUnprotectedTrack",this._currentContent.getURI()),this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(e,{bandwidth:0}),this._player.src=e,this._player.load(),!0)}_onAppendedHeadSegment(e){return()=>!e.aborted&&(this._player&&this._player.spload&&this._player.spload(),Bt.info("Head segment appended."),!0)}_loadProtectedTrack(e,t){if(!(this._currentContent&&this._player&&this._currentContent instanceof vt))return Promise.resolve(!1);const n=this._currentContent;Bt.info("_loadProtectedTrack",n.getURI());const i=()=>this._requestLicense(t).then((()=>{t.aborted||(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}));this._disableLicensePrefetch?this.once(re.INTERNAL_ENCRYPTED,i):this._bufferManager.once(re.BUFFER_SOURCE_OPEN,i);const r=this.getMediaSource();if(!r)throw new fe(o.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(r),this._tracker.trackBufferLoadStart();const a=n.getFragmentForTime(e.position);let s=null;return a===n.getFirstFragment()?(Bt.info("Appending combined init and playable fragment."),s=this._bufferManager.appendFragment(n,n.getHeadFragment())):(Bt.info("Appending split init and playable fragment."),s=this._bufferManager.appendFragment(n,a)),s.then(this._onAppendedHeadSegment(t)).then((()=>Promise.resolve(!t.aborted)))}_requestLicense(e,t={}){if(e.aborted){const e="Request license dropped: operation aborted.";return Bt.info(e),Promise.resolve(!1)}if(!this._player||!this._currentContent||!this._emeManager)return Promise.resolve(!1);const n=Date.now(),o=this._player.mediaKeys,i=this._currentContent,r=i.getFileId(),a=i.getLogData(),s=i.toLogJSON(),l=i.getKeySystem(),c=i.getLicenseEndpoint();let u;if(c)u=Promise.resolve(c);else{if(!r)return Promise.reject(new TypeError("Missing: fileId or licenseEndpoint"));u=this._licenseURLResolver.get(l,i.getMediaType()).then((e=>e.replace(/\{contentId\}/,r)))}const d=this._emeManager,p=this._tracker;return p.setKeySystem(l),p.setKeySystemImpl(d.getKeySystemImpl()),Promise.all([u,i.getInitParams()]).then((([i,r])=>{p.setLicenseSessionLatency(Date.now()-n);const a=r.initDataType,s=t.initData||r.initData;if(o&&s&&a){const t=Object.assign(Object.assign({},r),{signal:e,initData:s,mediaKeys:o,licenseServer:i,initDataType:a});return d.createSessionWithParams(t)}return Promise.resolve(!1)})).then((t=>{if(e.aborted)return Bt.info("License tracking dropped: operation aborted."),Promise.resolve(!1);"boolean"!=typeof t&&"elapsed"in t&&(p.setLicenseGenerationLatency(t.elapsed.generate),p.setLicenseRequestLatency(t.elapsed.request),p.setLicenseUpdateLatency(t.elapsed.update));const o=Date.now()-n;return p.setKeyLatency(o),this.emit(re.PLAYER_KEY_RECEIVED,{requestTime:o,logData:a}),Bt.info("License updated."),Promise.resolve(!0)})).catch((t=>{if(e.aborted)return Promise.resolve(!1);const n=!t||!("canPlayNext"in t)||t.canPlayNext;return this._emitError(t,n,s),Promise.reject(t)}))}_onTimeUpdate(){var e;if(!this._loaded||!(null===(e=this._player)||void 0===e?void 0:e.readyState)||!this._currentContent)return;const t=this._currentContent,n=this._player.seeking,o=this._player.currentTime,i="video"===t.getMediaType();if(t.isProtected()&&this._disableBufferingBeforeLicense&&!this._licenseRequested)return void Bt.log("Dropping time update event: buffering before license disabled.");if(!n&&this._lastTimeUpdatePostion&&this._lastTimeUpdatePostion===o)return void Bt.warn("Dropping duplicate time update.");this._lastTimeUpdatePostion=n?0:o,t.getKeySystem()!==ae.FAIRPLAY&&(i||t.isProtected())&&this._bufferManager.progress(t,n,o);const r=this._player.duration,a=Jt(o),s=t.getLogData();n?(this._tracker.trackPositionChanged(a),this.emit(re.PLAYER_POSITION_CHANGED,{position:a,logData:s})):(this._tracker.trackProgress(a,"getCurrentBitrate"in t?t.getCurrentBitrate():0),this.emit(re.PLAYER_PROGRESS,{timestamp:Date.now(),position:a,played:this._tracker.getMSPlayed(),interval:500,logData:s})),!this._canPreloadEmitted&&r-o<=10?(this._canPreloadEmitted=!0,this.emit(re.PLAYER_CAN_PRELOAD,null)):this._canPreloadEmitted=!1,clearTimeout(this._syntheticEndedToken),this._synthesizeEnded&&t.isProtected()&&this._isPlaying()&&(this._syntheticEndedToken=setTimeout(this._onSyntheticEnded,Jt(r-o)))}_isPlaying(){return!!this._player&&!this._player.paused}_createAudioContent(e,t){const n={manifestLatency:0,resolveLatency:0};return(this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve({keySystem:ae.INVALID_SPOTIFY_KEY})).then((o=>vt.create({abrManager:this._abrManager,mediator:this._mediator,keySystem:o.keySystem,licenseEndpoint:t.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:e,fileId:t.fileId,fileFormat:t.fileFormat,format:t.format,isAd:t.isAd,resolvedURL:t.resolvedURL,noManifest:t.noManifest,preloadedManifest:t.preloadedManifest,logData:t.logData,disableCache:this._disableCache,emitWarning:this._emitWarning,audioGain:t.audioGain}).load(n))).then((e=>{const o=this._tracker;return o.setResolveLatency(n.resolveLatency),o.setManifestLatency(n.manifestLatency),e.isProtected()&&t.fileId&&!this._disableCache&&this._cache.set(t.fileId,e),e}))}_createVideoContent(e,t){const n={manifestLatency:0,resolveLatency:0},o=t.fileId;return(this._emeManager?this._emeManager.getKeySystemInfo():this.getMediaConfig().then((e=>({keySystem:ae.INVALID_SPOTIFY_KEY,audioFormats:e.formatsInfo.audio,videoFormats:e.formatsInfo.video})))).then((i=>ht.create({uri:e,abrManager:this._abrManager,mediator:this._mediator,resolver:this._videoResolver,keySystem:i.keySystem,licenseEndpoint:t.licenseEndpoint,fileId:o,noAuth:t.noAuth,format:le.MANIFEST_ID,isAd:t.isAd,transport:this._transport,videoFormats:i.videoFormats,videoResolution:this._videoResolution,audioFormats:i.audioFormats,disableCache:this._disableCache,disallowProfile:this._disallowProfile,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs,audioGain:t.audioGain}).load(n))).then((e=>{const t=this._tracker;return t.setResolveLatency(n.resolveLatency),t.setManifestLatency(n.manifestLatency),e.isProtected()&&o&&!this._disableCache&&this._cache.set(o,e),e}))}_preinitMediaElement(){if(this._player||!this._emeManager)return Promise.resolve(this);const e=(0,a.createAbortControllerLike)();return this._emeManager.getKeySystemInfo().then((t=>{var n,o;const i=[];return(null===(n=t.audioFormats)||void 0===n?void 0:n[0])&&i.push(t.audioFormats[0].contentType),(null===(o=t.videoFormats)||void 0===o?void 0:o[0])&&i.push(t.videoFormats[0].contentType),!!i.length&&this._recreateMediaElement(i,e.signal,i.length>1?"video":"audio",t.keySystem!==ae.FAIRPLAY)})).then((()=>this),(e=>(Bt.warn("Cannot precreate media element:",null==e?void 0:e.message),this)))}_setAudioGain(e){var t;null===(t=this._audioProcessor)||void 0===t||t.setAudioGain(e.getAudioGain())}getCodecInfo(){return{audiocodec:"mp3",bitrate:160}}getMediaSource(){return this._bufferManager.getMediaSource()}load(e,t,n){var i;const r=function(e,t){return t&&t.hasOwnProperty(e)}(t.uriProperty,e)?t.uriProperty:"uri",s=e[r];if(Bt.info("load",s),!s)return Promise.reject(new fe(o.PLAYER_CANNOT_FIND_PLAYABLE_URI,"Cannot find a playable URI."));if(!e.logData)return Promise.reject(new Error("Invalid track: logging info not specified"));this.stop(e.logData,e.mediaType),this._loaded=!1,this._licenseRequested=!1,this._buffering=!0,this._currentContent=null,this._subtitleManager.setVideoContent(null);const l=++this._playId;this._abortController=(0,a.createAbortControllerLike)();const c=this._abortController.signal,u=this._tracker;let d;u.trackLoadStart(s,e.fileId,l.toString(),e.logData,e.metadata),this.emit(re.PLAYER_BEFORE_LOAD,{track:e,options:t,logData:e.logData,uri:s,timestamp:Date.now()}),this._bufferManager.setPlayId(l),this._loadingOptions={position:jt(t.position||0),autoplay:!("autoplay"in t)||t.autoplay,poster:e.poster,useDefaultPlaybackSpeed:!!(null===(i=e.options)||void 0===i?void 0:i.useDefaultPlaybackSpeed),callback:n},u.setPlayIntended(this._loadingOptions.autoplay),u.setPlayedThreshold(t.playedThreshold);const p=this._cache,f="video"===e.mediaType?this._createVideoContent.bind(this,s,e):this._createAudioContent.bind(this,s,e);if(e.fileId){const t=e.fileId,n=this._preloadingTracks[t],o=this._disableCache?null:p.get(t);n?(Bt.info("Waiting for preloading track.",t),d=n.then((e=>(Bt.info("Preloading succeeded.",t),u.setResolveLatency(e.resolveLatency),u.setManifestLatency(e.manifestLatency),p.get(t))),(()=>(Bt.info("Preloading failed, creating new track",t),f())))):o?(Bt.info("Using cached track.",t,o),u.setMemoryCached(!0),d=Promise.resolve(o)):(Bt.info("Creating new track from fileId",t),d=f())}else Bt.info("Creating new track without fileId",e.resolvedURL),d=f();return d.then((t=>{if(t.isProtected()&&!this._emeManager)throw new fe(o.DISALLOW_PROTECTED_TRACK_ERROR,"Protected tracks not supported");t.setLogData(e.logData),u.setCalculatedDuration(Jt(t.getCalculatedDuration())),this._upcomingContent=t})).then(this._prepareMediaElement.bind(this,this._loadingOptions,c)).then((()=>{this._audioProcessor.setPlayer(this._player)})).then(this._loadContent.bind(this,this._loadingOptions,c)).then(this._handleLoadingComplete,this._handleLoadingError.bind(this,s,e,c))}preload(e){const t=!this._disableCache,n=e.uri,o=e.fileId,i=this._cache;if(!t||!o||!this._emeManager)return Promise.resolve(null);const r="video"===e.mediaType;if(!(Gt[e.format]&&!r)||i.get(o))return Promise.resolve(null);const a=this._preloadingTracks,s=a[o];if(s)return s;Bt.info("Preloading track",o);const l={manifestLatency:0,resolveLatency:0},c=this._emeManager.getKeySystemInfo().then((t=>vt.create({abrManager:this._abrManager,keySystem:t.keySystem,licenseEndpoint:e.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:n,fileId:o,format:e.format,fileFormat:e.fileFormat,isAd:e.isAd,resolvedURL:e.resolvedURL,noManifest:e.noManifest,preloadedManifest:e.preloadedManifest,logData:e.logData,disableCache:this._disableCache,emitWarning:this._emitWarning,audioGain:e.audioGain}).load(l))).then((t=>Promise.all([t,"MP4_CBCS"!==e.format?t.getBufferForFragment(t.getHeadFragment()):null]))).then((([e])=>(i.set(o,e),delete a[o],Bt.info("Cached",o),l))).catch((e=>(delete a[o],Bt.warn("Preloading error",e),this.emit(re.PLAYER_PRELOADING_ERROR,{error:e,track:e.track||null,canPlayNext:!("canPlayNext"in e)||e.canPlayNext,preloading:!0}),Promise.reject(e))));return a[o]=c,c}togglePlay(){return this._isPlaying()?this.pause():this.resume()}setSubtitleLanguage(e){this._subtitleManager.setLanguage(e)}getSubtitleLanguages(){return this._subtitleManager.getAvailableLanguages()}getActiveSubtitleLanguage(){return this._subtitleManager.getActiveLanguage()}deactivateCueEvents(){this._subtitleManager.deactivateListeners()}activateCueEvents(){this._subtitleManager.activateListeners()}setVolume(e,t){if(!this.emitSync(re.PLAYER_BEFORE_VOLUME_CHANGE,{volume:e,options:t}).defaultPrevented){if(e<0||e>1)throw new fe(o.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE,"Volume should be in range [0, 1]");this._playerVolume=e,this._player&&(this._player.volume=this._cubicVolume?e*e*e:e)}}getVolume(){return this._playerVolume}getPlayerState(){var e,t,n;const o=this._player,i=this._currentContent,r={src:(null==o?void 0:o.src)?`data:${(null==i?void 0:i.getFileId())||"unknown"}`:void 0,height:(null==o?void 0:o.clientWidth)||0,width:(null==o?void 0:o.clientHeight)||0},a={};if(i){const[e,t]=i.getPlayableCodecs();a.audio_format=e,a.video_format=t,i instanceof ht&&o instanceof HTMLVideoElement&&(a.video_height=o.videoHeight,a.video_width=o.videoWidth,r.poster=o.poster)}return{playing:null!==(e=!(null==o?void 0:o.paused))&&void 0!==e&&e,position:o?Jt(o.currentTime):0,duration:o?Jt(o.duration):0,volume:null!==(t=this._playerVolume)&&void 0!==t?t:1,playback_speed:null!==(n=null==o?void 0:o.playbackRate)&&void 0!==n?n:0,buffering:this._buffering,media_type:(null==i?void 0:i.getMediaType())||null,media_info:a,player_element:r}}getPlayerPosition(){return this._player?Jt(this._player.currentTime):0}seek(e){var t;if(!this._player)return;const n=null===(t=this._abortController)||void 0===t?void 0:t.signal,o=()=>{if(!this._player||(null==n?void 0:n.aborted))return void Bt.info("Seek dropped: operation aborted.");let t=jt(e);t<0?t=0:t>=this._player.duration&&(t=this._player.duration),this._player.currentTime=t};this._loaded?o():this.once(re.PLAYER_LOAD,o),this._getBufferingLatency().then((e=>{this._tracker.trackSeekRebuffering(e)}))}pause(){return new Promise((e=>{this._player&&this._isPlaying()?e(this._player&&this._player.pause()):e()}))}resume(){return this._audioProcessor.resume().then((()=>{this._player&&!this._isPlaying()&&Promise.resolve(this._player.play())}))}stop(e,t){var n,o;const i=[],r=e||{};this.emit(re.PLAYER_BEFORE_STOP,{timestamp:Date.now(),logData:r}),null===(n=this._abortController)||void 0===n||n.abort(),this._tracker.trackStopped(this._player?Jt(this._player.currentTime):-1,e,this.getStatistics()||void 0),this._bufferManager.abort(!0),this._emeManager&&i.push(this._emeManager.destroySessions());const a=this._player;if(a){this._subtitleManager.clear(),this._fatalOnNextError=this._shouldNextErrorBeFatal(),this._fatalOnNextError&&Bt.warn("MediaError detected: next immediate media error will be fatal.");const e=a.src;if(e)Vt.test(e)&&URL.revokeObjectURL(e),a.removeAttribute("src");else{const e=Et(a.getElementsByTagName("source"));Bt.info(`HTMLSourceElements to removed: ${e.length}`);for(const t of e)a.removeChild(t);Bt.info("Releasing HLS URLs"),null===(o=this._currentContent)||void 0===o||o.releaseHLSURL()}a.load()}if(this._currentContent&&this._disableCache&&this._currentContent.clearCachedBuffers(),a&&this._currentContent&&"video"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._videoPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"video"!==t)&&(this._subtitleManager.setPlayer(null),e.removeChild(a),this.emit(re.PLAYER_VIDEO_ELEMENT_REMOVED,null))}else if(a&&this._currentContent&&"audio"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._audioPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"audio"!==t)&&e.removeChild(a)}return this.emit(re.PLAYER_STOPPED,null),Promise.all(i).then((()=>!0))}hideSubtitles(){this._subtitleManager.hide()}showSubtitles(){this._subtitleManager.show()}areSubtitlesShown(){return this._subtitleManager.visible()}getKeySystemInfo(){return this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve(null)}getVideoVariants(){if(!(this._currentContent&&this._currentContent instanceof ht))return[];const e=[],t=this._currentContent.getVideoProfiles();for(const n of t)e.push({width:n.video_width,height:n.video_height,bitrate:n.video_bitrate});return e}setPreferredBitrate(e){return"number"!=typeof e?Promise.resolve(se.INVALID):(this._preferredBitrate=e,this._currentContent&&"video"===this._currentContent.getMediaType()&&e>0&&this._bufferManager.abort(!0),this._abrManager.overrideBitrate(e),Promise.resolve(se.SUCCESS))}getCurrentBandwidth(){return this._abrManager.getBandwidthEstimate()}setBackgrounded(e){this._abrManager.overrideBitrate(e?1e-32:this._preferredBitrate)}setVideoResolution(e){this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),this._currentContent instanceof ht&&this._currentContent.setVideoResolution(this._videoResolution)}activateElement(){return this._playerActivated||!this._player||this._player.src?(this._audioProcessor.resume(),!1):(this._audioProcessor.resume().then((()=>{var e;return null===(e=this._player)||void 0===e?void 0:e.load()})),this._playerActivated=!0,!0)}getMediaConfig(){return void 0===this._mediaConfig?function(e,t){const n=t||Ht("video"),o=e=>{n.canPlayType("audio/mp3")&&(e.formats.audio.push("audio/mp3"),e.formatsInfo.audio.push({mimeType:"audio/mp3",codec:"mp3",contentType:'audio/mp3; codecs="mp3"'}),e.supports.unprotected_audio=!0)};if(e)return e.getKeySystemInfo().then((e=>{const{audioFormats:t,videoFormats:n}=e,i={supports:{protected_audio:!!t.length,unprotected_audio:!0,protected_video:!!n.length,unprotected_video:!0},formats:{audio:t.map((e=>e.contentType)),video:n.map((e=>e.contentType))},formatsInfo:{audio:[...t],video:[...n]}};return i.keysystem=e.keySystem,i.keysystem_impl=e.keySystemImpl,o(i),i}));const i="undefined"!=typeof window&&window.MediaSource?e=>MediaSource.isTypeSupported(e):e=>"probably"===n.canPlayType(e)||"probably"===n.canPlayType(e.split(";")[0]),r=Be([Ue[0]],i),a=[],s=[],l=[],c=[];if(r){const{audioCapabilities:e,videoCapabilities:t}=r;for(const t of e)a.push(t.contentType),l.push(Ge(t.contentType));for(const e of t)s.push(e.contentType),c.push(Ge(e.contentType))}const u={supports:{protected_audio:!1,unprotected_audio:!!a.length,protected_video:!1,unprotected_video:!!s.length},formats:{audio:a,video:s},formatsInfo:{audio:l,video:c}};return o(u),Promise.resolve(u)}(this._emeManager,this._player).then((e=>(this._mediaConfig=e,this._mediaConfig))):Promise.resolve(this._mediaConfig)}setPlaybackSpeed(e){var t;return!(!isFinite(e)||e<=0)&&(!(null===(t=this._loadingOptions)||void 0===t?void 0:t.useDefaultPlaybackSpeed)&&(this._playerSpeed=null!=e?e:1,this._player&&(this._player.playbackRate=this._playerSpeed,this._tracker.trackSpeedChanged(this._playerSpeed)),!0))}getStatistics(){return this._player&&this._currentContent?this._statistics.getSample(this._player,this._currentContent):null}getAudioProcessor(){return this._audioProcessor}}class Yt extends Error{constructor(e,t){super(t),this.debug={},this.name="LoggingError",this.message=t,this.code=e}}const Wt="7.21.3-1cb09a4",zt="7.21.3",qt=de.P.forTag("playback.logger");class Xt extends l.vp{constructor(e){super(),this._currentTrackingData=null,this._sequenceId=0,this._sequenceSessionStorage={},this._sessionId="0",this._transport=e.transport,this._logSender=e.logSender,this._player=e.player,this._init()}static create(e){return new Xt(e)}_init(){const e=this._player;e.on(re.PLAYER_LOAD,this._onPlayerLoad.bind(this)),e.on(re.PLAYER_ERROR,this._onError.bind(this,!1)),e.on(re.PLAYER_WARNING,this._onError.bind(this,!0)),e.on(re.PLAYER_PRELOADING_ERROR,this._onError.bind(this,!1)),e.on(re.PLAYER_TRACKING_DATA_CREATED,this._onTrackingDataCreated.bind(this)),e.on(re.PLAYER_TRACKING_DATA_FINALIZED,this._onTrackingDataFinalized.bind(this)),e.on(re.PLAYER_PLAYBACK_START,this._onPlaybackStart.bind(this))}_emitError(e,t){this.emit(re.LOGGER_ERROR,{error:e,trackingData:t})}_onError(e,t){var n,i,r;const a=t.data,s=this._currentTrackingData;if(!s||s.noLog)return;const l=a.error,c=null!==(n=null==l?void 0:l.debug)&&void 0!==n?n:{};c.position="position"in a?a.position:0;const u={track:a.track||{},debug:c,preloading:"preloading"in a&&!!a.preloading,session_id:this._sessionId,playback_id:s.playbackId||null,player_play_id:"playId"in a?a.playId:null,http_status_code:null!==(i=null==l?void 0:l.status)&&void 0!==i?i:null,license_server:null!==(r=null==l?void 0:l.licenseServer)&&void 0!==r?r:null};this._logError(l.code||o.UNKNOWN,l,u,s,e)}_onPlayerLoad(e){const t=e.data.logData;if(t)if(t.impressionURLs)for(const e of t.impressionURLs)this._logImpression(e);else t.impressionURL&&this._logImpression(t.impressionURL)}_onPlaybackStart(e){const t=e.data.trackingData;t.noLog||t.noStats||this._logPlaybackStart(t)}_onTrackingDataCreated(e){const t=e.data.trackingData;t.noLog?this._currentTrackingData=null:(this._currentTrackingData=t,this._setSessionId(),t.noTSV||this._setSequenceId())}_setSessionId(){this._sessionId=this._transport.getInitTime().toString()}_setSequenceId(){this._sessionId&&(this._sequenceId=this._getSequenceId(this._sessionId))}_onTrackingDataFinalized(e){const t=e.data.trackingData;if(t.noLog)return;const n=this._sessionId!==this._transport.getInitTime().toString();if(n&&this._setSessionId(),t.playbackId&&!t.noTSV){if(n&&this._setSequenceId(),!t.playIntended&&!t.played)return void this._rollbackSequenceId(this._sessionId);this._logTrackStreamVerification(t)}t.noStats||this._logPlaybackStats(t)}_logTrackStreamVerification(e){const t={play_track:e.currentTrackUri,playback_id:e.playbackId,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,session_id:this._sessionId,sequence_id:this._sequenceId,next_playback_id:e.nextPlaybackId};qt.debug("Logged TrackStreamVerification",t),this._logSender.logTrackStreamVerification(t).catch((n=>{const i=new Yt(o.TSV_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,e)}))}_logPlaybackStats(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,internal_play_id:e.internalPlayId,memory_cached:e.memoryCached,persistent_cached:e.persistentCached,audio_format:e.audiocodec||"",video_format:e.videocodec||"",manifest_id:e.fileId,protected:!1,key_system:e.keySystem,key_system_impl:e.keySystemImpl,urls_json:JSON.stringify(e.urls),start_time:e.loadTime,end_time:e.stopTime,external_start_time:e.externalLoadTime,ms_play_latency:e.msPlayLatency,ms_init_latency:e.msInitLatency,ms_head_latency:e.msHeadLatency,ms_manifest_latency:e.msManifestLatency,ms_resolve_latency:e.msResolveLatency,ms_license_session_latency:e.msLicenseSessionLatency,ms_license_generation_latency:e.msLicenseGenerationLatency,ms_license_request_latency:e.msLicenseRequestLatency,ms_license_update_latency:e.msLicenseUpdateLatency,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,ms_file_duration:e.msFileDuration,ms_actual_duration:e.msActualDuration,ms_metadata_duration:e.msMetadataDuration,ms_start_position:e.startPosition,ms_end_position:e.position,ms_seek_rebuffer:e.msSeekRebuffering,ms_seek_rebuffer_longest:e.maxMsSeekRebuffering,ms_stall_rebuffer:e.msStalled,ms_stall_rebuffer_longest:e.maxMsStalled,n_stalls:e.nStalls,n_rendition_upgrade:e.nRenditionUpgrade,n_rendition_downgrade:e.nRenditionDowngrade,bps_bandwidth_max:e.bpsBandwidthMax,bps_bandwidth_min:e.bpsBandwidthMin,bps_bandwidth_avg:e.bpsBandwidthAvg,n_seekback:e.nSeeksBackward,n_seekforward:e.nSeeksForward,start_bitrate:e.startBitrate||e.bitrate||0,audio_quality:e.audioQuality,time_weighted_bitrate:e.timeWeightedBitrate,reason_start:e.reasonStart,reason_end:e.reasonEnd,initially_paused:!e.playIntended,had_error:e.hadError,n_warnings:e.nWarnings,n_navigator_offline:e.nOffline,session_id:this._sessionId,sequence_id:this._sequenceId,client_id:e.clientId,correlation_id:e.correlationId,n_dropped_video_frames:e.droppedVideoFrames,n_total_video_frames:e.totalVideoFrames,resolution_max:e.maxResolution||0,resolution_min:e.minResolution||0};qt.info("Logging PlaybackStats"),this._logSender.logJSSDKPlaybackStats(t).catch((n=>{const i=new Yt(o.PLAYBACK_STATS_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,e)}))}_logPlaybackStart(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,session_id:this._sessionId,ms_start_position:e.startPosition,initially_paused:!e.playIntended,client_id:e.clientId,correlation_id:e.correlationId};qt.info("Logging PlaybackStart"),this._logSender.logJSSDKPlaybackStart(t).catch((n=>{const i=new Yt(o.PLAYBACK_START_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,e)}))}_getSequenceId(e){let t=this._sequenceSessionStorage[e];return t||(t=0),t+1>=9007199254740991&&(t=0),this._sequenceSessionStorage[e]=t+1,t}_rollbackSequenceId(e){const t=this._sequenceSessionStorage[e];t&&(this._sequenceSessionStorage[e]=Math.max(t-1,0))}_logImpression(e){this._transport.request(e,{forget:!0}).catch((function(e){qt.warn("Unable to send impression request",e)}))}_logError(e,t,n,o,i){let r="";t&&(r=t.stack||"",r||(r=t.toString()));const a={source:"playback",source_version:Wt||ee.eV.UNKNOWN,type:e||ee.eV.UNKNOWN,message:t&&t.message||ee.eV.EMPTY,stack:JSON.stringify(r),json_data:JSON.stringify(n||{}),json_data_version:"1.0.0",client_id:o.clientId,correlation_id:o.correlationId};i?this._logSender.logJSSDKWarning(a).catch((e=>qt.warn("Failed to log warning",a,e))):this._logSender.logJSSDKError(a).catch((e=>qt.warn("Failed to log error",a,e)))}}class Zt extends Error{constructor(e=o.STORAGE_ERROR,t="Storage Error"){super(t),this.status=-1,this.fileId="",this.debug={},this.canPlayNext=!0,this.code=e,this.message=t,this.name="StorageError"}}const Qt=de.P.forTag("playback.storage_resolve");class $t{constructor(e){this._transport=e}_parseResponse(e,t){var n;let i;if(200!==t.status)return i=new Zt(o.STORAGE_FAILED_WITH_STATUS,`Storage Resolve responded with ${t.status}`),i.status=t.status,i.fileId=e,Promise.reject(i);const r=t.body;if(!(null===(n=null==r?void 0:r.cdnurl)||void 0===n?void 0:n.length))return i=new Zt(o.STORAGE_RETURNED_NO_TRACKS,`Storage Resolve returned no tracks for fileId ${e}`),i.fileId=e,Promise.reject(i);const a={uri:r.cdnurl[0],uris:r.cdnurl,protection:"cenc"};return Promise.resolve(a)}getCDNURL(e,t){Qt.info("Requesting CDN URL for ",e);const n="files/audio/interactive",o=`@webgate/storage-resolve/${t?`v2/${n}/${t}/${e}`:`${n}/${e}`}?version=10000000&product=9&platform=39&alt=json`;return this._transport.request(o,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then(this._parseResponse.bind(this,e))}getManifest(e){const t=`https://seektables.scdn.co/seektable/${e}.json`;return Qt.info("Requesting JSON manifest for ",e),this._transport.request(t,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then((t=>{let n;return 200!==t.status?(n=new Zt(o.STORAGE_TRACK_MANIFEST_FAILED,`Track manifest request failed with status code ${t.status}`),n.debug.file_id=e,n.status=t.status,Promise.reject(n)):t.body?t.body:(n=new Zt(o.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest."),n.debug.file_id=e,n.status=t.status,Promise.reject(n))}))}}class en extends Error{constructor(e,t){super(t),this.debug={},this.name="TrackingError",this.message=t,this.code=e}}class tn{constructor(){this._version="1.0.0",this._map={}}clear(){this._map={}}track(e,t){let n=this._map[e];n||(n={url:e,segments:0,bandwidths:[],totalBandwidth:0},this._map[e]=n),n.segments+=1,n.bandwidths.push(t.bandwidth),n.totalBandwidth+=t.bandwidth}toJSON(){const e=[];for(const t in this._map){if(!this._map[t])continue;const n=this._map[t];n&&e.push({url:t,segments:n.segments,avg_bw:parseFloat((n.totalBandwidth/n.bandwidths.length).toFixed(7))})}return{version:this._version,urls:e}}}class nn{constructor(){this._bitrates={},this._isFinalized=!1,this._needsEndSegment=!1,this._segments=[],this._cdnURLTracker=new tn,this._currentSpeed=1,this.audiocodec=null,this.bitrate=0,this.audioQuality=void 0,this.bufferLoadStartTime=0,this.urls={},this.currentTrackUri="",this.displayTrack="",this.externalLoadTime=0,this.fileId="",this.gaiaDevId="none",this.hadError=!1,this.internalPlayId="",this.isProtected=!1,this.keySystem="",this.keySystemImpl="",this.lastPlayPosition=-1,this.loadTime=0,this.localTimeMs=-1,this.maxContinuous=0,this.maxMsSeekRebuffering=0,this.maxMsStalled=0,this.memoryCached=!1,this.msActualDuration=0,this.msMetadataDuration=0,this.msFileDuration=0,this.msHeadLatency=0,this.msInitLatency=0,this.msKeyLatency=0,this.msLicenseGenerationLatency=0,this.msLicenseRequestLatency=0,this.msLicenseSessionLatency=0,this.msLicenseUpdateLatency=0,this.msManifestLatency=0,this.msPlayed=0,this.msNominalPlayed=0,this.msPlayedUnion=0,this.msPlayLatency=0,this.msResolveLatency=0,this.msSeekRebuffering=0,this.msSeeksBackward=0,this.msSeeksForward=0,this.nextPlaybackId="",this.nOffline=0,this.noLog=!1,this.noTSV=!1,this.noStats=!1,this.nWarnings=0,this.msStalled=0,this.nSeeksBackward=0,this.nSeeksForward=0,this.nSpeedChanges=!1,this.nStalls=0,this.nRenditionUpgrade=0,this.nRenditionDowngrade=0,this.bpsBandwidthMax=0,this.bpsBandwidthMin=0,this.bpsBandwidthAvg=0,this.totalBandwidth=0,this.lastBitrate=0,this.persistentCached=!1,this.playbackId="",this.playContext="",this.played=!1,this.position=0,this.reasonEnd="unknown",this.reasonStart="unknown",this.referrer="unknown",this.referrerVendor="unknown",this.referrerVersion="unknown",this.sourceEnd="unknown",this.sourceStart="unknown",this.startPosition=0,this.stopTime=0,this.streamingRule="none",this.timeWeightedBitrate=0,this.totalBytes=0,this.playIntended=!1,this.videocodec=null,this.clientId="unknown",this.correlationId="unknown",this.droppedVideoFrames=0,this.totalVideoFrames=0,this.maxResolution=0,this.minResolution=0}static create(){return new nn}_calculateUnion(){const e=this._segments.slice(0);let t=0,n=0,o=0,i=0,r=0,a=0,s=this.maxContinuous;for(;r<e.length;r++)r%2!=0&&void 0!==e[r-1]&&"start"===e[r-1].type&&(a=e[r].time-e[r-1].time,s=a>s?a:s);for(this.maxContinuous=s,e.sort(((e,t)=>e.time-t.time));i<e.length;i++)"start"===e[i].type&&(0===n&&(o=i),++n),"end"===e[i].type&&(--n,0===n&&(t+=e[i].time-e[o].time));return t}_calculateWeightedBitrate(e){const t=this._bitrates;let n=0;for(const o in t)o&&t.hasOwnProperty(o)&&e>0&&(n+=parseInt(o,10)*t[o]/e);return Math.round(n)}registerVideoVariant(e){const t=e.bitrate;t&&(this._bitrates[t]=this._bitrates[t]||0,this.startBitrate||(this.startBitrate=t)),e.audioProfile&&(this.audiocodec=e.audioProfile.audio_codec),e.videoProfile&&(this.videocodec=e.videoProfile.video_codec,this.lastBitrate=e.videoProfile.video_bitrate,this.minResolution=e.videoProfile.video_resolution,this.maxResolution=e.videoProfile.video_resolution)}addStartSegment(){this._segments.push({type:"start",time:this.position}),this._needsEndSegment=!0}addEndSegment(){this._needsEndSegment&&(this._segments.push({type:"end",time:this.position}),this._needsEndSegment=!1)}addMSPlayed(e){if(e){if(e<0)throw new TypeError(`Cannot add negative msPlayed value: ${e}`);this.msPlayed+=e/this._currentSpeed,this.msNominalPlayed+=e}}addSpeedChange(e){this.nSpeedChanges=!0,this._currentSpeed=e}trackBitrate(e,t){const n=e||"dummy";this._bitrates[n]=this._bitrates[n]||0,this._bitrates[n]+=t}trackBufferURL(e,t){this._cdnURLTracker.track(e,t)}finalize(){if(this._isFinalized)throw new en(o.TRACK_DATA_ALREADY_FINALIZED,"TrackData already finalized.");this.msPlayedUnion=this._calculateUnion(),this.nSeeksBackward||this.nSeeksForward||this.nSpeedChanges||(this.msNominalPlayed=this.maxContinuous=this.msPlayedUnion,this.msPlayed=this.msNominalPlayed/this._currentSpeed,this.nSpeedChanges=!1);const e=this.msPlayed;return this.timeWeightedBitrate=this._calculateWeightedBitrate(e),this.startBitrate||(this.startBitrate=this.bitrate),this.urls=this._cdnURLTracker.toJSON(),this._isFinalized=!0,!0}getURLsJSON(){var e,t;return null!==(t=null===(e=this._cdnURLTracker.toJSON().urls)||void 0===e?void 0:e.map((({url:e})=>e)))&&void 0!==t?t:[]}getPlaybackStats(){let e;switch(this.keySystem){case ae.WIDEVINE:e="widevine";break;case ae.PLAYREADY:case ae.PLAYREADY_HARDWARE:e="playready";break;default:e="none"}return{ms_total_est:this.msActualDuration,ms_metadata_duration:this.msMetadataDuration,ms_manifest_latency:this.msManifestLatency,ms_latency:this.msPlayLatency,start_offset_ms:this.startPosition,ms_initial_buffering:this.msPlayLatency,ms_seek_rebuffering:this.msSeekRebuffering,ms_stalled:this.msStalled,max_ms_seek_rebuffering:this.maxMsSeekRebuffering,max_ms_stalled:this.maxMsStalled,n_stalls:this.nStalls,n_rendition_upgrade:this.nRenditionUpgrade,n_rendition_downgrade:this.nRenditionDowngrade,bps_bandwidth_max:this.bpsBandwidthMax,bps_bandwidth_min:this.bpsBandwidthMin,bps_bandwidth_avg:this.bpsBandwidthAvg,audiocodec:this.audiocodec?this.audiocodec.toLowerCase():void 0,videocodec:this.videocodec?this.videocodec.toLowerCase():void 0,start_bitrate:this.startBitrate||this.bitrate||void 0,full_screen:void 0,time_weighted_bitrate:this.timeWeightedBitrate,buffering_percentage:void 0,prefetched_bytes:void 0,prefetched_bytes_loaded:void 0,prefetched_initial_bitrate:void 0,key_system:e,ms_key_latency:this.msKeyLatency,total_bytes:this.totalBytes,local_time_ms:this.localTimeMs,ms_played_background:void 0,n_dropped_video_frames:this.droppedVideoFrames,n_total_video_frames:this.totalVideoFrames,resolution_max:this.maxResolution,resolution_min:this.minResolution}}isFinalized(){return this._isFinalized}}const on=de.P.forTag("playback.tracker");class rn extends l.vp{constructor(e={}){super(),this._playedThreshold=31e3,this._playedThresholdReached=!1,this._trackingData=null,this._playedThreshold=e.playerThreshold||31e3}static create(e){return new rn(e)}_checkPlayedThreshold(){const e=this._trackingData;!e||!this._playedThreshold||this._playedThresholdReached||e.msPlayed<this._playedThreshold||(this._playedThresholdReached=!0,this.emit(re.TRACKER_PLAYED_THRESHOLD_REACHED,{played:e&&e.msPlayed||0,threshold:this._playedThreshold}))}getMSPlayed(){return this._trackingData?this._trackingData.msPlayed:0}getStallsInformation(){return this._trackingData?{nStalls:this._trackingData.nStalls,msTotalStalled:this._trackingData.msStalled}:{nStalls:0,msTotalStalled:0}}trackLoadStart(e,t,n,o,i){const r=nn.create();this._trackingData=r,this._playedThresholdReached=!1,r.fileId=null!=t?t:"",r.currentTrackUri=e,r.loadTime=Date.now(),r.internalPlayId=n,r.externalLoadTime=o.externalLoadTime||0,r.displayTrack=o.displayTrack||"",r.playbackId=o.playbackId||"",r.playContext=o.playContext||"",r.reasonStart=o.reason||"unknown",r.sourceStart=o.source||"unknown",r.clientId=o.clientId||"",r.correlationId=o.correlationId||"";const a=o.referrer||{};r.referrer=void 0!==a.name?a.name:"unknown",r.referrerVersion=void 0!==a.version?a.version:"unknown",r.referrerVendor=void 0!==a.vendor?a.vendor:"unknown";const s=o.format||{};s.codec&&(r.audiocodec=s.codec.toLowerCase()),s.bitrate&&(r.bitrate=s.bitrate),s.audioQuality&&(r.audioQuality=s.audioQuality),r.gaiaDevId=o.deviceId||"none",r.noLog=o.noLog||!1,r.noTSV=o.noTSV||!1,r.noStats=o.noStats||!1,r.contentMetadata=i,"number"==typeof(null==i?void 0:i.displayDuration)&&(r.msMetadataDuration=i.displayDuration),this.emit(re.TRACKER_TRACKING_DATA_CREATED,{trackingData:r})}trackBufferLoadStart(){const e=this._trackingData;e&&(e.bufferLoadStartTime=Date.now())}trackBytesDownloaded(e){const t=this._trackingData;t&&(t.totalBytes+=e)}trackLoadDone(e){const t=this._trackingData;if(!t)return;const n=Date.now();t.msInitLatency=n-t.bufferLoadStartTime,t.localTimeMs=n,t.position=e,t.addStartSegment()}trackPlay(e,t){const n=this._trackingData;n&&(n.played||this.emit(re.TRACKER_PLAYBACK_START,{trackingData:n}),n.played=!0,n.position=e,n.startPosition=e,n.addSpeedChange(t||1))}trackCanPlayThrough(){const e=this._trackingData;if(!e||e.msPlayLatency)return;const t=Date.now();e.msPlayLatency=t-e.loadTime,e.msHeadLatency=t-e.bufferLoadStartTime}trackBufferURL(e,t){const n=this._trackingData;n&&n.trackBufferURL(e,t)}trackNavigatorOffline(){const e=this._trackingData;e&&(e.nOffline+=1)}trackSeekRebuffering(e){const t=this._trackingData;t&&(e>t.maxMsSeekRebuffering&&(t.maxMsSeekRebuffering=e),t.msSeekRebuffering+=e)}trackMsStalled(e){const t=this._trackingData;t&&(e>t.maxMsStalled&&(t.maxMsStalled=e),t.msStalled+=e,t.nStalls++)}trackLoadFailed(){const e=this._trackingData;e&&(e.msPlayLatency=Date.now()-e.loadTime,e.position=0,e.addStartSegment())}trackStopped(e,t,n){var o,i,r,a;const s=this._trackingData;if(!s||s.isFinalized())return;const l=Date.now();if(s.stopTime=l,s.lastPlayPosition>=0&&e>=0&&s.lastPlayPosition<e){const t=e-s.lastPlayPosition;s.addMSPlayed(t)}s.addEndSegment(),s.sourceEnd=t.source||"unknown",s.reasonEnd=t.reason||"unknown",s.nextPlaybackId=t.playbackId||"",s.droppedVideoFrames=null!==(i=null===(o=null==n?void 0:n.video)||void 0===o?void 0:o.droppedVideoFrames)&&void 0!==i?i:0,s.totalVideoFrames=null!==(a=null===(r=null==n?void 0:n.video)||void 0===r?void 0:r.totalVideoFrames)&&void 0!==a?a:0,s.finalize(),on.info("Tracker data finalized.");const c=s.getPlaybackStats();this.emit(re.TRACKER_TRACKING_DATA_FINALIZED,{trackingData:s,playbackStats:c})}trackPositionChanged(e){const t=this._trackingData;if(!t)return;const n=t.position;e!==n&&(t.addEndSegment(),e>n?(t.nSeeksForward++,t.msSeeksForward+=e-n):e<n&&(t.nSeeksBackward++,t.msSeeksBackward+=n-e),t.position=e,t.lastPlayPosition=-1,t.addStartSegment())}trackPlaying(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackPaused(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackProgress(e,t){const n=this._trackingData;if(!(null==n?void 0:n.played))return;let o=0;if(n.lastPlayPosition>=0){if(o=e-n.lastPlayPosition,o<0)return void on.warn("Skipping msPlayed calculation: late progress event.");n.addMSPlayed(o)}this._checkPlayedThreshold(),n.position=e,n.lastPlayPosition=e,t&&n.trackBitrate(t,o)}trackSpeedChanged(e){const t=this._trackingData;t&&t.addSpeedChange(e)}trackVideoLoadStart(e){const t=this._trackingData;t&&t.registerVideoVariant(e)}trackWarning(){const e=this._trackingData;e&&e.nWarnings++}trackOffline(){const e=this._trackingData;e&&e.nOffline++}setActualDuration(e){const t=this._trackingData;t&&(t.msActualDuration=e)}setKeySystem(e){const t=this._trackingData;t&&(t.keySystem=e)}setKeySystemImpl(e){const t=this._trackingData;t&&(t.keySystemImpl=e)}setManifestLatency(e){const t=this._trackingData;t&&(t.msManifestLatency=e)}setPlayIntended(e){const t=this._trackingData;t&&(t.playIntended=e)}setKeyLatency(e){const t=this._trackingData;t&&(t.msKeyLatency=e)}setMemoryCached(e){const t=this._trackingData;t&&(t.memoryCached=e)}setPersistentCached(e){const t=this._trackingData;t&&(t.persistentCached=e)}setProtected(e){const t=this._trackingData;t&&(t.isProtected=e)}setHadError(e){const t=this._trackingData;t&&(t.hadError=e)}setLicenseSessionLatency(e){const t=this._trackingData;t&&(t.msLicenseSessionLatency=e)}setLicenseGenerationLatency(e){const t=this._trackingData;t&&(t.msLicenseGenerationLatency=e)}setLicenseRequestLatency(e){const t=this._trackingData;t&&(t.msLicenseRequestLatency=e)}setLicenseUpdateLatency(e){const t=this._trackingData;t&&(t.msLicenseUpdateLatency=e)}setResolveLatency(e){const t=this._trackingData;t&&(t.msResolveLatency=e)}setCalculatedDuration(e){const t=this._trackingData;t&&(t.msFileDuration=e)}setPlayedThreshold(e){this._playedThreshold=e}trackFragment(e){const t=this._trackingData;if(!t)return;const{bandwidth:n,resolution:o}=e;o&&((o<t.minResolution||!t.minResolution)&&(t.minResolution=o),o>t.maxResolution&&(t.maxResolution=o)),(n<t.bpsBandwidthMin||!t.bpsBandwidthMin)&&(t.bpsBandwidthMin=n),n>t.bpsBandwidthMax&&(t.bpsBandwidthMax=n),t.bpsBandwidthAvg=t.bpsBandwidthAvg?(t.bpsBandwidthAvg+n)/2:n}trackProfileChanged(e){const t=this._trackingData;if(!t)return;const{bitrate:n}=e;n<t.lastBitrate&&t.nRenditionDowngrade++,n>t.lastBitrate&&t.nRenditionUpgrade++,t.lastBitrate=n}}class an extends l.vp{constructor(e){super(),this._transport=e,this._parseManifestResponse=this._parseManifestResponse.bind(this)}static create(e){return new an(e)}_parseManifestResponse(e){var t;const n=e.metadata.startTime;if(200!==e.status){const t=new Zt(o.STORAGE_VIDEO_MANIFEST_FAILED,`Video manifest request failed with status ${e.status}`);return t.status=e.status,this.emit(re.VIDEO_MANIFEST_RESOLVE_FAILED,{url:e.url,error:t,start_time:n}),Promise.reject(t)}const i=e.body,r=null===(t=e.headers)||void 0===t?void 0:t.get("content-length");return this.emit(re.VIDEO_MANIFEST_RESOLVED,{url:e.url,manifest_size:r?parseInt(r,10):JSON.stringify(i).length,start_time:n,end_time:Date.now()}),Promise.resolve(i)}getInitSegmentURLs(e,t,n,o){let i="";n&&(i=e+t.replace("{{profile_id}}",n.id.toString(10)).replace("{{file_type}}",n.file_type));let r="";return o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type)),{audio:i,video:r,audioLogging:i,videoLogging:r}}getSegmentURLs(e,t,n,o,i){let r="";o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type));let a="";return i&&(a=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type)),{audio:r.replace("{{segment_timestamp}}",n.toString()),video:a.replace("{{segment_timestamp}}",n.toString()),audioLogging:r,videoLogging:a}}getManifest(e,t=!1){const n=`${t?"@webgate/manifests/v8/unauth/json/sources":"@webgate/manifests/v7/json/sources"}/${e}/options/supports_drm`;return this._transport.request(n,{authorize:!t,responseType:"json",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS},metadata:{startTime:Date.now()}}).then(this._parseManifestResponse)}}class sn extends Error{constructor(e,t){super(),this.status=-1,this.debug={},this.canPlayNext=!0,this.unrecoverable=!1,this.name="LicenseError",this.code=e,this.message=t}static fatal(e,t){const n=new sn(e,t);return n.unrecoverable=!0,n.canPlayNext=!1,n}}class ln{constructor(e){this._sdk={name:"",version:""},this._securityLevel=null,this._urls={},e.sdk&&(this._sdk=e.sdk),e.securityLevel&&(this._securityLevel=e.securityLevel),this._transport=e.transport,this._useTestLicenseServer=!!e.useTestLicenseServer,this._transport.on(this._transport.EVENT_CONNECTION_ID,(()=>{this._urls={}}))}get(e,t){const n=`${e}:${t}`,i=this._urls[n];if(i&&i.expires>Date.now()+6e4)return Promise.resolve(i.uri);const r=this._useTestLicenseServer?"&use_test_license_server=true":"",a=`@webgate/melody/v1/license_url?keysystem=${e}&mediatype=${t}&sdk_name=${this._sdk.name}&sdk_version=${this._sdk.version}${r}`;return this._transport.request(a,{responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>{const t=e.body;if(t&&200===e.status)return t.expires*=1e3,t.uri=`@webgate/${t.uri}`,this._securityLevel&&(t.uri+=[-1!==t.uri.indexOf("?")?"&":"?","sl=",this._securityLevel].join("")),this._urls[n]=t,t.uri;let i;return i=t?400===e.status&&t&&"deprecated-version"===t.code?sn.fatal(o.LICENSE_RESOLVER_DEPRECATED_VERSION,"This version of the SDK is no longer supported. Please upgrade"):new sn(o.LICENSE_RESOLVER_CANT_RESOLVE_URL,`License URL endpoint responded with status ${e.status}`):sn.fatal(o.LICENSE_RESOLVE_INVALID_RESPONSE,"License URL endpoint responded with invalid response"),i.status=e.status,Promise.reject(i)}))}remove(e,t){this._urls[`${e}:${t}`]=null}}class cn{constructor(e){this._melodyLogger=new ee.Hx(e)}logTrackStreamVerification(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"track_stream_verification",message:e},{batch:!0})}logJSSDKPlaybackStats(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_stats",message:e},{batch:!0})}logJSSDKPlaybackStart(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_start",message:e},{batch:!0})}logJSSDKError(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:e},{batch:!0})}logJSSDKWarning(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_warning",message:e},{batch:!0})}}var un;!function(e){e[e.ABORTED=101]="ABORTED",e[e.NETWORK=102]="NETWORK",e[e.MEDIA_DECODING=103]="MEDIA_DECODING",e[e.SRC_NOT_SUPPORTED=104]="SRC_NOT_SUPPORTED",e[e.EME=105]="EME",e[e.GENERIC=100]="GENERIC"}(un||(un={}));const dn={[o.MEDIA_ABORTED]:un.ABORTED,[o.MEDIA_DECODING_ERROR]:un.MEDIA_DECODING,[o.MEDIA_NOT_SUPPORTED]:un.SRC_NOT_SUPPORTED,[o.MEDIA_NETWORK_ERROR]:un.NETWORK};function pn(e){let t=dn[e];return/_REQUEST_|_RESPONSE$/.test(e)?t=un.NETWORK:t||(t=/^EME_/.test(e)?un.EME:un.GENERIC),t}function fn(e){var t;const n=e.match(/^https?:\/\/([^\/]+@)?([^\/?#]+)/);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:""}var hn;!function(e){e.READY="playerready",e.VIDEO_CHANGE="videochange",e.PLAY="play",e.PLAYING="playing",e.PAUSE="pause",e.TIMEUPDATE="timeupdate",e.SEEKING="seeking",e.SEEKED="seeked",e.ERROR="error",e.ENDED="ended",e.RENDITION_CHANGE="renditionchange",e.REQUEST_COMPLETED="requestcompleted",e.REQUEST_FAILED="requestfailed",e.REQUEST_CANCELED="requestcanceled"}(hn||(hn={}));const mn={player_is_paused:!0,player_width:0,player_height:0,video_source_height:0,video_source_width:0,player_is_fullscreen:void 0,player_autoplay_on:void 0,player_preload_on:void 0,video_source_url:void 0,video_source_mime_type:void 0,video_source_duration:void 0,video_poster_url:void 0,player_language_code:void 0};class gn{constructor(e){this._playerId=`spotify-playback-${Date.now()}`,this._currentContentInfo=null,this._readyDeferred=(0,me.$)(),this._isMuxInitialized=!1,this._muxInitData=null,this._player=e.player,this._mux=e.mux,this._getPlayheadTime=this._getPlayheadTime.bind(this),this._getStateData=this._getStateData.bind(this),this._init(e)}static create(e){return new gn(e)}_init(e){Promise.all([Promise.resolve(e.deviceInfo)]).then((([t])=>{var n;this._muxInitData={data:Object.assign({env_key:e.envKey||"2qbjhhcl4u87btjbo7dh8vi2n",player_name:null!==(n=null==t?void 0:t.platform_name)&&void 0!==n?n:null==t?void 0:t.platform,player_version:null==t?void 0:t.version,viewer_device_manufacturer:null==t?void 0:t.brand,viewer_device_category:null==t?void 0:t.type,viewer_device_name:null==t?void 0:t.model,player_software_name:e.sdk||"spotify-playback",player_software_version:e.sdkVersion||zt,player_mux_plugin_name:"spotify-playback-mux-reporter",player_mux_plugin_version:zt},e.muxCustomDimensions),getPlayheadTime:this._getPlayheadTime,getStateData:this._getStateData},this._player.addListeners({[re.PLAYER_BEFORE_LOAD]:this._onBeforeLoad.bind(this),[re.PLAYER_PLAY]:this._onPlay.bind(this),[re.PLAYER_PLAYING]:this._onPlaying.bind(this),[re.PLAYER_PAUSED]:this._onPause.bind(this),[re.PLAYER_PROGRESS]:this._onProgress.bind(this),[re.PLAYER_SEEKING]:this._onSeeking.bind(this),[re.PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[re.PLAYER_ERROR]:this._onError.bind(this),[re.PLAYER_ENDED]:this._onEnded.bind(this),[re.PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[re.PLAYER_VIDEO_RESIZED]:this._onVideoResized.bind(this),[re.PLAYER_VIDEO_PROFILE_CHANGED]:this._onVideoProfileChanged.bind(this),[re.PLAYER_FRAGMENT_FETCHED]:this._onFragmentFetched.bind(this),[re.PLAYER_FRAGMENT_FETCH_ERROR]:this._onFragmentFetchError.bind(this),[re.PLAYER_VIDEO_MANIFEST_RESOLVED]:this._onVideoManifestResolved.bind(this),[re.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED]:this._onVideoManifestResolveFailed.bind(this)})})).then(this._readyDeferred.resolve,this._readyDeferred.reject)}_getPlayheadTime(){return this._player.getPlayerPosition()}_getStateData(){return this._currentContentInfo?Object.assign(Object.assign({},this._currentContentInfo.stateData),{player_language_code:this._player.getActiveSubtitleLanguage()}):null}_onDurationChanged(e){this._currentContentInfo&&(this._currentContentInfo.stateData.video_source_duration=e.data.duration)}_onVideoResized(e){this._currentContentInfo&&(this._currentContentInfo.stateData.player_width=e.data.width,this._currentContentInfo.stateData.player_height=e.data.height)}_onBeforeLoad(e){const{track:t,options:n,logData:o}=e.data,i=!!this._currentContentInfo;if("video"!==t.mediaType||(null==o?void 0:o.noLog)||(null==o?void 0:o.noMuxEvents))return i&&this._mux.emit(this._playerId,hn.VIDEO_CHANGE,{}),void(this._currentContentInfo=null);const r={video_id:t.fileId,video_title:(null==o?void 0:o.displayTitle)||void 0,video_series:(null==o?void 0:o.displayGroup)||void 0,video_duration:(null==o?void 0:o.displayDuration)||void 0},a=Object.assign({},mn);this._currentContentInfo={track:t,options:n,videoData:r,stateData:a},!this._isMuxInitialized&&this._muxInitData?(this._mux.init(this._playerId,this._muxInitData),this._mux.emit(this._playerId,hn.READY),this._isMuxInitialized=!0):i&&this._mux.emit(this._playerId,hn.VIDEO_CHANGE,r)}_onPlay(){var e,t;if(!this._currentContentInfo)return;const n=this._currentContentInfo.stateData,o=this._player.getPlayerState(),i=o.media_info,r=(null===(t=null===(e=this._currentContentInfo)||void 0===e?void 0:e.options)||void 0===t?void 0:t.autoplay)||!1,{width:a,height:s,src:l,poster:c}=o.player_element;n.player_is_paused=!o.playing,n.player_width=a||0,n.player_height=s||0,n.video_source_height=i.video_height||0,n.video_source_width=i.video_width||0,n.player_autoplay_on=r,n.video_source_url=l,n.video_source_mime_type=i.video_format,n.video_source_duration=o.duration,n.video_poster_url=c,this._mux.emit(this._playerId,hn.PLAY,this._currentContentInfo.videoData)}_onPlaying(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!1,this._mux.emit(this._playerId,hn.PLAYING))}_onPause(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!0,this._mux.emit(this._playerId,hn.PAUSE))}_onProgress(e){this._currentContentInfo&&this._mux.emit(this._playerId,hn.TIMEUPDATE,{player_playhead_time:e.data.position})}_onSeeking(){this._currentContentInfo&&this._mux.emit(this._playerId,hn.SEEKING)}_onPositionChanged(){this._currentContentInfo&&this._mux.emit(this._playerId,hn.SEEKED)}_onError(e){var t,n;const o=null===(n=null===(t=e.data)||void 0===t?void 0:t.error)||void 0===n?void 0:n.code;this._currentContentInfo&&o&&this._mux.emit(this._playerId,hn.ERROR,{player_error_code:pn(o),player_error_message:o})}_onEnded(){this._currentContentInfo&&this._mux.emit(this._playerId,hn.ENDED)}_onVideoProfileChanged(e){if(!this._currentContentInfo)return;const t=e.data.profile,n=this._currentContentInfo.stateData;n.video_source_height=t.height||0,n.video_source_width=t.width||0,n.video_source_mime_type=t.mimeType,this._mux.emit(this._playerId,hn.RENDITION_CHANGE,{video_source_bitrate:t.bitrate,video_source_width:t.width,video_source_height:t.height})}_onFragmentFetched(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,hn.REQUEST_COMPLETED,{request_type:n,request_hostname:fn(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.byte_length})}_onFragmentFetchError(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,hn.REQUEST_FAILED,{request_type:n,request_hostname:fn(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}_onVideoManifestResolved(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,hn.REQUEST_COMPLETED,{request_type:"manifest",request_hostname:fn(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.manifest_size})}_onVideoManifestResolveFailed(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,hn.REQUEST_FAILED,{request_type:"manifest",request_hostname:fn(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}ready(){return this._readyDeferred.promise}}var vn,yn,_n,bn,Sn,En;!function(e){e.NULL_VALUE="NULL_VALUE",e.LIST_START="LIST_START",e.LIST_END="LIST_END",e.FORBIDDEN="FORBIDDEN",e.IGNORE="IGNORE",e.PAUSE="PAUSE"}(vn||(vn={})),function(e){e.MP4_AUDIO="audio/mp4",e.MP4_VIDEO="video/mp4",e.MTS_VIDEO="video/mp2t",e.WEBM_AUDIO="audio/webm",e.WEBM_VIDEO="video/webm"}(yn||(yn={})),function(e){e.AAC_LC="mp4a.40.2",e.FLAC="flac",e.OPUS="opus",e.VP9="vp9",e.VP8="vp8",e.H264_31="avc1.4d401f"}(_n||(_n={})),function(e){e.UNKNOWN="UNKNOWN",e.DEFAULT="DEFAULT",e.LOW="LOW",e.NORMAL="NORMAL",e.HIGH="HIGH",e.VERY_HIGH="VERY_HIGH",e.HIFI="HIFI"}(bn||(bn={})),function(e){e.NONE="NONE",e.CONTEXT="CONTEXT",e.TRACK="TRACK"}(Sn||(Sn={})),function(e){e.EMPTY="EMPTY",e.SW_CRYPTO="SW_CRYPTO",e.SW_DECODE="SW_DECODE",e.HW_CRYPTO="HW_CRYPTO",e.HW_DECODE="HW_DECODE",e.HW_ALL="HW_ALL"}(En||(En={}));class An extends Error{constructor(e,t){super(),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.name="PlaybackError",this.code=e,this.message=t}static fatal(e,t){const n=new An(e,t);return n.unrecoverable=!0,n}}function Tn(e){return"uri"in e}class Pn extends l.vp{constructor(e){if(super(),this._trackPlayerPromise=(0,me.$)(),this._maxListErrors=5,this._uid=0,this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this._listPlayCount=0,this._listErrorCount=0,this._shuffled=!1,this._repeatMode=Sn.NONE,this._currentSeqId=0,!e.trackPlayer)throw new TypeError("Argument `options.trackPlayerManager` not found.");e.maxListErrors&&(this._maxListErrors=e.maxListErrors),this._setListOptions=this._setListOptions.bind(this),this._replaceCurrentList=this._replaceCurrentList.bind(this),this._handleCapped=this._handleCapped.bind(this),this._handlePlaying=this._handlePlaying.bind(this),this._handlePaused=this._handlePaused.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleCanPreload=this._handleCanPreload.bind(this),this._handleError=this._handleError.bind(this),this._handlePositionChanged=this._handlePositionChanged.bind(this),this._handleDurationChanged=this._handleDurationChanged.bind(this),this._handleTimeout=this._handleTimeout.bind(this),this._handlePlayerInitError=this._handlePlayerInitError.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayedThresholdReached=this._handlePlayedThresholdReached.bind(this),this._handleBeforeLoad=this._handleBeforeLoad.bind(this),this._init(e.trackPlayer)}static create(e){return new Pn(e)}_init(e){this._trackPlayerPromise.promise.catch((()=>{})),Promise.resolve(e).then((e=>{this._attachPlayerEvents(e),this._trackPlayerPromise.resolve(e)})).catch(this._handlePlayerInitError)}_attachPlayerEvents(e){e.addListeners({[re.PLAYER_CAN_PRELOAD]:this._handleCanPreload,[re.PLAYER_CAPPED]:this._handleCapped,[re.PLAYER_ENDED]:this._handleEnded,[re.PLAYER_ERROR]:this._handleError,[re.PLAYER_PAUSED]:this._handlePaused,[re.PLAYER_PLAYING]:this._handlePlaying,[re.PLAYER_TIMEOUT]:this._handleTimeout,[re.PLAYER_POSITION_CHANGED]:this._handlePositionChanged,[re.PLAYER_DURATION_CHANGED]:this._handleDurationChanged,[re.PLAYER_PROGRESS]:this._handleProgress,[re.PLAYER_BEFORE_LOAD]:this._handleBeforeLoad,[re.PLAYER_PLAYED_THRESHOLD_REACHED]:this._handlePlayedThresholdReached}),this.proxyEmitAllSync(e,{[re.PLAYER_BEFORE_VOLUME_CHANGE]:re.LIST_PLAYER_BEFORE_VOLUME_CHANGE,[re.PLAYER_LOAD]:re.LIST_PLAYER_PLAYER_LOAD}),this.proxyEmitAll(e,{[re.PLAYER_AUTOPLAY_FAILED]:re.LIST_PLAYER_AUTOPLAY_FAILED,[re.PLAYER_TRACKING_DATA_CREATED]:re.LIST_PLAYER_TRACKING_DATA_CREATED,[re.PLAYER_TRACKING_DATA_FINALIZED]:re.LIST_PLAYER_TRACKING_DATA_FINALIZED,[re.PLAYER_BUFFER_STALLED]:re.LIST_PLAYER_BUFFER_STALLED,[re.PLAYER_BUFFERING_START]:re.LIST_PLAYER_BUFFERING_START,[re.PLAYER_BUFFERING_END]:re.LIST_PLAYER_BUFFERING_END,[re.PLAYER_VIDEO_ELEMENT_APPENDED]:re.LIST_PLAYER_VIDEO_ELEMENT_APPENDED,[re.PLAYER_VIDEO_ELEMENT_REMOVED]:re.LIST_PLAYER_VIDEO_ELEMENT_REMOVED,[re.PLAYER_DISPLAYED_CUES_CHANGED]:re.LIST_PLAYER_DISPLAYED_CUES_CHANGED,[re.LIST_PLAYER_VIDEO_PROFILE_CHANGED]:re.PLAYER_VIDEO_PROFILE_CHANGED,[re.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:re.PLAYER_PLAYBACK_SPEED_CHANGED,[re.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:re.PLAYER_SUBTITLE_LANGUAGES_LOADED})}_translatePosition(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translatePosition)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_translateDuration(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translateDuration)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_handleProgress(e){const{data:t}=e;this.emit(re.LIST_PLAYER_PROGRESS,Object.assign(Object.assign({},t),{position:this._translatePosition(t.position)}))}_handleBeforeLoad(e){const{data:t}=e;this.emit(re.LIST_PLAYER_BEFORE_PLAYER_LOAD,Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{position:this._translatePosition(t.options.position)})}))}_handlePlayerInitError(e){this._trackPlayerPromise.reject(new An(o.LIST_PLAYER_NO_TRACK_PLAYER,e.message||"Track player promise was rejected."))}_handleCapped(){const e=this._currentTrack;e&&this.emit(re.LIST_PLAYER_CAPPED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList})}_handlePlaying(e){const t=this._currentTrack;t&&this.emit(re.LIST_PLAYER_PLAYING,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handlePaused(e){const t=this._currentTrack;t&&this.emit(re.LIST_PLAYER_PAUSED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleCanPreload(){this._preloadUpcomingTrack().catch((()=>{}))}_handleEnded(){const e=this._currentTrack;e&&(this.emit(re.LIST_PLAYER_TRACK_ENDED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(s.TRACK_DONE))}_handleTimeout(){const e=this._currentTrack;e&&(this.emit(re.LIST_PLAYER_TRACK_TIMEOUT,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(s.TRACK_ERROR))}_handlePositionChanged(e){const t=this._currentTrack;t&&this.emit(re.LIST_PLAYER_POSITION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleDurationChanged(e){const t=this._currentTrack;t&&this.emit(re.LIST_PLAYER_DURATION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position),duration:this._translateDuration(e.data.duration)})}_handlePlayedThresholdReached(e){const t=this._currentTrack;t&&this.emit(re.LIST_PLAYER_PLAYED_THRESHOLD_REACHED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,threshold:e.data.threshold,position:this._translatePosition(e.data.position)})}_handleError(e){const t=this._currentTrack,n=e.data;if(!t)return;n.position=this._translatePosition(e.data.position),this.emit(re.LIST_PLAYER_ERROR,n),this.emitSync(re.LIST_PLAYER_ERROR_SYNC,n);const o=!!n.error&&n.error.listPlayerIgnore;o||this._listErrorCount++,n.canPlayNext&&(o||this._listErrorCount<=this._maxListErrors?this.next(s.TRACK_ERROR):this.emit(re.LIST_PLAYER_MAX_LIST_ERRORS_REACHED,{count:this._listErrorCount,threshold:this._maxListErrors}))}_handleTrackLoaded(e){this.emitSync(re.LIST_PLAYER_TRACK_LOADED,e)}_incrementSeqId(){return this._currentSeqId>=9007199254740991?this._currentSeqId=0:this._currentSeqId+=1,this._currentSeqId}_getTrackPlayer(){return this._trackPlayerPromise.promise}_setListIndex(e,t){const n=t.index&&-1!==t.index?t.index:0;return Promise.all([e,t,e.startAt(n)])}_setListOptions([e,t,n]){return Promise.all([e.setShuffle(!!this._shuffled),e.setRepeatMode(this._repeatMode)]).then((()=>[e,t]))}_replaceCurrentList([e,t]){return this.emitSync(re.LIST_PLAYER_BEFORE_LIST_CHANGE,{newList:e,newOptions:t,oldList:this._loadedList,oldOptions:this._loadedOptions}),this._loadedList=e,this._loadedOptions=t,this._listPlayCount=0,this._listErrorCount=0,this.emit(re.LIST_PLAYER_LIST_CHANGED,{list:e,options:t}),se.SUCCESS}_preloadTrack(e){return this._getTrackPlayer().then((t=>(t.preload(e).catch((()=>{})),se.SUCCESS)))}_changeTrack(e,t,n){if(this._currentSeqId!==n)return Promise.resolve(se.CANCELLED);this.emitSync(re.LIST_PLAYER_BEFORE_TRACK_LOAD,{list:this._loadedList,newTrack:e,oldTrack:this._currentTrack}),this._uid++;const o=++this._listPlayCount,i=this._loadedOptions;let r=!0,a=0,l=3e4;i&&(1===o?(r=!i.paused,a=i.initialPosition||i.position||0):a=i.position||0);const c=t===s.TRACK_DONE;if(e.options){const t=e.options;void 0!==t.paused&&(r=!t.paused),void 0!==t.position&&(a=t.position),void 0!==t.playedThreshold&&(l=t.playedThreshold)}this._currentTrack=e,this._currentTrackOptions={reason:t,paused:!r,position:a,playedThreshold:l};const u=this._handleTrackLoaded.bind(this,{uid:this._uid,track:this._currentTrack,options:this._currentTrackOptions,list:this._loadedList});return this._getTrackPlayer().then((t=>this._currentSeqId!==n?se.CANCELLED:(Promise.resolve(t.load(e,{uriProperty:"playableURI",autoplay:r,position:a,playedThreshold:l,continuePrevious:c},u)).catch((()=>{})),se.SUCCESS)))}_preloadUpcomingTrack(){const e=this._loadedList;if(!e)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));const t={reason:s.TRACK_DONE,listConstants:vn};return e.peekNext(t).then((e=>e===vn.FORBIDDEN?se.FORBIDDEN:e===vn.NULL_VALUE?this._preloadUpcomingTrack():e===vn.LIST_END?se.LIST_END:Tn(e)&&e.playable?this._preloadTrack(e):se.INVALID))}activateElement(){return this._getTrackPlayer().then((e=>(e.activateElement(),se.SUCCESS)))}load(e,t){const n=function(e={}){const t={index:-1,position:0,initialPosition:0,duration:-1,paused:!1,reason:s.UNKNOWN};return void 0!==e.index&&(t.index=e.index),void 0!==e.position&&(t.position=e.position),void 0!==e.initialPosition&&(t.initialPosition=e.initialPosition),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.paused&&(t.paused=e.paused),void 0!==e.reason&&(t.reason=e.reason),t}(t||this._loadedOptions||{});return this._setListIndex(e,n).then(this._setListOptions).then(this._replaceCurrentList)}play(e,t){return this.load(e,t).then((()=>{if(this._loadedList!==e)return se.CANCELLED;const t=this._loadedOptions?this._loadedOptions.reason:s.UNKNOWN;return this.next(t)}))}canChangeTrack(){return this._loadedList?this._loadedList.peekNext({reason:s.FORWARD_BUTTON,listConstants:vn}).then((e=>e!==vn.FORBIDDEN)):Promise.resolve(!0)}next(e){if(!e)return Promise.reject(new An(o.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(re.LIST_PLAYER_BEFORE_NEXT,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vn};return t.next(i).then((o=>this._currentSeqId!==n?se.CANCELLED:o===vn.FORBIDDEN?se.FORBIDDEN:o===vn.NULL_VALUE?this.next(e):o===vn.LIST_END?(this.emit(re.LIST_PLAYER_LIST_ENDED,{list:t,reason:s.END_PLAY}),this.clear(e),se.LIST_END):Tn(o)?o.playable?this._changeTrack(o,e,n):(this.emit(re.LIST_PLAYER_TRACK_UNPLAYABLE,{track:o,list:t}),this.next(e)):se.INVALID))}previous(e){if(!e)return Promise.reject(new An(o.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(re.LIST_PLAYER_BEFORE_PREVIOUS,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vn};return t.previous(i).then((o=>this._currentSeqId!==n?se.CANCELLED:o===vn.FORBIDDEN?se.FORBIDDEN:o===vn.NULL_VALUE?this.previous(e):o===vn.LIST_START?(this.emit(re.LIST_PLAYER_LIST_ENDED,{list:t,reason:s.END_PLAY}),this.clear(e),se.LIST_END):Tn(o)?o.playable?this._changeTrack(o,e,n):(this.emit(re.LIST_PLAYER_TRACK_UNPLAYABLE,{track:o,list:t}),this.previous(e)):se.INVALID))}pause(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.pause().then((()=>se.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?se.CANCELLED:se.FORBIDDEN)))):Promise.resolve(se.SUCCESS):Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}resume(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.resume().then((()=>se.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?se.CANCELLED:se.FORBIDDEN)))):Promise.resolve(se.SUCCESS):Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}togglePlay(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.togglePlay().then((()=>se.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?se.CANCELLED:se.FORBIDDEN)))):Promise.resolve(se.SUCCESS):Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}stop(e){const t={reason:e||s.UNKNOWN},n=this._currentTrack;return n&&n.logData&&(t.source=n.logData.source),this._incrementSeqId(),this._getTrackPlayer().then((e=>(e.stop(t),this.emit(re.LIST_PLAYER_STOPPED,{uid:this._uid,options:this._currentTrackOptions,list:this._loadedList}),se.SUCCESS)))}clear(e){return this.stop(e).then((()=>(this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this.emit(re.LIST_PLAYER_CLEARED,null),se.SUCCESS)))}setShuffle(e){const t=!!e;if(this._shuffled!==t){this._shuffled=t,this.emit(re.LIST_PLAYER_SHUFFLE_CHANGED,{player:this,shuffled:t});const e=this._loadedList;e&&e.setShuffle(this._shuffled)}return Promise.resolve(se.SUCCESS)}setRepeatMode(e){if(!(e in Sn))return Promise.reject(new An(o.LIST_PLAYER_INVALID_ARGUMENT,"The value of repeat mode is not a correct RepeatMode enum value"));if(this._repeatMode!==e){this._repeatMode=e,this.emit(re.LIST_PLAYER_REPEAT_MODE_CHANGED,{player:this,repeatMode:e});const t=this._loadedList;t&&t.setRepeatMode(this._repeatMode)}return Promise.resolve(se.SUCCESS)}getVolume(){return this._getTrackPlayer().then((e=>e.getVolume()))}setVolume(e,t=null){return this._getTrackPlayer().then((n=>(n.setVolume(e,{commandId:null!=t?t:void 0}),this.emit(re.LIST_PLAYER_VOLUME_CHANGED,{volume:e,commandId:t}),se.SUCCESS)))}seek(e,t=s.SEEK){var n,i;const r=this._loadedList;if(!r)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));if("function"==typeof r.allowSeeking&&!r.allowSeeking())return Promise.reject(new An(o.LIST_PLAYER_FORBIDDEN,"The operation is not allowed."));const a=null!==(i=null===(n=r.handleSeek)||void 0===n?void 0:n.call(r,e,{reason:t,listConstants:vn}))&&void 0!==i?i:e;return a===vn.PAUSE?this.pause().then((t=>(this.emit(re.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),t))):a===vn.IGNORE?(this.emit(re.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),Promise.resolve(se.SUCCESS)):this._currentTrack?this._getTrackPlayer().then((e=>(e.seek(a),se.SUCCESS))):Promise.resolve(se.SUCCESS)}getListConstants(){return vn}getLoadedList(){return this._loadedList}getLoadedOptions(){return this._loadedOptions}getPlayerState(){return this._getTrackPlayer().then((e=>{const t=e.getPlayerState();return Object.assign(Object.assign({},t),{position:this._translatePosition(t.position),duration:this._translateDuration(t.duration)})}))}getState(){return this.getPlayerState().then((e=>({playbackState:e,track:this._currentTrack,list:this._loadedList,options:this._loadedOptions})))}getMediaConfig(){return this._getTrackPlayer().then((e=>e.getMediaConfig()))}hideSubtitles(){return this._getTrackPlayer().then((e=>e.hideSubtitles())).then((()=>se.SUCCESS))}showSubtitles(){return this._getTrackPlayer().then((e=>e.showSubtitles())).then((()=>se.SUCCESS))}areSubtitlesShown(){return this._getTrackPlayer().then((e=>e.areSubtitlesShown()))}getSubtitleLanguages(){return this._getTrackPlayer().then((e=>e.getSubtitleLanguages()))}getActiveSubtitleLanguage(){return this._getTrackPlayer().then((e=>{var t;return null!==(t=e.getActiveSubtitleLanguage())&&void 0!==t?t:null}))}deactivateCueEvents(){return this._getTrackPlayer().then((e=>e.deactivateCueEvents())).then((()=>se.SUCCESS))}activateCueEvents(){return this._getTrackPlayer().then((e=>e.activateCueEvents())).then((()=>se.SUCCESS))}getCurrentBandwidth(){return this._getTrackPlayer().then((e=>e.getCurrentBandwidth()))}setSubtitleLanguage(e){return this._getTrackPlayer().then((t=>t.setSubtitleLanguage(e))).then((()=>se.SUCCESS))}setPlaybackSpeed(e){return this._getTrackPlayer().then((t=>t.setPlaybackSpeed(e))).then((e=>e?se.SUCCESS:se.FORBIDDEN))}getStatistics(){return this._getTrackPlayer().then((e=>e.getStatistics()))}getAudioProcessor(){return this._getTrackPlayer().then((e=>e.getAudioProcessor()))}}const On=de.P.forTag("playback.init");function Cn(e){return new Promise(((t,n)=>{var o,i,r,a,s,l,c;if(!e.transport)return void n(new TypeError("Argument transport is required."));if("undefined"!=typeof window){("boolean"==typeof window.isSecureContext?window.isSecureContext:function(){if("undefined"==typeof window||!window.location)return!1;const e=window.location;if("https"===e.protocol||"file"===e.protocol)return!0;const t=e.hostname;return!!/^127(\.[0-255]){3}$|^locahost\.?$|\.localhost\.?$/.test(t)}())||null===(o=window.console)||void 0===o||o.warn("%cDRM might not be available from unsecure contexts","background: #222; color: #bada55; font-size: 40px")}const{transport:u}=e,[d="",p=""]=(e.sdkId||"").split(":"),f=Object.assign(Object.assign({},e),{tracker:rn.create(),audioResolver:new $t(u),videoResolver:new an(u),licenseURLResolver:new ln({transport:u,sdk:{name:d,version:p},securityLevel:e.securityLevel,useTestLicenseServer:e.useTestLicenseServer}),newBufferPerTrack:null===(i=e.newBufferPerTrack)||void 0===i||i,preinitMediaElement:null===(r=e.preinitMediaElement)||void 0===r||r});e.unauthenticatedLogs&&!(null===(a=e.loggerOptions)||void 0===a?void 0:a.endpoint)&&(e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{endpoint:"https://spclient.wg.spotify.com/melody/unauth"})),(null===(s=null==e?void 0:e.loggerOptions)||void 0===s?void 0:s.deviceInfo)||Promise.all([null===(l=e.loggerOptions)||void 0===l?void 0:l.platform,null===(c=e.loggerOptions)||void 0===c?void 0:c.clientVersion]).then((([t,n])=>{e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{deviceInfo:{platform:t,version:n}})})),Kt.create(f).then((t=>{const n=Object.assign({disableMux:!0},e.loggerOptions),o=function(e){return new cn(e)}(Object.assign(Object.assign({},n),{transport:u,sdkId:e.sdkId,platform:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.platform)&&void 0!==t?t:""})),clientVersion:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.version)&&void 0!==t?t:""}))})),i=Xt.create({transport:u,player:t,logSender:o});return n.disableMux||gn.create({player:t,mux:ue,envKey:null==n?void 0:n.muxEnvKey,sdk:d,sdkVersion:p,deviceInfo:n.deviceInfo,muxCustomDimensions:n.muxCustomDimensions}).ready().then((()=>On.info("MuxReporter ready")),(e=>On.error("Failed to instantiate MuxReporter",null==e?void 0:e.message))),{player:t,logger:i}})).then(t,n)}))}class kn extends l.vp{constructor(e){super(),this._client=e.client,this._initialVolume=e.initialVolume,this._listPlayer=e.listPlayer,this._playerPromise=e.playerPromise,this._playbackServiceClient=e.playbackServiceClient,this._playbackStateObserver=e.playbackStateObserver,this._stopOnBackground=e.stopOnBackground,this._init()}_init(){this._client.addListeners({before_disconnect:this._onClientBeforeDisconnect.bind(this),before_offline_disconnect:this._onClientBeforeOfflineDisconnect.bind(this)});const e=this._listPlayer;e.addListeners({[re.LIST_PLAYER_CAPPED]:this._onCapped.bind(this),[re.LIST_PLAYER_TRACK_ENDED]:this._onTrackEnded.bind(this),[re.LIST_PLAYER_BEFORE_VOLUME_CHANGE]:this._onBeforeVolumeChange.bind(this),[re.LIST_PLAYER_VOLUME_CHANGED]:this._onVolumeChanged.bind(this),[re.LIST_PLAYER_ERROR]:e=>{this._onError(e,f.PLAYBACK)}}),this.proxyEmitAll(e,{[re.LIST_PLAYER_AUTOPLAY_FAILED]:"autoplay_failed",[re.LIST_PLAYER_TRACK_LOADED]:"track_loaded",[re.LIST_PLAYER_DURATION_CHANGED]:"duration_changed",[re.LIST_PLAYER_POSITION_CHANGED]:"position_changed",[re.LIST_PLAYER_PROGRESS]:"progress",[re.LIST_PLAYER_BUFFER_STALLED]:"stalled",[re.LIST_PLAYER_BUFFERING_END]:"buffering_end",[re.LIST_PLAYER_BUFFERING_START]:"buffering_start",[re.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:"max_list_errors_reached",[re.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:"video_element_appended",[re.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:"video_element_removed",[re.LIST_PLAYER_LIST_ENDED]:"context_ended",[re.LIST_PLAYER_SEEK_HANDLED]:"streamer_seek_handled",[re.LIST_PLAYER_DISPLAYED_CUES_CHANGED]:"displayed_cues_changed",[re.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:"subtitle_languages_loaded",[re.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:"speed_changed"});const t=this._playbackServiceClient;t.addListeners({logout:this._onPlaybackClientLogout.bind(this),error:e=>{this._onError(e,e.data.source)}}),this.proxyEmitAll(t,{max_subscriptions_reached:"max_subscriptions_reached",deregistered:"deregistered",registered:"registered",registration_aborted:"registration_aborted",internal_endcontent:"internal_endcontent"}),this.proxyEmit(this._playbackStateObserver,"state_changed","state_changed"),this._stopOnBackground&&document.addEventListener&&document.addEventListener("visibilitychange",(()=>{document.hidden&&this.stop()&&this.emitSync("stopped_on_background",null)})),this._playerPromise.then((e=>{e.setVolume(this._initialVolume),this.emit("player_initialization_done",null)}),(e=>{this.emit("player_initialization_failed",{reason:e.message,error:e})}))}_assertOperationSuccess(e){return e===se.SUCCESS}_onTrackEnded(){this.emit("track_ended",null)}_onClientBeforeDisconnect(e){e.data.awaitPromise(this.deregister().catch((()=>{})))}_onClientBeforeOfflineDisconnect(e){e.data.awaitPromise(this.pause().catch((()=>{})))}_onBeforeVolumeChange(e){var t;this.emitSync("before_volume_change",{volume:e.data.volume,remote:!!(null===(t=e.data.options)||void 0===t?void 0:t.commandId)}).defaultPrevented&&e.preventDefault()}_onVolumeChanged(e){this.emit("volume_changed",{volume:e.data.volume,remote:!!e.data.commandId})}_onCapped(){this.emit("playback_capped",null)}_onError(e,t){const{error:n}=e.data;n&&(n.registration&&this.emit("registration_error",{error:n}),this.emit("error",{source:t,error:n}),this._client.notifyError(t,n))}_onPlaybackClientLogout(){this.emit("logged_out",null)}stop(){return this._playbackServiceClient.stop()}register(){return this._playbackServiceClient.register()}deregister(){return this._playbackServiceClient.deregister()}resume(){return this._listPlayer.resume().then(this._assertOperationSuccess)}pause(){return this._listPlayer.pause().then(this._assertOperationSuccess)}nextTrack(e=s.FORWARD_BUTTON){return this._listPlayer.next(e).then(this._assertOperationSuccess)}canChangeTrack(){return this._listPlayer.canChangeTrack()}previousTrack(e=s.BACK_BUTTON){return this._listPlayer.previous(e).then(this._assertOperationSuccess)}togglePlay(){return this._listPlayer.togglePlay().then(this._assertOperationSuccess)}setVolume(e){return this._listPlayer.setVolume(e).then(this._assertOperationSuccess)}getVolume(){return this._listPlayer.getVolume()}seek(e){return this._listPlayer.seek(e).then(this._assertOperationSuccess)}getCurrentState(){return this._playbackStateObserver.getCurrentState()}getVideoVariants(){return this._playerPromise.then((e=>e.getVideoVariants()))}setPreferredBitrate(e){return this._playerPromise.then((t=>t.setPreferredBitrate(e).then(this._assertOperationSuccess)))}setVideoResolution(e){return this._playerPromise.then((t=>t.setVideoResolution(e)))}setBackgrounded(e){return this._playerPromise.then((t=>t.setBackgrounded(e)))}activateElement(){return this._playerPromise.then((e=>e.activateElement()))}hideSubtitles(){return this._listPlayer.hideSubtitles().then(this._assertOperationSuccess)}showSubtitles(){return this._listPlayer.showSubtitles().then(this._assertOperationSuccess)}areSubtitlesShown(){return this._listPlayer.areSubtitlesShown()}getSubtitleLanguages(){return this._listPlayer.getSubtitleLanguages()}getActiveSubtitleLanguage(){return this._listPlayer.getActiveSubtitleLanguage()}setSubtitleLanguage(e){return this._listPlayer.setSubtitleLanguage(e).then(this._assertOperationSuccess)}getMediaConfig(){return this._listPlayer.getMediaConfig()}setPlaybackSpeed(e){return this._listPlayer.setPlaybackSpeed(e).then(this._assertOperationSuccess)}deactivateSubtitleEvents(){return this._listPlayer.deactivateCueEvents().then(this._assertOperationSuccess)}activateSubtitleEvents(){return this._listPlayer.activateCueEvents().then(this._assertOperationSuccess)}}class Rn extends Error{constructor(e,t){super(t),this.status=-1,this.maxedSubscriptions=!1,this.unrecoverable=!1,this.debug={},this.registration=!1,this.code=e,this.name="TrackPlayerAPIClientError"}static fatal(e,t){const n=new Rn(e,t);return n.unrecoverable=!0,n}}class Ln{constructor(e,t){this._stateMachine=null,this._currentState=null,this._currentStateIndex=null,this._pausedState=!1,this._initialPlaybackPosition=null,this._uri=e,this._manifestTrackResolver=t}static create(e,t){return new Ln(e,t)}setPaused(e){this._pausedState=e}isPaused(){return this._currentStateIndex&&this._currentStateIndex<0&&this._currentState&&this._currentState.transitions.advance?!!this._currentState.transitions.advance.paused:this._pausedState}setInitialPosition(e){this._initialPlaybackPosition=e}setStateMachine(e){this._stateMachine=e}setDeviceId(e){this._deviceId=e}startAtState(e){const t=this._stateMachine&&this._stateMachine.states[e.state_index];if(!t)throw new Rn(i.TP_MISSING_INITIAL_STATE,"Invalid state reference.");const n=t.transitions;this._currentStateIndex=-1,this._currentState={decoy:!0,paused:!!e.paused,track:-1,state_id:null,transitions:{advance:e,show_next:n.show_next,show_prev:n.show_prev,skip_next:e,skip_prev:n.skip_prev},duration_override:t.duration_override,position_offset:t.position_offset}}setCurrentState(e){const t=e.state_index;this._currentStateIndex=t,this._currentState=this._stateMachine&&this._stateMachine.states[t]}getStateMachine(){return this._stateMachine}getInternalStateRef(){let e=this._pausedState,t=this._currentStateIndex;if(!t)return null;if(t&&t<0){const n=this._currentState&&this._currentState.transitions.advance;n&&(t=n.state_index,e=!!n.paused)}return{paused:e,state_index:t}}getStateRef(){const e=this._stateMachine;if(!e||null===this._currentStateIndex)return null;let t,n;if(this._currentStateIndex<0){const o=this._currentState&&this._currentState.transitions.advance;o&&(t=e.states[o.state_index],n=o.paused)}else t=e.states[this._currentStateIndex],n=this._pausedState;return t?{state_machine_id:e.state_machine_id,state_id:t.state_id,paused:!!n}:null}getCurrentTrack(){const e=this._stateMachine;if(!e||null===this._currentStateIndex)return null;let t;if(this._currentStateIndex<0){const n=this._currentState&&this._currentState.transitions.advance;n&&(t=e.states[n.state_index])}else t=e.states[this._currentStateIndex];return t?e.tracks[t.track]:null}startAt(){return Promise.resolve(se.SUCCESS)}setShuffle(){return Promise.resolve(se.SUCCESS)}setRepeatMode(){return Promise.resolve(se.SUCCESS)}next(e){const t=this._currentState;let n=null;if(t){const o=t.transitions;if(e.reason===s.FORWARD_BUTTON)"skip_next"in o&&(n=o.skip_next);else"advance"in o&&(n=o.advance)}return this._transitionTo(e,n,!1)}peekNext(e){const t=this._currentState;let n=null;if(t){const o=t.transitions;if(e.reason===s.FORWARD_BUTTON)"skip_next"in o&&(n=o.skip_next);else"advance"in o&&(n=o.advance)}return this._transitionTo(e,n,!0)}previous(e){const t=this._currentState;let n=null;if(t){n=t.transitions.skip_prev}return this._transitionTo(e,n,!1)}translatePosition(e){var t,n;return(null!==(n=null===(t=this._currentState)||void 0===t?void 0:t.position_offset)&&void 0!==n?n:0)+e}translateDuration(e){var t,n;return null!==(n=null===(t=this._currentState)||void 0===t?void 0:t.duration_override)&&void 0!==n?n:e}handleSeek(e,t){var n;return(null===(n=this._currentState)||void 0===n?void 0:n.duration_override)&&t.reason!==s.REMOTE?t.listConstants.IGNORE:e}allowSeeking(){return!!this._currentState&&!this._currentState.disallow_seeking}_transitionTo(e,t,n=!1){return new Promise((o=>{var i;const r=e.reason,a=e.listConstants;if(!t)return o(a.FORBIDDEN);const s=this._stateMachine;if(!s)return o(a.NULL_VALUE);const l=s.states[t.state_index];if(!l)return o(a.NULL_VALUE);const c=s.tracks[l.track];if(!(null===(i=null==c?void 0:c.metadata)||void 0===i?void 0:i.uri))return o(a.NULL_VALUE);if(!this._currentState)return o(a.NULL_VALUE);const u=this._currentState,d=u.decoy?!!u.paused:t.paused;n||(this._currentState=l,this._currentStateIndex=t.state_index,this._pausedState=!!d);let p=0;return n||null===this._initialPlaybackPosition?"initial_playback_position"in l&&(p=l.initial_playback_position||0):(p=this._initialPlaybackPosition,this._initialPlaybackPosition=null),this._manifestTrackResolver.resolveFromStateTrack(c).then((e=>{if(!e)return o(a.NULL_VALUE);let t=this._uri;c.metadata&&c.metadata.context_uri&&(t=c.metadata.context_uri);const n=r,i=c.ms_played_until_update,s={playbackQuality:e.playbackQuality,hifiStatus:e.hifi_status},u={uri:e.uri,playableURI:e.uri,fileId:e.fileId,resolvedURL:e.resolvedURL,playable:e.playable,isAd:e.isAd,format:e.format,fileFormat:e.fileFormat,mediaType:e.mediaType,noManifest:e.noManifest,metadata:s,options:{position:p,paused:d,playedThreshold:i},logData:{noLog:!!e.noLog,noTSV:!!e.noTSV,noStats:!!e.noStats,deviceId:this._deviceId,playbackId:l.state_id?l.state_id:void 0,reason:n,displayTrack:e.uri,playContext:t,impressionURL:e.impressionURL,impressionURLs:e.impressionURLs,format:{codec:e.format,bitrate:e.bitrate},uriType:e.uriType,displayTitle:c.metadata.name,displayGroup:c.metadata.group_name,displayDuration:c.metadata.duration},stateId:l.state_id?l.state_id:void 0,audioGain:e.gainDb};return o(u)}))}))}getCurrentState(){return this._currentState}}var In,Nn=n(50346);!function(e){e.ON="ON",e.OFF="OFF",e.NONE="NONE"}(In||(In={}));const wn=/^disallow_([^]+)_reasons$/;const Dn=T.P.forTag("tp.stream.PlaybackStateObserver");class Mn extends l.vp{constructor(e,t={}){super(),this._tpApiClient=e,this._numPreviousTracks=t.numPrevious||2,this._numNextTracks=t.numNextTracks||2,this._currentState=null,this._init()}static create(e,t){return new Mn(e,t)}_init(){this._tpApiClient.on("state_changed",this._onStateChanged.bind(this)),this._tpApiClient.on("state_cleared",this._onStateCleared.bind(this))}_onStateChanged(e){var t,n,o,i,r,a,s,l,c;const{stateMachine:u,stateRef:d,position:p,paused:f,loading:h,currentTrackInfo:m}=e.data,g=null==u?void 0:u.states;if(!u||!(null==g?void 0:g.length)||!d)return void Dn.warn("_onStateChanged called with no current state",e);const v=g[d.state_index],y=u.tracks[null==v?void 0:v.track];if(!v||!y)return void Dn.warn("_onStateChanged called with no current state or track",e);let _=null!==(t=m.duration)&&void 0!==t?t:0;const b=this._createTrackWindow(u,v,_);_||(_=null!==(o=null===(n=b.current_track)||void 0===n?void 0:n.duration_ms)&&void 0!==o?o:0);const S=function(e,t){const n={};for(const t in e)e.hasOwnProperty(t)&&"disallow_resuming_reasons"!==t&&"disallow_pausing_reasons"!==t&&(n[t]=e[t]);return t?n.disallow_pausing_reasons=["already_paused"]:n.disallow_resuming_reasons=["not_paused"],n}(v.restrictions||{},f),E=function(e){const t={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],i=!(!o||!o.length);t[n.replace(wn,"$1")]=i}return t}(S),A={timestamp:Date.now(),context:{uri:null!==(r=null===(i=y.metadata)||void 0===i?void 0:i.context_uri)&&void 0!==r?r:null,metadata:{}},position:p,duration:_,paused:f,playback_quality:null!==(a=m.playbackQuality)&&void 0!==a?a:bn.UNKNOWN,playback_features:{hifi_status:null!==(s=m.hifiStatus)&&void 0!==s?s:In.NONE,change_playback_speed:null!==(l=m.changePlaybackSpeed)&&void 0!==l&&l},shuffle:this._getShuffleSetting(u),repeat_mode:this._getRepeatSetting(u),track_window:b,restrictions:S,disallows:E,loading:h,playback_speed:m.playbackSpeed,playback_id:v.state_id};(null===(c=y.metadata)||void 0===c?void 0:c.context_description)&&(A.context.metadata.context_description=y.metadata.context_description),this._currentState=A,this.emit("state_changed",{state:A?Object.assign({},A):null})}_createTrackWindow(e,t,n){const o=e.states;return{current_track:this._getTrackMetadata(e,t,n),next_tracks:this._getNextStates(t,o).map((t=>this._getTrackMetadata(e,t,null))).filter((e=>!!e)),previous_tracks:this._getPreviousStates(t,o).map((t=>this._getTrackMetadata(e,t,null))).filter((e=>!!e))}}_onStateCleared(){this._currentState=null,this.emit("state_changed",{state:null})}_getRepeatSetting(e){const t=e.attributes.options;return t.repeating_track?h.TRACK:t.repeating_context?h.CONTEXT:h.OFF}_getShuffleSetting(e){return e.attributes.options.shuffling_context}_getNextStates(e,t){const n=this._numNextTracks,o=[];let i=e;for(;i&&"show_next"in i.transitions&&i.transitions.show_next;){const e=t[i.transitions.show_next.state_index];if(e&&o.push(e),i=e,o.length>=n)break}return o}_getPreviousStates(e,t){const n=this._numPreviousTracks,o=[];let i=e;for(;i&&"show_prev"in i.transitions&&i.transitions.show_prev;){const e=t[i.transitions.show_prev.state_index];if(e&&o.unshift(e),i=e,o.length>=n)break}return o}_getTrackMetadata(e,t,n){const o=null==e?void 0:e.tracks[t.track];if(!(null==o?void 0:o.metadata))return null;const i=o.metadata,r=o.manifest&&"manifest_ids_video"in o.manifest,a=o.track_type.toLowerCase(),s=(0,Nn.EC)(i.uri),l=i.linked_from_uri?(0,Nn.EC)(i.linked_from_uri):null;return{id:s?s.id:null,uri:i.uri,type:(null==s?void 0:s.type)||"unknown",uid:t.track_uid,linked_from:{uri:i.linked_from_uri||null,id:l?l.id:null},media_type:r?"video":"audio",track_type:a,name:i.name,duration_ms:n||i.duration,artists:i.authors,album:{uri:i.group_uri,name:i.group_name,images:i.images},is_playable:!0}}getCurrentState(){const e=this._currentState;if(e&&!e.paused){const t=Date.now(),n=e.position+(t-e.timestamp);e.position=n,e.timestamp=t}return Promise.resolve(this._currentState?Object.assign({},this._currentState):null)}}const xn=/^https:\/\//,Fn={[w.FILE_URLS_MP3]:le.MP3,[w.FILE_URLS_EXTERNAL]:le.MP3,[w.FILE_IDS_MP3]:le.MP3,[w.FILE_IDS_MP4]:le.MP4,[w.FILE_IDS_MP4_DUAL]:le.MP4,[w.FILE_IDS_CBCS]:le.MP4_CBCS,[w.FILE_IDS_MP4FLAC]:le.MP4_FLAC,[w.MANIFEST_IDS_VIDEO]:le.MANIFEST_ID};class Un{constructor(e){this._descriptor=e.descriptor,this._listPlayer=e.listPlayer}static create(e){return new Un(e)}_resolveFromStateTrack(e,t,n){var o,i,r,a;const s=e.manifest,l=e.metadata.uri,c=(0,Nn.EC)(l);let u=null;for(const e of n){const n=s[e];if(n)for(const s of n){if(!s.file_id&&!xn.test(null!==(o=s.file_url)&&void 0!==o?o:""))continue;const n=!(!c||c.type!==Nn.JM.AD&&c.type!==Nn.JM.INTERRUPTION);if(e===w.FILE_IDS_MP3&&!n)continue;let d,p;if(d=s.track_type?s.track_type.toLowerCase():e===w.MANIFEST_IDS_VIDEO?"video":"audio",s.format){const e=parseInt(s.format,10);mt[e]&&(p=e)}const f=null!==(i=s.bitrate)&&void 0!==i?i:e===w.FILE_IDS_MP4FLAC?1411200:128e3,h=null!==(r=s.bitrate)&&void 0!==r?r:e===w.FILE_IDS_MP4FLAC?7e5:128e3,m=Fn[e];if(u={uri:l,uriType:c&&c.type?c.type:void 0,fileId:null!==(a=s.file_id)&&void 0!==a?a:"",resolvedURL:s.file_url,mediaType:d,format:m,bitrate:h,fileFormat:null!=p?p:void 0,playbackQuality:s.audio_quality,hifi_status:s.hifi_status,impressionURL:s.impression_url,impressionURLs:s.impression_urls,gainDb:s.gain_db,isAd:n,noLog:!1,noTSV:n,noStats:n,noManifest:m===le.MP3,playable:!0},e===w.MANIFEST_IDS_VIDEO||f<=t)return u}}return u}resolveFromStateTrack(e){return Promise.all([Promise.resolve(this._descriptor),this._listPlayer.getCurrentBandwidth()]).then((([t,n])=>this._resolveFromStateTrack(e,n,t.getManifestFormats())))}}const Bn=1e3,Vn=0,Gn=!1;class Jn{constructor(e,t={}){this._cancelFn=null,this._deferredTimer=0,this._fn=e,this._cancelFn=t.cancel||null,this._threshold=t.threshold||Bn,this._ts=t.initialTimetamp||Vn,this._blockInital=t.blockInitial||Gn}_deferFn(e){this._fn.apply(this._fn,e)}_deferPromise(e,t){this._fn.apply(this._fn,e).then((e=>{t.resolve(e)}))}sync(...e){const t=Date.now()-this._ts;if(this._ts=Date.now(),t<this._threshold)return this._cancelFn&&this._deferredTimer&&this._cancelFn(),clearTimeout(this._deferredTimer),void(this._deferredTimer=setTimeout(this._deferFn.bind(this,e),this._threshold));!0!==this._blockInital?this._fn.apply(this._fn,e):this.sync.apply(this,e)}async(...e){const t=Date.now()-this._ts;if(this._ts=Date.now(),t<this._threshold){this._cancelFn&&this._deferredTimer&&this._cancelFn(),clearTimeout(this._deferredTimer);const t=(0,c.$)();return this._deferredTimer=setTimeout(this._deferPromise.bind(this,e,t),this._threshold),t.promise}return!0===this._blockInital?this.async.apply(this,e):this._fn.apply(this._fn,e)}setCancel(e){this._cancelFn=e}}var jn;!function(e){e.TRACK_DATA_FINALIZED="track_data_finalized",e.DEREGISTER="deregister",e.REGISTER="register",e.BEFORE_TRACK_LOAD="before_track_load",e.CAPPED="capped",e.ERROR="error",e.PAUSE="pause",e.RESUME="resume",e.PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.POSITION_CHANGED="position_changed",e.SPEED_CHANGED="speed_changed",e.STARTED_PLAYING="started_playing",e.PROGRESS="progress",e.PING="ping",e.MODIFY_CURRENT_STATE="modify_current_state",e.STATE_CLEAR="state_clear"}(jn||(jn={}));const Hn=T.P.forTag("tpapiclient"),Kn=T.P.forTag("tpapiclient.endsong"),Yn=T.P.forTag("tpapiclient.endsongs"),Wn=/^hm:\/\/track-playback\/v1/,zn=/^hm:\/\/play-token\/lost/,qn=function(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR},Xn={condition:qn,maxRetries:8},Zn={condition:qn,maxRetries:2};class Qn extends l.vp{constructor(e){super(),this._deviceId=null,this._sequenceNumber=0,this._currentContext=null,this._loading=!1,this._lastSentStateUpdatePayload=null,this._isSendingConflict=!1,this._queuedRejectedStates=[],this._isSendingUpdate=!1,this._queueSendUpdate=[],this._currentTrackInfo={},this._registered=!1,this._isDeregistering=!1,this._waitingForTrackingData=(0,c.$)(),this._lastProcessedStateId=null,this._limitStateUpdates=!1,this._lastUpdateStateTime=0,this._initialUpdateSent=!1,this._startedPlayingUpdateSent=!1,this._nextFinalizedDataPayload=null,this._switchingContext=!1,this._connectionId=null,this._transport=e.transport,this._logger=e.logger,this._endpoint=e.endpoint||"http://@webgate/track-playback",this._listPlayer=e.listPlayer,this._ListClass=e.ListClass,this._currentGaiaVolume=e.initialVolume*d,this._clientVersion=e.clientVersion,this._manifestTrackResolver=e.manifestTrackResolver,this._descriptorPromise=Promise.resolve(e.descriptor),this._init(),this._performCommand=this._performCommand.bind(this),this._handleRegisterResponse=this._handleRegisterResponse.bind(this),this._handleStateConflictResponse=this._handleStateConflictResponse.bind(this),this.register=this.register.bind(this),this._parseDescriptor=this._parseDescriptor.bind(this),this._volumeDebouncer=new Jn(this._sendVolume.bind(this),{blockInitial:!0})}static create(e){return new Qn(e)}_init(){this._waitingForTrackingData=(0,c.$)(),this._waitingForTrackingData.resolve(!0),this._transport.on(this._transport.EVENT_CONNECTION_ID,this._onConnectionId.bind(this)),this._transport.matchMessages(zn,this._onPlayTokenLost.bind(this)),this._transport.matchMessages(Wn,this._onTrackPlaybackMessage.bind(this)),this._listPlayer.addListeners({[re.LIST_PLAYER_CAPPED]:this._onCapped.bind(this),[re.LIST_PLAYER_ERROR_SYNC]:this._onError.bind(this),[re.LIST_PLAYER_BEFORE_NEXT]:this._onBeforeTrackChange.bind(this),[re.LIST_PLAYER_BEFORE_PREVIOUS]:this._onBeforeTrackChange.bind(this),[re.LIST_PLAYER_BEFORE_PLAYER_LOAD]:this._onBeforePlayerLoad.bind(this),[re.LIST_PLAYER_PLAYER_LOAD]:this._onListPlayerLoad.bind(this),[re.LIST_PLAYER_BEFORE_TRACK_LOAD]:this._onBeforeTrackLoad.bind(this),[re.LIST_PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[re.LIST_PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[re.LIST_PLAYER_VOLUME_CHANGED]:this._onVolumeChanged.bind(this),[re.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:this._onSpeedChanged.bind(this),[re.LIST_PLAYER_PAUSED]:this._onPlayPause.bind(this,!0),[re.LIST_PLAYER_PLAYING]:this._onPlayPause.bind(this,!1),[re.LIST_PLAYER_PLAYED_THRESHOLD_REACHED]:this._onPlayThresholdReached.bind(this),[re.LIST_PLAYER_PROGRESS]:this._onProgress.bind(this),[re.LIST_PLAYER_TRACKING_DATA_CREATED]:this._onTrackDataCreatedEvent.bind(this),[re.LIST_PLAYER_TRACKING_DATA_FINALIZED]:this._onTrackDataFinalizedEvent.bind(this)}),this._descriptorPromise.then((e=>{e.on("descriptor_changed",(()=>{this._parseDescriptor(e),this._updateDeviceInfo()}))}))}_onBeforeTrackChange(){var e,t;if(this._nextFinalizedDataPayload||this._switchingContext)return;const n=null!==(t=null===(e=this._currentContext)||void 0===e?void 0:e.getStateRef())&&void 0!==t?t:null,o=this._generateStatePayload(n,jn.TRACK_DATA_FINALIZED);this._setSequenceNumber(o),this._nextFinalizedDataPayload=o}_onBeforeTrackLoad(e){var t;this._loading=!0,this._switchingContext=!1,this._currentTrackInfo.duration=void 0,this._stateEventPositionOverride=null===(t=e.data.newTrack.options)||void 0===t?void 0:t.position}_onBeforePlayerLoad(e){var t,n,o,i,r,a,s,l;const c=this._currentContext;if(!c)return;const u=c.getCurrentTrack(),d=null===(t=c.getCurrentState)||void 0===t?void 0:t.call(c),p=null!==(o=null!==(n=null==d?void 0:d.duration_override)&&void 0!==n?n:null==u?void 0:u.metadata.duration)&&void 0!==o?o:0,{data:f}=e,h=f.track.metadata||{},m=this._currentTrackInfo.playbackSpeed||1;this._currentTrackInfo={duration:p,mediaType:f.track.mediaType.toUpperCase(),fileFormat:f.track.fileFormat,bitrate:null===(r=null===(i=f.logData)||void 0===i?void 0:i.format)||void 0===r?void 0:r.bitrate,playbackQuality:h.playbackQuality,hifiStatus:h.hifiStatus,changePlaybackSpeed:null!==(s=!(null===(a=f.track.options)||void 0===a?void 0:a.useDefaultPlaybackSpeed))&&void 0!==s&&s,playbackSpeed:(null===(l=e.data.track.options)||void 0===l?void 0:l.useDefaultPlaybackSpeed)?1:m};const g=f.options;c.setPaused(!g.autoplay),this._setCurrentTrackPosition(g&&g.position||0),this._updateState(jn.BEFORE_TRACK_LOAD),this._startedPlayingUpdateSent=!1,this._initialUpdateSent=!1}_onCapped(){this._listPlayer.clear(s.CAPPED),this._currentContext=null,this._updateState(jn.CAPPED),this._setCurrentTrackPosition(void 0),this._lastProcessedStateId=null,this.emit("state_cleared",null)}_onConnectionId(e){this._connectionId=e.data.id,this._isDeregistering||(this._registered=!1,Promise.all([this._listPlayer.getVolume(),this._descriptorPromise.then(this._parseDescriptor)]).then(this.register,(e=>{Hn.info("Skipping registration due to error",e),this.emit("registration_aborted",{reason_error:e,source:f.TRACK_PLAYBACK})})).catch((()=>{})))}_onDurationChanged(e){var t;const n=null===(t=this._currentContext)||void 0===t?void 0:t.getCurrentTrack();(null==n?void 0:n.metadata.uri)===e.data.track.uri&&(this._currentTrackInfo.duration=e.data.duration,this._emitStateChanged())}_onError(e){"position"in e.data&&(this._setCurrentTrackPosition(e.data.position),this._updateState(jn.ERROR))}_onSpeedChanged(e){this._currentTrackInfo.playbackSpeed=e.data.playback_speed,this._updateState(jn.SPEED_CHANGED)}_onPlayPause(e,t){const n=this._currentContext;n&&(n.setPaused(e),"position"in t.data&&this._setAllTrackPositions(t.data.position),t.data.track.stateId&&this._shouldSendUpdateForEvent(t.data.track.stateId)?this._updateState(e?jn.PAUSE:jn.RESUME):(this._lastProcessedStateId=null,this._emitStateChanged()))}_onPlayThresholdReached(e){this._initialUpdateSent=!0,this._setAllTrackPositions(e.data.position),this._updateState(jn.PLAYED_THRESHOLD_REACHED)}_onPlayTokenLost(){this._listPlayer.pause().catch((function(){}))}_onPositionChanged(e){this._loading||(this._setCurrentTrackPosition(e.data.position),e.data.track&&this._shouldSendUpdateForEvent(e.data.track.stateId)?this._updateState(jn.POSITION_CHANGED):(this._lastProcessedStateId=null,this._emitStateChanged()))}_onProgress(e){if(this._loading||!this._currentContext)return;this._setAllTrackPositions(e.data.position),!this._startedPlayingUpdateSent&&e.data.played>1e3&&(this._startedPlayingUpdateSent=!0,this._updateState(jn.STARTED_PLAYING));if(!e.data.logData)return;const t=this._currentContext.getCurrentTrack(),n=t&&"number"==typeof t.ms_playing_update_interval?t.ms_playing_update_interval:null;this._initialUpdateSent&&null!==n&&n>0&&Date.now()-this._lastUpdateStateTime>n&&this._updateState(jn.PROGRESS)}_onTrackDataCreatedEvent(){this._waitingForTrackingData=(0,c.$)()}_onTrackDataFinalizedEvent(e){const t=this._nextFinalizedDataPayload;t&&(t.playback_stats=e.data.playbackStats,this._updateState(jn.TRACK_DATA_FINALIZED,t)),this._nextFinalizedDataPayload=null,this._waitingForTrackingData&&this._waitingForTrackingData.resolve(!0)}_onListPlayerLoad(e){this._loading=!1;const t=this._currentContext;t&&(t.setPaused(!e.data.autoplay),this._setCurrentTrackPosition(e.data.position||0))}_onTrackPlaybackMessage(e){const t=e.payloads;Array.isArray(t)&&t.length&&this._performCommand(t[0])}_onVolumeChanged(e){var t;if(this._currentGaiaVolume=e.data.volume*d,!this._registered)return;const n=null!==(t=e.data.commandId)&&void 0!==t?t:"",o={seq_num:void 0,volume:this._currentGaiaVolume,command_id:n};this._volumeDebouncer.async(o)}_clearSessionData(){this._connectionId=null,this._sequenceNumber=0,this._currentContext=null,this._lastSentStateUpdatePayload=null,this._isSendingConflict=!1,this._isSendingUpdate=!1,this._queueSendUpdate=[],this._previousTrackPosition=void 0,this._currentTrackPosition=void 0,this._currentTrackInfo={},this._lastProcessedStateId=null,this.emit("state_cleared",null)}_createStateRef(e,t){if(!t)return null;const n=e.states[t.state_index];if(!n)throw new Rn(i.TP_CANNOT_CREATE_STATE_REF,"Invalid state reference.");return{state_machine_id:e.state_machine_id,state_id:n.state_id,paused:t.paused}}_deregisterFromService(e){let t=null;const n=this._currentContext;n&&(e&&(n.setPaused(!e.playing),this._setAllTrackPositions(e.position)),t=n.getStateRef());const o=this._generateStatePayload(t,jn.DEREGISTER);this._setSequenceNumber(o);const i=`${this._endpoint}/v1/devices/${this._deviceId}`;return this._transport.request(i,{authorize:!0,method:"DELETE",payload:JSON.stringify(o),responseType:"json",retry:Zn}).then((e=>{if(200!==e.status&&204!==e.status)return this._registered=!0,!1;const{body:t}=e;return t&&(t.endsong&&Kn.log(t.endsong),t.endsongs&&(Yn.log(t.endsongs),this.emit("internal_endcontent",{endcontents:t.endsongs}))),this._clearSessionData(),this.emit("deregistered",null),!0}))}_emitError(e,t={}){this.emit("error",{error:e,source:f.TRACK_PLAYBACK}),e.registration||this._logger.logJSSDKError({source:"tpapi-client",source_version:$.tagged,type:e.code,message:e&&e.message,stack:e&&e.stack,json_data:t,json_data_version:"1.0.0"},"object").catch((function(e){Hn.error("Track-Playback Logging Error",e)}))}_emitStateChanged(){const e=this._currentContext;if(!e)return;let t=this._currentTrackPosition||0;void 0!==this._stateEventPositionOverride&&(t=this._stateEventPositionOverride,this._stateEventPositionOverride=void 0),this.emit("state_changed",{position:t,currentTrackInfo:this._currentTrackInfo,stateMachine:e.getStateMachine(),stateRef:e.getInternalStateRef(),paused:e.isPaused(),loading:this._loading})}_generateStatePayload(e,t){const n=this._currentTrackInfo;return{seq_num:void 0,seq_nums:void 0,state_ref:e,sub_state:{playback_speed:(null==e?void 0:e.paused)?0:this._currentTrackInfo.playbackSpeed||1,position:this._currentTrackPosition,duration:n.duration||void 0,media_type:n.mediaType,bitrate:n.bitrate,audio_quality:n.playbackQuality,format:n.fileFormat},previous_position:this._previousTrackPosition,playback_stats:void 0,rejected_state_refs:void 0,debug_source:t}}_handleRegisterResponse(e){let t;if(429===e.status)return t=Rn.fatal(i.TP_MAX_SUBSCRIPTIONS_REACHED,"Max connections reached"),t.maxedSubscriptions=!0,t.status=e.status,this.emit("max_subscriptions_reached",{error:t}),Promise.reject(t);if(403===e.status&&e.body&&"PREMIUM_REQUIRED"===e.body.error_type?t=Rn.fatal(i.TP_REGISTRATION_FAILED_NON_PREMIUM,"Cannot register to Track Playback with non-premium user."):200!==e.status?t=Rn.fatal(i.TP_REGISTRATION_FAILED_WITH_STATUS,`track-playback service responded with status ${e.status} when registering device`):e.body||(t=Rn.fatal(i.TP_NO_RESPONSE_BODY,"Unexpected empty response body from registration request.")),t)return t.status=e.status,Promise.reject(t);const n=e.body;return n.endsong&&Kn.log(n.endsong),n.endsongs&&(Yn.log(n.endsongs),this.emit("internal_endcontent",{endcontents:n.endsongs})),this._sequenceNumber=n.initial_seq_num,this._registered=!0,this.emit("registered",{deviceId:this._deviceId}),Promise.resolve(!0)}_handleStateConflictResponse(e){var t;if(e.status>=200&&e.status<300){const n=null===(t=e.body)||void 0===t?void 0:t.commands;if(!n||!n.length)return;for(let e=0,t=n.length;e<t;e++)this._performCommand(n[e])}else{const t=new Rn(i.TP_CONFLICT_REQUEST_FAILED_WITH_STATUS,`Track-Playback service responded with ${e.status}`);t.status=e.status,this._emitError(t)}}_handleStateUpdateResponse(e,t){let n;if(200!==t.status)return n=new Rn(i.TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS,`Service responded with status ${t.status}`),n.status=t.status,Promise.reject(n);if(!t.body)return n=new Rn(i.TP_UPDATE_REQUEST_EMPTY_RESPONSE,"Unexpected empty response body from state update request."),n.status=t.status,Promise.reject(n);const o=t.body;o.endsong&&Kn.log(o.endsong),o.endsongs&&(Yn.log(o.endsongs),this.emit("internal_endcontent",{endcontents:o.endsongs}));const r=this._currentContext;if(!r)return Promise.resolve();const a=o.state_machine,s=o.updated_state_ref;return this._isCurrentStateRef(e)?(r.setStateMachine(a),r.setCurrentState(s),this._emitStateChanged(),Promise.resolve()):Promise.resolve()}_isCurrentStateRef(e){const t=this._currentContext?this._currentContext.getStateRef():null;return!t&&!e||!(!t||!e)&&(t.state_machine_id===e.state_machine_id&&t.state_id===e.state_id&&t.paused===e.paused)}_logUnsentStateUpdate(e){Hn.info("Unsent state update.",e),this._logger.logClientEvent({source:"tpapi-client",source_version:$.tagged,source_vendor:"spotify",event:"unsent-state-update",event_version:"1.0.0",json_data:e},"object").catch((e=>{Hn.error("Track-Playback Logging Error",e)}))}_logout(){this._listPlayer.pause().catch((()=>{})),this.emit("state_cleared",null),this.deregister().then((e=>{this._currentContext=null,this._setCurrentTrackPosition(void 0),e&&this.emit("logout",null)}))}_parseDescriptor(e){return this._deviceId=e.getId(),this._deviceInfo=e.toTrackPlaybackDeviceInfo(),!0}_performCommand(e){switch(e.type){case"set_volume":this._setVolume(e);break;case"log_out":this._logout();break;case"replace_state":this._replaceState(e);break;case"ping":this._updateState(jn.PING);break;default:this._emitError(new Rn(i.TP_UNKNOWN_COMMAND,"Received unknown command."),{command:e})}}_rejectState(e){const t=this._queuedRejectedStates;if(void 0!==e&&t.push(e),!this._registered||this._isSendingConflict||!t.length)return;this._isSendingConflict=!0;const n=t.splice(0,5),o=this._currentContext?this._currentContext.getStateRef():null,i=this._generateStatePayload(o);i.rejected_state_refs=n,this._setSequenceNumbers(i,n.length);const r=()=>{this._isSendingConflict=!1,this._rejectState()},a=`${this._endpoint}/v1/devices/${this._deviceId}/state_conflict`;this._transport.request(a,{authorize:!0,method:"POST",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(i),retry:Zn}).then(this._handleStateConflictResponse).then(r,r)}_replaceState(e){var t,n,o;const i=this._listPlayer,r=e.state_machine,a=e.state_ref,l=this._createStateRef(r,a);if(!this._isCurrentStateRef(e.prev_state_ref))return void this._rejectState(l);if(!a)return void this._clearContextAndState();const c=null!==(n=null===(t=this._currentContext)||void 0===t?void 0:t.getStateRef())&&void 0!==n?n:null;if(function(e,t){if(!e)throw new Error(`Assertion failed: ${t}`)}(null!==l,"New state reference is null"),this._currentContext&&(null==c?void 0:c.state_id)===l.state_id){const t=this._currentContext;t.setStateMachine(r),t.setCurrentState(a);let n=!1;t.isPaused()!==a.paused&&(n=!0),a.paused?(t.setPaused(!0),i.pause()):(t.setPaused(!1),i.resume());const o=parseInt(e.seek_to,10);t.allowSeeking()&&!isNaN(o)&&(i.seek(o,s.REMOTE),this._setCurrentTrackPosition(o),n=!0),n?this._emitStateChanged():(this._lastProcessedStateId=null,this._updateState(jn.MODIFY_CURRENT_STATE))}else{this._lastProcessedStateId=null!==(o=l.state_id)&&void 0!==o?o:null,this._currentContext&&this._onBeforeTrackChange();const t=this._ListClass.create("spotify:app:jsspeaker",this._manifestTrackResolver);t.setStateMachine(r),t.startAtState(a),this._deviceId&&t.setDeviceId(this._deviceId),this._currentContext=t;const n=e.seek_to||0;t.setInitialPosition(n),this._loading=!0,this._switchingContext=!0,i.play(t,{reason:s.REMOTE})}}_clearContextAndState(){const e=this._listPlayer;e.pause().catch((function(){})),e.clear(s.REMOTE),this._currentContext=null,this._updateState(jn.STATE_CLEAR),this._setAllTrackPositions(void 0),this._lastProcessedStateId=null,this.emit("state_cleared",null),this._loading=!0}_sendDevicesRequest(e,t){let n=`${this._endpoint}/v1/devices`;return"PUT"===e&&(n=`${n}/${this._deviceId}`),this._transport.request(n,{authorize:!0,method:e||"POST",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(t),retry:Xn})}_sendVolume(e){const t=`${this._endpoint}/v1/devices/${this._deviceId}/volume`;return this._setSequenceNumber(e),this._transport.request(t,{authorize:!0,method:"PUT",headers:{"Content-Type":"application/json"},payload:JSON.stringify(e)})}_setAllTrackPositions(e){this._previousTrackPosition=e,this._currentTrackPosition=e}_setCurrentTrackPosition(e){this._previousTrackPosition=this._currentTrackPosition,this._currentTrackPosition=e}_setSequenceNumber(e){return void 0===e.seq_num&&(e.seq_num=++this._sequenceNumber),e}_setSequenceNumbers(e,t){e.seq_nums=[];for(let n=0;n<t;n++)e.seq_nums.push(++this._sequenceNumber);return e}_setVolume(e){var t;const n=e.volume/d;this._listPlayer.setVolume(n,null!==(t=e.command_id)&&void 0!==t?t:`tpcommand-${Date.now()}`)}_shouldSendUpdateForEvent(e){return!(!e||e===this._lastProcessedStateId)}_updateDeviceInfo(){this._registered&&this._deviceInfo&&this._sendDevicesRequest("PUT",this._deviceInfo).then((e=>{204===e.status&&this.emit("registration_updated",null)}))}_updateState(e,t){var n,o;if(!this._registered)return;let i,r;if(t?(i=t.state_ref,r=t):(i=null!==(o=null===(n=this._currentContext)||void 0===n?void 0:n.getStateRef())&&void 0!==o?o:null,r=this._generateStatePayload(i,e)),!this._shouldSendPayload(r))return void Hn.info("State update ignored (duplicate).",r);if(this._emitStateChanged(),this._isSendingUpdate&&this._limitStateUpdates)return this._logUnsentStateUpdate(r),void this._queueSendUpdate.push(e);this._isSendingUpdate=!0,this._queueSendUpdate=[],this._setSequenceNumber(r),this._lastSentStateUpdatePayload=r;const a=()=>{this._isSendingUpdate=!1,this._queueSendUpdate.length&&this._updateState(this._queueSendUpdate[this._queueSendUpdate.length-1]),Hn.info("State update sent.",e,r)},s=`${this._endpoint}/v1/devices/${this._deviceId}/state`;this._lastUpdateStateTime=Date.now(),this._transport.request(s,{authorize:!0,method:"PUT",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(r),retry:Xn}).then(this._handleStateUpdateResponse.bind(this,i)).then(a,(e=>{this._emitError(e),a()}))}_shouldSendPayload(e){const t=this._lastSentStateUpdatePayload;if(!t||!t.state_ref||!e.state_ref)return!0;const n=e.state_ref,o=t.state_ref;if(n.paused!==o.paused||n.state_id!==o.state_id||n.state_machine_id!==o.state_machine_id)return!0;const i=e.sub_state,r=t.sub_state;if(i.playback_speed!==r.playback_speed||i.position!==r.position)return!0;if(e.previous_position!==t.previous_position)return!0;return Math.abs((i.duration||0)-(r.duration||0))>=26}stop(){return!(!this._registered||!this._currentContext)&&(this._clearContextAndState(),!0)}deregister(){return this._registered?(this._isDeregistering=!0,this._registered=!1,this._listPlayer.getPlayerState().then((e=>Promise.all([this._deregisterFromService(e),this._waitingForTrackingData.promise,this._listPlayer.stop().catch((()=>{}))]).then((([e])=>(this._isDeregistering=!1,e)))),(()=>(this._isDeregistering=!1,this._registered=!0,!1)))):Promise.resolve(!1)}register(){if(this._registered)return Promise.resolve(!1);if(!this._deviceInfo)return Promise.reject(new Error("Need DeviceInfo for device registration."));if(!this._connectionId)return Promise.reject(new Error("Need connection-id for device registration"));let e;const t=this._currentContext;return t&&(e=this._generateStatePayload(t.getStateRef(),jn.REGISTER),this._setSequenceNumber(e)),this._sendDevicesRequest("POST",{device:this._deviceInfo,outro_endcontent_snooping:"true"==={}.OUTRO_SNOOPING,connection_id:this._connectionId,client_version:this._clientVersion,previous_session_state:e,volume:this._currentGaiaVolume}).then(this._handleRegisterResponse).catch((e=>(e&&!e.maxedSubscriptions&&(e.registration=!0,this._emitError(e)),!1)))}}function $n(e,t={}){return function(e,t,n={}){var o,i,r,a,s,l,c,u,d;const p=e.getSDKId(),f=e.getPublicTransport(),h=e.getLogger(),m=e.getDeviceDescriptor(),g=null!==(o=n.initialVolume)&&void 0!==o?o:1;n.audioProcessorOptions=Object.assign(Object.assign({},n.audioProcessorOptions),{disable:null===(r=null===(i=n.audioProcessorOptions)||void 0===i?void 0:i.disable)||void 0===r||r});const v=Cn(Object.assign(Object.assign({},n),{transport:f,sdkId:e.getUntaggedSDKId(),loggerOptions:{disableMux:null===(l=null!==(s=null===(a=null==n?void 0:n.mux)||void 0===a?void 0:a.disable)&&void 0!==s?s:null==n?void 0:n.disableMux)||void 0===l||l,muxEnvKey:null!==(u=null===(c=null==n?void 0:n.mux)||void 0===c?void 0:c.envKey)&&void 0!==u?u:null==n?void 0:n.muxEnvKey,deviceInfo:m.then((e=>({platform_name:e.getPlatformName(),platform:e.getPlatformIdentifier(),version:e.getPlatformVersion(),brand:e.getBrand(),model:e.getModel(),type:e.getType()}))),muxCustomDimensions:null===(d=null==n?void 0:n.mux)||void 0===d?void 0:d.customDimensions,platform:e.getPlatformIdentifier(),clientVersion:e.getPlatformVersion()}})).then((({player:e})=>e)),y=v.then((e=>e.getMediaConfig())),_=Promise.all([m,y]).then((([e,t])=>(e.getCapability("audio_podcasts")&&!n.disableExternalFiles&&e.appendManifestFormat(w.FILE_URLS_EXTERNAL),t.keysystem===ae.FAIRPLAY?e.appendManifestFormat(w.FILE_IDS_CBCS):t.keysystem!==ae.WIDEVINE||n.preferMultiDRMFormat?e.appendManifestFormat(w.FILE_IDS_MP4_DUAL,w.FILE_IDS_MP4):(-1!==t.formats.audio.indexOf('audio/mp4; codecs="flac"')&&e.getCapability("lossless_playback")&&e.appendManifestFormat(w.FILE_IDS_MP4FLAC),e.appendManifestFormat(w.FILE_IDS_MP4,w.FILE_IDS_MP4_DUAL)),t.supports.protected_video&&e.getCapability("video_playback")&&e.prependManifestFormat(w.MANIFEST_IDS_VIDEO),e))),b=Pn.create({trackPlayer:v}),S=Un.create({descriptor:m,listPlayer:b}),{playbackServiceClient:E,playbackStateObserver:A}=t({initialVolume:g,listPlayer:b,logger:h,transport:f,clientVersion:p,descriptor:_,endpoint:n.endpoint,manifestTrackResolver:S});return new kn({client:e,playbackServiceClient:E,playbackStateObserver:A,initialVolume:g,playerPromise:v,listPlayer:b,stopOnBackground:n.stopOnBackground})}(e,(e=>{const t=Qn.create(Object.assign(Object.assign({},e),{ListClass:Ln}));return{playbackServiceClient:t,playbackStateObserver:Mn.create(t)}}),t)}const eo=T.P.forTag("transport.server_time");class to{constructor(e){this._serverTime=0,this._serverTimeFetchedAt=0,this._transport=e}static create(e){return new to(e)}_parseServiceResponse(e,t){const n=Date.now(),o=t.status;return o===P.G.OK?this._serverTime=parseInt(t.body.timestamp,10)+Math.round((n-e)/2):(eo.error(`Cannot fetch server time. Service responded with ${o}`),this._serverTime=n),this._serverTimeFetchedAt=n,this._serverTime}get(){const e=Date.now();return this._transport.request("@webgate/melody/v1/time",{responseType:"json"}).then(this._parseServiceResponse.bind(this,e))}getApproximate(){if(!this._serverTime)return this.get(),Date.now();const e=Date.now()-this._serverTimeFetchedAt;return e>18e4&&this.get(),this._serverTime+e}}var no;!function(e){e.LOCAL_PLAYER_DISABLED="local_player_disabled",e.STOPPED="stopped",e.REMOTE_ACTIVATED="remote_activated",e.UNKNOWN="unknown"}(no||(no={}));class oo extends Error{constructor(e,t){super(t),this.status=-1,this.maxedSubscriptions=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.name="PlayerAPIClientError"}static fatal(e,t){const n=new oo(e,t);return n.unrecoverable=!0,n}}class io{constructor(e){this._transport=e.transport,this._metadataCache=new pe.z(e.cacheSize||20)}static create(e){return new io(e)}_decorateTrackWindow(e){const t=this._metadataCache,n={current_track:null,next_tracks:[],previous_tracks:[]};let o,i,r;e.current_track&&(i=t&&e.current_track&&"uri"in e.current_track&&t.get(e.current_track.uri),n.current_track=Object.assign({uid:e.current_track.uid},i||e.current_track)),o=e.next_tracks.length;for(;o--;)r=e.next_tracks[o],i=t&&r&&"uri"in r&&t.get(r.uri),n.next_tracks[o]=Object.assign({uid:r.uid},i||r);for(o=e.previous_tracks.length;o--;)r=e.previous_tracks[o],i=t&&r&&"uri"in r&&t.get(r.uri),n.previous_tracks[o]=Object.assign({uid:r.uid},i||r);return n}_buildTrackList(e){const t=[],n={},o=[e.current_track,...e.next_tracks,...e.previous_tracks];for(const e of o)e&&!n[e.uri]&&t.push(e.uri);return t}_cacheMetadata(e){const t=[],n=[],o=this._metadataCache;for(const i of e){if(o.get(i))continue;const e=(0,Nn.EC)(i);e&&(e.type===Nn.JM.TRACK?n.push(e.id):e.type===Nn.JM.EPISODE&&t.push(e.id))}return t.length||n.length?Promise.all([this._requestMultiData("episodes",t),this._requestMultiData("tracks",n)]).then((([e,t])=>!!e||!!t)):Promise.resolve(!0)}_requestMultiData(e,t){if(!t.length)return Promise.resolve(!1);const n=this._metadataCache,o=["https://@webapi/v1/",e,"?ids=",t.join(","),"&market=from_token"].join("");return this._transport.request(o,{responseType:"json"}).then((t=>{var o;if(200!==t.status)return!1;const i=null===(o=t.body)||void 0===o?void 0:o[e];if(!i)return!1;let r=i.length;for(;r--;){let t=i[r];t&&("episodes"===e?t=this._formatEpisodeData(t):(t.track_type="audio",t.media_type="audio"),n&&n.set(t.uri,t),n&&t.linked_from&&t.linked_from.uri&&n.set(t.linked_from.uri,t))}return!0}))}_formatEpisodeData(e){const t="audio"===e.show.media_type?"audio":"video";return{id:e.id,uri:e.uri,type:"episode",media_type:t,track_type:e.show.media_type,name:e.name,artists:[{uri:e.show.uri,name:e.show.publisher}],album:{uri:e.show.uri,name:e.show.name,images:e.images},duration_ms:e.duration_ms||0,is_playable:!0}}formatLocalTrack(e,t){if(!e||e.type!==Nn.JM.LOCAL_TRACK)return null;return{uri:e.toURI(),type:"local",uid:t,media_type:"audio",track_type:"audio",name:e.track,artists:[{uri:(0,Nn.ak)(e.artist).toURI(),name:e.artist}],album:{uri:(0,Nn.Jf)(e.artist,e.album).toURI(),name:e.album,images:[{url:""}]},duration_ms:e.duration?1e3*e.duration:0,is_playable:!1}}formatAd(e,t){if(!e||e.type!==Nn.JM.AD&&e.type!==Nn.JM.INTERRUPTION)return null;if(!t||!t.metadata)return null;const n=t.metadata;return{id:e.id,uri:e.toURI(),type:e.type,uid:t.uid,media_type:"audio",track_type:"audio",name:n.advertiser,artists:[{uri:n.click_url,name:n.buttonMessage||n.advertiser}],album:{uri:n.click_url,name:n.advertiser,images:[{url:n.image_url}]},duration_ms:parseInt(n.duration,10),is_playable:!1}}decorateTrackWindow(e,t){const n=null!=t?t:this._buildTrackList(e);return this._cacheMetadata(n).then((t=>t?this._decorateTrackWindow(e):e))}}const ro=T.P.forTag("harmony.controller"),ao=/^disallow_([^]+)_reasons$/,so={disallow_pausing_reasons:!0,disallow_peeking_next_reasons:!0,disallow_peeking_prev_reasons:!0,disallow_resuming_reasons:!0,disallow_seeking_reasons:!0,disallow_skipping_next_reasons:!0,disallow_skipping_prev_reasons:!0,disallow_toggling_repeat_context_reasons:!0,disallow_toggling_repeat_track_reasons:!0,disallow_toggling_shuffle_reasons:!0,disallow_transferring_playback_reasons:!0},lo="premium",co="on-demand",uo={unknown:bn.UNKNOWN,default:bn.DEFAULT,low:bn.LOW,normal:bn.NORMAL,normalized:bn.NORMAL,high:bn.HIGH,veryhigh:bn.VERY_HIGH,hifi:bn.HIFI},po={on:In.ON,off:In.OFF,none:In.NONE};function fo(e,t){if(!e)return[];const n=[],o=[Nn.JM.TRACK,Nn.JM.EPISODE];for(let i=0,r=e.length;i<r;i++){let r,a=e[i];if(!a)throw new TypeError("Null value inside track array.");if("string"==typeof a?(r=(0,Nn.EC)(a),a={uri:a}):r=(0,Nn.EC)(a.uri),!/^spotify:(meta:|delimiter)/.test(a.uri)){if(!r)throw new TypeError(`Invalid uri string: ${r}`);if(-1===o.indexOf(r.type))throw new TypeError(`Invalid track uri: ${a.uri}`)}a.metadata||(a.metadata={}),t&&t.queued&&(a.metadata.is_queued="true"),n.push(a)}return n}function ho(e){if(e){if(/^.+:\/\//.test(e))return e;throw new TypeError(`Invalid page url: ${e}`)}}class mo extends l.vp{constructor(e){super(),this._suppressed=!1,this._lastDeviceInfoData=null,this._state=null,this._lastPlayerState=null,this._isOrphanedState=!1,this._progressPosition=0,this._lastProgressTs=0,this._trackingIntervalId=0,this._queue=null,this._client=e.client,this._serverTime=e.serverTime,this._version=e.version,this._playerClient=e.playerClient,this._disableProgress=!!e.disableProgress,this._transport=this._client.getPublicTransport(),this._decorate=!!e.decorateTrackWindow,this._metadataDecorator=new io({transport:this._transport}),this._onClientBeforeDisconnect=this._onClientBeforeDisconnect.bind(this),this._onDeviceStateChanged=this._onDeviceStateChanged.bind(this),this._onPlayerStateChanged=this._onPlayerStateChanged.bind(this),this._onProgressTracking=this._onProgressTracking.bind(this),this._client.on("before_disconnect",this._onClientBeforeDisconnect),this.proxyEmit(this._playerClient,"max_subscriptions_reached","max_subscriptions_reached"),this.proxyEmit(this._playerClient,"devices_changed","devices_changed"),this.proxyEmit(this._playerClient,"registered","registered"),this.proxyEmit(this._playerClient,"deregistered","deregistered"),this._playerClient.on("device_state_changed",this._onDeviceStateChanged),this._playerClient.on("player_state_changed",this._onPlayerStateChanged)}static create(e){return new mo(e)}_onClientBeforeDisconnect(e){e&&e.data.awaitPromise(this._playerClient.deregister().catch((()=>{})))}_onDeviceStateChanged(e){var t,n;const{deviceState:o,hasOrphanedState:i}=e.data,r=!!(null===(n=null===(t=this._lastDeviceInfoData)||void 0===t?void 0:t.deviceInfo)||void 0===n?void 0:n.local);this._lastDeviceInfoData={deviceInfo:o,hasOrphanedState:i},r&&!(null==o?void 0:o.local)&&this._playerClient.getDevices().then((({localDevice:e})=>{let t=no.STOPPED;i?e||(t=no.LOCAL_PLAYER_DISABLED):t=no.REMOTE_ACTIVATED,this.emit("device_deactivated",{reason:t})})).catch((e=>{ro.warn("Device deactivation checking failed.",e)})),this._suppressed||this.emit("device_info_changed",this._lastDeviceInfoData)}_startProgressTracking(){this._stopProgressTracking(),this._lastProgressTs=Date.now(),this._onProgressTracking(),this._trackingIntervalId=setInterval(this._onProgressTracking,500)}_stopProgressTracking(){this._trackingIntervalId&&(clearInterval(this._trackingIntervalId),this._trackingIntervalId=0)}_onProgressTracking(){var e;const t=Date.now(),n=(null===(e=this._lastPlayerState)||void 0===e?void 0:e.playback_speed)||1;this._progressPosition+=n*(t-this._lastProgressTs),this.emit("progress",{position:this._progressPosition,timestamp:Date.now()}),this._lastProgressTs=t}_getLicense(){return this._client.getProductState().then((e=>"premium"===e.product?lo:co)).catch((()=>co))}_generatePlayOptions(e,t){return this._getLicense().then((n=>{const o={license:n};if(!e)return o;if(("index"in e||"trackUID"in e||"trackURI"in e||"pageIndex"in e)&&(o.skip_to={track_uid:e.trackUID,track_index:e.index,track_uri:e.trackURI,page_index:e.pageIndex}),"initialOffset"in e&&(o.seek_to=e.initialOffset),"paused"in e&&(o.initially_paused=e.paused),"alwaysPlaySomething"in e&&(o.always_play_something=e.alwaysPlaySomething),t)return o;o.player_options_override={};const i=o.player_options_override;if("shuffle"in e&&(i.shuffling_context=e.shuffle),"repeatMode"in e)switch(e.repeatMode){case h.CONTEXT:i.repeating_context=!0,i.repeating_track=!1;break;case h.TRACK:i.repeating_track=!0,i.repeating_context=!1;break;case h.OFF:i.repeating_track=!1,i.repeating_context=!1}return o}))}_setFilterAndSort(e,t){t&&t.filter&&e.metadata&&(e.metadata["filtering.predicate"]=t.filter),t&&t.sort&&e.metadata&&(e.metadata["sorting.criteria"]=t.sort)}_setMetadataOptions(e,t){if(!t)return;const n=e.metadata||{};"autoplayCandidate"in t&&(n.autoplay_candidate=t.autoplayCandidate?"true":"false"),e.metadata=n}_generatePlayOrigin(e){if(e&&e.featureClasses&&!Array.isArray(e.featureClasses))throw new TypeError("PlayOptions playOrigin.featureClasses must be an array of strings.");return{feature_identifier:e&&e.featureIdentifier||"harmony",feature_version:e&&e.featureVersion||this._version,feature_classes:e&&e.featureClasses,view_uri:e&&e.viewURI,external_referrer:e&&e.externalReferrer,referrer_identifier:e&&e.referrerIdentifier}}_generateLoggingParams(e){if(!e)return;const{pageInstanceId:t,interactionId:n}=e;return{page_instance_ids:t?[t]:[],interaction_ids:n?[n]:[]}}_parseRestrictions(e){const t={};for(const n in e.restrictions)e.restrictions.hasOwnProperty(n)&&so[n]?t[n]=e.restrictions[n]:so[n]&&(t[n]=[]);return t}_parseDisallows(e){const t={},n=e.restrictions;for(const e in n)if(n.hasOwnProperty(e)&&so[e]){const o=n[e],i=!(!o||!o.length);t[e.replace(ao,"$1")]=i}return t}_onPlayerStateChanged(e){this._isOrphanedState=e.data.orphaned,this._parsePlayerState(e.data.playerState).then((t=>{this._state=t,this._suppressed||this.emit("state_changed",{state:t?Object.assign({},t):null,orphaned:e.data.orphaned}),!this._disableProgress&&t&&(this._progressPosition=t.position,t.paused?this._stopProgressTracking():this._startProgressTracking())}))}_parsePlayerState(e){return this._lastPlayerState=e,e?this._getTrackWindow(e).then((t=>{var n,o,i,r,a,s,l,c;return{context:{uri:e.context_uri||null,metadata:e.context_metadata||{}},timestamp:e.timestamp,duration:e.duration||t.current_track&&"uri"in t.current_track&&t.current_track.duration_ms||0,position:e.is_paused?e.position_as_of_timestamp:this._offsetPosition(e.timestamp,e.position_as_of_timestamp,null===(n=this._lastPlayerState)||void 0===n?void 0:n.playback_speed),playback_id:null,playback_quality:null!==(r=uo[null!==(i=null===(o=e.playback_quality)||void 0===o?void 0:o.bitrate_level)&&void 0!==i?i:"unknown"])&&void 0!==r?r:bn.UNKNOWN,playback_features:{hifi_status:po[null!==(s=null===(a=e.playback_quality)||void 0===a?void 0:a.hifi_status)&&void 0!==s?s:"none"]},paused:!!e.is_paused,shuffle:!(!e.options||!e.options.shuffling_context),repeat_mode:this._getStateRepeatMode(e),restrictions:this._parseRestrictions(e),disallows:this._parseDisallows(e),track_window:t,bitrate:null,loading:null!==(c=null===(l=this._state)||void 0===l?void 0:l.loading)&&void 0!==c&&c}})):Promise.resolve(null)}_offsetPosition(e,t,n=1,o){const i=t+((o||this._serverTime.getApproximate())-e)*n;return i<0?0:i}_isRestricted(e,t){if(!e||!e.restrictions)return!1;const n=`disallow_${t}_reasons`;return!!(e.restrictions[n]||[]).length}_getTrackWindow(e){const t={current_track:null,next_tracks:[],previous_tracks:[]},n={},o=[];if(!e.track)return Promise.resolve(t);const i=e.track.uri;if(!i)return Promise.resolve(t);const r=this._metadataDecorator,a=(0,Nn.EC)(i),s=r.formatLocalTrack(a,e.track.uid),l=r.formatAd(a,e.track);return t.current_track=s||l||{uri:i,uid:e.track.uid,type:a&&a.type?a.type:"unknown"},s||l||(n[i]=1,o.push(i)),this._isRestricted(e,"peeking_next")||this._fillWindow(o,t.next_tracks,n,e.next_tracks?e.next_tracks.slice(0,5):[]),this._isRestricted(e,"peeking_prev")||this._fillWindow(o,t.previous_tracks,n,e.prev_tracks?e.prev_tracks.slice(-5):[],!0),this._decorate?this._metadataDecorator.decorateTrackWindow(t,o):Promise.resolve(t)}_fillWindow(e,t,n,o,i){i&&o.reverse();for(const r of o){const o=r.uri,a=(0,Nn.EC)(o);if(!o||"spotify:delimiter"===o||a&&(a.type===Nn.JM.AD||a.type===Nn.JM.INTERRUPTION))continue;const s=this._metadataDecorator.formatLocalTrack(a,r.uid),l=s||{uri:o,uid:r.uid,type:"unknown"};if(s||o in n||(n[o]=1,e.push(o)),i?t.unshift(l):t.push(l),2===t.length)break}}_getStateRepeatMode(e){const t=e.options;return t&&t.repeating_track?h.TRACK:t&&t.repeating_context?h.CONTEXT:h.OFF}_play(e,t,n){return this._setFilterAndSort(e,n),this._setMetadataOptions(e,n),this._generatePlayOptions(n).then((o=>{const i={context:e,play_origin:this._generatePlayOrigin(n&&n.playOrigin),options:o,logging_params:this._generateLoggingParams(null==n?void 0:n.loggingParams)};return this._playerClient.play(i,t)}))}getActiveDevice(){return this._playerClient.getActiveDevice()}getCurrentState(e){var t;if(e&&this._isOrphanedState)return Promise.resolve(null);const n=this._state;if(n&&!n.paused){const e=this._serverTime.getApproximate();n.position=this._offsetPosition(n.timestamp,n.position,null===(t=this._lastPlayerState)||void 0===t?void 0:t.playback_speed,e),n.timestamp=e}return Promise.resolve(n?Object.assign({},n):null)}getContextPlayerState(){return ro.warn("The `getContextPlayerState()` method is not well supported. Please avoid using it directly."),this._playerClient.getContextPlayerState()}getDevices(){return this._playerClient.getDevices()}playURI(e,t,n){if(!(0,Nn.EC)(e))return Promise.reject(new TypeError("Invalid Spotify URI"));const o={uri:e,url:`context://${e}`,metadata:n&&n.contextMetadata||{}};return this._play(o,t,n)}playPages(e,t,n){var o;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid pages array."));let i;try{i=function(e){var t,n,o;const i=[];for(const r of e)i.push({tracks:Array.isArray(r.tracks)?fo(r.tracks):void 0,page_url:null!==(t=ho(r.pageURL))&&void 0!==t?t:void 0,next_page_url:null!==(n=ho(r.nextPageURL))&&void 0!==n?n:void 0,metadata:null!==(o=r.metadata)&&void 0!==o?o:void 0});return i}(e)}catch(e){return Promise.reject(e)}const r={uri:null!==(o=null==n?void 0:n.contextURI)&&void 0!==o?o:"spotify:internal:harmony-play-pages",metadata:(null==n?void 0:n.contextMetadata)||{},pages:i};return this._play(r,t,n)}playTracks(e,t,n){var o;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid tracks array."));let i;try{i=fo(e)}catch(e){return Promise.reject(e)}const r={uri:null!==(o=null==n?void 0:n.contextURI)&&void 0!==o?o:"spotify:internal:harmony-play-tracks",metadata:(null==n?void 0:n.contextMetadata)||{},pages:[{tracks:i}]};return this._play(r,t,n)}updateCurrentContext(e,t={}){return this._playerClient.updateCurrentContext(e,t)}setQueue(e,t,n){if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid nextTracks array."));if(!Array.isArray(t))return Promise.reject(new TypeError("Invalid previousTracks array."));let o,i;try{o=fo(e),i=fo(t)}catch(e){return Promise.reject(e)}const r={next_tracks:o.length?o:void 0,prev_tracks:i.length?i:void 0};return this._playerClient.setQueue(r,n)}transfer(e,t={}){return this._playerClient.transfer(e,t)}pause(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.pause(e,n)}resume(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.resume(e,n)}togglePlay(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.togglePlay(e,n)}nextTrack(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return(null==t?void 0:t.track)&&(n.track=b([t.track])[0]),this._playerClient.nextTrack(e,n)}previousTrack(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return(null==t?void 0:t.track)&&(n.track=b([t.track])[0]),this._playerClient.previousTrack(e,n)}seek(e,t){return this._playerClient.seek(e,t)}setShuffle(e,t,n){const o={logging_params:this._generateLoggingParams(null==n?void 0:n.loggingParams)};return this._playerClient.setShuffle(e,t,o)}toggleShuffle(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.toggleShuffle(e,n)}setVolume(e,t){return this._playerClient.setVolume(e,t)}logout(e){return this._playerClient.logout(e)}setRepeatMode(e,t){return this.getCurrentState().then((n=>{if(!n)return Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const o=this._playerClient,r=n.disallows;switch(e){case h.OFF:return(!r.toggling_repeat_context||!r.toggling_repeat_track)&&o.setOptions({repeating_context:!!r.toggling_repeat_context&&void 0,repeating_track:!!r.toggling_repeat_track&&void 0},t);case h.CONTEXT:return!r.toggling_repeat_context&&o.setOptions({repeating_context:!0,repeating_track:!!r.toggling_repeat_track&&void 0},t);case h.TRACK:return!r.toggling_repeat_track&&o.setOptions({repeating_context:!r.toggling_repeat_context||void 0,repeating_track:!0},t);default:return Promise.reject(new TypeError("Unknown repeat mode."))}}))}register(){return this._playerClient.register()}suppressEvents(){this._suppressed=!0}unsuppressEvents(){this._suppressed=!1,this._lastDeviceInfoData&&this.emit("device_info_changed",this._lastDeviceInfoData),this._state&&this.emit("state_changed",{state:this._state})}getQueueManager(e,t={}){if(!this._queue){const n=t.reportInitial?this._lastPlayerState:null;this._queue=new E(Object.assign({connectClient:this._playerClient,initialContextPlayerState:n,runner:e},t))}return this._queue}}var go=n(16221);const vo=/connect-state\/v1\/cluster$/,yo=/^([a-zA-Z0-9_%:-]{1,40}).*$/;function _o(e){var t,n,o;return!!e.track&&0===(null!==(o=null===(n=null===(t=e.restrictions)||void 0===t?void 0:t.disallow_transferring_playback_reasons)||void 0===n?void 0:n.length)&&void 0!==o?o:0)}const bo="::a_";function So(e){if(!e)return{deviceId:null};const[t,n]=e.split(bo);return{deviceId:t,aliasId:n?parseInt(n,10):void 0}}class Eo extends l.vp{constructor(e){super(),this._autoregister=!0,this._connectionId="",this._localDeviceId="",this._localObserverDeviceId=null,this._lastActiveDevice=null,this._lastKnownPlayerState=null,this._lastKnownDevices=[],this._localDevice=null,this._fetchedInitialState=!1,this._awaitingAcknowledgment={},this._acknowledgementMaps=[],this._lastProcessedTimestamp=0,this._descriptor=e.descriptor,this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/connect-state",this._autoregister=!("autoregister"in e)||!!e.autoregister,this._onConnectionId=this._onConnectionId.bind(this),this._onClusterMessage=this._onClusterMessage.bind(this),this._awaitResponseWithAck=this._awaitResponseWithAck.bind(this),this._transport.on(this._transport.EVENT_CONNECTION_ID,(e=>{this._onConnectionId(e.data.id)})),this._transport.matchMessages(vo,this._onClusterMessage),this._descriptorPromise=Promise.resolve(this._descriptor).then((e=>(this._localDeviceId=e.id||"",this._localObserverDeviceId=("hobs_"+this._localDeviceId).replace(yo,"$1"),!0)))}static create(e){return new Eo(e)}_onConnectionId(e){this._connectionId=e,this._autoregister&&this.register()}_onClusterMessage(e){const t=e.payloads&&e.payloads[0];if(t){if(t.ack_id){const e=t.ack_id,n=this._awaitingAcknowledgment[e];if(n)n.resolve(!0);else{const t=this._acknowledgementMaps;for(const n of t)n[e]=(0,c.$)()}}this._parseCluster(t.cluster)}}_resolveTargetDevice(e){return this._descriptorPromise.then((()=>{const t=this._localDeviceId;return So(e?e===u?t:e:this._lastActiveDevice?this._lastActiveDevice.id:t)}))}_makeEndpoint(e,t,n){return this._descriptorPromise.then((()=>{const o=this._localDeviceId;return`${this._endpoint}/${e}/${t}/from/${o}/to/${n}`}))}_sendPlayerCommand(e,t=null,n={}){n.endpoint=e;const o={command:n};return this._resolveTargetDevice(t).then((e=>{if(!e.deviceId)throw new oo(i.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return!o.target_alias_id&&e.aliasId&&(o.target_alias_id=e.aliasId),this._makeEndpoint("v1","player/command",e.deviceId)})).then((e=>this._sendRequest(go.n.POST,e,o))).then(this._awaitResponseWithAck)}_sendConnectCommand(e,t=null,n={}){const o="volume"===e?go.n.PUT:go.n.POST,r="volume"===e||"logout"===e;return this._resolveTargetDevice(t).then((t=>{if(!t.deviceId)throw new oo(i.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return t.aliasId&&(r?n.command_options={target_alias_id:t.aliasId}:n.target_alias_id||(n.target_alias_id=t.aliasId)),this._makeEndpoint("v1",`connect/${e}`,t.deviceId)})).then((e=>this._sendRequest(o,e,n))).then(this._awaitResponseWithAck)}_sendRequest(e,t,n){const o=this._acknowledgementMaps,i={};o.push(i);const r=()=>{const e=o.indexOf(i);-1!==e&&o.splice(e,1)};return this._transport.request(t,{method:e,payload:n?JSON.stringify(n):void 0,responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>(r(),{response:e,map:i})),(e=>(r(),Promise.reject(e))))}_awaitResponseWithAck(e){var t,n;if(404===e.response.status)return Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_DEVICE,"No such device."));const o=null===(t=e.response.body)||void 0===t?void 0:t.ack_id;if(200===e.response.status&&o){if(null===(n=e.map)||void 0===n?void 0:n[o])return Promise.resolve(!0);const t=(0,c.$)();return this._awaitingAcknowledgment[o]=t,t.promise}return Promise.resolve(202===e.response.status&&!o)}_parseCluster(e){if(!e)return;const t=parseInt(e.timestamp,10);this._lastProcessedTimestamp>t||(this._lastProcessedTimestamp=t,this._parseClusterDevices(e),this._parseClusterPlayerState(e))}_parseClusterDevices(e){const t=this._lastActiveDevice;this._lastActiveDevice=null,this._lastKnownDevices=[],this._localDevice=null;const n=[];for(const t in e.devices)e.devices.hasOwnProperty(t)&&n.push(t);if(n.sort(),n.length){const t=e.active_device_id;for(const o of n){const n=e.devices[o],i=this._formatClusterDevice(n,t);this._lastKnownDevices.push(...i);for(const e of i)e.is_active&&(this._lastActiveDevice=e),e.local&&(this._localDevice=e)}}if(!this._fetchedInitialState||!g(this._lastActiveDevice,t)){const n=e.player_state,o=n&&_o(n);this.emit("device_state_changed",{deviceState:this._lastActiveDevice,hasOrphanedState:!this._lastActiveDevice&&!!o,disappeared:!!t&&!this._lastActiveDevice})}this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice})}_formatClusterDevice(e,t){const n={};if(e&&Array.isArray(e.metadata))for(let t=0,o=e.metadata.length;t<o;t++){const o=e.metadata[t];n[o.type]=o.metadata}const{capabilities:o}=e,i={hidden:!1,id:e.device_id,is_active:e.device_id===t,is_controllable:!!o.is_controllable,is_observable:!!o.is_observable,local:e.device_id===this._localDeviceId,metadata:n,name:e.name,type:(e.device_type||D.UNKNOWN).toLowerCase(),version:e.device_software_version,volume:o.disable_volume?-1:e.volume/d||0,capabilities:{supports_lossless_audio:!!o.supports_lossless_audio},is_alias:!1,is_alias_group:!1,playback_features:{hifi_status:o.supports_hifi},is_group:!!e.is_group,is_being_activated:!1};if(!e.device_aliases)return[i];const r=[];for(const t in e.device_aliases){if(!e.device_aliases.hasOwnProperty(t))continue;const n=e.device_aliases[t];if(!n)continue;const o=Object.assign(Object.assign({},i),{id:`${i.id}${bo}${n.id}`,name:n.display_name,is_alias:!0,is_alias_group:e.is_group||n.is_group,is_active:i.is_active&&e.selected_alias_id===n.id,is_group:!!n.is_group});r.push(o)}return r}_parseClusterPlayerState(e){this._lastKnownPlayerState=null;const t=e.active_device_id,n=t&&e.devices[t];let o=e.player_state;o&&o.track&&(n&&n.capabilities&&!n.capabilities.is_observable?o=null:(n||(o.is_paused=!0,o.restrictions&&(delete o.restrictions.disallow_resuming_reasons,o.restrictions.disallow_pausing_reasons=["already_paused"])),o.duration=parseInt(o.duration,10),o.position=parseInt(o.position,10),o.position_as_of_timestamp=parseInt(o.position_as_of_timestamp,10),o.timestamp=parseInt(o.timestamp,10),o.next_tracks=o.next_tracks||[],o.prev_tracks=o.prev_tracks||[]),this._lastKnownPlayerState=o);let i=!n&&!!this._lastKnownPlayerState;i&&o&&!_o(o)&&(this._lastKnownPlayerState=null,i=!1),this.emit("player_state_changed",{playerState:this._lastKnownPlayerState,orphaned:i,isLocal:!!t&&t===this._localDeviceId})}_register(){this._fetchedInitialState=!1;const e=`${this._endpoint}/v1/devices/${this._localObserverDeviceId}`;return this._connectionId||Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_CONNECTION_ID,"Cannot register: no connection id.")),this._transport.request(e,{method:"PUT",headers:{"X-Spotify-Connection-Id":this._connectionId,Accept:"application/json"},payload:JSON.stringify({member_type:"CONNECT_STATE",device:{device_info:{capabilities:{can_be_player:!1,hidden:!0,needs_full_player_state:!0}}}}),responseType:"json"}).then((e=>{429===e.status?this.emit("max_subscriptions_reached",{error:new oo(i.CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED,"Max connections reached")}):200===e.status&&(this.emit("registered",null),e.body&&(this._parseCluster(e.body),this._fetchedInitialState=!0)),429!==e.status&&408!==e.status||(this._lastKnownDevices=this._lastKnownDevices.map((e=>(e.is_being_activated=!1,e))),this._localDevice&&(this._localDevice.is_being_activated=!1),this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice}))}))}register(){return this._connectionId?this._descriptorPromise.then(this._register.bind(this)):Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_CONNECTION_ID,"Cannot register: no connection id."))}deregister(){const e=`${this._endpoint}/v1/devices/${this._localObserverDeviceId}`;return this._transport.request(e,{method:"DELETE",responseType:"json"}).then((e=>{200===e.status&&this.emit("deregistered",null)}))}getDevices(){return this._fetchedInitialState?Promise.resolve({devices:this._lastKnownDevices,localDevice:this._localDevice}):new Promise((e=>{this.once("device_state_changed",(()=>{e({devices:this._lastKnownDevices,localDevice:this._localDevice})}))}))}getActiveDevice(){return this._fetchedInitialState?Promise.resolve(this._lastActiveDevice):new Promise((e=>{this.once("device_state_changed",(t=>{e(t.data.deviceState)}))}))}getContextPlayerState(){return this._fetchedInitialState?Promise.resolve(this._lastKnownPlayerState):new Promise((e=>{this.once("player_state_changed",(t=>{e(t.data.playerState)}))}))}play(e,t=null){return e?this._sendPlayerCommand("play",t,e):Promise.reject(new oo(i.CONNECTAPI_CLIENT_INVALID_ARGUMENTS,"Descriptor is required for play commands"))}updateCurrentContext(e=null,t={}){return this.getContextPlayerState().then((n=>n?n.session_id?n.context_url||t.forceNonUpdateable?this._sendPlayerCommand("update_context",e,{context:{url:n.context_url||`context://${n.context_uri}`},session_id:n.session_id}):Promise.resolve(!1):Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_SESSION_ID,"The current state does not have a session id")):Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"))))}setQueue(e,t){return this._sendPlayerCommand("set_queue",t,e)}addToQueue(e,t){return this._sendPlayerCommand("add_to_queue",t,{track:e})}transfer(e,t={}){var n,o;this._lastKnownDevices=this._lastKnownDevices.map((t=>(t.is_being_activated=t.id===e,t))),this._localDevice&&(this._localDevice.is_being_activated=e===u),this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice});const i={restore_paused:"restore"};return"paused"in t&&(i.restore_paused=t.paused?"pause":"resume"),this._sendConnectCommand("transfer",e||u,{transfer_options:i,page_instance_id:null===(n=t.loggingParams)||void 0===n?void 0:n.pageInstanceId,interaction_id:null===(o=t.loggingParams)||void 0===o?void 0:o.interactionId})}pause(e,t){return this._sendPlayerCommand("pause",e,t)}resume(e,t){return this._sendPlayerCommand("resume",e,t)}togglePlay(e,t){return this.getContextPlayerState().then((n=>n?n.is_paused?this.resume(e,t):this.pause(e,t):Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"))))}nextTrack(e,t){return this._sendPlayerCommand("skip_next",e,t)}previousTrack(e,t){return this._sendPlayerCommand("skip_prev",e,t)}seek(e,t){return isNaN(e)||e<0?Promise.reject(new oo(i.CONNECTAPI_CLIENT_INVALID_POSITION,"Invalid position.")):this._sendPlayerCommand("seek_to",t,{value:e})}setShuffle(e,t,n){return this._sendPlayerCommand("set_shuffling_context",t,Object.assign({value:!!e},n))}toggleShuffle(e,t){return this.getContextPlayerState().then((n=>{if(!n)return Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const o=n.options&&n.options.shuffling_context;return this.setShuffle(!o,e,t)}))}setRepeatingContext(e,t){return this._sendPlayerCommand("set_repeating_context",t,{value:e})}setRepeatingTrack(e,t){return this._sendPlayerCommand("set_repeating_track",t,{value:!!e})}setOptions(e,t){return this._sendPlayerCommand("set_options",t,Object.assign({},e))}setVolume(e,t){if(isNaN(e)||e<0)return Promise.reject(new oo(i.CONNECTAPI_CLIENT_INVALID_VOLUME,"Invalid volume."));const n=Math.round(e*d);return this._sendConnectCommand("volume",t,{volume:n})}logout(e){return this._sendConnectCommand("logout",e)}}const Ao=Object.assign(Object.assign(Object.assign({},i),r.J),o);function To(e){var t;const n=e.transport;if(!n)throw new TypeError("No Transport instance provided");const o=function(e){return ie.create(e)}(Object.assign(Object.assign({},e.client),{transport:n,hidden:!!e.hidden,playTokenLostBehavior:e.hidden&&!e.onlyLocalState?"stop":"pause"})),i=e.streamer||{},r=e.controller||{};let a,s=!1;e.streamer&&e.streamer.disabled?(e.hidden=!0,e.onlyLocalState=!1,e.claimInactivePlayerStates=!1,s=!0):(a=$n(o,i),r.autoregister=!1,e.onlyLocalState&&(r.decorateTrackWindow=!1,r.disableProgress=!0));const l=function(e,t={}){const n=e.getPublicTransport(),o=e.getVersionDescriptor().tagged,i=Eo.create({autoregister:!("autoregister"in t)||t.autoregister,descriptor:e.getClientDescriptor(),transport:n});return mo.create({client:e,playerClient:i,version:o,serverTime:to.create(n),decorateTrackWindow:"boolean"!=typeof t.decorateTrackWindow||t.decorateTrackWindow,disableProgress:t.disableProgress})}(o,r);return A.create({transport:n,client:o,streamer:a,controller:l,enableControllerWithoutStreamer:s,hidden:e.hidden,onlyLocalState:e.onlyLocalState,claimInactivePlayerStates:e.claimInactivePlayerStates,autoActivateElement:null!==(t=e.autoActivateElement)&&void 0!==t?t:"undefined"!=typeof WebKitMediaKeys,experimentalDeactivateOnStop:e.experimentalDeactivateOnStop})}},51833:(e,t,n)=>{"use strict";n.d(t,{FP:()=>A,Of:()=>P});var o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e};function r(e,t){return t.map((function(t){return e+"="+t+"&"})).join("")}function a(e){var t=e.body,n=Object.keys(t||{});if(t&&n.length>0){var o=t[n[0]],i=o.click_actions,r=o.html_content,a=o.impression_url;return{actions:i,format:o.creative_type,htmlContent:r,impressionUrl:a}}}function s(e,t){var n={"App-Platform":e.platform,"Content-Type":"application/json","X-Client-Id":e.clientId};return t&&(n["X-Spotify-Quicksilver-Uri"]=t),{method:"GET",authorize:!0,headers:n,rejectNotOk:!0,responseType:"json"}}function l(e){return"prod"===e?"quicksilver/v2/":"quicksilverdev/v2/"}var c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},u=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e};function d(e){var t,n=e.formats,o=e.triggers,r=[];return 0===n.length&&r.push("No format included in request."),0===o.length&&r.push("No trigger included in request."),(t=o.map((function(e){return e.type})),i(new Set(t))).length>1&&r.push("Triggers must all be of the same type."),r}function p(e,t){var n=t.actions,o=t.app,i=t.appUri,c=t.enableLogs,p=t.formats,f=t.locale,h=t.env,m=t.triggers,g=d({formats:p,triggers:m});return g.length>0?(c&&console.error("In-App Messaging: Please fix the following request errors: "+g.join(" ")),Promise.resolve(void 0)):e.request.apply(e,u(function(e){var t=e.actions,n=e.app,o=e.appUri,i=e.formats,a=e.locale,c=e.env,u=e.triggers,d=l(c),p=u.map((function(e){return encodeURIComponent(e.pattern)})),f=r("trigger",p),h=r("ctv_type",i),m=r("action",t),g="@webgate/"+d+"messages?"+h+f+m+"locale="+a+"&trig_type="+u[0].type;return[g,s(n,o)]}({actions:n,app:o,appUri:i,formats:p,locale:f,env:h,triggers:m}))).then((function(e){return a(e)}))}var f=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},h=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e};function m(e,t){var n=t.app,o=t.appUri,i=t.creativeId,r=t.enableLogs,c=t.locale,u=t.env,d=function(e){var t=e.creativeId,n=[];return Number.isInteger(Number(t))||n.push("Invalid creative id."),n}({creativeId:i});return d.length>0?(r&&console.error("In-App Messaging: Please fix the following preview request errors: "+d.join(" ")),Promise.resolve(void 0)):e.request.apply(e,h(function(e){var t=e.app,n=e.appUri,o=e.creativeId,i=e.locale,r=e.env,a=l(r),c=encodeURIComponent("spotify:home"),u="@webgate/"+a+"preview?trigger="+c+"&locale="+i+"&trig_type=URI&return_messages=true&relay_creative=true&creative_id="+o;return[u,s(t,n)]}({app:n,appUri:o,creativeId:i,locale:c,env:u}))).then((function(e){return a(e)}))}var g=function(e){var t=e.actions,n=e.app,o=e.enableLogs,i=e.formats,a=e.locale,c=e.transport;return{requestMessage:function(e){var r=e.appUri,s=e.env,l=e.triggers;return p(c,{actions:t,app:n,appUri:r,enableLogs:o,formats:i,locale:a,env:s,triggers:l})},previewMessage:function(e){var t=e.appUri,i=e.creativeId,r=e.env;return m(c,{app:n,appUri:t,creativeId:i,enableLogs:o,locale:a,env:r})},getTriggers:function(e,t){return function(e,t){var n=t.app,o=t.triggerTypes,i=t.env,a=t.formats,s="@webgate/"+l(i)+"triggers?"+r("trig_type",o)+r("ctv_type",a);return e.request(s,{method:"GET",authorize:!0,headers:{"App-Platform":n.platform,"Content-Type":"application/json","X-Client-Id":n.clientId},rejectNotOk:!0,responseType:"json"}).then((function(e){return function(e){return e.body||[]}(e)})).catch((function(){return[]}))}(c,{app:n,formats:i,env:t,triggerTypes:e})},track:function(e){return function(e,t,n){e.request(t,s(n))}(c,e,n)}}},v=["DISMISS","URL","EXTERNAL_URL","SELECT_OPTION"];function y(e,t,n){var o=document.createElement("iframe");return o.srcdoc=e.htmlContent,o.addEventListener("load",(function(){!function(e,t,n){var o=e.contentDocument,i=e.contentWindow;o&&o.querySelectorAll("[data-click-to-action-id]").forEach((function(e){i&&e instanceof i.HTMLElement&&e.addEventListener("click",(function(e){var o,r=e.currentTarget;if(r instanceof i.HTMLElement||r instanceof HTMLElement){var a=r.dataset.clickToActionId,s=a&&t[a];s&&(o=s.action,v.some((function(e){return e===o})))&&n(s)}}))}))}(o,e.actions,n),function(e){var t=e.contentDocument;t&&(e.style.width=(t.body.getAttribute("data-iframe-width")||_)+"px",e.style.height=t.body.scrollHeight+"px")}(o),t()}),{once:!0}),o}var _=500;var b=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},S=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e},E=6e5,A={CONNECTED:"CONNECTED"},T={actions:S(v),app:{clientId:"",platform:""},formats:S(["web-modal","web-banner","web-tooltip"]),locale:"en",env:"prod",triggerTypes:S(["URI","PLAYBACK_STARTED","CLIENT_EVENT"])};function P(e,t){void 0===t&&(t=T);var n,o=t.actions,i=t.app,r=t.enableLogs,a=void 0!==r&&r,s=t.locale,l=t.formats,c=t.env,u=t.triggerTypes,d=c,p=g({transport:e,actions:o,app:i,formats:l,locale:s,enableLogs:a}),f=[],h={};function m(){return p.getTriggers(u,d).then((function(e){f=e,a&&console.log("In-App Messaging: Triggers requested from "+d+" endpoint: ",e)}))}function v(e){if(e){if(l.includes(e.format))return e;a&&console.log('In-App Messaging: Requested message has an unsupported format "'+e.format+'" and was discarded')}}function _(){m().then((function(){var e,t;e=A.CONNECTED,t=h[e],a&&console.log("In-App Messaging Event Emitted: ",e),t&&t.forEach((function(e){"function"==typeof e&&e()}))})),n=window.setInterval(m,E)}function b(){clearInterval(n),f=[]}return{getEnv:function(){return d},setEnv:function(e){e!==d&&(a&&console.log("In-App Messaging: env switched to "+e),d=e,b(),_())},start:_,stop:b,on:function(e,t){!function(e,t){h[e]||(h[e]=[]),h[e].push(t)}(e,t)},requestMessage:function(e){var t=e.appUri,n=e.trigger,o=f.filter((function(e){return l.includes(e.format)&&function(e,t){return t.type===e.type&&new RegExp(t.pattern.replace("?",".+")).test(e.pattern)}(n,e)}));return 0===o.length?Promise.resolve(void 0):p.requestMessage({appUri:t,env:d,triggers:o}).then(v)},previewMessage:function(e){var t=e.appUri,n=e.creativeId;return p.previewMessage({appUri:t,creativeId:n,env:d}).then(v)},createIframe:function(e,t){return y(e,(function(){p.track(e.impressionUrl)}),(function(e){p.track(e.tracking_url),t(e)}))}}}},65467:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.silly=t.verbose=t.debug=t.info=t.warn=t.error=t.log=t.logger=t.default=void 0;var i=n(31233);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o(i).default}}),Object.defineProperty(t,"logger",{enumerable:!0,get:function(){return i.logger}}),Object.defineProperty(t,"log",{enumerable:!0,get:function(){return i.log}}),Object.defineProperty(t,"error",{enumerable:!0,get:function(){return i.error}}),Object.defineProperty(t,"warn",{enumerable:!0,get:function(){return i.warn}}),Object.defineProperty(t,"info",{enumerable:!0,get:function(){return i.info}}),Object.defineProperty(t,"debug",{enumerable:!0,get:function(){return i.debug}}),Object.defineProperty(t,"verbose",{enumerable:!0,get:function(){return i.verbose}}),Object.defineProperty(t,"silly",{enumerable:!0,get:function(){return i.silly}})},31233:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.silly=t.verbose=t.debug=t.info=t.warn=t.error=t.log=t.logger=void 0,t.logger={log:(...e)=>console.log(...e),error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e),info:(...e)=>console.info(...e),debug:(...e)=>console.debug(...e),verbose:(...e)=>console.log("verbose:",...e),silly:(...e)=>console.log("silly:",...e)},t.default=t.logger,t.log=t.logger.log.bind(t.logger),t.error=t.logger.error.bind(t.logger),t.warn=t.logger.warn.bind(t.logger),t.info=t.logger.info.bind(t.logger),t.debug=t.logger.debug.bind(t.logger),t.verbose=t.logger.verbose.bind(t.logger),t.silly=t.logger.silly.bind(t.logger)},46712:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});const o="Node already exists in another list!";class i{constructor(e){this.listId=null,this.key="",this.prev=null,this.next=null,this.value=null,this.value=e}}class r{constructor(){this._id={},this.length=0,this.first=null,this.last=null}append(e){if(e.listId)throw new Error(o);return e.listId=this._id,this.first?this.last&&(e.prev=this.last,e.next=null,this.last.next=e,this.last=e):(this.first=e,this.last=e),++this.length}insertAfter(e,t){if(t.listId)throw new Error(o);return t.listId=this._id,t.prev=e,t.next=e.next,e.next&&(e.next.prev=t),e.next=t,t.prev===this.last&&(this.last=t),++this.length}remove(e){return!(!this.length||e.listId!==this._id)&&(this.length>1?(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this.first?this.first=e.next:e===this.last&&(this.last=e.prev)):(this.first=null,this.last=null),e.listId=null,e.prev=null,e.next=null,this.length--,!0)}}class a{constructor(e){this._limit=100,this._list=new r,this._map={},this._limit=e}get(e){const t=this._map[e];if(!t)return null;const n=this._list;return n.remove(t),n.append(t),t.value}set(e,t){if(!e)throw new TypeError("Cache key cannot be empty.");const n=this._list,o=this._map;if(n.length>=this._limit){const e=n.first;o[e.key]=null,n.remove(e)}let r=o[e];r?(n.remove(r),r.value=t):(r=new i(t),r.key=e),n.append(r),o[e]=r}remove(e){const t=this._map,n=t[e];return n?(this._list.remove(n),t[e]=null,n.value):null}keys(){const e=[];let t=this._list.first;for(;t;)e.push(t.key),t=t.next;return e.reverse()}values(){const e=[];let t=this._list.first;for(;t;)e.push(t.value),t=t.next;return e.reverse()}size(){return this._list.length}clear(){const e=this._list.length;return this._list=new r,this._map={},e}}},19709:(e,t,n)=>{"use strict";n.d(t,{$_:()=>ui,VB:()=>ee,Po:()=>di});var o=n(4637),i=n(59496);function r(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function a(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}var s,l=function(){},c=l(),u=Object,d=function(e){return e===c},p=function(e){return"function"==typeof e},f=function(e,t){return u.assign({},e,t)},h="undefined",m=function(){return typeof window!=h},g=new WeakMap,v=0,y=function(e){var t,n,o=typeof e,i=e&&e.constructor,r=i==Date;if(u(e)!==e||r||i==RegExp)t=r?e.toJSON():"symbol"==o?e.toString():"string"==o?JSON.stringify(e):""+e;else{if(t=g.get(e))return t;if(t=++v+"~",g.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=y(e[n])+",";g.set(e,t)}if(i==u){t="#";for(var a=u.keys(e).sort();!d(n=a.pop());)d(e[n])||(t+=n+":"+y(e[n])+",");g.set(e,t)}}return t},_=!0,b=m(),S=typeof document!=h,E=b&&window.addEventListener?window.addEventListener.bind(window):l,A=S?document.addEventListener.bind(document):l,T=b&&window.removeEventListener?window.removeEventListener.bind(window):l,P=S?document.removeEventListener.bind(document):l,O={isOnline:function(){return _},isVisible:function(){var e=S&&document.visibilityState;return d(e)||"hidden"!==e}},C={initFocus:function(e){return A("visibilitychange",e),E("focus",e),function(){P("visibilitychange",e),T("focus",e)}},initReconnect:function(e){var t=function(){_=!0,e()},n=function(){_=!1};return E("online",t),E("offline",n),function(){T("online",t),T("offline",n)}}},k=!m()||"Deno"in window,R=function(e){return m()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)},L=k?i.useEffect:i.useLayoutEffect,I="undefined"!=typeof navigator&&navigator.connection,N=!k&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),w=function(e){if(p(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t,e?"$swr$"+e:""]},D=new WeakMap,M=function(e,t,n,o,i,r,a){void 0===a&&(a=!0);var s=D.get(e),l=s[0],c=s[1],u=s[3],d=l[t],p=c[t];if(a&&p)for(var f=0;f<p.length;++f)p[f](n,o,i);return r&&(delete u[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},x=0,F=function(){return++x},U=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(void 0,void 0,void 0,(function(){var t,n,o,i,r,s,l,u,h,m,g,v,y,_,b,S,E,A,T,P,O;return a(this,(function(a){switch(a.label){case 0:if(t=e[0],n=e[1],o=e[2],i=e[3],s=!!d((r="boolean"==typeof i?{revalidate:i}:i||{}).populateCache)||r.populateCache,l=!1!==r.revalidate,u=!1!==r.rollbackOnError,h=r.optimisticData,m=w(n),g=m[0],v=m[2],!g)return[2];if(y=D.get(t),_=y[2],e.length<3)return[2,M(t,g,t.get(g),c,c,l,!0)];if(b=o,E=F(),_[g]=[E,0],A=!d(h),T=t.get(g),A&&(P=p(h)?h(T):h,t.set(g,P),M(t,g,P)),p(b))try{b=b(t.get(g))}catch(e){S=e}return b&&p(b.then)?[4,b.catch((function(e){S=e}))]:[3,2];case 1:if(b=a.sent(),E!==_[g][0]){if(S)throw S;return[2,b]}S&&A&&u&&(s=!0,b=T,t.set(g,T)),a.label=2;case 2:return s&&(S||(p(s)&&(b=s(b,T)),t.set(g,b)),t.set(v,f(t.get(v),{error:S}))),_[g][1]=F(),[4,M(t,g,b,S,c,l,!!s)];case 3:if(O=a.sent(),S)throw S;return[2,s?O:b]}}))}))},B=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},V=function(e,t){if(!D.has(e)){var n=f(C,t),o={},i=U.bind(c,e),r=l;if(D.set(e,[o,{},{},{},i]),!k){var a=n.initFocus(setTimeout.bind(c,B.bind(c,o,0))),s=n.initReconnect(setTimeout.bind(c,B.bind(c,o,1)));r=function(){a&&a(),s&&s(),D.delete(e)}}return[e,i,r]}return[e,D.get(e)[4]]},G=V(new Map),J=G[0],j=G[1],H=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:function(e,t,n,o,i){var r=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!d(r)&&a>r||setTimeout(o,s,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:N?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:N?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:J,mutate:j,fallback:{}},O),K=function(e,t){var n=f(e,t);if(t){var o=e.use,i=e.fallback,r=t.use,a=t.fallback;o&&r&&(n.use=o.concat(r)),i&&a&&(n.fallback=f(i,a))}return n},Y=(0,i.createContext)({}),W=function(e,t,n){var o=t[e]||(t[e]=[]);return o.push(n),function(){var e=o.indexOf(n);e>=0&&(o[e]=o[o.length-1],o.pop())}},z={dedupe:!0},q=(u.defineProperty((function(e){var t=e.value,n=K((0,i.useContext)(Y),t),o=t&&t.provider,r=(0,i.useState)((function(){return o?V(o(n.cache||J),t):c}))[0];return r&&(n.cache=r[0],n.mutate=r[1]),L((function(){return r?r[2]:c}),[]),(0,i.createElement)(Y.Provider,f(e,{value:n}))}),"default",{value:H}),s=function(e,t,n){var o=n.cache,s=n.compare,l=n.fallbackData,u=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,g=n.refreshWhenHidden,v=n.refreshWhenOffline,y=D.get(o),_=y[0],b=y[1],S=y[2],E=y[3],A=w(e),T=A[0],P=A[1],O=A[2],C=(0,i.useRef)(!1),I=(0,i.useRef)(!1),N=(0,i.useRef)(T),x=(0,i.useRef)(t),B=(0,i.useRef)(n),V=function(){return B.current},G=function(){return V().isVisible()&&V().isOnline()},J=function(e){return o.set(O,f(o.get(O),e))},j=o.get(T),H=d(l)?n.fallback[T]:l,K=d(j)?H:j,Y=o.get(O)||{},q=Y.error,X=!C.current,Z=function(){return X&&!d(h)?h:!V().isPaused()&&(u?!d(K)&&n.revalidateIfStale:d(K)||n.revalidateIfStale)},Q=!(!T||!t)&&(!!Y.isValidating||X&&Z()),$=function(e,t){var n=(0,i.useState)({})[1],o=(0,i.useRef)(e),r=(0,i.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,i.useCallback)((function(e){var i=!1,a=o.current;for(var s in e){var l=s;a[l]!==e[l]&&(a[l]=e[l],r.current[l]&&(i=!0))}i&&!t.current&&n({})}),[]);return L((function(){o.current=e})),[o,r.current,a]}({data:K,error:q,isValidating:Q},I),ee=$[0],te=$[1],ne=$[2],oe=(0,i.useCallback)((function(e){return r(void 0,void 0,void 0,(function(){var t,i,r,l,u,f,h,m,g,v,y,_,b;return a(this,(function(a){switch(a.label){case 0:if(t=x.current,!T||!t||I.current||V().isPaused())return[2,!1];l=!0,u=e||{},f=!E[T]||!u.dedupe,h=function(){return!I.current&&T===N.current&&C.current},m=function(){var e=E[T];e&&e[1]===r&&delete E[T]},g={isValidating:!1},v=function(){J({isValidating:!1}),h()&&ne(g)},J({isValidating:!0}),ne({isValidating:!0}),a.label=1;case 1:return a.trys.push([1,3,,4]),f&&(M(o,T,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!o.get(T)&&setTimeout((function(){l&&h()&&V().onLoadingSlow(T,n)}),n.loadingTimeout),E[T]=[t.apply(void 0,P),F()]),b=E[T],i=b[0],r=b[1],[4,i];case 2:return i=a.sent(),f&&setTimeout(m,n.dedupingInterval),E[T]&&E[T][1]===r?(J({error:c}),g.error=c,y=S[T],!d(y)&&(r<=y[0]||r<=y[1]||0===y[1])?(v(),f&&h()&&V().onDiscarded(T),[2,!1]):(s(ee.current.data,i)?g.data=ee.current.data:g.data=i,s(o.get(T),i)||o.set(T,i),f&&h()&&V().onSuccess(i,T,n),[3,4])):(f&&h()&&V().onDiscarded(T),[2,!1]);case 3:return _=a.sent(),m(),V().isPaused()||(J({error:_}),g.error=_,f&&h()&&(V().onError(_,T,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||p(n.shouldRetryOnError)&&n.shouldRetryOnError(_))&&G()&&V().onErrorRetry(_,T,n,oe,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,v(),h()&&f&&M(o,T,g.data,g.error,!1),[2,!0]}}))}))}),[T]),ie=(0,i.useCallback)(U.bind(c,o,(function(){return N.current})),[]);if(L((function(){x.current=t,B.current=n})),L((function(){if(T){var e=T!==N.current,t=oe.bind(c,z),n=0,o=W(T,b,(function(e,t,n){ne(f({error:t,isValidating:n},s(ee.current.data,e)?c:{data:e}))})),i=W(T,_,(function(e){if(0==e){var o=Date.now();V().revalidateOnFocus&&o>n&&G()&&(n=o+V().focusThrottleInterval,t())}else if(1==e)V().revalidateOnReconnect&&G()&&t();else if(2==e)return oe()}));return I.current=!1,N.current=T,C.current=!0,e&&ne({data:K,error:q,isValidating:Q}),Z()&&(d(K)||k?t():R(t)),function(){I.current=!0,o(),i()}}}),[T,oe]),L((function(){var e;function t(){var t=p(m)?m(K):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!g&&!V().isVisible()||!v&&!V().isOnline()?t():oe(z).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,g,v,oe]),(0,i.useDebugValue)(K),u&&d(K)&&T)throw x.current=t,B.current=n,I.current=!1,d(q)?oe(z):q;return{mutate:ie,get data(){return te.data=!0,K},get error(){return te.error=!0,q},get isValidating(){return te.isValidating=!0,Q}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=f(H,(0,i.useContext)(Y)),o=function(e){return p(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]}(e),r=o[0],a=o[1],l=o[2],c=K(n,l),u=s,d=c.use;if(d)for(var h=d.length;h-- >0;)u=d[h](u);return u(r,a||c.fetcher,c)}),X=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};var Z=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const Q=(e,t,n)=>{const{data:o}=q("masthead-data",(()=>Z(void 0,void 0,void 0,(function*(){return yield(o={market:e,language:t,testFeature:n},X(void 0,void 0,void 0,(function*(){const{language:e,market:t,testFeature:n}=o,i=window.location.origin.includes(".com")?"https://www.spotify.com":"https://www-testing.spotify.net",r=n?`&testFeature=${n}`:"",a=yield fetch(`${i}/api/masthead/v1/masthead?market=${t}&language=${e}${r}`,{credentials:"include"});return yield a.json()})));var o}))),{errorRetryCount:2});return null!=o?o:{}},$=(0,i.createContext)({}),ee=({market:e,language:t,children:n,testFeature:i})=>{const r=Q(e,t,i);return(0,o.jsx)($.Provider,Object.assign({value:r},{children:n}))};var te,ne,oe;!function(e){e.UNKNOWN="UNKNOWN",e.NORMAL="normal",e.CONDENSED="condensed",e.MESSAGES_ONLY="messagesOnly"}(te||(te={})),function(e){e.INSTAGRAM="Instagram",e.TWITTER="Twitter",e.FACEBOOK="Facebook"}(ne||(ne={})),function(e){e.CCPA="Ccpa"}(oe||(oe={}));oe.CCPA;var ie=n(64709);const re="#121212",ae="rgba(255, 255, 255, 0.1)",se="#000000",le=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),ce="4px",ue="8px",de="12px",pe="16px",fe="20px",he="24px",me="32px",ge="40px",ve="48px",ye="56px",_e="768px",be="992px",Se=_e;ie.ZP.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1o8eth5-0"})(["background-color:",";height:56px;@media (min-width:","){height:53px;}@media (min-width:","){height:56px;}color:",";"],se,_e,be,le);var Ee=n(51163),Ae="buttonTertiary",Te="horizontalRule",Pe="icon",Oe="list",Ce="textLink",ke="type",Re=function(){return(0,ie.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])},Le=n(60901),Ie=n(68492);const Ne={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#117a37",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#169b45",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#12833a",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#17a449",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}};n(74654);function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){(0,Le.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me=Ne,xe=Me.base,Fe=(Object.keys(Me),function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,o){var i,r=(0,Ie.Z)(o,2),a=r[0],s=r[1],l=a;return""!==n&&(l="".concat(n).concat((i=a).charAt(0).toUpperCase()+i.slice(1))),"object"==typeof s?De(De({},t),e(s,l)):"string"==typeof s?(t[l]=s,t):t}),{})});function Ue(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function Be(e){return"--".concat(Ue(e))}function Ve(e,t){var n=Fe(xe)[e];return t&&(n=t),"var(".concat(Be(e),", ").concat(n,")")}var Ge={textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"},Je={essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"},je={decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"},He=(De(De(De({},Ge),Je),je),De(De(De(De({},{backgroundBase:"backgroundBase",backgroundHighlight:"backgroundHighlight",backgroundPress:"backgroundPress",backgroundElevatedBase:"backgroundElevatedBase",backgroundElevatedHighlight:"backgroundElevatedHighlight",backgroundElevatedPress:"backgroundElevatedPress",backgroundTintedBase:"backgroundTintedBase",backgroundTintedHighlight:"backgroundTintedHighlight",backgroundTintedPress:"backgroundTintedPress",backgroundUnsafeForSmallTextBase:"backgroundUnsafeForSmallTextBase",backgroundUnsafeForSmallTextHighlight:"backgroundUnsafeForSmallTextHighlight",backgroundUnsafeForSmallTextPress:"backgroundUnsafeForSmallTextPress"}),Ge),Je),je));function Ke(e,t){return"var(--spacer-".concat(e,", ").concat(t,")")}var Ye=ie.ZP.hr.withConfig({displayName:"HorizontalRule__HorizontalRuleElement",componentId:"sc-198gjx4-0"})(["",";border:0;border-block-start:1px solid ",";margin-block-end:",";margin-block-start:",";"],Re(),Ve(He.decorativeSubdued),Ke(1,he),Ke(1,he));const We={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ze={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},qe={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Xe={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ze={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Qe={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},$e={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},et={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},tt={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},nt={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ot={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},it={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},rt={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},at={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},st={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},lt={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ct={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ut={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},dt={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},pt={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ft={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ht={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},mt={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},gt={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},vt={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},yt={fontSize:"6rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},_t={fontSize:"4.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},bt={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},St={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Et={fontSize:"0.75rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},At={fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Tt={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Pt={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ot={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ct={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},kt={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Rt={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Lt={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"};var It=function(e,t){var n=e.fontSize!==t.fontSize,o=e.fontWeight!==t.fontWeight,i=e.textTransform!==t.textTransform,r=e.letterSpacing!==t.letterSpacing,a=e.fontFamily!==t.fontFamily,s=n||o||a||i||r;return(0,ie.iv)(["font-size:",";font-weight:",";text-transform:",";letter-spacing:",";font-family:var(--font-family,",");",";"],e.fontSize,e.fontWeight,e.textTransform,e.letterSpacing,e.fontFamily,s&&(0,ie.iv)(["@media (min-width:","){font-size:",";font-weight:",";font-family:",";text-transform:",";letter-spacing:",";}"],Se,n&&t.fontSize,o&&t.fontWeight,a&&"var(--font-family, ".concat(t.fontFamily,")"),i&&t.textTransform,r&&t.letterSpacing))},Nt=function(){return It(dt,Lt)},wt=function(){return It(ze,ft)},Dt=function(){return It(qe,ht)},Mt=function(){return It(Xe,mt)},xt=function(){return It(Qe,vt)},Ft=function(){return It(ot,Pt)},Ut=n(68901),Bt={useBrowserDefaultFocusStyle:!1},Vt=i.createContext(Bt);Vt.displayName="BrowserDefault";var Gt={isUsingKeyboard:!0},Jt=i.createContext(Gt);Jt.displayName="KeyboardDetection";var jt=3,Ht=(Ve(He.essentialBase),"200ms"),Kt="ease-in",Yt=(0,ie.iv)(["&:focus{outline:none;}"]);var Wt,zt,qt,Xt=(0,ie.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],Ht,Kt),Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,ie.iv)(["position:relative;"," ",""],Yt,t&&(0,ie.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],function(e){return(0,ie.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],Xt,e-2*jt,jt)}(e),n&&(0,ie.iv)(["&::after{border-color:inherit;}"])))},Qt=(Wt="compact",zt=he,qt?"calc(-1 * var(--layout-margin-".concat(Wt,", ").concat(zt,"))"):"var(--layout-margin-".concat(Wt,", ").concat(zt,")"),{experimental:"experimental",next:"next",deprecated:"deprecated"}),$t="button",en={experimental:[],next:[],deprecated:[]},tn=i.createContext(en);tn.displayName="Encore";var nn=function(e){return parseInt(e,10)},on={sm:ue,md:"14px",lg:pe},rn={sm:me,md:ve,lg:ye},an={sm:ce,md:ue,lg:de},sn={sm:16,md:24,lg:24},ln={sm:pe,md:me,lg:ve},cn={sm:de,md:fe,lg:he},un={sm:"5px",md:de,lg:"10px"},dn=function(e,t){if(t===Qt.deprecated)return function(e){switch(e){case"sm":return Ft();case"md":default:return Mt();case"lg":return wt()}}(e);switch(e){case"sm":return xt();case"md":default:return wt();case"lg":return Nt()}},pn=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="".concat("deprecated"===(arguments.length>2?arguments[2]:void 0)?nn(on[e])-n:nn(an[e])-n,"px");var o="".concat(nn(ln[e])-n,"px"),i="".concat(function(e){var t=un[e],n=sn[e];return nn(cn[e])+n+nn(t)}(e)-n,"px");return{paddingTopBottom:t,paddingLeftRight:o,withIconPaddingLeftRight:i}},fn=(0,ie.iv)(["cursor:",";opacity:",";transform:scale(1);"],"not-allowed","0.3"),hn=(0,ie.iv)(["opacity:",";outline:none;transform:scale(1);"],"0.7"),mn=(0,ie.iv)(["transform:scale(",");"],"1.04"),gn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,ie.iv)(["background-color:transparent;border:0;color:inherit;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&Yt)},vn=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isFocus","isActive","standalone","semanticColor"],yn=function(e){var t=e.color;return(0,ie.iv)(["text-decoration:underline;color:",";"],t)},_n=(0,ie.iv)(["box-shadow:",";transition:box-shadow "," ",";&&{text-decoration:none;}"],"0 3px 0 0",Ht,Kt),bn=(0,ie.iv)(["color:",";"],Ve(He.textBrightAccent)),Sn=(0,ie.iv)(["color:",";opacity:",";cursor:not-allowed;"],Ve(He.textSubdued),"0.3"),En=function(e){var t=e.semanticColor;return(0,ie.iv)(["text-decoration:underline;color:",";"],Ve(t||He.textSubdued))},An=(0,ie.iv)(["color:",";"],Ve(He.textBase)),Tn=function(e){var t=e.semanticColor;return(0,ie.iv)(["text-decoration:underline;color:",";"],Ve(t||He.textBase))},Pn=(0,ie.iv)(["text-decoration:none;"]),On=(0,ie.ZP)(i.forwardRef((function(e,t){var n=e.component,o=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isFocus,e.isActive,e.standalone,e.semanticColor,(0,Ut.Z)(e,vn));return i.createElement(n,Object.assign({},o,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-k8gsk-0"})(["",";",";"," align-items:center;text-decoration:none;&[href],&:hover:not([disabled]){text-decoration:underline;}&[href]:hover{",";}"," &[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}",""],Re(),(function(e){return"button"===e.component&&(0,ie.iv)(["",";font-size:inherit;&:focus{","}"],gn(e.useBrowserDefaultFocusStyle),e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&_n)}),(function(e){return e.semanticColor?(0,ie.iv)(["color:",";"],Ve(e.semanticColor)):(0,ie.iv)(["color:inherit;"])}),(function(e){return e.semanticColor?yn({color:Ve(e.semanticColor)}):yn({color:Ve(He.textBrightAccent)})}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,ie.iv)(["&[href]:focus{outline:none;",";}"],e.isUsingKeyboard&&_n)}),bn,(function(e){return e.isHover&&(e.semanticColor?yn({color:Ve(e.semanticColor)}):yn({color:Ve(He.textBrightAccent)}))}),(function(e){return e.isFocus&&!e.useBrowserDefaultFocusStyle&&_n}),(function(e){return e.isActive&&bn}),Sn,(function(e){return e.standalone&&(0,ie.iv)(["color:",";display:inline-flex;&,&[href]{text-decoration:none;}&[href]:hover,&[href]:hover:focus{",";}&[href]:focus{text-decoration:none;",";}&[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}"],e.semanticColor?Ve(e.semanticColor):Ve(He.textSubdued),En({semanticColor:e.semanticColor}),e.isUsingKeyboard&&An,Tn({semanticColor:e.semanticColor}),e.isHover&&En({semanticColor:e.semanticColor}),e.isFocus&&An,e.isActive&&Tn({semanticColor:e.semanticColor}),Pn)})),Cn=["children","color","semanticColor","component","href","disabled","role"],kn=i.forwardRef((function(e,t){var n=e.children,o=e.color,r=e.semanticColor,a=e.component,s=void 0===a?"a":a,l=e.href,c=e.disabled,u=e.role,d=(0,Ut.Z)(e,Cn),p=(0,i.useContext)(Jt).isUsingKeyboard,f=(0,i.useContext)(Vt).useBrowserDefaultFocusStyle;return i.createElement(On,Object.assign({component:s,isUsingKeyboard:p,useBrowserDefaultFocusStyle:f,color:o,semanticColor:r,ref:t,href:c?void 0:l,disabled:c,"aria-disabled":c,role:c&&"button"!==s?"link":u},d,{"data-encore-id":Ce}),n)})),Rn=(0,ie.ZP)(i.forwardRef((function(e,t){return i.createElement(kn,Object.assign({semanticColor:"textBase",standalone:!0,ref:t},e))}))).withConfig({displayName:"Link",componentId:"sc-fe80qw-0"})(["display:block;",";"],Ft());var Ln=i.forwardRef((function(e,t){var n=e.target&&"_blank"===e.target?"noopener noreferrer":void 0;return i.createElement(Rn,Object.assign({},e,{ref:t,rel:n}))})),In=ie.ZP.ul.attrs((function(e){return{role:e.role||"list"}})).withConfig({displayName:"List__ListElement",componentId:"sc-64p3hb-0"})(["",";padding-inline-start:0;padding-inline-end:0;margin-block-start:0;margin-block-end:0;overflow-wrap:break-word;",";"],Re(),(function(e){return!1!==e.listStyleReset&&(0,ie.iv)(["list-style-type:none;"])})),Nn=i.forwardRef((function(e,t){var n=(0,Ee.Z)({},e);return i.createElement(In,Object.assign({},n,{ref:t,"data-encore-id":Oe}))})),wn=function(e){switch(e){case"book":return 400;case"bold":return 700;case"black":return 900;default:return function(e){throw new Error("Unreachable value")}()}},Dn=function(e){switch(e){case"bass":return It($e,yt);case"forte":return It(et,_t);case"brio":return It(tt,bt);case"altoBrio":return It(st,Ot);case"alto":return It(lt,Ct);case"canon":return It(ct,kt);case"celloCanon":return It(ut,Rt);case"cello":return Nt();case"ballad":return It(We,pt);case"balladBold":return wt();case"viola":default:return Dt();case"violaBold":return Mt();case"mesto":return It(Ze,gt);case"mestoBold":return xt();case"metronome":return It(at,St);case"finale":return It(nt,Tt);case"finaleBold":return Ft();case"minuet":return It(it,Et);case"minuetBold":return It(rt,At)}},Mn=ie.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"sc-goli3j-0"})(["",";margin-block-start:0;margin-block-end:0;",";",";"," ",";"],Re(),(function(e){return e.variant?Dn(e.variant):void 0}),(function(e){return e.paddingBottom&&(0,ie.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,ie.iv)(["color:",";"],Ve(e.semanticColor)):(0,ie.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,ie.iv)(["font-weight:",";"],wn(e.weight))})),xn=["color","semanticColor","paddingBottom","variant"];function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){(0,Le.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bn=i.forwardRef((function(e,t){e.color;var n=e.semanticColor,o=e.paddingBottom,r=e.variant,a=void 0===r?"viola":r,s=(0,Ut.Z)(e,xn);return i.createElement(Mn,Object.assign({variant:a,semanticColor:n,paddingBottom:o,ref:t},s,{"data-encore-id":ke}))})),Vn=Un(Un({},{h1:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"h1",ref:t},e))})),h2:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"h2",ref:t},e))})),h3:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"h3",ref:t},e))})),h4:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"h4",ref:t},e))})),h5:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"h5",ref:t},e))})),h6:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"h6",ref:t},e))})),p:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"p",ref:t},e))})),small:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"small",ref:t},e))})),li:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"li",ref:t},e))})),span:i.forwardRef((function(e,t){return i.createElement(Bn,Object.assign({as:"span",ref:t},e))}))}),{book:"book",bold:"bold",black:"black"}),Gn=Object.assign(Bn,Vn),Jn=n(48821),jn=n(93640);const{sendMetric:Hn}=(0,Jn.createSemanticMetrics)({key:"masthead",reporter:(0,Jn.createUniversalReporter)()});var Kn,Yn;!function(e){e.MASTHEAD="masthead"}(Kn||(Kn={})),function(e){e.CLICK="click",e.CTA_CLICK="cta-click",e.FETCH_MASTHEAD="fetch-masthead",e.FETCH_MASTHEAD_ERROR="fetch-masthead-error"}(Yn||(Yn={}));const Wn=ie.ZP.div.withConfig({displayName:"TopLinksGroup__LinksGroup",componentId:"sc-100cyfq-0"})(["margin-bottom:",";p{color:",";}@media (min-width:","){",";",";[dir='rtl'] &{margin-right:0;","}}@media (min-width:","){",";}"],me,le,_e,(e=>e.columnWidth?`width: ${e.columnWidth}`:"width: 40%"),(e=>e.columnGap?`margin-right: ${e.columnGap}`:`margin-right: ${he}`),(e=>e.columnGap?`margin-left: ${e.columnGap}`:`margin-left: ${he}`),be,(e=>e.columnWidth?`width: ${e.columnWidth}`:"width: 20%")),zn=(0,ie.ZP)(Ln).withConfig({displayName:"TopLinksGroup__MastheadFooterLink",componentId:"sc-100cyfq-1"})(["margin:"," 0;width:fit-content;span:hover{color:",";}"],ue,le),qn=({title:e,links:t,columnWidth:n,columnGap:i})=>e&&t?(0,o.jsx)(Wn,Object.assign({columnWidth:n,columnGap:i},{children:(0,o.jsxs)(Nn,{children:[(0,o.jsx)(Gn,Object.assign({as:"p",variant:"balladBold"},{children:e})),t.map((e=>(0,o.jsx)(zn,Object.assign({role:"link",href:e.href,semanticColor:He.textSubdued,onClick:()=>{return t=e.href,n=e.dataAttributes["data-ga-action"],Hn({metric_type:Jn.MetricTypes.COUNTER,what:Yn.CTA_CLICK,value:1}),void(0,jn.sendWwwAnalyticsAgnostic)({category:Kn.MASTHEAD,action:Yn.CLICK,label:n,destination_url:t});var t,n}},e.dataAttributes,{children:(0,o.jsx)(Gn,Object.assign({variant:"ballad",paddingBottom:ue},{children:e.title}))}),e.href)))]})})):null,Xn=({columnWidth:e,columnGap:t})=>{var n,r,a,s;const l=(0,i.useContext)($),c=null===(r=null===(n=null==l?void 0:l.footer)||void 0===n?void 0:n.topLinkGroups[0])||void 0===r?void 0:r.title,u=null===(s=null===(a=null==l?void 0:l.footer)||void 0===a?void 0:a.topLinkGroups[0])||void 0===s?void 0:s.links;return(0,o.jsx)(qn,{title:c,links:u,columnWidth:e,columnGap:t})},Zn=({columnWidth:e,columnGap:t})=>{var n,r,a,s;const l=(0,i.useContext)($),c=null===(r=null===(n=null==l?void 0:l.footer)||void 0===n?void 0:n.topLinkGroups[1])||void 0===r?void 0:r.title,u=null===(s=null===(a=null==l?void 0:l.footer)||void 0===a?void 0:a.topLinkGroups[1])||void 0===s?void 0:s.links;return(0,o.jsx)(qn,{title:c,links:u,columnWidth:e,columnGap:t})},Qn=({hideWebPlayerLink:e,columnWidth:t,columnGap:n})=>{var r,a,s,l;const c=(0,i.useContext)($),u=null===(a=null===(r=null==c?void 0:c.footer)||void 0===r?void 0:r.topLinkGroups[2])||void 0===a?void 0:a.title,d=null===(l=null===(s=null==c?void 0:c.footer)||void 0===s?void 0:s.topLinkGroups[2])||void 0===l?void 0:l.links.filter((t=>!e||"https://open.spotify.com/"!==t.href));return(0,o.jsx)(qn,{title:u,links:d,columnWidth:t,columnGap:n})};var $n;!function(e){e.ADDITIONAL_CLASSES="additionalClassNames",e.ADDITIONAL_IDS="additionalIds"}($n||($n={}));const eo=(e,t)=>{var n;return e[t]?null===(n=e[t])||void 0===n?void 0:n.join(" "):""},to=()=>(0,o.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 30 14","aria-labelledby":"ccpa-svg-title",style:{width:"25px",paddingLeft:ce,paddingBottom:ce}},{children:[(0,o.jsx)("title",Object.assign({id:"ccpa-svg-title"},{children:"California Consumer Privacy Act (CCPA) Opt-Out Icon"})),(0,o.jsx)("path",{d:"M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"}}),(0,o.jsx)("path",{d:"M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#06f"}}),(0,o.jsx)("path",{d:"M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z",style:{fill:"#fff"}}),(0,o.jsx)("path",{d:"M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z",style:{fill:"#06f"}})]})),no=({name:e})=>e===oe.CCPA?(0,o.jsx)(to,{}):null,oo=(0,ie.ZP)(kn).withConfig({displayName:"Link__BottomLink",componentId:"sc-j13lu8-0"})(["margin-bottom:"," !important;text-decoration:none !important;line-height:inherit !important;border:none !important;padding:0 !important;color:"," !important;&:hover{background-color:!important;}[dir='rtl'] &{margin-right:0;margin-left:"," !important;}",""],ue,Ve(He.textSubdued),pe,(({$isSmall:e})=>!e&&`span:hover {\n color: ${le};\n }`)),io=ie.ZP.div.withConfig({displayName:"Link__Container",componentId:"sc-j13lu8-1"})(["margin-right:",";[dir='rtl'] &{margin-right:0 !important;}"],pe),ro=({link:e,isSmall:t})=>(0,o.jsxs)(io,{children:[(0,o.jsx)(oo,Object.assign({href:e.href,semanticColor:He.textSubdued,standalone:!0,$isSmall:t,id:eo(e,$n.ADDITIONAL_IDS),className:eo(e,$n.ADDITIONAL_CLASSES)},{children:(0,o.jsx)(Gn,Object.assign({variant:t?"finale":"viola"},{children:e.title}))})),(0,o.jsx)(no,{name:e.icon})]});var ao,so,lo=n(14224),co="undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==lo&&(null==lo||null==(ao={})?void 0:ao.MUTE_ENCORE_WARNINGS)||void 0,uo="undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==lo&&(null==lo||null==(so={})?void 0:so.NODE_ENV)||void 0;function po(e){"true"!==co&&"production"!==uo&&console.warn(e)}var fo=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],ho=(0,ie.ZP)(i.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,r=(e.semanticColor,e.condensed,e.condensedAll,e.iconLeading,e.iconTrailing,e.iconOnly,e.buttonSize,e.iconSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,(0,Ut.Z)(e,fo));return i.createElement(o,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,o=void 0===n?"textSubdued":n,i=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,l=e.status,c=e.isUsingKeyboard,u=e.condensed,d=e.condensedAll,p=e.iconLeading,f=e.iconTrailing,h=e.iconOnly,m=e.iconSize,g=pn(t),v=g.paddingTopBottom,y=g.paddingLeftRight,_="md"===t&&(p||f)?-2:0,b="".concat(nn(v)+_,"px"),S=cn[t],E="".concat((nn(rn[t])-m)/2,"px"),A=(0,ie.iv)([""," "," "," "," ",""],!d&&(0,ie.iv)(["padding-block-start:",";padding-block-end:",";min-block-size:",";"],h?E:b,h?E:b,rn[t]),d&&(0,ie.iv)(["padding:0;"]),u&&(0,ie.iv)(["padding-inline-start:0;padding-inline-end:0;"]),!u&&!d&&!h&&(0,ie.iv)(["padding-inline-start:",";padding-inline-end:",";"],p?S:y,f?S:y),!u&&!d&&h&&(0,ie.iv)(["padding-inline-start:",";padding-inline-end:",";"],E,E)),T=(0,ie.iv)([""," ",""],mn,"textSubdued"===o&&(0,ie.iv)(["color:",";"],Ve(He.textBase))),P=(0,ie.iv)([""," color:",";"],hn,Ve(He.textSubdued)),O=(0,ie.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],fn,Ve(He.textSubdued));return(0,ie.iv)([""," color:",";min-inline-size:0;",";",";display:inline-flex;align-items:center;justify-content:center;&:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],function(e,t,n){return(0,ie.iv)(["",";"," ",";background-color:transparent;border:0;border-radius:",";display:inline-block;position:relative;text-align:center;text-decoration:none;text-transform:",";touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],Re(),!t&&Yt,dn(e,n),"500px","none","33ms")}(t,s,l),Ve(o),(0,ie.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"]),A,T,i&&T,P,r&&P,(function(){var e=(d?0:nn(b))+jt,t=h?"".concat(m,"px"):"calc(100% - ".concat(u||d?0:2*nn(p||f?S:y),"px)");return(0,ie.iv)(["",";&::after{inline-size:",";}"],!s&&Zt(e,c,a),t)}),O)})),mo=ie.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-16usrgb-0"})(["display:flex;",""],(function(e){var t=e.buttonSize,n=e.position;return(0,ie.iv)([""," ",""],"leading"===n&&(0,ie.iv)(["margin-inline-end:",";"],un[t]),"trailing"===n&&(0,ie.iv)(["margin-inline-start:",";"],un[t]))})),go=function(e){var t=e.position,n=e.buttonSize,o=e.icon,r=e.iconSize,a=o;return i.createElement(mo,{position:t,buttonSize:n,"aria-hidden":"true"},i.createElement(a,{iconSize:r}))},vo=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,r=e.children,a=e.buttonSize,s=e.iconSize,l=function(e,t){return t&&i.createElement(go,{icon:t,position:e,buttonSize:a,iconSize:s})};return t?i.createElement(i.Fragment,null,l("only",t)):i.createElement(i.Fragment,null,l("leading",n),r,l("trailing",o))},yo=["component","color","children","buttonSize","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"];function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){(0,Le.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var So=i.forwardRef((function(e,t){var n=e.component,o=(e.color,e.children),r=e.buttonSize,a=void 0===r?"md":r,s=e.iconOnly,l=e.iconLeading,c=e.iconTrailing,u=e["aria-label"],d=e["aria-labelledby"],p=(0,Ut.Z)(e,yo);!s||u||d||po("ButtonTertiary must have an aria-label or aria-labelledby attribute defined when using the iconOnly prop in order to be accessible.");var f=(0,i.useContext)(Jt).isUsingKeyboard,h=(0,i.useContext)(Vt).useBrowserDefaultFocusStyle,m=(0,i.useContext)(tn),g=function(e,t){var n=void 0;return Object.keys(Qt).forEach((function(o){(function(e,t){return t.indexOf(e)>-1})(e,t[o])&&(n=o)})),n}($t,m),v=p.href&&"_blank"===p.target?"noopener noreferrer":null,y=s&&"lg"===a?32:sn[a];return i.createElement(ho,Object.assign({},p,{rel:v,ref:t,component:!n&&p.href?"a":n,"aria-label":u,"aria-labelledby":d,buttonSize:a,iconSize:y,iconLeading:l,iconTrailing:c,iconOnly:s,isUsingKeyboard:f,useBrowserDefaultFocusStyle:h,status:g,"data-encore-id":Ae}),i.createElement(vo,{iconOnly:s,iconLeading:l,iconTrailing:c,iconSize:y,children:o,buttonSize:a}))})),Eo=bo(bo({},{sm:"sm",md:"md",lg:"lg"}),{},{displayName:"ButtonTertiary"}),Ao=Object.assign(So,Eo);const To=(0,ie.ZP)(Ao).withConfig({displayName:"Button__ButtonComponent",componentId:"sc-yof409-0"})(["text-decoration:none !important;margin-bottom:"," !important;line-height:inherit !important;border:none !important;padding:0 !important;color:"," !important;[dir='rtl'] &{margin-right:0;margin-left:"," !important;}&:hover{transform:none;cursor:pointer;background-color:transparent !important;}",""],ce,Ve(He.textSubdued),pe,(({$isSmall:e})=>!e&&`\n span:hover {\n color: ${le};\n text-decoration:underline;\n text-decoration-color: ${Ve("textSubdued")};\n } `)),Po=ie.ZP.div.withConfig({displayName:"Button__Container",componentId:"sc-yof409-1"})(["display:flex;",";[dir='ltr'] &{margin-right:",";}[dir='rtl'] &{margin-right:0;}"],(({$isSmall:e})=>!e&&`margin-bottom: ${ue} !important`),pe),Oo=({button:e,isSmall:t})=>(0,o.jsxs)(Po,Object.assign({$isSmall:t},{children:[(0,o.jsx)(To,Object.assign({id:eo(e,$n.ADDITIONAL_IDS),className:eo(e,$n.ADDITIONAL_CLASSES),condensedAll:!0,buttonSize:"sm",semanticColor:He.textSubdued,$isSmall:t},{children:(0,o.jsx)(Gn,Object.assign({variant:t?"finale":"viola"},{children:e.title}))})),(0,o.jsx)(no,{name:e.icon})]})),Co=ie.ZP.div.withConfig({displayName:"BottomLinksList__Container",componentId:"sc-1li1pru-0"})(["display:flex;flex-wrap:wrap;"]),ko=({isSmall:e,links:t})=>(0,o.jsx)(Co,{children:t.map((t=>t.href?(0,o.jsx)(ro,{link:t,isSmall:e},null==t?void 0:t.href):(0,o.jsx)(Oo,{button:t,isSmall:e},null==t?void 0:t.title)))}),Ro=ie.ZP.div.withConfig({displayName:"BottomLinks__BottomLinksContainer",componentId:"sc-1g2bphb-0"})(["display:flex;flex-flow:row wrap;"]),Lo=()=>{var e;const t=(0,i.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.bottomLinks;return n?(0,o.jsx)(Ro,{children:(0,o.jsx)(ko,{links:n})}):null},Io=ie.ZP.div.withConfig({displayName:"CountryCopyright__CountryCopyrightContainer",componentId:"sc-1k7wleo-0"})(["flex:0 0 auto;display:flex;flex-flow:row nowrap;align-items:end;color:",";"],Ve(He.textSubdued)),No=(0,ie.ZP)(kn).withConfig({displayName:"CountryCopyright__StyledTextLink",componentId:"sc-1k7wleo-1"})(["span:hover{color:",";}"],le),wo=ie.ZP.svg.withConfig({displayName:"CountryCopyright__Globe",componentId:"sc-1k7wleo-2"})(["padding-right:",";width:auto;[dir='rtl'] &{padding-right:0;padding-left:",";}"],ue,ue),Do=ie.ZP.div.withConfig({displayName:"CountryCopyright__Copyright",componentId:"sc-1k7wleo-3"})(["padding-right:",";[dir='rtl'] &{padding-right:0;padding-left:",";}"],pe,pe),Mo=({hideGeoIndicators:e})=>{var t,n;const r=(0,i.useContext)($),a=null===(t=null==r?void 0:r.footer)||void 0===t?void 0:t.country,s=null===(n=null==r?void 0:r.footer)||void 0===n?void 0:n.copyrightNotice;return a&&s?(0,o.jsxs)(Io,{children:[(0,o.jsx)(Do,{children:(0,o.jsx)(Gn,Object.assign({variant:"viola",as:"p"},{children:s}))}),!e&&(0,o.jsxs)(No,Object.assign({href:a.href,semanticColor:He.textSubdued,standalone:!0},{children:[(0,o.jsx)(wo,Object.assign({width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},{children:(0,o.jsx)("path",{fill:"currentColor",d:"M6 0.624023C8.07255 0.624023 9.90309 1.68041 10.9815 3.28299C10.9819 3.28367 10.9822 3.28403 10.9825 3.28438C11.0029 3.30998 11.0209 3.33677 11.0363 3.36446C11.6453 4.30352 12 5.42315 12 6.62402C12 9.92265 9.32436 12.6079 6.02962 12.624C6.02732 12.6241 6.02495 12.6241 6.02258 12.6241L6 12.624C2.69149 12.624 0 9.93253 0 6.62402C0 3.31571 2.69149 0.624023 6 0.624023ZM6 1.78528C5.80411 1.78528 5.61089 1.79698 5.42102 1.81972C5.39755 1.91375 5.34896 2.0023 5.2765 2.07641L3.75157 3.63714C3.64024 3.75103 3.48978 3.812 3.33616 3.812C3.26752 3.812 3.19848 3.7998 3.1318 3.77483C2.91623 3.69359 2.76891 3.49277 2.75652 3.26265L2.74444 3.04725C1.77228 3.93289 1.16125 5.20844 1.16125 6.62402C1.16125 6.90513 1.18535 7.1807 1.23158 7.44881L2.11909 8.18538C2.12814 8.19266 2.13699 8.20053 2.14564 8.20859L2.91981 8.93437C2.99003 9.00007 3.04274 9.08228 3.07323 9.17374L3.37633 10.0793L3.83343 10.3016H4.86133C5.01514 10.3016 5.16285 10.3625 5.27182 10.4715L6.25621 11.4561C8.80567 11.3224 10.8387 9.20617 10.8387 6.62402C10.8387 5.8726 10.6666 5.16063 10.3596 4.52549L9.45716 5.24616L9.62455 5.6122C9.65956 5.68812 9.67726 5.77053 9.67726 5.85393V6.60784C9.67726 6.78014 9.60075 6.94358 9.46857 7.05393C9.3362 7.16407 9.16154 7.2103 8.99219 7.17902L8.05556 7.00751L8.52643 8.28855C8.58347 8.44354 8.57167 8.61544 8.49417 8.76139L7.67162 10.3097C7.58211 10.4783 7.41628 10.5907 7.22969 10.6136L7.15866 10.6179C6.94387 10.6179 6.74659 10.4991 6.64589 10.3093L6.25231 9.56742C6.24563 9.55444 6.23913 9.54126 6.23323 9.52788L5.91027 8.78833L5.5222 8.25412L4.15443 8.44118C4.0551 8.45475 3.9538 8.44255 3.86057 8.40518L2.68811 7.93765C2.46526 7.84855 2.3201 7.632 2.32244 7.39204L2.33879 5.84783C2.34095 5.65035 2.44304 5.46763 2.61022 5.3624L4.57554 4.12641C4.81058 3.97869 5.11781 4.01783 5.30801 4.22062L5.95905 4.91395L6.7818 5.23062L7.05303 5.13365L5.90181 3.48933C5.77849 3.3131 5.76256 3.08317 5.86051 2.89179L6.41732 1.80311C6.27976 1.7913 6.14057 1.78528 6 1.78528Z"})})),(0,o.jsx)(Gn,Object.assign({variant:"viola"},{children:a.name}))]}))]}):null},xo=ie.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," ",""],(function(e){return e.autoMirror&&(0,ie.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])}),(function(e){return e.iconColor?(0,ie.iv)(["fill:","};"],Ve(e.iconColor)):(0,ie.iv)(["fill:currentColor;"])}));var Fo=["iconSize","semanticColor","color","title","titleId","desc","descId","autoMirror"],Uo=function(e,t){return e.sort((function(e,t){return e.size-t.size})).reduce((function(e,n){return n.size<=t&&n.size>e.size?n:e}))},Bo=function(e){var t=e.iconSize,n=void 0===t?24:t,o=e.semanticColor,r=(e.color,e.title),a=e.titleId,s=e.desc,l=e.descId,c=e.autoMirror,u=(0,Ut.Z)(e,Fo);return i.createElement(xo,Object.assign({role:"img",height:n,width:n,iconSize:n,iconColor:o,autoMirror:c,"aria-labelledby":r&&a?a:u["aria-labelledby"],"aria-describedby":s&&l?l:u["aria-describedby"],"aria-hidden":!r&&!a},u,{"data-encore-id":Pe}))};function Vo(e){var t,n,o,r,a,s=Uo([{size:16,svgContent:"<path d='M8 1.44c2.136 0 2.389.009 3.233.047.78.036 1.203.166 1.485.276.348.128.663.332.921.598.266.258.47.573.599.921.11.282.24.706.275 1.485.039.844.047 1.097.047 3.233s-.008 2.389-.047 3.232c-.035.78-.166 1.204-.275 1.486a2.654 2.654 0 01-1.518 1.518c-.282.11-.706.24-1.486.275-.843.039-1.097.047-3.233.047s-2.39-.008-3.232-.047c-.78-.035-1.204-.165-1.486-.275a2.477 2.477 0 01-.921-.599 2.477 2.477 0 01-.599-.92c-.11-.282-.24-.706-.275-1.486-.038-.844-.047-1.096-.047-3.232s.009-2.39.047-3.233c.036-.78.166-1.203.275-1.485.129-.348.333-.663.599-.921a2.49 2.49 0 01.92-.599c.283-.11.707-.24 1.487-.275.843-.038 1.096-.047 3.232-.047L8 1.441zm.001-1.442c-2.172 0-2.445.01-3.298.048-.854.04-1.435.176-1.943.373a3.928 3.928 0 00-1.417.923c-.407.4-.722.883-.923 1.417-.198.508-.333 1.09-.372 1.942C.01 5.552 0 5.826 0 8c0 2.172.01 2.445.048 3.298.04.853.174 1.433.372 1.941.2.534.516 1.017.923 1.417.4.407.883.722 1.417.923.508.198 1.09.333 1.942.372.852.039 1.126.048 3.299.048 2.172 0 2.445-.01 3.298-.048.853-.04 1.433-.174 1.94-.372a4.087 4.087 0 002.34-2.34c.199-.508.334-1.09.373-1.942.039-.851.048-1.125.048-3.298s-.01-2.445-.048-3.298c-.04-.853-.174-1.433-.372-1.94a3.924 3.924 0 00-.923-1.418A3.928 3.928 0 0013.24.42c-.508-.197-1.09-.333-1.942-.371-.851-.041-1.125-.05-3.298-.05l.001-.001z'/><path d='M8 3.892a4.108 4.108 0 100 8.216 4.108 4.108 0 000-8.216zm0 6.775a2.668 2.668 0 110-5.335 2.668 2.668 0 010 5.335zm4.27-5.978a.96.96 0 100-1.92.96.96 0 000 1.92z'/>"},{size:24,svgContent:"<path d='M12 3.803c2.67 0 2.986.01 4.041.059.975.044 1.504.207 1.857.344.435.16.828.416 1.151.748.332.323.588.716.748 1.151.137.353.3.882.345 1.857.047 1.055.058 1.37.058 4.041 0 2.67-.01 2.986-.058 4.041-.045.975-.208 1.505-.345 1.857A3.315 3.315 0 0117.9 19.8c-.352.137-.882.3-1.856.344-1.055.048-1.371.058-4.041.058-2.67 0-2.987-.01-4.041-.058-.975-.044-1.505-.207-1.857-.344a3.096 3.096 0 01-1.151-.748 3.096 3.096 0 01-.749-1.151c-.137-.353-.3-.883-.344-1.857-.048-1.055-.058-1.371-.058-4.041 0-2.67.01-2.987.058-4.041.045-.975.207-1.505.344-1.857a3.08 3.08 0 01.749-1.151 3.096 3.096 0 011.15-.749c.353-.137.883-.3 1.858-.344 1.054-.048 1.37-.058 4.04-.058H12zM12.002 2c-2.716 0-3.057.012-4.124.06-1.066.05-1.793.22-2.428.466A4.91 4.91 0 003.678 3.68a4.91 4.91 0 00-1.153 1.772c-.247.635-.416 1.363-.465 2.427C2.012 8.943 2 9.286 2 12.002c0 2.715.012 3.056.06 4.123.05 1.066.218 1.791.465 2.426a4.909 4.909 0 001.153 1.772c.5.508 1.105.902 1.772 1.153.635.248 1.363.417 2.428.465 1.064.049 1.407.06 4.123.06s3.056-.01 4.123-.06c1.067-.049 1.79-.217 2.426-.465a5.111 5.111 0 002.925-2.925c.247-.635.416-1.363.465-2.427.048-1.064.06-1.407.06-4.123s-.012-3.057-.06-4.123c-.05-1.067-.218-1.791-.465-2.426a4.902 4.902 0 00-1.153-1.771 4.91 4.91 0 00-1.772-1.155c-.635-.247-1.363-.416-2.428-.464-1.064-.048-1.406-.06-4.122-.06L12.002 2z'/><path d='M12 6.867a5.135 5.135 0 100 10.27 5.135 5.135 0 000-10.27zm0 8.47a3.334 3.334 0 110-6.67 3.334 3.334 0 010 6.67zm5.338-7.473a1.2 1.2 0 100-2.4 1.2 1.2 0 000 2.4z'/>"}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(Bo,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"<title ".concat(a?'id="'.concat(a,'"'):"",">").concat(r,"</title>"):"")).concat((n=e.desc,o=e.descId,n?"<desc ".concat(o?'id="'.concat(o,'"'):"",">").concat(n,"</desc>"):"")).concat(s.svgContent)}}))}var Go=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isActive","isFocus","semanticColor"],Jo=["semanticColor"],jo=(0,ie.iv)(["color:",";"],Ve(He.textBase)),Ho=(0,ie.iv)([""," color:",";"],hn,Ve(He.textSubdued)),Ko=(0,ie.ZP)(i.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,r=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isActive,e.isFocus,e.semanticColor,(0,Ut.Z)(e,Go));return i.createElement(o,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-me270r-0"})(["",""],(function(e){var t=e.semanticColor,n=void 0===t?"textSubdued":t,o=(0,Ut.Z)(e,Jo);return(0,ie.iv)(["",";",";cursor:inherit;display:inline-flex;align-items:center;color:",";&:hover{","}"," &:active{","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{"," color:",";}"," ",";"],Re(),(!o.component||"button"===o.component)&&gn(o.useBrowserDefaultFocusStyle),Ve(n),jo,o.isHover&&jo,Ho,fn,Ve(n),o.isActive&&Ho,!o.useBrowserDefaultFocusStyle&&Zt(0,o.isUsingKeyboard,o.isFocus))})),Yo=["type"],Wo=i.forwardRef((function(e,t){var n=e.type,o=void 0===n?"button":n,r=(0,Ut.Z)(e,Yo),a=(0,i.useContext)(Jt).isUsingKeyboard,s=(0,i.useContext)(Vt).useBrowserDefaultFocusStyle;return i.createElement(Ko,Object.assign({},r,{ref:t,type:o,isUsingKeyboard:a,useBrowserDefaultFocusStyle:s}))}));const zo=(0,ie.ZP)(Wo).withConfig({displayName:"styles__StyledLink",componentId:"sc-17pc5ri-0"})(["height:40px;width:40px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;background-color:",";:hover{background-color:",";}"],"#292929","#727272"),qo=({name:e,href:t})=>(0,o.jsx)(zo,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,target:"_blank",rel:"noopener noreferrer"},{children:(0,o.jsx)(Vo,{iconSize:16,semanticColor:He.textBase})}));function Xo(e){var t,n,o,r,a,s=Uo([{size:16,svgContent:"<path d='M13.54 3.889a2.968 2.968 0 001.333-1.683 5.937 5.937 0 01-1.929.738 2.992 2.992 0 00-.996-.706 2.98 2.98 0 00-1.218-.254 2.92 2.92 0 00-2.143.889 2.929 2.929 0 00-.889 2.15c0 .212.027.442.08.691a8.475 8.475 0 01-3.484-.932A8.536 8.536 0 011.532 2.54a2.993 2.993 0 00-.413 1.523c0 .519.12 1 .361 1.445.24.445.57.805.988 1.08a2.873 2.873 0 01-1.373-.374v.04c0 .725.23 1.365.69 1.92a2.97 2.97 0 001.739 1.048 2.937 2.937 0 01-1.365.056 2.94 2.94 0 001.063 1.5 2.945 2.945 0 001.77.603 5.944 5.944 0 01-3.77 1.302c-.243 0-.484-.016-.722-.048A8.414 8.414 0 005.15 14c.905 0 1.763-.12 2.572-.361.81-.24 1.526-.57 2.147-.988a9.044 9.044 0 001.683-1.46c.5-.556.911-1.155 1.234-1.798a9.532 9.532 0 00.738-1.988 8.417 8.417 0 00.246-2.429 6.177 6.177 0 001.508-1.563c-.56.249-1.14.407-1.738.476z'/>"},{size:24,svgContent:"<path d='M20.31 5.833a4.451 4.451 0 002-2.524 8.91 8.91 0 01-2.894 1.107 4.487 4.487 0 00-1.494-1.06 4.471 4.471 0 00-1.827-.38c-1.254 0-2.325.444-3.214 1.333-.89.89-1.334 1.964-1.334 3.225 0 .318.04.664.12 1.037a12.713 12.713 0 01-5.226-1.398A12.804 12.804 0 012.298 3.81a4.49 4.49 0 00-.62 2.284c0 .778.181 1.5.542 2.168a4.439 4.439 0 001.482 1.62 4.31 4.31 0 01-2.06-.561v.06c0 1.087.346 2.047 1.036 2.88a4.457 4.457 0 002.608 1.572 4.405 4.405 0 01-1.191.166 5.04 5.04 0 01-.856-.082 4.41 4.41 0 001.594 2.25 4.417 4.417 0 002.655.904c-1.659 1.302-3.544 1.953-5.655 1.953-.365 0-.726-.024-1.083-.072C2.869 20.317 5.194 21 7.725 21c1.358 0 2.644-.18 3.858-.541 1.215-.361 2.288-.855 3.22-1.482a13.564 13.564 0 002.525-2.19 12.232 12.232 0 001.851-2.697c.484-.964.853-1.958 1.107-2.982a12.624 12.624 0 00.369-3.644 9.266 9.266 0 002.262-2.345 8.9 8.9 0 01-2.607.714z'/>"}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(Bo,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"<title ".concat(a?'id="'.concat(a,'"'):"",">").concat(r,"</title>"):"")).concat((n=e.desc,o=e.descId,n?"<desc ".concat(o?'id="'.concat(o,'"'):"",">").concat(n,"</desc>"):"")).concat(s.svgContent)}}))}const Zo=({name:e,href:t})=>(0,o.jsx)(zo,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,target:"_blank",rel:"noopener noreferrer"},{children:(0,o.jsx)(Xo,{iconSize:16,semanticColor:He.textBase})}));function Qo(e){var t,n,o,r,a,s=Uo([{size:16,svgContent:"<path d='M16 8a8 8 0 10-9.25 7.903v-5.59H4.719V8H6.75V6.237c0-2.005 1.194-3.112 3.022-3.112.875 0 1.79.156 1.79.156V5.25h-1.008c-.994 0-1.304.617-1.304 1.25V8h2.219l-.355 2.313H9.25v5.59A8.002 8.002 0 0016 8z'/>"},{size:24,svgContent:"<path d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.093 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.563V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z'/>"}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(Bo,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"<title ".concat(a?'id="'.concat(a,'"'):"",">").concat(r,"</title>"):"")).concat((n=e.desc,o=e.descId,n?"<desc ".concat(o?'id="'.concat(o,'"'):"",">").concat(n,"</desc>"):"")).concat(s.svgContent)}}))}const $o=({name:e,href:t})=>(0,o.jsx)(zo,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,semanticColor:He.textBase,target:"_blank",rel:"noopener noreferrer"},{children:(0,o.jsx)(Qo,{iconSize:16})})),ei=({name:e,href:t})=>{switch(e){case ne.INSTAGRAM:return(0,o.jsx)(qo,{name:e,href:t});case ne.TWITTER:return(0,o.jsx)(Zo,{name:e,href:t});case ne.FACEBOOK:return(0,o.jsx)($o,{name:e,href:t});default:return null}},ti=ie.ZP.div.withConfig({displayName:"SocialLinks__SocialContainer",componentId:"sc-kqbr2e-0"})(["margin-bottom:",";"],ge),ni=ie.ZP.div.withConfig({displayName:"SocialLinks__SocialLink",componentId:"sc-kqbr2e-1"})(["display:inline;padding-right:",";&:last-of-type{padding-right:0;}[dir='rtl'] &{padding-right:0;padding-left:",";&:last-of-type{padding-left:0;}}"],pe,pe),oi=()=>{var e;const t=(0,i.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.socialLinks;return n?(0,o.jsx)(ti,{children:n.map((e=>(0,o.jsx)(ni,{children:ei({name:e.name,href:e.href})},e.icon)))}):null},ii=ie.ZP.nav.withConfig({displayName:"Footer__StyledFooter",componentId:"sc-xwm5vq-0"})(["background-color:",";padding:"," "," ",";width:100%;box-sizing:border-box;@media (min-width:","){padding-left:",";padding-right:",";}"],re,ue,pe,ge,be,me,me),ri=ie.ZP.div.withConfig({displayName:"Footer__TopSection",componentId:"sc-xwm5vq-1"})(["display:flex;flex-direction:column;margin-top:",";@media (min-width:","){justify-content:space-between;flex-direction:row;}"],me,be),ai=ie.ZP.div.withConfig({displayName:"Footer__StyledTopLinks",componentId:"sc-xwm5vq-2"})(["display:flex;flex-flow:column wrap;@media (min-width:","){flex-direction:row;}@media (min-width:","){flex:50%;padding-bottom:0;}"],_e,be),si=(0,ie.ZP)((function(e){var t=(0,Ee.Z)({},e);return i.createElement(Ye,Object.assign({},t,{"data-encore-id":Te}))})).withConfig({displayName:"Footer__Line",componentId:"sc-xwm5vq-3"})(["border-color:",";margin-block-start:0;"],ae),li=ie.ZP.div.withConfig({displayName:"Footer__StyledBottomLinks",componentId:"sc-xwm5vq-4"})(["display:flex;flex-flow:column wrap;justify-content:space-between;padding-top:",";@media (min-width:","){flex-flow:row nowrap;align-items:start;}"],pe,be),ci=ie.ZP.div.withConfig({displayName:"Footer__LanguageSelectionButtonContainer",componentId:"sc-xwm5vq-5"})(["padding-top:",";@media (min-width:","){display:none;}"],pe,be),ui=({hideWebPlayerLink:e,columnWidth:t,columnGap:n,languageSelectionButton:i,hideLegalLinks:r})=>(0,o.jsxs)(ii,Object.assign({"data-testid":"footer-div"},{children:[(0,o.jsxs)(ri,{children:[(0,o.jsxs)(ai,{children:[(0,o.jsx)(Xn,{columnWidth:t,columnGap:n}),(0,o.jsx)(Zn,{columnWidth:t,columnGap:n}),(0,o.jsx)(Qn,{hideWebPlayerLink:e,columnWidth:t,columnGap:n})]}),(0,o.jsx)(oi,{})]}),(0,o.jsx)(si,{}),(0,o.jsxs)(li,{children:[!r&&(0,o.jsx)(Lo,{}),(0,o.jsx)(Mo,{hideGeoIndicators:e}),i&&(0,o.jsx)(ci,{children:i})]})]})),di=()=>{var e;const t=(0,i.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.bottomLinks;return n?(0,o.jsx)(ko,{links:n,isSmall:!0}):null}},76542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataServiceClient=void 0;const o=n(33892),i=n(12492),r=n(43575);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}fetch(e){const t="spotify.mdata_esperanto.proto.MetadataService",n="Fetch",r=i.LocalBatchedEntityRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.LocalBatchedExtensionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}expire(e){const t="spotify.mdata_esperanto.proto.MetadataService",n="Expire",i=r.InvalidateCacheRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.InvalidateCacheResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}purge(e){const t="spotify.mdata_esperanto.proto.MetadataService",n="Purge",i=r.InvalidateCacheRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.InvalidateCacheResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.mdata_esperanto.proto.MetadataService";static DECODERS={Fetch:{request:i.LocalBatchedEntityRequest.decode,response:i.LocalBatchedExtensionResponse.decode},Expire:{request:r.InvalidateCacheRequest.decode,response:r.InvalidateCacheResponse.decode},Purge:{request:r.InvalidateCacheRequest.decode,response:r.InvalidateCacheResponse.decode}}}t.MetadataServiceClient=a},44079:(e,t,n)=>{"use strict";t.ev=void 0;var o=n(76542);Object.defineProperty(t,"ev",{enumerable:!0,get:function(){return o.MetadataServiceClient}});var i=n(40839);var r=n(43575);var a=n(12492)},40839:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;case 79:case"COVER_IMAGE":return n.COVER_IMAGE;case 80:case"SHARE_TRAIT":return n.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return n.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return n.ARTIST_TOUR;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.COVER_IMAGE:return"COVER_IMAGE";case n.SHARE_TRAIT:return"SHARE_TRAIT";case n.INSTANCE_SHARING:return"INSTANCE_SHARING";case n.ARTIST_TOUR:return"ARTIST_TOUR";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},25039:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;const i=o(n(33892));function r(){return{typeUrl:"",value:new Uint8Array}}t.protobufPackage="google.protobuf",t.Any={encode:(e,t=i.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({typeUrl:l(e.typeUrl)?String(e.typeUrl):"",value:l(e.value)?s(e.value):new Uint8Array}),toJSON(e){const t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){const t=r();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array,t}};var a=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function l(e){return null!=e}},12492:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LocalBatchedExtensionResponse_Extension=t.LocalBatchedExtensionResponse_EntityExtension=t.LocalBatchedExtensionResponse_ExtensionHeader=t.LocalBatchedExtensionResponse=t.LocalBatchedEntityRequest=t.LocalExtensionQuery=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(40839),s=n(25039);function l(e){return e.toString()}function c(e){return null!=e}t.protobufPackage="spotify.mdata.proto",t.LocalExtensionQuery={encode(e,t=r.default.Writer.create()){0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind);for(const n of e.entityUri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={extensionKind:0,entityUri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.extensionKind=n.int32();break;case 2:i.entityUri.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,entityUri:Array.isArray(e?.entityUri)?e.entityUri.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),e.entityUri?t.entityUri=e.entityUri.map((e=>e)):t.entityUri=[],t},fromPartial(e){const t={extensionKind:0,entityUri:[]};return t.extensionKind=e.extensionKind??0,t.entityUri=e.entityUri?.map((e=>e))||[],t}},t.LocalBatchedEntityRequest={encode(e,n=r.default.Writer.create()){for(const o of e.extensionQuery)t.LocalExtensionQuery.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={extensionQuery:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.extensionQuery.push(t.LocalExtensionQuery.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({extensionQuery:Array.isArray(e?.extensionQuery)?e.extensionQuery.map((e=>t.LocalExtensionQuery.fromJSON(e))):[]}),toJSON(e){const n={};return e.extensionQuery?n.extensionQuery=e.extensionQuery.map((e=>e?t.LocalExtensionQuery.toJSON(e):void 0)):n.extensionQuery=[],n},fromPartial(e){const n={extensionQuery:[]};return n.extensionQuery=e.extensionQuery?.map((e=>t.LocalExtensionQuery.fromPartial(e)))||[],n}},t.LocalBatchedExtensionResponse={encode(e,n=r.default.Writer.create()){for(const o of e.extension)t.LocalBatchedExtensionResponse_Extension.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={extension:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.extension.push(t.LocalBatchedExtensionResponse_Extension.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({extension:Array.isArray(e?.extension)?e.extension.map((e=>t.LocalBatchedExtensionResponse_Extension.fromJSON(e))):[]}),toJSON(e){const n={};return e.extension?n.extension=e.extension.map((e=>e?t.LocalBatchedExtensionResponse_Extension.toJSON(e):void 0)):n.extension=[],n},fromPartial(e){const n={extension:[]};return n.extension=e.extension?.map((e=>t.LocalBatchedExtensionResponse_Extension.fromPartial(e)))||[],n}},t.LocalBatchedExtensionResponse_ExtensionHeader={encode:(e,t=r.default.Writer.create())=>(!0===e.cacheValid&&t.uint32(8).bool(e.cacheValid),!0===e.offlineValid&&t.uint32(16).bool(e.offlineValid),0!==e.statusCode&&t.uint32(24).int32(e.statusCode),!0===e.isEmpty&&t.uint32(32).bool(e.isEmpty),"0"!==e.cacheExpiryTimestamp&&t.uint32(40).int64(e.cacheExpiryTimestamp),"0"!==e.offlineExpiryTimestamp&&t.uint32(48).int64(e.offlineExpiryTimestamp),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={cacheValid:!1,offlineValid:!1,statusCode:0,isEmpty:!1,cacheExpiryTimestamp:"0",offlineExpiryTimestamp:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.cacheValid=n.bool();break;case 2:i.offlineValid=n.bool();break;case 3:i.statusCode=n.int32();break;case 4:i.isEmpty=n.bool();break;case 5:i.cacheExpiryTimestamp=l(n.int64());break;case 6:i.offlineExpiryTimestamp=l(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({cacheValid:!!c(e.cacheValid)&&Boolean(e.cacheValid),offlineValid:!!c(e.offlineValid)&&Boolean(e.offlineValid),statusCode:c(e.statusCode)?Number(e.statusCode):0,isEmpty:!!c(e.isEmpty)&&Boolean(e.isEmpty),cacheExpiryTimestamp:c(e.cacheExpiryTimestamp)?String(e.cacheExpiryTimestamp):"0",offlineExpiryTimestamp:c(e.offlineExpiryTimestamp)?String(e.offlineExpiryTimestamp):"0"}),toJSON(e){const t={};return void 0!==e.cacheValid&&(t.cacheValid=e.cacheValid),void 0!==e.offlineValid&&(t.offlineValid=e.offlineValid),void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.isEmpty&&(t.isEmpty=e.isEmpty),void 0!==e.cacheExpiryTimestamp&&(t.cacheExpiryTimestamp=e.cacheExpiryTimestamp),void 0!==e.offlineExpiryTimestamp&&(t.offlineExpiryTimestamp=e.offlineExpiryTimestamp),t},fromPartial(e){const t={cacheValid:!1,offlineValid:!1,statusCode:0,isEmpty:!1,cacheExpiryTimestamp:"0",offlineExpiryTimestamp:"0"};return t.cacheValid=e.cacheValid??!1,t.offlineValid=e.offlineValid??!1,t.statusCode=e.statusCode??0,t.isEmpty=e.isEmpty??!1,t.cacheExpiryTimestamp=e.cacheExpiryTimestamp??"0",t.offlineExpiryTimestamp=e.offlineExpiryTimestamp??"0",t}},t.LocalBatchedExtensionResponse_EntityExtension={encode:(e,n=r.default.Writer.create())=>(""!==e.entityUri&&n.uint32(10).string(e.entityUri),void 0!==e.header&&t.LocalBatchedExtensionResponse_ExtensionHeader.encode(e.header,n.uint32(18).fork()).ldelim(),void 0!==e.extensionData&&s.Any.encode(e.extensionData,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entityUri:"",header:void 0,extensionData:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.entityUri=o.string();break;case 2:a.header=t.LocalBatchedExtensionResponse_ExtensionHeader.decode(o,o.uint32());break;case 3:a.extensionData=s.Any.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({entityUri:c(e.entityUri)?String(e.entityUri):"",header:c(e.header)?t.LocalBatchedExtensionResponse_ExtensionHeader.fromJSON(e.header):void 0,extensionData:c(e.extensionData)?s.Any.fromJSON(e.extensionData):void 0}),toJSON(e){const n={};return void 0!==e.entityUri&&(n.entityUri=e.entityUri),void 0!==e.header&&(n.header=e.header?t.LocalBatchedExtensionResponse_ExtensionHeader.toJSON(e.header):void 0),void 0!==e.extensionData&&(n.extensionData=e.extensionData?s.Any.toJSON(e.extensionData):void 0),n},fromPartial(e){const n={entityUri:"",header:void 0,extensionData:void 0};return n.entityUri=e.entityUri??"",n.header=void 0!==e.header&&null!==e.header?t.LocalBatchedExtensionResponse_ExtensionHeader.fromPartial(e.header):void 0,n.extensionData=void 0!==e.extensionData&&null!==e.extensionData?s.Any.fromPartial(e.extensionData):void 0,n}},t.LocalBatchedExtensionResponse_Extension={encode(e,n=r.default.Writer.create()){0!==e.extensionKind&&n.uint32(8).int32(e.extensionKind);for(const o of e.entityExtension)t.LocalBatchedExtensionResponse_EntityExtension.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={extensionKind:0,entityExtension:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.extensionKind=o.int32();break;case 2:a.entityExtension.push(t.LocalBatchedExtensionResponse_EntityExtension.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,entityExtension:Array.isArray(e?.entityExtension)?e.entityExtension.map((e=>t.LocalBatchedExtensionResponse_EntityExtension.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.extensionKind&&(n.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),e.entityExtension?n.entityExtension=e.entityExtension.map((e=>e?t.LocalBatchedExtensionResponse_EntityExtension.toJSON(e):void 0)):n.entityExtension=[],n},fromPartial(e){const n={extensionKind:0,entityExtension:[]};return n.extensionKind=e.extensionKind??0,n.entityExtension=e.entityExtension?.map((e=>t.LocalBatchedExtensionResponse_EntityExtension.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},43575:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidateCacheResponse=t.InvalidateCacheRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(40839);t.protobufPackage="spotify.mdata_cosmos.proto",t.InvalidateCacheRequest={encode(e,t=i.default.Writer.create()){0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind);for(const n of e.entityUri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={extensionKind:0,entityUri:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.extensionKind=n.int32();break;case 2:r.entityUri.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON(e){return{extensionKind:(t=e.extensionKind,null!=t?(0,r.extensionKindFromJSON)(e.extensionKind):0),entityUri:Array.isArray(e?.entityUri)?e.entityUri.map((e=>String(e))):[]};var t},toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),e.entityUri?t.entityUri=e.entityUri.map((e=>e)):t.entityUri=[],t},fromPartial(e){const t={extensionKind:0,entityUri:[]};return t.extensionKind=e.extensionKind??0,t.entityUri=e.entityUri?.map((e=>e))||[],t}},t.InvalidateCacheResponse={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},70784:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>Rt,zq:()=>Et,Sy:()=>Ft,cr:()=>Ut,SK:()=>xt});var o,i,r,a,s,l,c=n(26336),u=n(46506),d=n(53016),p=n(46712);!function(e){e.KEY_SESSION_MESSAGE="message",e.KEY_SESSION_STATUSES_CHANGE="keystatuseschange",e.MEDIA_SOURCE_OPEN="sourceopen",e.MEDIA_SOURCE_CLOSE="sourceclose",e.SOURCE_BUFFER_UPDATE_END="updateend",e.MS_KEY_ADDED="mskeyadded",e.MS_KEY_ERROR="mskeyerror",e.MS_KEY_MESSAGE="mskeymessage",e.MS_NEEDKEY="msneedkey",e.WEBKIT_KEY_ADDED="webkitkeyadded",e.WEBKIT_KEY_ERROR="webkitkeyerror",e.WEBKIT_KEY_MESSAGE="webkitkeymessage",e.WEBKIT_NEEDKEY="webkitneedkey",e.V0_1B_KEY_ADDED="keyadded",e.V0_1B_KEY_ERROR="keyerror",e.V0_1B_KEY_MESSAGE="keymessage",e.V0_1B_NEEDKEY="needkey",e.MEDIA_CANPLAY="canplay",e.MEDIA_CANPLAYTHROUGH="canplaythrough",e.MEDIA_DURATIONCHANGE="durationchange",e.MEDIA_ENCRYPTED="encrypted",e.MEDIA_ENDED="ended",e.MEDIA_ERROR="error",e.MEDIA_LOADEDMETADATA="loadedmetadata",e.MEDIA_PAUSE="pause",e.MEDIA_PLAY="play",e.MEDIA_PLAYING="playing",e.MEDIA_SEEKING="seeking",e.MEDIA_TIMEUPDATE="timeupdate",e.MEDIA_WAITING="waiting",e.MEDIA_RATECHANGE="ratechange",e.MEDIA_RESIZE="resize",e.INTERNAL_ENCRYPTED="__encrypted",e.INTERNAL_PLAYER_CANPLAY="__canplay",e.INTERNAL_PLAYER_CANPLAYTHROUGH="__canplaythrough",e.INTERNAL_MEDIA_REQUIRES_DURATION="__requiresduration",e.INTERNAL_PLAYER_LOADED_METADATA="__loadedmetadata",e.BUFFER_APPEND_ERROR="append_error",e.BUFFER_STALLED="stalled",e.BUFFERING_START="buffering_start",e.BUFFERING_END="buffering_end",e.BUFFER_SOURCE_OPEN="source_open",e.BUFFER_SOURCE_CLOSE="source_close",e.BUFFER_QUOTA_EXCEEDED="quota_exceeded",e.FRAGMENT_APPENDED="fragment_appended",e.EME_LICENSE_REQUEST_ERROR="license_request_error",e.EME_LICENSE_REQUEST_CAPPED="license_request_capped",e.LIST_PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.LIST_PLAYER_BEFORE_LIST_CHANGE="before_list_change",e.LIST_PLAYER_BEFORE_NEXT="before_next",e.LIST_PLAYER_BEFORE_PLAYER_LOAD="before_player_load",e.LIST_PLAYER_BEFORE_PREVIOUS="before_previous",e.LIST_PLAYER_BEFORE_TRACK_LOAD="before_track_load",e.LIST_PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.LIST_PLAYER_BUFFER_STALLED="stalled",e.LIST_PLAYER_BUFFERING_START="buffering_start",e.LIST_PLAYER_BUFFERING_END="buffering_end",e.LIST_PLAYER_CAPPED="capped",e.LIST_PLAYER_CLEARED="cleared",e.LIST_PLAYER_DURATION_CHANGED="duration_changed",e.LIST_PLAYER_ERROR="error",e.LIST_PLAYER_ERROR_SYNC="error_sync",e.LIST_PLAYER_LIST_CHANGED="list_change",e.LIST_PLAYER_LIST_ENDED="list_ended",e.LIST_PLAYER_LOAD_VIDEO="load_video",e.LIST_PLAYER_MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.LIST_PLAYER_PAUSED="paused",e.LIST_PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.LIST_PLAYER_PLAYER_LOAD="player_load",e.LIST_PLAYER_PLAYING="playing",e.LIST_PLAYER_POSITION_CHANGED="position_changed",e.LIST_PLAYER_PROGRESS="progress",e.LIST_PLAYER_REPEAT_MODE_CHANGED="repeat_mode_changed",e.LIST_PLAYER_SHUFFLE_CHANGED="shuffle_changed",e.LIST_PLAYER_STOPPED="stopped",e.LIST_PLAYER_STOPPED_VIDEO="stopped_video",e.LIST_PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_TRACK_ENDED="track_ended",e.LIST_PLAYER_TRACK_LOADED="track_loaded",e.LIST_PLAYER_TRACK_TIMEOUT="track_timeout",e.LIST_PLAYER_TRACK_UNPLAYABLE="track_unplayable",e.LIST_PLAYER_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_VOLUME_CHANGED="volume_changed",e.LIST_PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.LIST_PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.LIST_PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.LIST_PLAYER_SEEK_HANDLED="list_player_seek_handled",e.LIST_PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.LIST_PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.LOGGER_ERROR="error",e.PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.PLAYER_BEFORE_LOAD="before_load",e.PLAYER_BEFORE_STOP="before_stop",e.PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.PLAYER_BUFFER_STALLED="stalled",e.PLAYER_BUFFERING_START="buffering_start",e.PLAYER_BUFFERING_END="buffering_end",e.PLAYER_CAN_PRELOAD="can_preload",e.PLAYER_CAPPED="capped",e.PLAYER_DURATION_CHANGED="duration_changed",e.PLAYER_ENDED="ended",e.PLAYER_ENDED_VIDEO="ended_video",e.PLAYER_ERROR="error",e.PLAYER_WARNING="warning",e.PLAYER_FIRST_BYTES="first_bytes",e.PLAYER_KEY_RECEIVED="key",e.PLAYER_LOAD="load",e.PLAYER_LOAD_VIDEO="load_video",e.PLAYER_LOADING_FAILED="loading_failed",e.PLAYER_PAUSED="paused",e.PLAYER_PLAY="play",e.PLAYER_PLAYING="playing",e.PLAYER_POSITION_CHANGED="position_changed",e.PLAYER_PRELOADING_ERROR="preloading_error",e.PLAYER_PROGRESS="progress",e.PLAYER_STALLED="stalled",e.PLAYER_STOPPED="stopped",e.PLAYER_STOPPED_VIDEO="stopped_video",e.PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.PLAYER_TIMEOUT="timeout",e.PLAYER_PLAYBACK_START="playback_start",e.PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.PLAYER_SEEKING="seeking",e.PLAYER_FRAGMENT_FETCHED="fragment_fetched",e.PLAYER_FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.PLAYER_VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.PLAYER_VIDEO_RESIZED="resize",e.PLAYER_MANAGER_READY="ready",e.TRACKER_PLAYBACK_START="playback_start",e.TRACKER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.TRACKER_TRACKING_DATA_CREATED="tracking_data_created",e.TRACKER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.ABR_MANAGER_BITRATE_CHANGE="bitrate_change"}(o||(o={})),function(e){e.WIDEVINE="com.widevine.alpha",e.PLAYREADY="com.microsoft.playready",e.PLAYREADY_HARDWARE="com.microsoft.playready.hardware",e.FAIRPLAY="com.apple.fps.1_0",e.INVALID_SPOTIFY_KEY="com.spotify.invalid"}(i||(i={})),function(e){e.CAPPING_USER_IS_CAPPED="CAPPING_USER_IS_CAPPED",e.EME_API_NOT_SUPPORTED="EME_API_NOT_SUPPORTED",e.EME_MEDIA_KEYS_NOT_SUPPORTED="EME_MEDIA_KEYS_NOT_SUPPORTED",e.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED="EME_MEDIA_KEY_SESSION_NOT_SUPPORTED",e.EME_NO_SUPPORTED_KEYSYSTEM="EME_NO_SUPPORTED_KEYSYSTEM",e.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED="EME_PLAYER_MEDIA_KEYS_SETTING_FAILED",e.EME_ERROR_UNKNOWN="EME_ERROR_UNKNOWN",e.EME_LICENSE_REQUEST_EMPTY_RESPONSE="EME_LICENSE_REQUEST_EMPTY_RESPONSE",e.EME_LICENSE_REQUEST_FAILED_WITH_STATUS="EME_LICENSE_REQUEST_FAILED_WITH_STATUS",e.EME_LICENSE_REQUEST_WIDEVINE_ERROR="EME_LICENSE_REQUEST_WIDEVINE_ERROR",e.EME_LICENSE_UPDATE_FAILED="EME_LICENSE_UPDATE_FAILED",e.EME_HEADER_KEY_VALUE_MISMATCH="EME_HEADER_KEY_VALUE_MISMATCH",e.EME_HEADER_MISSING_CHALLENGE="EME_HEADER_MISSING_CHALLENGE",e.EME_INIT_DATA_MALFORMED="EME_INIT_DATA_MALFORMED",e.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM="EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM",e.EME_MEDIA_KEY_SESSION_V0_1B_ERROR="EME_MEDIA_KEY_SESSION_V0_1B_ERROR",e.EME_MEDIA_KEY_SESSION_SAFARI_ERROR="EME_MEDIA_KEY_SESSION_SAFARI_ERROR",e.EME_NO_SUPPORTED_CONFIGURATION="EME_NO_SUPPORTED_CONFIGURATION",e.EME_NOT_SUPPORTED_ERROR="EME_NOT_SUPPORTED_ERROR",e.EME_INVALID_STATE_ERROR="EME_INVALID_STATE_ERROR",e.EME_UNKNOWN_ERROR="EME_UNKNOWN_ERROR",e.DISALLOW_PROTECTED_TRACK_ERROR="DISALLOW_PROTECTED_TRACK_ERROR",e.FILE_FORMAT_NOT_SUPPORTED="FILE_FORMAT_NOT_SUPPORTED",e.FILE_MALFORMED_SEEKTABLE="FILE_MALFORMED_SEEKTABLE",e.FILE_MALFORMED_PSSH="FILE_MALFORMED_PSSH",e.FILE_NOT_RESOLVED="FILE_NOT_RESOLVED",e.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_ZERO="FRAGMENT_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_STATUS="FRAGMENT_REQUEST_FAILED_WITH_STATUS",e.FRAGMENT_REQUEST_EMPTY_RESPONSE="FRAGMENT_REQUEST_EMPTY_RESPONSE",e.FRAGMENT_REQUEST_UNEXPECTED_LENGTH="FRAGMENT_REQUEST_UNEXPECTED_LENGTH",e.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE="PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE",e.PLAYER_BUFFER_QUOTA_EXCEEDED="PLAYER_BUFFER_QUOTA_EXCEEDED",e.PLAYER_CANNOT_FIND_PLAYABLE_URI="PLAYER_CANNOT_FIND_PLAYABLE_URI",e.PLAYER_INVALID_INTERNAL_STATE="PLAYER_INVALID_INTERNAL_STATE",e.PLAYER_MEDIA_ERROR="PLAYER_MEDIA_ERROR",e.PLAYER_PLAYBACK_ERROR="PLAYER_PLAYBACK_ERROR",e.MEDIA_ABORTED="MEDIA_ABORTED",e.MEDIA_DECODING_ERROR="MEDIA_DECODING_ERROR",e.MEDIA_NETWORK_ERROR="MEDIA_NETWORK_ERROR",e.MEDIA_NOT_SUPPORTED="MEDIA_NOT_SUPPORTED",e.LICENSE_RESOLVE_INVALID_RESPONSE="LICENSE_RESOLVE_INVALID_RESPONSE",e.LICENSE_RESOLVER_CANT_RESOLVE_URL="LICENSE_RESOLVER_CANT_RESOLVE_URL",e.LICENSE_RESOLVER_DEPRECATED_VERSION="LICENSE_RESOLVER_DEPRECATED_VERSION",e.LIST_PLAYER_NO_TRACK_PLAYER="LIST_PLAYER_NO_TRACK_PLAYER",e.LIST_PLAYER_NO_LIST="LIST_PLAYER_NO_LIST",e.LIST_PLAYER_INVALID_ARGUMENT="LIST_PLAYER_INVALID_ARGUMENT",e.LIST_PLAYER_FORBIDDEN="LIST_PLAYER_FORBIDDEN",e.STORAGE_ERROR="STORAGE_ERROR",e.STORAGE_FAILED_WITH_STATUS="STORAGE_FAILED_WITH_STATUS",e.STORAGE_RETURNED_NO_TRACKS="STORAGE_RETURNED_NO_TRACKS",e.STORAGE_TRACK_MANIFEST_FAILED="STORAGE_TRACK_MANIFEST_FAILED",e.STORAGE_TRACK_MANIFEST_EMPTY="STORAGE_TRACK_MANIFEST_EMPTY",e.STORAGE_VIDEO_MANIFEST_FAILED="STORAGE_VIDEO_MANIFEST_FAILED",e.TRACK_DATA_ALREADY_FINALIZED="TRACK_DATA_ALREADY_FINALIZED",e.TSV_SENDING_FAILED="TSV_SENDING_FAILED",e.PLAYBACK_STATS_SENDING_FAILED="PLAYBACK_STATS_SENDING_FAILED",e.PLAYBACK_START_SENDING_FAILED="PLAYBACK_START_SENDING_FAILED",e.UNKNOWN="UNKNOWN"}(r||(r={})),function(e){e.SUCCESS="RESULT_SUCCESS",e.INVALID="RESULT_INVALID",e.FORBIDDEN="RESULT_FORBIDDEN",e.OUT_OF_BOUNDS="RESULT_OUT_OF_BOUNDS",e.NO_LIST="RESULT_NO_LIST",e.NO_TRACK="RESULT_NO_TRACK",e.LIST_END="RESULT_LIST_END",e.INVALID_TRACK="RESULT_INVALID_TRACK",e.CANCELLED="CANCELLED",e.NO_TRACK_PLAYER="NO_TRACK_PLAYER"}(a||(a={})),function(e){e.MP3="MP3",e.MP4="MP4",e.MP4_DUAL="MP4_DUAL",e.MP4_CBCS="MP4_CBCS",e.MP4_FLAC="MP4_FLAC",e.MANIFEST_ID="MANIFEST_ID"}(s||(s={})),function(e){e.FRAGMENT_FETCHED="fragment_fetched",e.FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.VIDEO_PROFILE_CHANGED="video_profile",e.SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded"}(l||(l={}));class f extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.code=e,this.message=t,this.name="PlaybackError"}static fatal(e,t){const n=new f(e,t);return n.unrecoverable=!0,n}}class h extends Error{constructor(e=r.STORAGE_ERROR,t="File Error"){super(t),this.canPlayNext=!0,this.debug={},this.code=e,this.message=t,this.name="FileError"}}n(20464);var m=n(39222);class g extends Error{constructor(e=r.EME_ERROR_UNKNOWN,t){super(t),this.status=-1,this.licenseServer="",this.shouldRefreshEndpoint=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.message=t,this.name="EMEError"}static fatal(e=r.EME_ERROR_UNKNOWN,t){const n=new g(e,t);return n.unrecoverable=!0,n}}class v extends Error{constructor(e,t){super(t),this.name="CappingError",this.message=t,this.code=e}}function y(e){const t=document.createEvent("Event");t.initEvent("encrypted",!1,!1),t.initDataType="cenc",t.initData=e.initData,t.fromPolyfill=!0,this.dispatchEvent(t)}class _ extends d.B{constructor(e){super(o.KEY_SESSION_MESSAGE,null),this.messageType="license-request",this.message=e}}class b extends d.vp{constructor(e){super(),this._nativeKeySession=null,this._lastUpdateDeferred=(0,m.$)(),this._lastGenerateDeferred=(0,m.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){const e=this._nativeKeySession;e&&(e.addEventListener(o.MS_KEY_ADDED,this._onKeyAdded),e.addEventListener(o.MS_KEY_ERROR,this._onKeyError),e.addEventListener(o.MS_KEY_MESSAGE,this._onKeyMessage))}_detach(){const e=this._nativeKeySession;e&&(e.removeEventListener(o.MS_KEY_ADDED,this._onKeyAdded),e.removeEventListener(o.MS_KEY_ERROR,this._onKeyError),e.removeEventListener(o.MS_KEY_MESSAGE,this._onKeyMessage))}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _(e.message.buffer)),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null))}_onKeyAdded(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null),this.emit(o.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error;this._lastGenerateDeferred&&(this._lastGenerateDeferred.reject(e),this._lastGenerateDeferred=null),this._lastUpdateDeferred&&(this._lastUpdateDeferred.reject(e),this._lastUpdateDeferred=null),this.emit(o.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=e,this._lastGenerateDeferred.reject=n),this._nativeKeySession=this._nativeMediaKeys.createSession("audio/mp4",new Uint8Array(t),null),this._attach()}))}update(e){return new Promise(((t,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=t,this._lastGenerateDeferred.reject=n),this._nativeKeySession&&this._nativeKeySession.update(new Uint8Array(e))}))}close(){return new Promise((e=>{this._nativeKeySession&&this._nativeKeySession.close(),this._detach(),e(!0)}))}}class S{constructor(e){this._lastBoundSetter=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new MSMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.msSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(o.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.msSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(o.MEDIA_LOADEDMETADATA,n),e.addEventListener(o.MS_NEEDKEY,y),t()}))}detach(e){this._lastBoundSetter&&(e.removeEventListener(o.MS_NEEDKEY,y),e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(){return Promise.reject(new g(r.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){return new b(this._nativeMediaKeys)}}function E(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class A{constructor(e,t){if(this._configuration=null,this.keySystem=e,!this._checkConfig(t))throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem;for(const i of e){const e={initDataTypes:i.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:i.label};let r;if(i.audioCapabilities&&i.audioCapabilities.length&&e.audioCapabilities){r=!1;for(const n of i.audioCapabilities){const i=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.audioCapabilities.push(n),r=!0)}}if(i.videoCapabilities&&i.videoCapabilities.length&&e.videoCapabilities){r=!1;for(const t of i.videoCapabilities){const i=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.videoCapabilities.push(t),r=!0)}}if(r)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new S(this.keySystem))}))}}const T=u.P.forTag("eme_polyfill.v0_1b");class P extends d.vp{constructor(e,t,n){super(),this._mediaElement=null,this._lastUpdateDeferred=null,this._lastGenerateResolver=null,this.sessionId=null,this._keySystem=e,this._mediaElement=t,this._prefix=n,this.addEventListener=this.addListener,this.removeEventListener=this.removeListener}_addPrefix(e){return this._prefix?this._prefix+e.replace(/\b[a-z]/,(function(e){return e.toUpperCase()})):e}generateComplete(e){this.emitEvent(new _(e)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null)}updateComplete(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this.emit(o.KEY_SESSION_STATUSES_CHANGE,null)}handleErrorEvent(e){const t=new g(r.EME_MEDIA_KEY_SESSION_V0_1B_ERROR,"MediaKeySession v0.1b Error");t.debug.errorCode=e.errorCode,t.debug.systemCode=e.systemCode,!e.sessionId&&this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):e.sessionId&&this._lastUpdateDeferred?(this._lastUpdateDeferred.reject(t),this._lastUpdateDeferred=null):this.emit(o.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return this._mediaElement?new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{this._mediaElement[this._addPrefix("generateKeyRequest")](this._keySystem,new Uint8Array(t))}catch(e){n(e),this._lastGenerateResolver=null}})):Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."))}update(e){if(!this._mediaElement)return Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."));if(this._lastUpdateDeferred){const t=this.update.bind(this,e);return this._lastUpdateDeferred.promise.then(t,t)}const t=(0,m.$)();this._lastUpdateDeferred=t;try{this._mediaElement[this._addPrefix("addKey")](this._keySystem,new Uint8Array(e),null,this.sessionId)}catch(e){t.reject(e),this._lastUpdateDeferred=null}return t.promise}close(){if(this.sessionId&&this._mediaElement)try{this._mediaElement[this._addPrefix("cancelKeyRequest")](this._keySystem,this.sessionId)}catch(e){T.warn("Could not close keysession",e)}return Promise.resolve(!0)}}class O{constructor(e,t=""){this._mediaElement=null,this._waitingForSessionIds=[],this._sessionMap={},this.shouldRefreshPerTrack=!0,this._keySystem=e,this._prefix=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}attach(e){this._mediaElement=e;const t=this._prefix;e.addEventListener(t+o.V0_1B_NEEDKEY,y);const n=e.addEventListener.bind(e);n(t+o.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+o.V0_1B_KEY_ERROR,this._onKeyError),n(t+o.V0_1B_KEY_MESSAGE,this._onKeyMessage)}detach(e){this._mediaElement=null;const t=this._prefix;e.removeEventListener(t+o.V0_1B_NEEDKEY,y);const n=e.removeEventListener.bind(e);n(t+o.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+o.V0_1B_KEY_ERROR,this._onKeyError),n(t+o.V0_1B_KEY_MESSAGE,this._onKeyMessage)}_getSession(e){const t=this._sessionMap[e];if(t)return t;const n=this._waitingForSessionIds.shift();return n?(n.sessionId=e,this._sessionMap[e]=n,n):null}_onKeyMessage(e){const t=this._getSession(e.sessionId);t?t.generateComplete(e.message):T.warn("Got keymessage without session.")}_onKeyAdded(e){const t=this._getSession(e.sessionId);t?t.updateComplete():T.warn("Got keyadded without session.")}_onKeyError(e){const t=this._getSession(e.sessionId);t?t.handleErrorEvent(e):T.warn("Got keyerror without session.")}setServerCertificate(){return Promise.reject(new g(r.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){const e=new P(this._keySystem,this._mediaElement,this._prefix);return this._waitingForSessionIds.push(e),e}}function C(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class k{constructor(e,t,n){if(this._configuration=null,this.keySystem=e,this._prefix=n,!this._checkConfig(t))throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem,i=document.createElement("video");for(const r of e){const e={initDataTypes:r.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:r.label};let a=!1;if(r.audioCapabilities&&r.audioCapabilities.length&&e.audioCapabilities){a=!1;for(const n of r.audioCapabilities){const r=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];r&&i.canPlayType(r,o)&&(e.audioCapabilities.push(n),a=!0)}}if(r.videoCapabilities&&r.videoCapabilities.length&&e.videoCapabilities){a=!1;for(const t of r.videoCapabilities){const r=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];r&&i.canPlayType(r,o)&&(e.videoCapabilities.push(t),a=!0)}}if(a)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new O(this.keySystem,this._prefix))}))}}function R(e){navigator.requestMediaKeySystemAccess=function(t,n){return new Promise((o=>{o(new k(t,n,e))}))};const t=HTMLMediaElement.prototype;delete t.mediaKeys,t.setMediaKeys=C}const L=u.P.forTag("eme_polyfill.safari");class I extends d.vp{constructor(e,t){super(),this._attached=!1,this._nativeKeySession=null,this._lastGenerateResolver=(0,m.$)(),this._lastUpdateResolver=(0,m.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._serverCertificate=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){if(this._attached)return;const e=this._nativeKeySession;e?(e.addEventListener(o.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.addEventListener(o.WEBKIT_KEY_ADDED,this._onKeyAdded),e.addEventListener(o.WEBKIT_KEY_ERROR,this._onKeyError)):L.warn("Tried to attach with no WebKitMediaKeySession")}_detach(){if(!this._attached)return;const e=this._nativeKeySession;e?(e.removeEventListener(o.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.removeEventListener(o.WEBKIT_KEY_ADDED,this._onKeyAdded),e.removeEventListener(o.WEBKIT_KEY_ERROR,this._onKeyError)):L.warn("Tried to detach with no WebKitMediaKeySession")}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _(e.message.buffer)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null))}_onKeyAdded(){this._lastUpdateResolver&&(this._lastUpdateResolver.resolve(!0),this._lastUpdateResolver=null),this.emit(o.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error,t=new g(r.EME_MEDIA_KEY_SESSION_SAFARI_ERROR,e&&e.message||"MediaKeySession Safari Error");e&&(t.debug.errorCode=e.code,t.debug.systemCode=e.systemCode),this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):this._lastUpdateResolver&&(this._lastUpdateResolver.reject(t),this._lastUpdateResolver=null)}_rebuildInitData(e){const t=new Uint8Array(e);if(new DataView(t.buffer).getUint32(0,!0)+4!==t.byteLength)throw new g(r.EME_INIT_DATA_MALFORMED,"Malformed init data");const n=function(e){const t=Math.floor(e.byteLength/2),n=new Uint16Array(t),o=new DataView(e.buffer);for(let e=0;e<t;e++)n[e]=o.getUint16(2*e,!0);return String.fromCharCode.apply(null,n)}(t.slice(4)),o=n.match(/^skd:\/\/([0-9a-fA-F]+)/);if(!(null==o?void 0:o[1]))throw new g(r.EME_INIT_DATA_MALFORMED,"Invalid content ID");const i=o[1],a=new Uint8Array(function(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer),o=e.split("");for(let e=0,t=o.length;e<t;e++){const t=o[e].charCodeAt(0);n.setUint16(2*e,t,!0)}return t.buffer}(i)),s=this._serverCertificate,l=new Uint8Array(t.byteLength+4+a.byteLength+4+s.byteLength);let c=0;l.set(t,c),c+=t.byteLength;const u=new DataView(l.buffer);return u.setUint32(c,a.byteLength,!0),c+=4,l.set(a,c),c+=a.byteLength,u.setUint32(c,s.byteLength,!0),c+=4,l.set(s,c),l}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{const e=this._rebuildInitData(t);this._nativeKeySession=this._nativeMediaKeys.createSession("video/mp4",new Uint8Array(e),null),this._attach()}catch(e){this._lastGenerateResolver=null,n(e)}}))}update(e){const t=(0,m.$)();if(this._lastUpdateResolver=t,!this._nativeKeySession)return L.warn("Tried to update with no WebKitMediaKeySession"),t.promise;try{this._nativeKeySession.update(new Uint8Array(e))}catch(e){t.reject(e)}return t.promise}close(){return new Promise((e=>{this._detach(),e(!0)}))}}class N{constructor(e){this._lastBoundSetter=null,this._serverCertificate=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new WebKitMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.webkitSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(o.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.webkitSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(o.MEDIA_LOADEDMETADATA,n),e.addEventListener(o.WEBKIT_NEEDKEY,y),t()}))}detach(e){e.removeEventListener(o.WEBKIT_NEEDKEY,y),this._lastBoundSetter&&(e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(e){return this._serverCertificate=new Uint8Array(e),Promise.resolve(!0)}createSession(){if(!this._serverCertificate)throw new g(r.EME_INVALID_STATE_ERROR,"The server certificate is not available");return new I(this._nativeMediaKeys,this._serverCertificate)}}class w{constructor(e,t){this.keySystem=e;const n=this._checkConfig(t);if(!n)throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations");this._configuration=n}_checkConfig(e){const t=this.keySystem;let n=!1;for(const o of e){const e={initDataTypes:o.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"]};if(o.audioCapabilities)for(const i of o.audioCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.audioCapabilities.push(i),n=!0)}if(o.videoCapabilities)for(const i of o.videoCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.videoCapabilities.push(i),n=!0)}if(n)return e}return null}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new N(this.keySystem))}))}}function D(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e?e.attach(this):Promise.resolve()}const M=u.P.forTag("eme_polyfills.tester");function x(){return"undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.requestMediaKeySystemAccess)&&"undefined"==typeof WebKitMediaKeys&&"undefined"!=typeof MediaKeySystemAccess&&(null===MediaKeySystemAccess||void 0===MediaKeySystemAccess?void 0:MediaKeySystemAccess.prototype.getConfiguration)?(M.log("Using native EME implementation."),"native"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.webkitGenerateKeyRequest)?(M.log('Detected "webkit" Prefixed EME v0.1b. Polyfilling.'),R("webkit"),"v0.1b-webkit"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.generateKeyRequest)?(M.log("Detected Unprefixed EME v0.1b. Polyfilling."),R(),"v0.1b"):"undefined"!=typeof MSMediaKeys?(M.log("Detected MS IE EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new A(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=E}(),"ms-ie"):"function"==typeof WebKitMediaKeys?(M.log("Detected Safari EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new w(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=D}(),"safari"):(M.warn("Detected no EME APIs."),null)}const F={[i.WIDEVINE]:{commonName:"widevine",licenseServer:"https://@webgate/widevine-license",withCertificate:!0,pssh_field:{audio:"pssh_widevine",video:"encryption_data"}},[i.PLAYREADY]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[i.PLAYREADY_HARDWARE]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[i.FAIRPLAY]:{commonName:"fairplay",licenseServer:"https://@webgate/fairplay-license",withCertificate:!0,pssh_field:{audio:"pssh_fairplay",video:"asset_id"}},[i.INVALID_SPOTIFY_KEY]:{commonName:"spotify-invalid",licenseServer:"https://@webgate",withCertificate:!1,pssh_field:{audio:"pssh_invalid",video:"encryption_data"}}},U=[{label:"video-sw-decode",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_DECODE"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:""},{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:""},{contentType:'video/webm; codecs="vp8"',robustness:""},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:""},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:""}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]}];function B(e,t){var n,o;for(const i of e){const e={audioCapabilities:[],videoCapabilities:[]};let r,a=!1;if(null===(n=i.audioCapabilities)||void 0===n?void 0:n.length){a=!1;for(const n of i.audioCapabilities)r=n.contentType,r&&t(r)&&(e.audioCapabilities.push(n),a=!0)}if(null===(o=i.videoCapabilities)||void 0===o?void 0:o.length){a=!1;for(const n of i.videoCapabilities)r=n.contentType,r&&t(r)&&(e.videoCapabilities.push(n),a=!0)}if(a)return e}return null}const V=/([^;]+)(?:;\s?codecs="(.*)")?/;function G(e){var t;const[,n="unknown",o="unknown"]=null!==(t=e.match(V))&&void 0!==t?t:[];return{mimeType:n,codec:o,contentType:e}}const J=/([^;]+)(?:;\s?codecs="(.*)")?/,j=u.P.forTag("playback.eme_manager"),H={EMPTY:"-no-robustness",SW_CRYPTO:"-sw-crypto",SW_DECODE:"-sw-decode",HW_CRYPTO:"-hw-crypto",HW_DECODE:"-hw-decode",HW_ALL:"-hw-all"};function K(e,t){var n;const o=[],i=new RegExp(`codecs="(${t.join("|")})"`);for(const t of e)i.test(null!==(n=t.contentType)&&void 0!==n?n:"")||o.push(t);return o.length?o:null}function Y(e,{audio:t,video:n}){var o,i,r,a;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length))return e;let{audioCapabilities:s,videoCapabilities:l}=e;return(null==t?void 0:t.length)&&(null===(o=e.audioCapabilities)||void 0===o?void 0:o.length)&&(s=null!==(i=K(e.audioCapabilities,t))&&void 0!==i?i:void 0,!s)||(null==n?void 0:n.length)&&(null===(r=e.videoCapabilities)||void 0===r?void 0:r.length)&&(l=null!==(a=K(e.videoCapabilities,n))&&void 0!==a?a:void 0,!l)?null:Object.assign(Object.assign({},e),{audioCapabilities:s,videoCapabilities:l})}class W extends d.vp{constructor(e){var t;super(),this._unauthServerCertificateBase="",this._disallowCodecs={},this._keySystemDeferred=(0,m.$)(),this._configuration=(0,m.$)(),this._keySystemSettings=null,this._keySessions=[],this._configs=[],this._pendingCertificateRequest=null,this._certificate=null,this._transport=e.transport,this._emeImpl=e.emeImpl,this._noServerCertificate=!!e.noServerCertificate,this._precacheServerCertificate=null===(t=e.precacheServerCertificate)||void 0===t||t,this._unauthServerCertificateBase=e.unauthServerCertificateBase||"https://spclient.wg.spotify.com",this._configFilter=function(e){const t=["--ensure-no-match--"];if(null==e?void 0:e.length){let n=e.length;for(;n--;){const o=e[n];o&&H.hasOwnProperty(o)&&t.push(H[o])}}return new RegExp(`(${t.join("|")})$`)}(e.disallowRobustnessValues||[]),this._disallowCodecs=e.disallowCodecs,this._preferredKeySystems=e.preferredKeySystems||[i.WIDEVINE,i.PLAYREADY,i.PLAYREADY_HARDWARE,i.FAIRPLAY]}static create(e){return new Promise((t=>{const n=x();if(!n)throw g.fatal(r.EME_API_NOT_SUPPORTED,"Platform does not support navigator.requestMediaKeySystemAccess");t(new W(Object.assign(Object.assign({},e),{emeImpl:n})).init())}))}_prepareConfiguration(e){const t=e.getConfiguration();j.info("KeySystem configured as ",t.label),t.audioCapabilities&&t.audioCapabilities.length||this._appendProbableMediaCapabilities(e.keySystem,t);const n={keySystem:e.keySystem,keySystemImpl:this._emeImpl,audioFormats:this._parseCapabilities(t.audioCapabilities),videoFormats:this._parseCapabilities(t.videoCapabilities)};return this._keySystemSettings=F[e.keySystem],this._configuration.resolve(n),n}_parseCapabilities(e){var t;if(!e)return[];const n=[];for(const o of e){if(!(null==o?void 0:o.contentType))continue;const[,e,i]=null!==(t=o.contentType.match(J))&&void 0!==t?t:[];e&&n.push({contentType:o.contentType,mimeType:e,codec:null!=i?i:""})}return n}_appendProbableMediaCapabilities(e,t){const n=B(this._configs,(t=>(-1===t.indexOf("webm")||e!==i.PLAYREADY&&e!==i.PLAYREADY_HARDWARE)&&!!MediaSource.isTypeSupported(t)));n&&(t.audioCapabilities=n.audioCapabilities,t.videoCapabilities=n.videoCapabilities)}_trySetServerCertificate(e,t){const n=this._certificate;return(n&&n.expiry>Date.now()?Promise.resolve(n):this._requestServerCertificate(e)).then((e=>t.setServerCertificate(e.contents))).then((()=>this)).catch((e=>(j.warn("Error from setting server certificate",e),this)))}_cacheServerCertificate(e){let t="";switch(e){case i.FAIRPLAY:t="fairplay";break;case i.WIDEVINE:t="widevine";break;default:return Promise.resolve(this)}return this._requestServerCertificate(`${this._unauthServerCertificateBase}/${t}-license`,!1).then((()=>this),(e=>(j.warn("Cannot precache server certificate",e),this)))}_requestServerCertificate(e,t=!0){if(this._pendingCertificateRequest)return this._pendingCertificateRequest;return this._transport.request(`${e}/v1/application-certificate`,{authorize:t,responseType:"arraybuffer",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()===t.SERVER_ERROR}}).then((e=>{var t;if(!e.body)throw new TypeError("Response body is invalid");this._pendingCertificateRequest=null;let n=3600;const o=null===(t=e.headers)||void 0===t?void 0:t.get("cache-control");if(o){const e=o.match(/(?:^|,|\s)max-age=(\d+)(?:,|$)/);e&&e[1]&&(n=1e3*parseInt(e[1],10))}return this._certificate={expiry:Date.now()+(n-600),contents:e.body},this._certificate}))}_extractPlayReadyChallenge(e,t){var n;let i=null;const a=new Uint16Array(e),s=String.fromCharCode.apply(null,a);if(-1===s.indexOf("PlayReadyKeyMessage"))return j.info("Using unextracted PlayReady message."),e;const l=(new DOMParser).parseFromString(s,"application/xml"),c=l.getElementsByTagName("Challenge")[0],u=null===(n=null==c?void 0:c.childNodes[0])||void 0===n?void 0:n.nodeValue;if(u)try{i=atob(u);const e=l.getElementsByTagName("name"),t=l.getElementsByTagName("value");if(e.length!==t.length)throw new g(r.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")}catch(e){this.emit(o.EME_LICENSE_REQUEST_ERROR,{playId:t,error:e}),i=null}else this.emit(o.EME_LICENSE_REQUEST_ERROR,{playId:t,error:new g(r.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header <name>/<value> pair in key message")});return i}_onMessage(e,t){e.timeMap.generate.end=Date.now();let n="message"in t?t.message:null;const o="messageType"in t?t.messageType:void 0;if(j.info("Got EME message event with type",o),n&&e.keySystem===i.PLAYREADY&&(n=this._extractPlayReadyChallenge(n,e.playId)),!n)return void j.info("Ignoring message event: no valid request payload");if(!e.licenseServer)return void j.info("Ignoring message event: no licenseServer url");e.timeMap.request.start=Date.now();let r=e.licenseServer;e.keySystem===i.FAIRPLAY&&(r=`${r}${-1!==r.indexOf("?")?"&":"?"}assetId=hex`),this._transport.request(r,{method:"POST",payload:n,responseType:"arraybuffer",retry:{condition:(e,t)=>400!==e.status&&402!==e.status&&403!==e.status&&(!e.body||e.getStatusFamily()!==t.SUCCESS)}}).then(this._handleLicenseResponse.bind(this,e))}_handleLicenseResponse(e,t){const n=t=>{t.playId=e.playId,e.licenseServer&&(t.licenseServer=e.licenseServer),this.emit(o.EME_LICENSE_REQUEST_ERROR,{playId:e.playId,error:t})};let i,a;if(e.timeMap.request.end=Date.now(),200!==t.status){try{if(t.body){const e=new Uint8Array(t.body),n=String.fromCharCode.apply(String,e);a=JSON.parse(n).errorMsg}}catch(e){}402===t.status?this.emit(o.EME_LICENSE_REQUEST_CAPPED,{playId:e.playId,error:new v(r.CAPPING_USER_IS_CAPPED,"User is capped.")}):400===t.status&&"widevine error"===a?(i=g.fatal(r.EME_LICENSE_REQUEST_WIDEVINE_ERROR,"Widevine license server failed to parse request."),i.status=t.status,i.shouldRefreshEndpoint=!0,n(i)):(i=new g(r.EME_LICENSE_REQUEST_FAILED_WITH_STATUS,`License request failed (${a||"unknown"})`),i.status=t.status,i.shouldRefreshEndpoint=400===t.status||403===t.status,n(i))}else{if(!t.body)return i=new g(r.EME_LICENSE_REQUEST_EMPTY_RESPONSE,"Empty license response body"),i.status=t.status,void n(i);try{e.timeMap.update.start=Date.now(),e.keySession.update(t.body).catch((e=>{n(new g(r.EME_LICENSE_UPDATE_FAILED,e.message||"License update failed."))})),j.info("KeySession updated.")}catch(e){const{message:t}=e;n(new g(r.EME_LICENSE_UPDATE_FAILED,t||"License update failed."))}}}_selectKeySystem(e){const t=this._preferredKeySystems;for(let n=0,o=t.length;n<o;n++){const o=t[n];if(o&&o in e)return e[o]}return null}_testMediaKeys(e){return new Promise((t=>{t(e.createMediaKeys())})).then((t=>{if(!t)return Promise.reject(g.fatal(r.EME_MEDIA_KEYS_NOT_SUPPORTED,"Cannot create MediaKeys from KeySystemAccess"));e.keySystem===i.FAIRPLAY&&t.setServerCertificate(new ArrayBuffer(0));try{if(!t.createSession())throw new Error("")}catch(e){const{message:t}=e;return Promise.reject(g.fatal(r.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED,t||"Cannot create MediaKeySession from KeySystemAccess"))}return Promise.resolve(e)}),(e=>(j.error(e.name),Promise.reject(g.fatal(r.EME_MEDIA_KEYS_NOT_SUPPORTED,e.message||"Unknown error")))))}_saveSession(e){this._keySessions.push(e)}destroySessions(){const e=[],t=this._keySessions;for(const n of t)try{const t=n.keySession;if(!t)continue;n.onMessageListener&&t.removeEventListener(o.KEY_SESSION_MESSAGE,n.onMessageListener),n.onKeyStatusChangeListener&&t.removeEventListener(o.KEY_SESSION_STATUSES_CHANGE,n.onKeyStatusChangeListener);const i=Promise.resolve(t.close()).catch((e=>{j.warn("Failed to close KeySession",e)}));e.push(i),n.keySession=null,n.onMessageListener=null,n.onKeyStatusChangeListener=null,j.info("Closed KeySession")}catch(e){j.warn("Failed to close KeySession",e)}return this._keySessions=[],Promise.all(e)}init(){const e=this._keySystemDeferred,t={},n=[],o=[];for(let e of U)if(!e.label||!this._configFilter.test(e.label)){if(this._disallowCodecs){const t=Y(e,this._disallowCodecs);if(!t)continue;e=t}o.push(e)}this._configs=o;for(const e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;const r=e;n.push(navigator.requestMediaKeySystemAccess(i[r],o).then((e=>{t[e.keySystem]=e})).catch((()=>{})))}return Promise.all(n).then(this._selectKeySystem.bind(this,t)).then((e=>e?this._testMediaKeys(e):Promise.reject(new g(r.EME_NO_SUPPORTED_KEYSYSTEM,"No supported keysystem was found.")))).then((t=>(this._prepareConfiguration(t),e.resolve(t),this._precacheServerCertificate?this._cacheServerCertificate(t.keySystem):this))).catch((t=>{const n=t.code||r.EME_NO_SUPPORTED_KEYSYSTEM,o=t.message||"No supported keysystem";return e.reject(g.fatal(n,o)),e.promise.then((()=>this))}))}createMediaKeys(e){return this._keySystemDeferred.promise.then((e=>e.createMediaKeys())).then((t=>Promise.all([e.setMediaKeys(t),t]))).then((([t,n])=>{if(!e.mediaKeys)throw new g(r.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED,"Failed to set MediaKeys on HTMLMediaElement");return this._configuration.promise.then((()=>{const e=this._keySystemSettings;return e&&!this._noServerCertificate&&e.withCertificate?this._trySetServerCertificate(e.licenseServer,n):this}))}))}removeMediaKeys(e){return Promise.resolve(e.setMediaKeys(null)).then((()=>this))}getKeySystemInfo(){return this._configuration.promise}getKeySystemImpl(){return this._emeImpl}createSessionWithParams(e){return new Promise(((t,n)=>{j.info("Creating KeySession",e.keySystem);const i=e.mediaKeys.createSession(),a={generate:{start:0,end:0},request:{start:0,end:0},update:{start:0,end:0}},s=this._keySystemSettings&&this._keySystemSettings.licenseServer||void 0,l=this._onMessage.bind(this,{keySystem:e.keySystem,keySession:i,licenseServer:e.licenseServer||s,playId:e.playId,timeMap:a});i.addEventListener(o.KEY_SESSION_MESSAGE,l);const c=()=>{j.info("KeyStatus change"),a.update.end=Date.now(),t({elapsed:{generate:Math.max(a.generate.end-a.generate.start,0),request:Math.max(a.request.end-a.request.start,0),update:Math.max(a.update.end-a.update.start,0)}})};return i.addEventListener(o.KEY_SESSION_STATUSES_CHANGE,c),this._saveSession({keySession:i,onMessageListener:l,onKeyStatusChangeListener:c}),j.info("Generating KeySession request",e.keySystem),a.generate.start=Date.now(),Promise.resolve(i.generateRequest(e.initDataType,e.initData.buffer)).catch((e=>{if(!e)return;let t;switch(e.name){case"NotSupportedError":t=r.EME_NOT_SUPPORTED_ERROR;break;case"InvalidStateError":t=r.EME_INVALID_STATE_ERROR;break;default:t=r.EME_UNKNOWN_ERROR}n(new g(t,e.message||"Unknown error message."))}))}))}}class z extends Error{constructor(e,t,n,o={}){super(t),this.code=e,this.message=t,this.status=n,this.debug=o,this.name="FragmentError"}}var q=n(68035);class X{constructor(e){var t;if(this._fallbackURLs=[],this._fragments=[],this._loaded=!1,this._mediaType="audio",this._noAuth=!1,this._resolvedURLs=[],this._segmentLength=0,this._duration=0,!e.fileId&&!e.resolvedURL)throw new TypeError("Missing: provide either fileId or resolvedURL");this._abrManager=e.abrManager,this._mediator=e.mediator,this._disableCache=e.disableCache,this._fileId=e.fileId,this._format=e.format,this._isAd=e.isAd||!1,this._keySystem=e.keySystem,this._keySystemSettings=F[this._keySystem],this._licenseEndpoint=e.licenseEndpoint,this._logData=e.logData||{displayTrack:"",playbackId:""},this._resolver=e.resolver,this._resolvedURL=e.resolvedURL,this._noAuth=null!==(t=e.noAuth)&&void 0!==t&&t,this._transport=e.transport,this._uri=e.uri,this._audioGainDb=e.audioGain}_parsePSSHBox(e){const t=q.D.decode(e),n=new Uint8Array(t.length);for(let e=0,o=t.length;e<o;e++)n[e]=t.charCodeAt(e);return n}_parseAssetID(e){const t=q.D.decode(e),n=new Array(t.length);for(let e=0,o=t.length;e<o;e++){const o=t.charCodeAt(e).toString(16);n[e]=1===o.length?`0${o}`:o}return n.join("")}getCalculatedDuration(){return this._duration}getFileId(){return this._fileId}getFormat(){return this._format||""}getAudioGain(){return this._audioGainDb}getFragmentLength(){return this._segmentLength}canLowerBitrate(){return!1}getInitFragment(){return this._initFragment}getInitParams(){const e={keySystem:this._keySystem,initDataType:this._protection,initData:this._psshBox,licenseServer:null};return Promise.resolve(e)}getKeySystem(){return this._keySystem}getLicenseEndpoint(){return this._licenseEndpoint}getLogData(){return this._logData||{}}getMediaType(){return this._mediaType}getResolvedURL(){return this._resolvedURL}getResolvedURLs(){return this._resolvedURLs}getHLSURL(){throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.")}releaseHLSURL(){}getURI(){return this._uri}isAd(){return this._isAd}isProtected(){return!!this._protection&&!!this._psshBox}setLogData(e){return this._logData=e,this}toLogJSON(){return{uri:this._uri,fileId:this._fileId,format:this._format||"",resolved_url:this._resolvedURL}}}const Z="application/vnd.apple.mpegurl";function Q(e){var t;const n=function(e){return e.map((e=>{if(e.byteEnd&&void 0!==e.byteStart){let t=""+(1+e.byteEnd-e.byteStart);return t+=`@${e.byteStart}`,`#EXTINF:${e.duration},\n#EXT-X-BYTERANGE:${t}\n${e.url}`}return`#EXTINF:${e.duration},\n${e.url}`})).join("\n")}(e.segments),o=e.assetID?`#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://${e.assetID}",KEYFORMATVERSIONS="1",KEYFORMAT="com.apple.streamingkeydelivery"`:"";let i=e.map?`#EXT-X-MAP:URI="${e.map.url}"`:"";return(null===(t=e.map)||void 0===t?void 0:t.byteEnd)&&void 0!==e.map.byteStart&&(i+=`,BYTERANGE="${1+e.map.byteEnd}@${e.map.byteStart}"`),`#EXTM3U\n#EXT-X-VERSION:6\n#EXT-X-TARGETDURATION:${Math.floor(e.targetDuration)}\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-PLAYLIST-TYPE:VOD\n${i?`${o}\n${i}`:o}\n${n}\n#EXT-X-ENDLIST`}function $(e){return`data:application/vnd.apple.mpegurl;base64,${btoa(e)}`}function ee(e){const t=new Blob([e],{type:Z});return URL.createObjectURL(t)}function te(e){return ee(Q(e))}function ne(e){return $(Q(e))}const oe=/avc1\.(([0-9a-f]{2})[0-9a-f]{2}([0-9a-f]{2}))/,ie="4d";function re(e,t){const n=e.toLowerCase().match(oe),o=t.toLowerCase().match(oe);if(!n||!o)return!1;const[,i,r,a]=n,[,s,l,c]=o;return i===s||r===ie&&l===ie&&parseInt(a,16)>=parseInt(c,16)}function ae(e,t){return e.sort(((e,n)=>"video_bitrate"in e&&"video_bitrate"in n?t?e.video_resolution===n.video_resolution?e.video_bitrate-n.video_bitrate:e.video_resolution-n.video_resolution:e.video_bitrate-n.video_bitrate:e.max_bitrate-n.max_bitrate))}function se(e,t){return void 0!==t&&Array.isArray(e.encryption_indices)&&-1===e.encryption_indices.indexOf(t)}function le(e,t){if(!t)return!1;return t(Object.assign({mimeType:e.mime_type},function(e){return"video_codec"in e}(e)?{type:"video",codec:e.video_codec,bitrate:e.video_bitrate,height:e.video_height,width:e.video_width,resolution:e.video_resolution}:{type:"audio",codec:e.audio_codec,bitrate:e.audio_bitrate}))}function ce(e){return"audio_codec"in e?e.audio_codec:e.video_codec}function ue(e){const{codec:t,formats:n,profiles:o,encryptionIndex:r,disallowProfile:a,preferredKeySystem:s,preferredVideoResolution:l,allowMixedAVC1Codecs:c}=e;for(const e of n){const n=[];let u="spotify/unknown-mimetype",d="unknown-codec";for(const l of o){const o=ce(l);!(t in l)||se(l,r)||s===i.FAIRPLAY&&"ts"!==l.file_type||le(l,a)||(s!==i.FAIRPLAY||"ts"!==l.file_type?"unknown-codec"!==d||l.mime_type!==e.mimeType||o!==e.codec&&!re(e.codec,o)?l.mime_type===u&&(o===d||c&&re(d,o))&&(n.push(l),l.__effective_codec=d):(u=e.mimeType,d=c?e.codec:o,n.push(l),l.__effective_codec=e.codec):n.push(l))}if(n.length)return ae(n,l)}return[]}const de=u.P.forTag("playback.video_content");function pe(e){if(!e)return"";const t=e.__effective_codec||("audio_codec"in e?e.audio_codec:e.video_codec);return`${e.mime_type};codecs="${t}"`}const fe={method:"GET",responseType:"arraybuffer",timing:!0,retry:{condition:(e,t)=>{if(0===e.status)return!0;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR}}};class he extends X{constructor(e){super(e),this._assetId="",this._endTime=0,this._videoFormats=[],this._audioFormats=[],this._subtitleLanguages=[],this._videoProfile=null,this._videoProfiles=[],this._audioProfile=null,this._audioProfiles=[],this._baseURL="",this._initTemplate="",this._segmentTemplate="",this._subtitleTemplate="",this._initSegments={},this._hlsURLs=[],this._allowMixedAVC1Codecs=!1,this._initTemplate="",this._isAd=e.isAd||!1,this._mediaType="video",this._resolver=e.resolver,this._videoFormats=e.videoFormats,this._audioFormats=e.audioFormats,this._disallowProfile=e.disallowProfile,this._videoResolution=e.videoResolution,this._allowMixedAVC1Codecs=!!e.allowMixedAVC1Codecs,this._keySystem===i.FAIRPLAY&&this._audioFormats.unshift({mimeType:"audio/mp2t",codec:"mp4a.40.2"}),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new he(e)}_isQualityMatched(e,t,n){var o,i,r,a;if(this._videoResolution){const t=null!==(o=this._videoResolution.max)&&void 0!==o?o:9007199254740991,a=null!==(i=this._videoResolution.min)&&void 0!==i?i:0;if(n){const n=null!==(r=this._videoResolution.start)&&void 0!==r?r:t;return e.video_resolution<=n}return e.video_resolution>=a&&e.video_resolution<=t}const s=null!==(a=null==t?void 0:t.audio_bitrate)&&void 0!==a?a:0,l=this._abrManager.getBandwidthEstimate();return e.video_bitrate+s<2*l-1e5}_updateVariants(e){var t;const n=this._audioProfiles[0];this._audioProfile=null!=n?n:null;const o=this._videoProfiles,i=this._videoProfile;let r=null,a=o.length;if(a){for(;a--;){const t=o[a];if(t&&this._isQualityMatched(t,n,!!e)){r=t;break}}r||(r=o[0]),this._videoProfile=r,(null==i?void 0:i.id)!==r.id&&(de.log(`Video profile changed. ID ${r.id} (${r.video_codec}), Bitrate ${r.video_bitrate}, ${r.video_width}x${r.video_height}`),null===(t=this._mediator)||void 0===t||t.emit(l.VIDEO_PROFILE_CHANGED,{profile:{type:"video",mimeType:r.mime_type,codec:r.video_codec,bitrate:r.video_bitrate,height:r.video_height,width:r.video_width,resolution:r.video_resolution}}))}}_constructFragmentURL(e,t,n){if(!t&&!n)throw new Error("Both audioProfile and videoProfile is null");return e.init?this._resolver.getInitSegmentURLs(this._baseURL,this._initTemplate,t,n):this._resolver.getSegmentURLs(this._baseURL,this._segmentTemplate,e.timeStart,t,n)}_fetchBufferData(e,t,n,o){return this._transport.request(e,Object.assign(Object.assign({},fe),{metadata:{timeStart:Date.now(),fragment:t,profile:n,loggingURL:o}})).then(this._parseFragmentResponse)}_fetchInitSegmentBuffers(e,t){const n=this._initFragment;if(!n)return Promise.reject(new h(r.FILE_NOT_RESOLVED,"Cannot fetch Init Segment buffers: File not resolved."));let o;try{o=this._constructFragmentURL(n,e,t)}catch(e){return Promise.reject(e)}const i=this._initSegments;let a=Promise.resolve(null);if(e){const t=i[e.id];(null==t?void 0:t.buffer.byteLength)?a=Promise.resolve(t):(null==o?void 0:o.audio)&&(a=this._fetchBufferData(o.audio,n,e,o.audioLogging).then((t=>(i[e.id]=t,t))))}let s=Promise.resolve(null);if(t){const e=i[t.id];(null==e?void 0:e.buffer.byteLength)?s=Promise.resolve(e):(null==o?void 0:o.video)&&(s=this._fetchBufferData(o.video,n,t,o.videoLogging).then((e=>(i[t.id]=e,e))))}return Promise.all([a,s]).then((([e,t])=>({audio:e,video:t})))}_fetchBufferForFragment(e,t,n){let o;try{o=this._constructFragmentURL(e,t,n)}catch(e){return Promise.reject(e)}return Promise.all([this._fetchInitSegmentBuffers(t,n),!e.init&&o.audio?this._fetchBufferData(o.audio,e,t,o.audioLogging):null,!e.init&&o.video?this._fetchBufferData(o.video,e,n,o.videoLogging):null]).then((([t,n,o])=>{var i,r;let a;return e.init?a={audio:null!==(i=t.audio)&&void 0!==i?i:void 0,video:null!==(r=t.video)&&void 0!==r?r:void 0}:(a={audio:null!=n?n:void 0,video:null!=o?o:void 0},e.cacheBufferSet&&(e.bufferSet=a),a.audio&&(null==t?void 0:t.audio)&&(a.audio.initBuffer=t.audio.buffer),a.video&&(null==t?void 0:t.video)&&(a.video.initBuffer=t.video.buffer)),a})).catch((e=>Promise.reject(e)))}_parseFragmentResponse(e){var t,n,o,i;const{fragment:a,profile:s,timeStart:c,loggingURL:u}=e.metadata,d=pe(s),p=function(e){return e?"audio_bitrate"in e?e.audio_bitrate:e.video_bitrate:0}(s),f="video_resolution"in s?s.video_resolution:void 0,h=`${a.timeStart}-${a.timeEnd}`,m="video_resolution"in s?"video":"audio";switch(e.status){case 0:{const e=new z(r.FRAGMENT_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(t=this._mediator)||void 0===t||t.emit(l.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,start_time:c,init:a.init,error:e}),Promise.reject(e)}case 200:case 206:{const t=e.body;if(!(null==t?void 0:t.byteLength)){const t=new z(r.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(n=this._mediator)||void 0===n||n.emit(l.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,start_time:c,init:a.init,error:t}),Promise.reject(t)}const i=t.byteLength;this._abrManager.sample(i,Date.now()-c),this._updateVariants();const g=8e3*i/e.timing.completed;return null===(o=this._mediator)||void 0===o||o.emit(l.FRAGMENT_FETCHED,{media_type:"video",segment_type:m,url:u,init:a.init,byte_length:i,start_time:c,end_time:Date.now(),resolution:f,bandwidth:g}),Promise.resolve({profileId:`${this._fileId}-${s.id}`,bufferURL:u,byteStart:0,byteEnd:i-1,buffer:t,mimetype:d,resolution:f,bitrate:p,bandwidth:g})}}const g=new z(r.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(i=this._mediator)||void 0===i||i.emit(l.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,init:a.init,start_time:c,error:g}),Promise.reject(g)}_getHLSURLForProfile(e){const t=this._duration,n=this._segmentLength,o=this._segmentTemplate,i=[];for(let r=0;r<t;r+=n){const a=r+n>t?t-r:n,s=o.replace("{{profile_id}}",e.id.toString(10)).replace("{{segment_timestamp}}",r.toString(10)).replace("{{file_type}}",e.file_type);i.push({duration:a,url:`${this._baseURL}${s}`})}const r=("undefined"==typeof MediaSource?te:ne)({assetID:this._assetId,targetDuration:n,segments:i});return this._hlsURLs.push(r),r}_calculateFragments(e){this._duration=e.end_time_millis/1e3;const t=this._segmentLength;this._initFragment={init:!0,cacheBufferSet:!1,timeStart:-1,timeEnd:-1,byteRanges:{}};for(let e=0;e<this._duration;e+=t)this._fragments.push({cacheBufferSet:!e&&!this._disableCache,timeStart:e,timeEnd:e+t,byteRanges:{}})}setVideoResolution(e){this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),this._updateVariants()}getCurrentBitrate(){var e,t;return null!==(t=null===(e=this._videoProfile)||void 0===e?void 0:e.video_bitrate)&&void 0!==t?t:0}getBufferForFragment(e){var t,n;if(!e)return Promise.reject(new TypeError("No fragment provided"));const o=this._audioProfile,i=this._videoProfile,r=null===(n=null===(t=e.bufferSet)||void 0===t?void 0:t.video)||void 0===n?void 0:n.resolution;return e.bufferSet&&(!i||r&&r>=i.video_resolution)?Promise.resolve(e.bufferSet):this._fetchBufferForFragment(e,null!=o?o:void 0,null!=i?i:void 0)}clearCachedBuffers(){this._initFragment&&(this._initSegments={}),this._fragments.forEach((e=>{e.bufferSet=null}))}getDuration(){return this._endTime}getFragmentAfterTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[1];for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[0];for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getSubtitleLanguages(){return this._subtitleLanguages}getSubtitles(){return this._subtitleLanguages.map((e=>({lang:e,url:this._subtitleTemplate.replace("{{language_code}}",e)})))}load(e={resolveLatency:0,manifestLatency:0}){if(this._loaded)return e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this);if(!this._fileId)throw new TypeError("Missing: provide either fileId or resolvedURL");const t=Date.now();return this._resolver.getManifest(this._fileId,this._noAuth).then((n=>{var o,i,a;let s;e.resolveLatency=0,e.manifestLatency=Date.now()-t;const c=n.contents[0];if(!c)return s=new h(r.FILE_MALFORMED_SEEKTABLE,"Malformed seektable: no contents."),s.track=this.toLogJSON(),Promise.reject(s);this._resolvedURLs=n.base_urls.slice();const[u,...d]=n.base_urls;let p;if(u&&(this._baseURL=u,this._fallbackURLs=d),this._resolvedURL=this._baseURL,this._initTemplate=n.initialization_template,this._segmentTemplate=n.segment_template,this._segmentLength=c.segment_length,null===(o=c.encryption_infos)||void 0===o?void 0:o.length){const e=c.encryption_infos,t=this._keySystemSettings.commonName;let n;for(let o=0,i=e.length;o<i;o++){const i=e[o];if(i&&i.key_system===t){p=o,n=i[this._keySystemSettings.pssh_field.video];break}}if(!n)return s=new h(r.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),s.track=this.toLogJSON(),Promise.reject(s);switch(this._keySystemSettings.commonName){case"widevine":case"playready":this._protection="cenc";try{this._psshBox=this._parsePSSHBox(n)}catch(e){return s=new h(r.FILE_MALFORMED_PSSH,"Invalid PSSH value."),s.track=this.toLogJSON(),Promise.reject(s)}break;case"fairplay":this._protection="hls",this._psshBox=new Uint8Array([]);try{this._assetId=this._parseAssetID(n)}catch(e){return s=new h(r.FILE_MALFORMED_PSSH,"Invalid PSSH value."),s.track=this.toLogJSON(),Promise.reject(s)}break;default:return s=new h(r.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),s.track=this.toLogJSON(),Promise.reject(s)}}return this._endTime=n.end_time_millis,this._videoProfiles=ue({codec:"video_codec",formats:this._videoFormats,profiles:c.profiles,encryptionIndex:p,disallowProfile:this._disallowProfile,preferredKeySystem:this._keySystem,preferredVideoResolution:this._videoResolution,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs}),this._audioProfiles=ue({codec:"audio_codec",formats:this._audioFormats,profiles:c.profiles,encryptionIndex:p,preferredKeySystem:this._keySystem}),this._updateVariants(!0),this._calculateFragments(n),this._subtitleLanguages=n.subtitle_language_codes||[],null===(i=this._mediator)||void 0===i||i.emit(l.SUBTITLE_LANGUAGES_LOADED,{languages:this._subtitleLanguages}),(null===(a=n.subtitle_base_urls)||void 0===a?void 0:a.length)&&n.subtitle_template?this._subtitleTemplate=`${n.subtitle_base_urls[0]}${n.subtitle_template}`:(de.info("No subtitles available"),this._subtitleTemplate=""),this}))}adaptToBandwidth(){return this._updateVariants(),Promise.resolve(!0)}getPlayableCodecs(){var e,t;return[pe(null!==(e=this._videoProfile)&&void 0!==e?e:void 0),pe(null!==(t=this._audioProfile)&&void 0!==t?t:void 0)].filter((e=>!!e))}getAudioProfile(){return this._audioProfile}getVideoProfile(){return this._videoProfile}getVideoProfiles(){return this._videoProfiles}getHLSURL(){if(!this._resolvedURL)throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const e=[],t=this._audioProfiles[0];t&&e.push(`#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="eng",NAME="English",AUTOSELECT=YES,URI="${this._getHLSURLForProfile(t)}"`);for(const n of this._videoProfiles)e.push(`#EXT-X-STREAM-INF:BANDWIDTH=${n.max_bitrate},RESOLUTION=${n.video_width}x${n.video_height},CODECS="${(null==t?void 0:t.audio_codec)?`mp4a.40.2, ${n.video_codec}`:n.video_codec}"${(null==t?void 0:t.audio_codec)?',AUDIO="audio"':""}\n${this._getHLSURLForProfile(n)}`);const n=`#EXTM3U\n${e.join("\n")}`,o=("undefined"==typeof MediaSource?ee:$)(n);return this._hlsURLs.push(o),o}releaseHLSURL(){for(const e of this._hlsURLs)URL.revokeObjectURL(e);this._hlsURLs=[]}canLowerBitrate(){var e;const t=this._videoProfiles[0];return(null===(e=this._videoProfile)||void 0===e?void 0:e.id)!==(null==t?void 0:t.id)}}var me;!function(e){e[e.MP3_256=3]="MP3_256",e[e.MP3_320=4]="MP3_320",e[e.MP3_160=5]="MP3_160",e[e.MP3_96=6]="MP3_96",e[e.MP4_128=10]="MP4_128",e[e.MP4_256=11]="MP4_256",e[e.MP4_128_DUAL=12]="MP4_128_DUAL",e[e.MP4_256_DUAL=13]="MP4_256_DUAL",e[e.MP4_128_CBCS=14]="MP4_128_CBCS",e[e.MP4_256_CBCS=15]="MP4_256_CBCS",e[e.MP4_FLAC=17]="MP4_FLAC"}(me||(me={}));const ge={[me.MP3_256]:"audio/mp3",[me.MP3_320]:"audio/mp3",[me.MP3_160]:"audio/mp3",[me.MP3_96]:"audio/mp3",[me.MP4_128]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_128_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_128_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_FLAC]:'audio/mp4; codecs="flac"'};class ve extends X{constructor(e){if(super(e),this._lastResolveTimestamp=0,this._profileId=`${Date.now()}`,this._initBufferPromise=null,this._lastFetchedBuffer=null,this._hlsURL=null,this._bypassResolve=!!this._resolvedURL,this._emitWarning=e.emitWarning||function(){},this._mediaType="audio",this._noManifest=!!e.noManifest,this._preloadedManifest=e.preloadedManifest,this._resolver=e.resolver,this._segmentLength=0,this._fileFormat=e.fileFormat,this._fileFormat)this._audioCodec=ge[this._fileFormat];else switch(this._format){case s.MP3:this._audioCodec=ge[me.MP3_160];break;case s.MP4:case s.MP4_DUAL:case s.MP4_CBCS:this._audioCodec=ge[me.MP4_128];break;default:throw new TypeError(`Unknown audio format ${this._format}`)}this._fileId&&(this._profileId=this._fileId),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new ve(e)}_parseFragmentResponse(e){const{requestURL:t,fragment:n,byteRangeHeader:o,expectedLength:i}=e.metadata,a=`${n.timeStart}-${n.timeEnd}`;switch(e.status){case 0:{if(e.offline)return Promise.reject(new z(r.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:a,byte_range:o}));const i=new z(r.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0);let s=!1;return this._resolvedURL!==t?s=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(s=!0,this._resolvedURL=this._fallbackURLs.shift()),i.debug.has_fallback=s,s?(this._emitWarning(i,this.toLogJSON()),this.getBufferForFragment(n)):Promise.reject(i)}case 200:case 206:{const s=e.body;if(!s)return Promise.reject(new z(r.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:a,byte_range:o}));if(s.byteLength!==i)return Promise.reject(new z(r.FRAGMENT_REQUEST_UNEXPECTED_LENGTH,"Received buffer of unexpected length.",e.status,{time_range:a,byte_range:o,received_length:s.byteLength,expected_length:i}));const l={audio:{profileId:this._profileId,bufferURL:t,byteStart:n.byteRanges.audio.start,byteEnd:n.byteRanges.audio.end,buffer:s,mimetype:this._audioCodec,bandwidth:8e3*s.byteLength/e.timing.completed}};if(n.cacheBufferSet&&s&&s.byteLength){n.bufferSet=l;const e=n.sliceInto;if(null==e?void 0:e.length)for(const t of e){const e=t.fragment;(null==e?void 0:e.cacheBufferSet)&&(e.bufferSet={audio:Object.assign(Object.assign({},l.audio),{buffer:s.slice(t.start,t.end),byteStart:e.byteRanges.audio.start,byteEnd:e.byteRanges.audio.end})})}}return this._abrManager.sample(s.byteLength,e.timing.completed),Promise.resolve(l)}case 403:return this.resolve().then((()=>this.getBufferForFragment(n)));default:{let i=!1;return this._resolvedURL!==t?i=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(i=!0,this._resolvedURL=this._fallbackURLs.shift()),i?this.getBufferForFragment(n):Promise.reject(new z(r.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:a,byte_range:o}))}}}_getInitBuffer(){var e,t;if(!this._initFragment)throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return(null===(t=null===(e=this._initFragment.bufferSet)||void 0===e?void 0:e.audio)||void 0===t?void 0:t.buffer.byteLength)?Promise.resolve(this._initFragment.bufferSet.audio.buffer):(this._initBufferPromise||(this._initBufferPromise=this.getBufferForFragment(this._initFragment).then((e=>{var t;if(!(null===(t=e.audio)||void 0===t?void 0:t.buffer.byteLength))throw new Error("Empty initialization segment buffer");return e.audio.buffer}))),this._initBufferPromise)}_calculateFragments(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.segments,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;e<l;e++){const i=n[e];if(!(null==i?void 0:i.length))continue;const[l,c]=i,u=c/o,d={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:a,timeEnd:a+u,byteRanges:{audio:{start:t,end:t+(l-1)}}};r[e]=d,t+=l,s+=c,a+=u,Math.floor(u)>this._segmentLength&&(this._segmentLength=Math.floor(u))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=s/o}_calculateFragmentsV1(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.references,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;e<l;e++){const i=n[e];if(!i)continue;const l=i.duration/o,c={init:!1,cacheBufferSet:!e&&!this._disableCache,timeStart:s,timeEnd:s+l,byteRanges:{audio:{start:t,end:t+(i.size-1)}}};r[e]=c,t+=i.size,a+=i.duration,s+=l,Math.floor(l)>this._segmentLength&&(this._segmentLength=Math.floor(l))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=a/o}_getManifest(e){if(this._noManifest)return e&&(e.manifestLatency=0),Promise.resolve(null);if(this._preloadedManifest)return e&&(e.manifestLatency=0),Promise.resolve(this._preloadedManifest);if(!this._fileId)throw new TypeError("Missing: fileId");const t=Date.now();return this._resolver.getManifest(this._fileId).then((function(n){return e&&(e.manifestLatency=Date.now()-t),n}))}getHLSURL(){var e,t;const n=this._resolvedURL,o=this._initFragment;if(!n||!o)throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const i={url:n,byteStart:null===(e=o.byteRanges.audio)||void 0===e?void 0:e.start,byteEnd:null===(t=o.byteRanges.audio)||void 0===t?void 0:t.end},a=this._fragments.map((e=>{var t,o;return{url:n,duration:e.timeEnd-e.timeStart,byteStart:null===(t=e.byteRanges.audio)||void 0===t?void 0:t.start,byteEnd:null===(o=e.byteRanges.audio)||void 0===o?void 0:o.end}})),s="undefined"==typeof MediaSource?te:ne;return this._hlsURL=s({assetID:this._fileId,targetDuration:10,map:i,segments:a}),this._hlsURL}releaseHLSURL(){this._hlsURL&&URL.revokeObjectURL(this._hlsURL),this._hlsURL=null}clearCachedBuffers(){this._headFragment&&delete this._headFragment,this._initFragment&&(this._initFragment.bufferSet=null),this._fragments[0]&&(this._fragments[0].bufferSet=null),this._lastFetchedBuffer=null}getPlayableCodecs(){return[this._audioCodec]}getFirstFragment(){var e;return null!==(e=this._fragments[0])&&void 0!==e?e:null}getHeadFragment(){const e=this._initFragment,t=this._fragments[0];if(!(null==e?void 0:e.byteRanges.audio)||!(null==t?void 0:t.byteRanges.audio))throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return this._headFragment||(this._headFragment={init:!0,cacheBufferSet:!0,timeStart:0,timeEnd:0,byteRanges:{audio:{start:e.byteRanges.audio.start,end:t.byteRanges.audio.end}},sliceInto:[{fragment:e,start:0,end:t.byteRanges.audio.start},{fragment:t,start:t.byteRanges.audio.start,end:void 0}]}),this._headFragment}getFragmentAfterTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[1])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[0])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getBufferForFragment(e){var t;if(!e)return Promise.reject(new Error("FIXME: error type?"));if((null===(t=this._lastFetchedBuffer)||void 0===t?void 0:t.fragment)===e)return Promise.resolve(this._lastFetchedBuffer.bufferSet);if(e.bufferSet)return Promise.resolve(e.bufferSet);if(!this._resolvedURL)return Promise.reject(new h(r.FILE_NOT_RESOLVED,"Cannot fetch buffer: No resolved URL"));const n=e.byteRanges.audio,o=`${n.start}-${n.end}`,i=n.end+1-n.start,a=this._resolvedURL,s=e.init?Promise.resolve(null):this._getInitBuffer();return Promise.all([s,this._transport.request(a,{method:"GET",responseType:"arraybuffer",headers:{Range:`bytes=${o}`},timing:!0,metadata:{requestURL:a,fragment:e,byteRangeHeader:o,expectedLength:i},retry:{condition:(e,t)=>{if(0===e.status)return e.offline;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR||!(n!==t.SUCCESS||!e.body)&&e.body.byteLength!==i}}}).then(this._parseFragmentResponse)]).then((([t,n])=>(t&&n.audio&&(n.audio.initBuffer=t),this._lastFetchedBuffer={fragment:e,bufferSet:n},n)))}resolve(e){const t=this._fileId;if(this._bypassResolve)return e&&(e.resolveLatency=0),Promise.resolve({uri:this._resolvedURL,uris:[],protection:this._preloadedManifest||!this._noManifest?"cenc":void 0});if(!t)throw new TypeError("Missing: fileId is required to resolve content URL");clearTimeout(this._lastResolveToken);const n=()=>(this._lastResolveTimestamp=Date.now(),this._resolver.getCDNURL(t,this._fileFormat).then((t=>(e&&(e.resolveLatency=Date.now()-this._lastResolveTimestamp),t)))),o=Date.now()-this._lastResolveTimestamp;let i;return i=o<1001?new Promise(((e,t)=>{this._lastResolveToken=setTimeout((()=>{n().then(e,t)}),1001-o)})):n(),i.then((e=>{this._resolvedURLs=[];for(const t of e.uris){const e=t.split("?")[0];this._resolvedURLs.push(e)}return this._fallbackURLs=e.uris,this._resolvedURL=this._fallbackURLs.shift(),e})).catch((e=>(e&&(e.track=this.toLogJSON()),Promise.reject(e))))}load(e={resolveLatency:0,manifestLatency:0}){return this._loaded?(e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this)):Promise.all([this.resolve(e),this._getManifest(e)]).then((([e,t])=>{var n;if(this._loaded=!0,!e.protection||!t)return this;if(this._keySystem===i.INVALID_SPOTIFY_KEY)return this._protection=t.protection||"cenc",this._psshBox=new Uint8Array(0),this;let o;const a=this._keySystemSettings.pssh_field.audio;let s=function(e,t){return t.hasOwnProperty(e)}(a,t)?`${t[a]}`:null;if(!s&&"pssh_widevine"===a&&"pssh"in t&&(s=null!==(n=t.pssh)&&void 0!==n?n:null),!s)return o=new h(r.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),o.track=this.toLogJSON(),Promise.reject(o);if(this._protection=t.protection||"cenc",this._psshBox=this._parsePSSHBox(s),"segments"in t&&t.segments)this._calculateFragments(t);else{if(!("references"in t)||!t.references)return o=new h(r.FILE_MALFORMED_SEEKTABLE,"Malformed seektable."),o.track=this.toLogJSON(),Promise.reject(o);this._calculateFragmentsV1(t)}return this}))}adaptToBandwidth(){return Promise.resolve(!1)}}class ye{constructor(e){if(this._estimate=0,this._totalWeight=0,e<0)throw new TypeError("Halflife must be set to a positive value.");this._weightingDecrease=Math.exp(Math.log(.5)/e)}sample(e,t){const n=Math.pow(this._weightingDecrease,e),o=t*(1-n)+n*this._estimate;isNaN(o)||(this._estimate=o,this._totalWeight+=t)}getEstimate(){return this._estimate/1-Math.pow(this._weightingDecrease,this._totalWeight)}}class _e{constructor(e=4e5){this._totalBytes=0,this._overrideBitrate=0,this._currentBandwidth=e,this._short=new ye(2),this._long=new ye(5),this._init()}_init(){if("undefined"==typeof navigator)return;const e=navigator;e.connection&&e.connection.downlink&&(this._currentBandwidth=1e6*e.connection.downlink,this._onConnectionChange=this._onConnectionChange.bind(this),e.connection.addEventListener("change",this._onConnectionChange))}_onConnectionChange(e){const t=e.target.downlink||0;this._setBandwidth(t)}_setBandwidth(e){this._currentBandwidth=1e6*e}getBandwidthEstimate(){if(this._overrideBitrate)return this._overrideBitrate;if(this._totalBytes<128e3)return this._currentBandwidth;const e=this._short.getEstimate(),t=this._long.getEstimate();return Math.min(e,t)}sample(e,t){if(e<16e3)return;const n=t/1e3,o=8*e/n;this._totalBytes+=e,this._short.sample(n,o),this._long.sample(n,o)}overrideBitrate(e){this._overrideBitrate=e<=0?0:e}}var be;!function(e){e.SHOWING="showing",e.HIDDEN="hidden"}(be||(be={}));const Se=Array.prototype.slice,Ee="function"==typeof Array.from?e=>Array.from(e):e=>Se.call(e);function Ae(e,t){const n=Ee(e.getElementsByTagName(t));for(const t of n)e.removeChild(t)}function Te(e){const t=e;return{id:t.id,text:t.text}}const Pe="visible",Oe="hidden",Ce=/^[A-Za-z]{2,4}([_-][A-Za-z]{4})?([_-]([A-Za-z]{2}|[0-9]{3}))?$/;class ke extends d.vp{constructor(e){super(),this._isVisible=!1,this._player=null,this._crossOrigin=null,this._currentVideoContent=null,this._unsubscribers=[],this._displayedCues=[],this._deactivateListeners=!1,this._activeLanguage=void 0,this._preferredLanguage=e.language.toLowerCase(),e.deactivateListeners&&(this._deactivateListeners=!0),this._onEnter=this._onEnter.bind(this),this._onExit=this._onExit.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this.setPlayer(e.player)}_subscribeToCueEvents(e){var t;const{track:n}=e;if(!n)throw new Error("No track");if(n.mode=this._isVisible?be.SHOWING:be.HIDDEN,null===(t=n.cues)||void 0===t?void 0:t.length){this._displayedCues=n.activeCues?Array.from(n.activeCues):[],this._emitDisplayedCues();for(let e=0;e<n.cues.length;e++){const t=n.cues[e];t&&(t.addEventListener("enter",this._onEnter),t.addEventListener("exit",this._onExit),this._unsubscribers.push((()=>{t.removeEventListener("enter",this._onEnter),t.removeEventListener("exit",this._onExit)})))}}else{const t=()=>{this._subscribeToCueEvents(e),e.removeEventListener("load",t)};e.addEventListener("load",t)}}_unsubscribeFromCueEvents(){this._unsubscribers.forEach((e=>e())),this._unsubscribers=[]}_onEnter(e){const t=e.target;this._displayedCues.indexOf(t)>-1||(this._displayedCues.push(t),this._emitDisplayedCues())}_onExit(e){const t=e.target,n=this._displayedCues.indexOf(t);n>-1&&(this._displayedCues.splice(n,1),this._emitDisplayedCues())}_emitDisplayedCues(){this.emit(o.PLAYER_DISPLAYED_CUES_CHANGED,{cues:this._displayedCues.map(Te)})}_updateVisibleState(){var e,t;if(!this._player)return;const n=this.getActiveLanguage();Array.from(null!==(t=null===(e=this._player)||void 0===e?void 0:e.querySelectorAll("track"))&&void 0!==t?t:[]).forEach((e=>{e.style.visibility=this._isVisible?Pe:Oe}));const o=this._player.textTracks;for(let e=0,t=o.length;e<t;e++){const t=o[e];t&&(t.mode=this._isVisible&&t.language.toLowerCase()===n?be.SHOWING:be.HIDDEN)}}_updateTextTracks(){const e=this._player;e&&(e.readyState>=1?this._onLoadedMetadata():this._currentVideoContent&&e.addEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata))}_onLoadedMetadata(){const e=this._player;if(!e)return;if(Ae(e,"track"),!this._currentVideoContent)return;e.crossOrigin="anonymous";const t=this._updateActiveLanguage();for(const{lang:n,url:o}of this._currentVideoContent.getSubtitles()){const i=n.toLowerCase()===t,r=document.createElement("track");r.label=`${n} subtitles`,r.kind="subtitles",r.srclang=n,r.src=o,r.default=i,r.style.visibility=this._isVisible?Pe:Oe,e.appendChild(r),i&&!this._deactivateListeners&&this._subscribeToCueEvents(r)}}_updateActiveLanguage(){if(!this._player||!this._currentVideoContent)return void(this._activeLanguage=void 0);const e=this._currentVideoContent.getSubtitleLanguages(),t=this._preferredLanguage.split("-")[0];let n=null;for(const o of e){const e=o.toLowerCase();if(e===this._preferredLanguage)return this._activeLanguage=e,this._activeLanguage;e.split("-")[0]===t&&null===n&&(n=e)}return this._activeLanguage=null!=n?n:"en-us",this._activeLanguage}getActiveLanguage(){if(this._player&&this._currentVideoContent)return this._activeLanguage}setVideoContent(e){this._unsubscribeFromCueEvents(),this._displayedCues=[],this._currentVideoContent=e,e||this.clear(),this._updateTextTracks()}setPlayer(e){var t;const n="VIDEO"===(null==e?void 0:e.tagName)?e:null;this._player!==n&&this.clear(),this._player=n||null,this._crossOrigin=null!==(t=null==n?void 0:n.crossOrigin)&&void 0!==t?t:null,this._updateTextTracks()}getAvailableLanguages(){var e,t;return null!==(t=null===(e=this._currentVideoContent)||void 0===e?void 0:e.getSubtitleLanguages())&&void 0!==t?t:[]}setLanguage(e){if(!e.length)throw new TypeError("Argument `code` must be a non-empty string. Hide subtitles using `hideSubtitles()`.");if(!Ce.test(e))throw new TypeError("Argument `code` must be a valid BCP 47 formatted language code");this._preferredLanguage=e.toLowerCase(),this._updateTextTracks()}hide(){this._isVisible=!1,this._updateVisibleState()}show(){this._isVisible=!0,this._updateVisibleState()}deactivateListeners(){if(this._deactivateListeners)return;this._player&&(this._deactivateListeners=!0,this._unsubscribeFromCueEvents())}activateListeners(){this._deactivateListeners&&(this._deactivateListeners=!1,this._updateTextTracks())}areListenersActivated(){return!this._deactivateListeners}clear(){const e=this._player;e&&(this._unsubscribeFromCueEvents(),this._currentVideoContent=null,this._displayedCues=[],Ae(e,"track"),e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.crossOrigin=this._crossOrigin)}visible(){return this._isVisible}}class Re{constructor(e){this.bandwidthEstimator=e.bandwidthEstimator}static create(e){return new Re(e)}getSample(e,t){var n,o;const i=this.bandwidthEstimator.getBandwidthEstimate(),r=function(e,t){const n=e.length;for(let o=0;o<n;o++)if(e.start(o)<=t&&t<=e.end(o))return 1e3*(e.end(o)-t);return 0}(e.buffered,e.currentTime);if(t instanceof ve){const e=null===(o=null===(n=t.getFirstFragment())||void 0===n?void 0:n.bufferSet)||void 0===o?void 0:o.audio,a=null==e?void 0:e.bitrate;return{bandwidth:i,bufferAvailability:r,audio:{contentType:null==e?void 0:e.mimetype,bitrate:a}}}const a=t.getAudioProfile(),s=t.getVideoProfile(),l=t.getVideoProfiles(),c="getVideoPlaybackQuality"in e?e.getVideoPlaybackQuality():{creationTime:void 0,droppedVideoFrames:void 0,totalVideoFrames:void 0};return{bandwidth:i,bufferAvailability:r,video:{creationTime:c.creationTime,droppedVideoFrames:c.droppedVideoFrames,totalVideoFrames:c.totalVideoFrames,bitrate:null==s?void 0:s.video_bitrate,availableBitrates:l.map((e=>e.video_bitrate)),height:null==s?void 0:s.video_height,width:null==s?void 0:s.video_width,resolution:null==s?void 0:s.video_resolution,contentType:pe(null!=s?s:void 0)},audio:{bitrate:null==a?void 0:a.audio_bitrate,contentType:pe(null!=a?a:void 0)}}}}const Le=u.P.forTag("playback.audio_processor");class Ie{constructor(e){this._audioContext=null,this._mediaElementSource=null,this._gainNode=null,this._nodes=[],(null==e?void 0:e.disable)?Le.info("AudioProcessor disabled"):(this._audioContext=(null==e?void 0:e.audioContext)||("undefined"!=typeof AudioContext?new AudioContext:null),this._audioContext?(this._gainNode=this._audioContext.createGain(),this._buildNodePipeline(null==e?void 0:e.nodes)):Le.warn("The AudioContext API is not supported. Any future operation related to `AudioProcessor` will be skipped."))}static create(e){return new Ie(e)}_setMediaElementSource(e){var t;this._audioContext&&(this._mediaElementSource&&(Le.info("Disconnecting previous media element source"),this._mediaElementSource.disconnect()),Le.info("Creating new media element source"),this._mediaElementSource=this._audioContext.createMediaElementSource(e)||null,this._mediaElementSource.connect(null!==(t=this._nodes[0])&&void 0!==t?t:this._audioContext.destination))}_buildNodePipeline(e=[]){var t;if(!this._audioContext)return;Le.info("Disconnecting previous nodes");const n=this._nodes;for(const e of n)e.disconnect();const o=[this._gainNode,...e];let i=null;for(const e of o)i&&i.connect(e),i=e;null===(t=o[o.length-1])||void 0===t||t.connect(this._audioContext.destination),Le.info("Node pipeline built"),this._nodes=o}setPlayer(e){var t;e&&((null===(t=this._mediaElementSource)||void 0===t?void 0:t.mediaElement)!==e?this._setMediaElementSource(e):Le.info("The new player is the same as the current player"))}setAudioGain(e=0){if(!this._gainNode)return Le.info("The default gain node is not available"),!1;const t=Math.pow(10,e/20);return this._gainNode.gain.value=t,Le.info("Main gain set to",t),!0}getAudioContext(){return this._audioContext}resume(){return this._audioContext&&"running"!==this._audioContext.state?this._audioContext.resume():Promise.resolve()}suspend(){return this._audioContext&&"suspended"!==this._audioContext.state?this._audioContext.suspend():Promise.resolve()}destroy(){var e;this._audioContext&&(null===(e=this._mediaElementSource)||void 0===e||e.connect(this._audioContext.destination)),this._nodes=[],this._audioContext=null,this._gainNode=null,this._mediaElementSource=null,Le.info("The AudioProcessor is destroyed")}}const Ne=u.P.forTag("playback.media_source_manager");function we(e){if(!e)return"";const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n]?`="${e[n]}"`:"";t.push(`${n}${o}`)}return t.length?`; ${t.join("; ")}`:""}class De extends d.vp{constructor(e){super(),this._mediaSource=null,this._sourceBuffers={},this._currentInitSegments={},this._updateQueue=[],this._codecs=[],this._playId=0,this._lastBufferClearTime=Date.now(),this._customSourceBufferParams="";const{codecs:t,customSourceBufferParams:n,disableBufferAbort:o}=e;this._codecs=t,this._customSourceBufferParams=we(n),this._disableBufferAbort=!!o,this._onSourceOpen=this._onSourceOpen.bind(this),this._onSourceClose=this._onSourceClose.bind(this),this.dequeueUpdates=this.dequeueUpdates.bind(this),e.noInit||this._init()}static create(e){return new De(e)}_init(){this._mediaSource=new MediaSource,this._mediaSource.addEventListener(o.MEDIA_SOURCE_OPEN,this._onSourceOpen),this._mediaSource.addEventListener(o.MEDIA_SOURCE_CLOSE,this._onSourceClose),this._sourceBuffers={},this._currentInitSegments={}}_onSourceOpen(){var e;Ne.info("MediaSource opened.");const t=this._mediaSource;if(0===(null===(e=null==t?void 0:t.sourceBuffers)||void 0===e?void 0:e.length)&&"open"===(null==t?void 0:t.readyState)){Ne.info("Creating source buffers for codecs",this._codecs);for(const e of this._codecs){const n=t.addSourceBuffer(e+this._customSourceBufferParams);n.addEventListener(o.SOURCE_BUFFER_UPDATE_END,this.dequeueUpdates),this._sourceBuffers[e]=n}}this.dequeueUpdates(),this.emit(o.BUFFER_SOURCE_OPEN,null)}_onSourceClose(){Ne.info("MediaSource closed."),this._destroySourceBuffers(),this.emit(o.BUFFER_SOURCE_CLOSE,null)}_destroySourceBuffers(){const e=this._mediaSource;if(!e)return;const t=e.sourceBuffers;if(t.length)for(let n=0,o=t.length;n<o;n++){const o=t[n];if(o){o.removeEventListener("updateend",this.dequeueUpdates);try{e.removeSourceBuffer(o),Ne.info("Removed source buffer")}catch(e){Ne.warn("Failed to remove sourcebuffer",e)}}}this._sourceBuffers={},this._currentInitSegments={}}_endUpdate(e){var t;this._isUpdating()?this._updateQueue.push(e):"open"===(null===(t=this._mediaSource)||void 0===t?void 0:t.readyState)&&(this._mediaSource.endOfStream(),e.resolve&&e.resolve(!0))}_durationUpdate(e){this._isUpdating()?this._updateQueue.push(e):(this._mediaSource&&(this._mediaSource.duration=e.duration),e.resolve&&e.resolve(!0))}_isUpdating(){if(!this._mediaSource)return!1;const e=this._mediaSource.sourceBuffers;for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&n.updating)return!0}return!1}_appendUpdate(e){var t,n;const i=this._sourceBuffers[e.codec];if(!i||i.updating)return void this._updateQueue.push(e);let r=e.buffer;if(e.fragment.init&&this._currentInitSegments[e.codec]===e.profileId)return null===(t=e.resolve)||void 0===t||t.call(e,!0),void Promise.resolve().then(this.dequeueUpdates);if(e.initBuffer&&e.buffer&&this._currentInitSegments[e.codec]!==e.profileId){const t=new Uint8Array(e.initBuffer.byteLength+e.buffer.byteLength);t.set(new Uint8Array(e.initBuffer),0),t.set(new Uint8Array(e.buffer),e.initBuffer.byteLength),r=t.buffer}try{i.appendBuffer(r)}catch(t){let n=!1;return"QuotaExceededError"===t.name?(Ne.warn("Failed to append buffer: exceeded quota."),n=!0,this.emitSync(o.BUFFER_QUOTA_EXCEEDED,null)):Ne.warn("Failed to append buffer",t),void new Promise((e=>{n?setTimeout(e,500):e()})).then((()=>{this.emitSync(o.FRAGMENT_APPENDED,e.fragment),this.dequeueUpdates()})).then((()=>{e.init&&this._updateQueue.push(e)}))}this.emitSync(o.FRAGMENT_APPENDED,e.fragment);const a=r.byteLength>e.buffer.byteLength;(e.fragment.init||a)&&(this._currentInitSegments[e.codec]=e.profileId),null===(n=e.resolve)||void 0===n||n.call(e,!0),a?Ne.info(`Injected combined init segment and playable segment (${e.codec}, ${e.profileId})`):e.init&&Ne.info(`Injected individual init segment (${e.codec}, ${e.profileId})`)}_abortUpdate(e){var t;"fragment"in e&&this.emitSync(o.FRAGMENT_APPENDED,e.fragment),null===(t=e.resolve)||void 0===t||t.call(e,!1),Promise.resolve().then(this.dequeueUpdates)}dequeueUpdates(){const e=this._updateQueue.shift();e&&this.tryUpdate(e)}tryUpdate(e){if(e.playId!==this._playId)return Ne.info("Try update dropped: playId has changed"),void this._abortUpdate(e);if(e.timestamp<this._lastBufferClearTime)return Ne.info("Try update dropped: update is older than the last clear"),void this._abortUpdate(e);const t=this._mediaSource;t&&"open"!==t.readyState&&"ended"!==t.readyState?this._updateQueue.push(e):"end"===e.type?this._endUpdate(e):"duration"===e.type?this._durationUpdate(e):"append"===e.type&&this._appendUpdate(e)}appendBufferData(e,t,n,o=Date.now()){const i=[];if(e.audio){const r=(0,m.$)();this.tryUpdate({playId:n,timestamp:o,fragment:t,type:"append",profileId:e.audio.profileId,buffer:e.audio.buffer,initBuffer:e.audio.initBuffer,codec:e.audio.mimetype,init:!!t.init,resolve:r.resolve}),i.push(r.promise)}if(e.video){const r=(0,m.$)();this.tryUpdate({playId:n,timestamp:o,fragment:t,type:"append",profileId:e.video.profileId,buffer:e.video.buffer,initBuffer:e.video.initBuffer,codec:e.video.mimetype,init:!!t.init,resolve:r.resolve}),i.push(r.promise)}return Promise.all(i)}endOfStream(){this._mediaSource&&"ended"!==this._mediaSource.readyState&&this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"end"})}abort(e=!1){if(this._lastBufferClearTime=Date.now(),this._disableBufferAbort)return void Ne.info("MediaSource abort skipped; action disabled.");const t=this._mediaSource;if(t){const n=t.sourceBuffers;for(let o=0,i=n.length;o<i;o++){const i=n[o];if("open"===t.readyState&&i)try{i.abort();const t=i.buffered;if(e&&t.length){const e=t.start(0),n=t.end(t.length-1);i.remove(e,n),Ne.info("Cleared buffer range",e,n)}}catch(e){Ne.warn("MediaSourceManager.clear failed.",e)}}}this._currentInitSegments={}}destroy(){const e=this._mediaSource;e&&(Ne.info("Source destroyed"),e.removeEventListener("sourceopen",this._onSourceOpen),e.removeEventListener("sourceclose",this._onSourceClose),this._destroySourceBuffers(),this._mediaSource=null)}recreate(e){this.abort(),this.destroy(),this._codecs=e.codecs,e.customSourceBufferParams&&(this._customSourceBufferParams=we(e.customSourceBufferParams)),this._init()}setDuration(e){return new Promise((t=>{this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"duration",duration:e,resolve:t})}))}getMediaSource(){return this._mediaSource}setPlayId(e){this._playId=e}getPlayId(){return this._playId}}const Me=u.P.forTag("playback.content_buffer");var xe;function Fe(){}!function(e){e[e.AUDIO=10]="AUDIO",e[e.VIDEO=20]="VIDEO"}(xe||(xe={}));class Ue extends d.vp{constructor(e,t=[],n={}){super(),this._appendingFragments=[],this._tracker=e;const{customSourceBufferParams:i,noInit:r,disableBufferAbort:a}=n;this._mediaSourceManager=De.create({codecs:t,noInit:r,customSourceBufferParams:i,disableBufferAbort:a}),this._removeAppendingFragment=this._removeAppendingFragment.bind(this),this._mediaSourceManager.on(o.FRAGMENT_APPENDED,(({data:e})=>this._removeAppendingFragment(e))),this.proxyEmitAll(this._mediaSourceManager,{[o.BUFFER_SOURCE_OPEN]:o.BUFFER_SOURCE_OPEN,[o.BUFFER_SOURCE_CLOSE]:o.BUFFER_SOURCE_CLOSE,[o.BUFFER_QUOTA_EXCEEDED]:o.BUFFER_QUOTA_EXCEEDED})}static create(e,t=[],n={}){return new Ue(e,t,n)}_trackBufferingProgress(e){e.audio&&e.audio.buffer&&this._tracker.trackBytesDownloaded(e.audio.buffer.byteLength),e.video&&e.video.buffer&&this._tracker.trackBytesDownloaded(e.video.buffer.byteLength)}_checkStalling(e,t,n){var i,r;const a=t.byteRanges.video?t.byteRanges.video.start:null!==(r=null===(i=t.byteRanges.audio)||void 0===i?void 0:i.start)&&void 0!==r?r:-1;var s;e>9e3&&this.emit(o.BUFFER_STALLED,{byteStart:a,timeStart:(s=t.timeStart,Math.ceil(1e3*s)),stallAmount:e-9e3,didTimeout:n})}_removeAppendingFragment(e){if(!e)return;const t=this._appendingFragments,n=t.indexOf(e);-1!==n&&t.splice(n,1)}dequeueUpdates(){this._mediaSourceManager.dequeueUpdates()}appendFragment(e,t,n=!1){if(-1!==this._appendingFragments.indexOf(t))return Promise.resolve([]);this._appendingFragments.push(t),this.emit(o.BUFFERING_START,null);const i=Date.now(),r=this._mediaSourceManager.getPlayId(),a=e.toLogJSON();return e.getBufferForFragment(t).then((e=>{var a,s,l,c,u,d;return this._trackBufferingProgress(e),r!==this._mediaSourceManager.getPlayId()?(Me.info("Append fragment dropped: playId has changed."),[]):(n||this._checkStalling(Date.now()-i,t,!1),null!==(null===(a=e.audio)||void 0===a?void 0:a.bandwidth)&&this._tracker.trackBufferURL((null===(s=e.audio)||void 0===s?void 0:s.bufferURL)||"",{bandwidth:(null===(l=e.audio)||void 0===l?void 0:l.bandwidth)||0}),null!==(null===(c=e.video)||void 0===c?void 0:c.bandwidth)&&this._tracker.trackBufferURL((null===(u=e.video)||void 0===u?void 0:u.bufferURL)||"",{bandwidth:(null===(d=e.video)||void 0===d?void 0:d.bandwidth)||0}),this.emit(o.BUFFERING_END,null),this._mediaSourceManager.appendBufferData(e,t,r,i))})).catch((e=>(this._removeAppendingFragment(t),n||this._checkStalling(Date.now()-i,t,!0),this.emit(o.BUFFER_APPEND_ERROR,{error:e,canPlayNext:!0,track:a}),Promise.reject(e))))}abort(e=!1){this._appendingFragments=[],this._mediaSourceManager.abort(e)}getMediaSource(){return this._mediaSourceManager.getMediaSource()}destroy(){this._mediaSourceManager.destroy()}progress(e,t,n){const o=this._mediaSourceManager.getMediaSource();if(!o)return;const i="video"===e.getMediaType()?xe.VIDEO:xe.AUDIO;if("open"===o.readyState||"ended"===o.readyState){let r;const a=function(e,t){var n;const o=null===(n=e.sourceBuffers[e.sourceBuffers.length-1])||void 0===n?void 0:n.buffered;if(o){let e,n;for(let i=0;i<o.length;i++)if(e=o.start(i),n=o.end(i),e<=t&&t<=n)return{start:e,end:n}}return null}(o,n);if(a){if(n+i>o.duration)return void("open"===o.readyState&&this._mediaSourceManager.endOfStream());const s=e.getFragmentLength();Math.ceil(n/s)>Math.floor(a.end/s)&&(r=e.getFragmentForTime(n),r&&this.appendFragment(e,r,t).catch(Fe));const l=Math.floor(a.end-n);if(l>i)return;const c=Math.min(e.getFragmentLength(),i-l);if(c<1)return;const u=Math.floor(a.end+c);r=e.getFragmentForTime(u),r?this.appendFragment(e,r,t).catch(Fe):this._mediaSourceManager.endOfStream()}else if(r=e.getFragmentForTime(n),r){if(this.appendFragment(e,r,t).catch(Fe),r.timeEnd<n+5){const n=e.getFragmentAfterTime(r.timeStart);n?this.appendFragment(e,n,t).catch(Fe):this._mediaSourceManager.endOfStream()}}else this._mediaSourceManager.endOfStream()}}recreate(e){this._appendingFragments=[],this._mediaSourceManager.recreate({codecs:e})}setDuration(e){return this._mediaSourceManager.setDuration(e)}setPlayId(e){this._mediaSourceManager.setPlayId(e)}}const Be=u.P.forTag("playback.player"),Ve=/^blob:/,Ge={[s.MP4]:!0,[s.MP4_DUAL]:!0,[s.MP4_CBCS]:!0,[s.MP4_FLAC]:!0,[s.MP3]:!1,[s.MANIFEST_ID]:!1};function Je(e){return Math.ceil(1e3*e)}function je(e){return e/1e3}function He(e){return document.createElement(e)}class Ke extends d.vp{constructor(e){super(),this._cubicVolume=!1,this._player=null,this._emeManager=null,this._mediator=new d.vp,this._currentContent=null,this._upcomingContent=null,this._preloadingTracks={},this._playId=0,this._loaded=!1,this._licenseRequested=!1,this._playerActivated=!1,this._pauseToken=0,this._syntheticEndedToken=0,this._activeCodecs=[],this._playerVolume=1,this._playerSpeed=1,this._fatalOnNextError=!1,this._canPreloadEmitted=!1,this._lastTimeUpdatePostion=0,this._buffering=!1,this._preferredBitrate=0,this._disableLicensePrefetch=!1,this._allowMixedAVC1Codecs=!1,this._disableBufferingBeforeLicense=!1,this._audioResolver=e.audioResolver,this._clearBufferOnSeek=!!e.clearBufferOnSeek,this._createPlayer=e.createPlayer||He,this._cubicVolume=e.cubicVolume,this._disableCache=!!e.disableCache,this._licenseURLResolver=e.licenseURLResolver,this._newBufferPerTrack=!!e.newBufferPerTrack,this._newElementPerTrack=!!e.newElementPerTrack,this._newMediaKeysPerTrack=!!e.newMediaKeysPerTrack,this._rebufferOnQuotaExceeded=!!e.rebufferOnQuotaExceeded,this._disableLicensePrefetch=!!e.disableLicensePrefetch,this._synthesizeEnded=!!e.synthesizeEnded,this._tracker=e.tracker,this._transport=e.transport,this._videoPlayerContainer=e.videoPlayerContainer,this._audioPlayerContainer=e.audioPlayerContainer,this._allowMixedAVC1Codecs=e.allowMixedAVC1Codecs,this._videoResolver=e.videoResolver,this._abrManager=new _e,this._emeManager=e.disallowProtectedTracks?null:e.emeManager||null,this._disallowProfile=e.disallowProfile,this._disableBufferingBeforeLicense=!!e.disableBufferingBeforeLicense,this._cache=new p.z(e.trackCacheSize||2),this._subtitleManager=new ke({language:e.preferredSubtitleLanguage||navigator.language,player:this._player}),this._videoResolution=e.videoResolution,Be.info("Setting Player track cache to:",e.trackCacheSize||2),this._bufferManager=Ue.create(this._tracker,void 0,{disableBufferAbort:!!e.disableBufferAbort,reinjectInitsOnAbort:!!e.reinjectInitsOnAbort,noInit:!0,customSourceBufferParams:e.customSourceBufferParams}),this._statistics=Re.create({bandwidthEstimator:this._abrManager}),this._audioProcessor=Ie.create(e.audioProcessorOptions),this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onTimeUpdate=this._onTimeUpdate.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onPlay=this._onPlay.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onPause=this._onPause.bind(this),this._onSeeking=this._onSeeking.bind(this),this._onEncrypted=this._onEncrypted.bind(this),this._onEnded=this._onEnded.bind(this),this._onError=this._onError.bind(this),this._onRequiresDuration=this._onRequiresDuration.bind(this),this._onQuotaExceeded=this._onQuotaExceeded.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this._onWaiting=this._onWaiting.bind(this),this._onFragmentFetched=this._onFragmentFetched.bind(this),this._onProfileChanged=this._onProfileChanged.bind(this),this._onPlayedThresholdReached=this._onPlayedThresholdReached.bind(this),this._onSyntheticEnded=this._onSyntheticEnded.bind(this),this._onLicenseRequestCapped=this._onLicenseRequestCapped.bind(this),this._onLicenseRequestError=this._onLicenseRequestError.bind(this),this._onNavigatorOffline=this._onNavigatorOffline.bind(this),this._onBufferError=this._onBufferError.bind(this),this._emitWarning=this._emitWarning.bind(this),this._handleLoadingComplete=this._handleLoadingComplete.bind(this),this._onRateChange=this._onRateChange.bind(this),this._onVideoResize=this._onVideoResize.bind(this),this._setAudioGain=this._setAudioGain.bind(this),this._init()}static create(e){const t=Object.assign({},e);return e.disallowProtectedTracks?Ke.createWithOptions(t):W.create({transport:e.transport,disallowRobustnessValues:e.disallowRobustnessValues,disallowCodecs:e.disallowCodecs,noServerCertificate:e.noServerCertificate,precacheServerCertificate:e.precacheServerCertificate,unauthServerCertificateBase:e.unauthServerCertificateBase,preferredKeySystems:e.preferredKeySystems}).then((e=>{t.emeManager=e;const n=new Ke(t);return t.preinitMediaElement?n._preinitMediaElement():n})).catch((n=>{if(e.enableWithoutEME)return Ke.createWithOptions(t);throw n}))}static createWithOptions(e){return new Promise((t=>{const n=new Ke(e);t(e.preinitMediaElement?n._preinitMediaElement():n)}))}_init(){this._disableCache&&Be.info("Cache disabled."),this._transport.on(this._transport.EVENT_CONNECTION_OFFLINE,this._onNavigatorOffline),this.proxyEmitAllSync(this._tracker,{[o.TRACKER_TRACKING_DATA_CREATED]:o.PLAYER_TRACKING_DATA_CREATED,[o.TRACKER_TRACKING_DATA_FINALIZED]:o.PLAYER_TRACKING_DATA_FINALIZED,[o.TRACKER_PLAYBACK_START]:o.PLAYER_PLAYBACK_START}),this._tracker.on(o.TRACKER_PLAYED_THRESHOLD_REACHED,this._onPlayedThresholdReached),this._emeManager&&this._emeManager.addListeners({[o.EME_LICENSE_REQUEST_CAPPED]:this._onLicenseRequestCapped,[o.EME_LICENSE_REQUEST_ERROR]:this._onLicenseRequestError}),this._bufferManager.addListeners({[o.BUFFER_APPEND_ERROR]:this._onBufferError,[o.BUFFER_QUOTA_EXCEEDED]:this._onQuotaExceeded}),this.proxyEmitAll(this._bufferManager,{[o.BUFFER_STALLED]:o.PLAYER_BUFFER_STALLED}),this._mediator.addListeners({[l.FRAGMENT_FETCHED]:this._onFragmentFetched,[l.VIDEO_PROFILE_CHANGED]:this._onProfileChanged}),this.proxyEmitAll(this._mediator,{[l.FRAGMENT_FETCH_ERROR]:o.PLAYER_FRAGMENT_FETCH_ERROR,[l.SUBTITLE_LANGUAGES_LOADED]:o.PLAYER_SUBTITLE_LANGUAGES_LOADED}),this.proxyEmitSync(this._subtitleManager,o.PLAYER_DISPLAYED_CUES_CHANGED,o.PLAYER_DISPLAYED_CUES_CHANGED),this.proxyEmitAll(this._videoResolver,{[o.VIDEO_MANIFEST_RESOLVED]:o.PLAYER_VIDEO_MANIFEST_RESOLVED,[o.VIDEO_MANIFEST_RESOLVE_FAILED]:o.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED})}_onRateChange(){this._player&&(this._tracker.trackSpeedChanged(this._player.playbackRate),this.emit(o.PLAYER_PLAYBACK_SPEED_CHANGED,{playback_speed:this._player.playbackRate}))}_onLicenseRequestError(e){if(e.data.playId!==this._playId)return;const t=this._currentContent;if(!t)return;const n=e.data.error;n.shouldRefreshEndpoint&&this._licenseURLResolver.remove(t.getKeySystem(),t.getMediaType()),this._emitError(n,!n.unrecoverable,t.toLogJSON())}_onFragmentFetched(e){const{data:t}=e;this._tracker.trackFragment(t),this.emit(o.PLAYER_FRAGMENT_FETCHED,t)}_onProfileChanged(e){const{data:t}=e;this._tracker.trackProfileChanged(t.profile),this.emit(o.PLAYER_VIDEO_PROFILE_CHANGED,t)}_onLicenseRequestCapped(e){if(e.data.playId!==this._playId)return;this._currentContent&&(this.pause(),this.emit(o.PLAYER_CAPPED,null))}_shouldNextErrorBeFatal(){const e=this._currentContent;if(!e)return!1;if(e.isAd()||!e.isProtected())return!1;if(!this._player)return!1;const t=this._player.error;if(!(t&&t instanceof MediaError))return this._fatalOnNextError=!1,!1;switch(t.code){case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:case MediaError.MEDIA_ERR_DECODE:return!0;default:return!1}}_onNavigatorOffline(){this._tracker.trackNavigatorOffline()}_onBufferError(e){this._emitError(e.data.error,e.data.canPlayNext,e.data.track)}_addPlayerEvents(e){e.addEventListener(o.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.addEventListener(o.MEDIA_PLAY,this._onPlay),e.addEventListener(o.MEDIA_PLAYING,this._onPlaying),e.addEventListener(o.MEDIA_PAUSE,this._onPause),e.addEventListener(o.MEDIA_SEEKING,this._onSeeking),e.addEventListener(o.MEDIA_ENCRYPTED,this._onEncrypted),e.addEventListener(o.MEDIA_ENDED,this._onEnded),e.addEventListener(o.MEDIA_ERROR,this._onError),e.addEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.addEventListener(o.MEDIA_DURATIONCHANGE,this._onDurationChange),e.addEventListener(o.MEDIA_WAITING,this._onWaiting),e.addEventListener(o.MEDIA_CANPLAY,this._onCanPlay),e.addEventListener(o.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.addEventListener(o.MEDIA_RATECHANGE,this._onRateChange),e.addEventListener(o.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.addEventListener(o.MEDIA_RESIZE,this._onVideoResize)}_removePlayerEvents(e){e.removeEventListener(o.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.removeEventListener(o.MEDIA_PLAY,this._onPlay),e.removeEventListener(o.MEDIA_PLAYING,this._onPlaying),e.removeEventListener(o.MEDIA_PAUSE,this._onPause),e.removeEventListener(o.MEDIA_SEEKING,this._onSeeking),e.removeEventListener(o.MEDIA_ENCRYPTED,this._onEncrypted),e.removeEventListener(o.MEDIA_ENDED,this._onEnded),e.removeEventListener(o.MEDIA_ERROR,this._onError),e.removeEventListener(o.MEDIA_WAITING,this._onWaiting),e.removeEventListener(o.MEDIA_CANPLAY,this._onCanPlay),e.removeEventListener(o.MEDIA_RATECHANGE,this._onRateChange),e.removeEventListener(o.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.removeEventListener(o.MEDIA_DURATIONCHANGE,this._onDurationChange),e.removeEventListener(o.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.removeEventListener(o.MEDIA_RESIZE,this._onVideoResize)}_recreateMediaElement(e,t,n,i){if(t!==this._playId)return Be.info("Recreate player dropped: playId has changed."),Promise.resolve(!1);const r=this._player;if(r){if(!this._newElementPerTrack&&("AUDIO"!==r.tagName||"video"!==n)){let t=!0;for(const n of e)if('audio/mp2t;codecs="mp4a.40.2"'!==n&&!r.canPlayType(n)){t=!1;break}if(t)return Be.info("Reusing media element."),e.join(",")===this._activeCodecs.join(",")&&!this._newBufferPerTrack||i||(Be.info("Recreating buffer."),this._bufferManager.recreate(e),this._activeCodecs=e),Promise.resolve(!0)}this._removePlayerEvents(r),r.pause(),this._emeManager&&this._emeManager.removeMediaKeys(r).catch((function(e){Be.warn("Failed to remove media keys.",e)})),this._player=null;const t=this._getContainerElement(this._videoPlayerContainer);t&&r.parentNode===t&&(t.removeChild(r),this.emit(o.PLAYER_VIDEO_ELEMENT_REMOVED,null));const a=this._getContainerElement(this._audioPlayerContainer);a&&r.parentNode===a&&a.removeChild(r)}Be.info("Creating new media element.");const a=this._createPlayer(n),s=this._playerVolume;return a.volume=this._cubicVolume?s*s*s:s,a.autoplay=!1,a.loop=!1,"playsInline"in a&&(a.playsInline=!0),this._player=a,this._subtitleManager.setPlayer(a),this._playerActivated=!1,this._addPlayerEvents(a),i||this._bufferManager.recreate(e),this._activeCodecs=e,Promise.resolve(!0)}_getContainerElement(e){return"string"==typeof e?document.querySelector(e):e||null}_onVideoResize(){if(!(this._player instanceof HTMLVideoElement))return;const{videoWidth:e,videoHeight:t}=this._player;this.emit(o.PLAYER_VIDEO_RESIZED,{width:e,height:t})}_onDurationChange(){const e=this._playId,t=()=>{if(!this._player)return;if(e!==this._playId)return void Be.info("Duration changed drop: playId has changed.");const t=Je(this._player.duration),n=Je(this._player.currentTime);this._tracker.setActualDuration(t),this.emit(o.PLAYER_DURATION_CHANGED,{timestamp:Date.now(),position:n,duration:t})};this._loaded?t():this.once(o.PLAYER_LOAD,t)}_onPlay(){var e;if(!this._player||!this._currentContent)return;const t=Je(this._player.currentTime);this._tracker.trackPlay(t,this._player.playbackRate),this.emit(o.PLAYER_PLAY,{timestamp:Date.now(),position:t,logData:null!==(e=this._currentContent.getLogData())&&void 0!==e?e:null})}_onPlaying(){if(!this._player)return;this._playerActivated=!0;const e=this._currentContent,t=Je(this._player.currentTime);this._tracker.trackPlaying(t),this.emit(o.PLAYER_PLAYING,{timestamp:Date.now(),position:t,logData:e?e.getLogData():null})}_onPause(){if(!this._player)return;const e=Je(this._player.currentTime);this._tracker.trackPaused(e);const t=this._currentContent?this._currentContent.getLogData():null;this._pauseToken=setTimeout((()=>{clearTimeout(this._syntheticEndedToken),this.emit(o.PLAYER_PAUSED,{position:e,logData:t})}),10)}_onSeeking(){this.emit(o.PLAYER_SEEKING,null),this._bufferManager.abort(this._clearBufferOnSeek),this._lastTimeUpdatePostion=0,this._onTimeUpdate()}_onRequiresDuration(){this._currentContent&&this._currentContent.isProtected()&&this._player&&(this._player.duration=this._currentContent.getCalculatedDuration())}_onQuotaExceeded(){this._player&&this._rebufferOnQuotaExceeded&&(Be.info("Exceeded quota: rebuffering current track."),this._bufferManager.abort(!0),this._player.currentTime=this._player.currentTime,this._onTimeUpdate())}_onEncrypted(e){Be.info("Got Encrypted event");this._currentContent&&this.emitSync(o.INTERNAL_ENCRYPTED,{initData:e.initData,fromPolyfill:!!e.fromPolyfill})}_onEnded(){!this._currentContent||this._synthesizeEnded&&this._currentContent.isProtected()||(Be.info("Native ended emitted."),this._emitEnded())}_onSyntheticEnded(){this._synthesizeEnded&&this._currentContent&&this._currentContent.isProtected()&&(Be.info("Synthetic ended emitted."),this._emitEnded())}_onError(){if(!this._player)return;const e=this._player.error;let t,n=!1;const o=this._currentContent;let i,a,s,l=!1;o&&(n=o.isProtected(),t=o.toLogJSON(),l=o.isAd(),o.clearCachedBuffers());let c=!0;const u=!o||l||!this._fatalOnNextError,d=e&&e.msExtendedCode?`0x${(e.msExtendedCode>>>0).toString(16).toUpperCase()}`:null,p=`data:${(null==t?void 0:t.fileId)||"unknown"}`;if(e instanceof MediaError){switch(e.code){case MediaError.MEDIA_ERR_ABORTED:i=r.MEDIA_ABORTED,a="Media aborted.";break;case MediaError.MEDIA_ERR_NETWORK:i=r.MEDIA_NETWORK_ERROR,a="Network error.";break;case MediaError.MEDIA_ERR_DECODE:i=r.MEDIA_DECODING_ERROR,a="Media decoding error.",c=u;break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:i=r.MEDIA_NOT_SUPPORTED,a="Media not supported.",c=u;break;default:i=r.PLAYER_MEDIA_ERROR,a="Media error.",s=!0}a+=` (${e.message||d||p||e.toString()})`}else i=r.PLAYER_PLAYBACK_ERROR,a="Error message undefined",s=!0;this._bufferManager.abort(!0);const h=new f(i,a);c||(h.unrecoverable=!0),h.listPlayerIgnore=l,h.debug.src_url=p,h.debug.protected=n,h.debug.extendedCode=d,h.debug.rawExCode=e&&e.msExtendedCode||null,s&&e&&(h.debug.nativeCode=e.code||null,h.debug.errorData=e),this._emitError(h,c,t)}_onLoadedMetadata(){this.emitSync(o.INTERNAL_PLAYER_LOADED_METADATA,null)}_onCanPlay(){this._buffering=!1,this.emitSync(o.INTERNAL_PLAYER_CANPLAY,null),this.emit(o.PLAYER_FIRST_BYTES,null)}_onCanPlayThrough(){this.emitSync(o.INTERNAL_PLAYER_CANPLAYTHROUGH,null)}_onWaiting(){clearTimeout(this._syntheticEndedToken);const e=this._player;if(!e||!this._currentContent)return;const t=e.seeking;this._buffering=!0;const n=this._currentContent.canLowerBitrate(),i=this._tracker;this.emit(o.PLAYER_BUFFERING_START,Object.assign({position:Je(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,seeking:t},i.getStallsInformation())),this._getBufferingLatency().then((r=>{t||this._tracker.trackMsStalled(r),this.emit(o.PLAYER_BUFFERING_END,Object.assign({position:Je(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,msStalled:r,seeking:t},i.getStallsInformation()))}))}_onPlayedThresholdReached(e){this._currentContent&&this._player&&this.emit(o.PLAYER_PLAYED_THRESHOLD_REACHED,{played:e.data.played,threshold:e.data.threshold,position:Je(this._player.currentTime)})}_emitEnded(){this._currentContent&&"video"===this._currentContent.getMediaType()&&this.emit(o.PLAYER_ENDED_VIDEO,null),clearTimeout(this._pauseToken),this.emit(o.PLAYER_ENDED,null)}_emitError(e,t,n){Be.error("Player Error",e,n,t),this._tracker.setHadError(!0),!this._disableCache&&n&&n.fileId&&this._cache.remove(n.fileId),this.emit(o.PLAYER_ERROR,{playId:this._playId,error:e,track:n,canPlayNext:t,position:this._player?Je(this._player.currentTime):0})}_emitWarning(e,t){Be.error("Player Warning",e,t,!0),this._tracker.trackWarning(),this.emit(o.PLAYER_WARNING,{playId:this._playId,error:e,track:t,canPlayNext:!0,position:this._player?Je(this._player.currentTime):0})}_prepareMediaElement(e,t){return t===this._playId&&this._upcomingContent?this._recreateMediaElement(this._upcomingContent.getPlayableCodecs(),t,this._upcomingContent.getMediaType(),this._upcomingContent.getKeySystem()===i.FAIRPLAY).then((n=>{var o;if(!n||t!==this._playId)return Be.info("Loading content dropped after recreate: playId has changed."),Promise.resolve(!1);this._player.playbackRate=(null===(o=this._loadingOptions)||void 0===o?void 0:o.useDefaultPlaybackSpeed)?1:this._playerSpeed;const i=this._player;return"VIDEO"===(null==i?void 0:i.tagName)&&(e.poster?i.poster=e.poster:i.removeAttribute("poster")),i&&this._upcomingContent&&this._upcomingContent.isProtected()&&this._emeManager&&(!i.mediaKeys||i.mediaKeys.shouldRefreshPerTrack||this._newMediaKeysPerTrack)?(Be.info("Creating media keys"),this._emeManager.createMediaKeys(i).then((()=>!0)).catch((e=>(e.unrecoverable=!0,this._emitError(e,!1,this._upcomingContent?this._upcomingContent.toLogJSON():void 0),Promise.reject(e))))):Promise.resolve(!0)})):(Be.info("Loading content dropped: playId has changed."),Promise.resolve(!1))}_handleLoadingComplete(e){const t=this._currentContent&&this._currentContent.getMediaType(),n=this._getContainerElement("video"===t?this._videoPlayerContainer:this._audioPlayerContainer);return n&&this._player&&this._player.parentNode!==n&&(n.appendChild(this._player),"video"===t&&this.emit(o.PLAYER_VIDEO_ELEMENT_APPENDED,null)),this._upcomingContent=null,e}_handleLoadingError(e,t,n,i){if(this._upcomingContent=null,n!==this._playId)return Promise.resolve(!1);if(this._tracker.trackLoadFailed(),this.emit(o.PLAYER_LOADING_FAILED,{uri:e,logData:t.logData}),i){const n=i.track||{uri:e,fileId:t.fileId,format:t.format,deviceId:t.logData.deviceId};this._emitError(i,"StorageError"!==i.name||!!i.canPlayNext,n)}return Promise.reject(i)}_handleLoadedMetadata(e,t,n){if(e!==this._playId)return void Be.info("LoadedMetadata operations dropped: playId has changed.");this._loaded=!0;const i=this._player;if(!i)return;this._bufferManager.dequeueUpdates();const r=n.position>i.duration?0:n.position;this._lastTimeUpdatePostion=0,(isNaN(i.currentTime)||i.currentTime<r)&&(Be.info("Resetting initial position after metadata."),i.currentTime=r),this._tracker.trackLoadDone(Je(i.currentTime)),this.emitSync(o.PLAYER_LOAD,{autoplay:n.autoplay,position:Je(r),logData:t}),Promise.resolve().then((()=>{this._onTimeUpdate()}));let a=()=>{i.currentTime<r&&(Be.info("Resetting initial position after playable."),i.currentTime=r)};n.autoplay&&!i.error&&(a=()=>{if(i.currentTime<r&&(Be.info("Resetting initial position after playable."),i.currentTime=r),this._playId!==e)return void Be.info("Play trigger dropped; different playId");new Promise((e=>e(this._player&&this._player.play()))).catch((e=>{if(e){if("NotSupportedError"===e.name)return Promise.reject(e);if("NotAllowedError"===e.name)return this.emit(o.PLAYER_AUTOPLAY_FAILED,null),Promise.reject(e)}return this._player?this._player.play():Promise.resolve()})).catch((()=>{this._onPause()}))}),i.readyState>2?(Be.info("Ready to play, triggering play."),a()):(Be.info("Waiting to be playable."),this.once(o.INTERNAL_PLAYER_CANPLAY,a))}_handleCanPlayThrough(e){e===this._playId?this._tracker.trackCanPlayThrough():Be.info("CanPlayThrough operations dropped: playId has changed.")}_loadContent(e,t){if(t!==this._playId||!this._upcomingContent)return Be.info("Loading content dropped: playId has changed."),Promise.resolve(!1);if(!this._player)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"Cannot load content without an HTMLMediaElement");this._canPreloadEmitted=!1;const n=this._upcomingContent;this._upcomingContent=null,this._currentContent=n,this._setAudioGain(n),this._subtitleManager.setVideoContent(n instanceof he?n:null);const a=e.callback;a&&this.once(o.PLAYER_LOAD,(()=>{this._playId&&t===this._playId?a():Be.info("Load content event dropped: playId has changed.")})),this.once(o.INTERNAL_PLAYER_LOADED_METADATA,this._handleLoadedMetadata.bind(this,t,this._currentContent.getLogData(),e)),this.once(o.INTERNAL_PLAYER_CANPLAYTHROUGH,this._handleCanPlayThrough.bind(this,t));let s=e.position;const l=n.getCalculatedDuration();l&&s>l&&(s=e.position=0);try{this._player.currentTime=s}catch(e){Be.warn("Cannot set initial position before loading.",e)}const c=n.isProtected();return this._tracker.setProtected(c),n.getKeySystem()===i.FAIRPLAY?n instanceof ve&&!c?Promise.resolve(this._loadUnprotectedTrack()):Promise.resolve(this._loadHLSProtectedTrack(e,t)):n instanceof he?this._loadVideoTrack(e,t):c?this._loadProtectedTrack(e,t):Promise.resolve(this._loadUnprotectedTrack())}_getBufferingLatency(){return new Promise((e=>{if(!this._player)return void e(0);const t=Date.now();this._player.addEventListener("canplaythrough",(function n(){this.removeEventListener("canplaythrough",n),e(Date.now()-t)}))}))}_loadVideoTrack(e,t){if(!(this._player&&this._currentContent&&this._currentContent instanceof he))return Promise.resolve(!1);const n=this._currentContent;Be.info("_loadVideoTrack");const i=()=>{this._currentContent&&this._currentContent.isProtected()&&this._requestLicense(t).then((()=>{this._playId===t&&(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}))};this._disableLicensePrefetch?this.once(o.INTERNAL_ENCRYPTED,i):this._bufferManager.once(o.BUFFER_SOURCE_OPEN,i);const a=this.getMediaSource();if(!a)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(a);const s=n.getVideoProfile(),l=n.getAudioProfile();return l||s?(this._tracker.trackVideoLoadStart({bitrate:null==s?void 0:s.video_bitrate,audioProfile:null!=l?l:void 0,videoProfile:null!=s?s:void 0}),this._tracker.trackBufferLoadStart(),this._bufferManager.setDuration(n.getCalculatedDuration()).then((()=>this._bufferManager.appendFragment(n,n.getInitFragment()))).then(this._onAppendedHeadSegment(t))):Promise.resolve(!1)}_loadHLSProtectedTrack(e,t){if(Be.info("Load HLS Protected Track"),!this._player||!this._currentContent)return!1;const n=this._currentContent.getResolvedURL();if(!n)throw new h(r.FILE_NOT_RESOLVED,"Cannot load HLS protected track: File not resolved.");const i=e=>{e.data.fromPolyfill&&(this.removeListener(o.INTERNAL_ENCRYPTED,i),this._requestLicense(t,{initData:e.data.initData}))};this.on(o.INTERNAL_ENCRYPTED,i);const a=this._currentContent;if(a instanceof he){const e=a.getVideoProfile(),t=a.getAudioProfile();this._tracker.trackVideoLoadStart({bitrate:null==e?void 0:e.video_bitrate,audioProfile:null!=t?t:void 0,videoProfile:null!=e?e:void 0})}this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(n,{bandwidth:0});const s=document.createElement("source");return s.src=this._currentContent.getHLSURL(),s.type=Z,this._player.appendChild(s),this._player.load(),!0}_loadUnprotectedTrack(){if(!this._player||!this._currentContent)return!1;const e=this._currentContent.getResolvedURL();return!!e&&(Be.info("_loadUnprotectedTrack",this._currentContent.getURI()),this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(e,{bandwidth:0}),this._player.src=e,this._player.load(),!0)}_onAppendedHeadSegment(e){return()=>e===this._playId&&(this._player&&this._player.spload&&this._player.spload(),Be.info("Head segment appended."),!0)}_loadProtectedTrack(e,t){if(!(this._currentContent&&this._player&&this._currentContent instanceof ve))return Promise.resolve(!1);const n=this._currentContent;Be.info("_loadProtectedTrack",n.getURI());const i=()=>this._requestLicense(t).then((()=>{this._playId===t&&(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}));this._disableLicensePrefetch?this.once(o.INTERNAL_ENCRYPTED,i):this._bufferManager.once(o.BUFFER_SOURCE_OPEN,i);const a=this.getMediaSource();if(!a)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(a),this._tracker.trackBufferLoadStart();const s=n.getFragmentForTime(e.position);let l=null;return s===n.getFirstFragment()?(Be.info("Appending combined init and playable fragment."),l=this._bufferManager.appendFragment(n,n.getHeadFragment())):(Be.info("Appending split init and playable fragment."),l=this._bufferManager.appendFragment(n,s)),l.then(this._onAppendedHeadSegment(t)).then((()=>Promise.resolve(t===this._playId)))}_requestLicense(e,t={}){if(e!==this._playId){const e="Request license dropped: playId has changed.";return Be.info(e),Promise.resolve(!1)}if(!this._player||!this._currentContent||!this._emeManager)return Promise.resolve(!1);const n=Date.now(),i=this._player.mediaKeys,r=this._currentContent,a=r.getFileId(),s=r.getLogData(),l=r.toLogJSON(),c=r.getKeySystem(),u=r.getLicenseEndpoint();let d;if(u)d=Promise.resolve(u);else{if(!a)return Promise.reject(new TypeError("Missing: fileId or licenseEndpoint"));d=this._licenseURLResolver.get(c,r.getMediaType()).then((e=>e.replace(/\{contentId\}/,a)))}const p=this._emeManager,f=this._tracker;return f.setKeySystem(c),f.setKeySystemImpl(p.getKeySystemImpl()),Promise.all([d,r.getInitParams()]).then((([o,r])=>{f.setLicenseSessionLatency(Date.now()-n);const a=r.initDataType,s=t.initData||r.initData;if(i&&s&&a){const t=Object.assign(Object.assign({},r),{playId:e,initData:s,mediaKeys:i,licenseServer:o,initDataType:a});return p.createSessionWithParams(t)}return Promise.resolve(!1)})).then((t=>{if(e!==this._playId)return Be.info("License tracking dropped: playId has changed."),Promise.resolve(!1);"boolean"!=typeof t&&"elapsed"in t&&(f.setLicenseGenerationLatency(t.elapsed.generate),f.setLicenseRequestLatency(t.elapsed.request),f.setLicenseUpdateLatency(t.elapsed.update));const i=Date.now()-n;return f.setKeyLatency(i),this.emit(o.PLAYER_KEY_RECEIVED,{requestTime:i,logData:s}),Be.info("License updated."),Promise.resolve(!0)})).catch((t=>{if(!t||e!==this._playId)return Promise.resolve(!1);const n=!t||!("canPlayNext"in t)||t.canPlayNext;return this._emitError(t,n,l),Promise.reject(t)}))}_onTimeUpdate(){var e;if(!this._loaded||!(null===(e=this._player)||void 0===e?void 0:e.readyState)||!this._currentContent)return;const t=this._currentContent,n=this._player.seeking,r=this._player.currentTime,a="video"===t.getMediaType();if(t.isProtected()&&this._disableBufferingBeforeLicense&&!this._licenseRequested)return void Be.log("Dropping time update event: buffering before license disabled.");if(!n&&this._lastTimeUpdatePostion&&this._lastTimeUpdatePostion===r)return void Be.warn("Dropping duplicate time update.");this._lastTimeUpdatePostion=n?0:r,t.getKeySystem()!==i.FAIRPLAY&&(a||t.isProtected())&&this._bufferManager.progress(t,n,r);const s=this._player.duration,l=Je(r),c=t.getLogData();n?(this._tracker.trackPositionChanged(l),this.emit(o.PLAYER_POSITION_CHANGED,{position:l,logData:c})):(this._tracker.trackProgress(l,"getCurrentBitrate"in t?t.getCurrentBitrate():0),this.emit(o.PLAYER_PROGRESS,{timestamp:Date.now(),position:l,played:this._tracker.getMSPlayed(),interval:500,logData:c})),!this._canPreloadEmitted&&s-r<=10?(this._canPreloadEmitted=!0,this.emit(o.PLAYER_CAN_PRELOAD,null)):this._canPreloadEmitted=!1,clearTimeout(this._syntheticEndedToken),this._synthesizeEnded&&t.isProtected()&&this._isPlaying()&&(this._syntheticEndedToken=setTimeout(this._onSyntheticEnded,Je(s-r)))}_isPlaying(){return!!this._player&&!this._player.paused}_createAudioContent(e,t){const n={manifestLatency:0,resolveLatency:0};return(this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve({keySystem:i.INVALID_SPOTIFY_KEY})).then((o=>ve.create({abrManager:this._abrManager,mediator:this._mediator,keySystem:o.keySystem,licenseEndpoint:t.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:e,fileId:t.fileId,fileFormat:t.fileFormat,format:t.format,isAd:t.isAd,resolvedURL:t.resolvedURL,noManifest:t.noManifest,preloadedManifest:t.preloadedManifest,logData:t.logData,disableCache:this._disableCache,emitWarning:this._emitWarning,audioGain:t.audioGain}).load(n))).then((e=>{const o=this._tracker;return o.setResolveLatency(n.resolveLatency),o.setManifestLatency(n.manifestLatency),e.isProtected()&&t.fileId&&!this._disableCache&&this._cache.set(t.fileId,e),e}))}_createVideoContent(e,t){const n={manifestLatency:0,resolveLatency:0},o=t.fileId;return(this._emeManager?this._emeManager.getKeySystemInfo():this.getMediaConfig().then((e=>({keySystem:i.INVALID_SPOTIFY_KEY,audioFormats:e.formatsInfo.audio,videoFormats:e.formatsInfo.video})))).then((i=>he.create({uri:e,abrManager:this._abrManager,mediator:this._mediator,resolver:this._videoResolver,keySystem:i.keySystem,licenseEndpoint:t.licenseEndpoint,fileId:o,noAuth:t.noAuth,format:s.MANIFEST_ID,isAd:t.isAd,transport:this._transport,videoFormats:i.videoFormats,videoResolution:this._videoResolution,audioFormats:i.audioFormats,disableCache:this._disableCache,disallowProfile:this._disallowProfile,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs,audioGain:t.audioGain}).load(n))).then((e=>{const t=this._tracker;return t.setResolveLatency(n.resolveLatency),t.setManifestLatency(n.manifestLatency),e.isProtected()&&o&&!this._disableCache&&this._cache.set(o,e),e}))}_preinitMediaElement(){return this._player||!this._emeManager?Promise.resolve(this):this._emeManager.getKeySystemInfo().then((e=>{var t,n;const o=[];return(null===(t=e.audioFormats)||void 0===t?void 0:t[0])&&o.push(e.audioFormats[0].contentType),(null===(n=e.videoFormats)||void 0===n?void 0:n[0])&&o.push(e.videoFormats[0].contentType),!!o.length&&this._recreateMediaElement(o,this._playId,o.length>1?"video":"audio",e.keySystem!==i.FAIRPLAY)})).then((()=>this),(e=>(Be.warn("Cannot precreate media element:",null==e?void 0:e.message),this)))}_setAudioGain(e){var t;null===(t=this._audioProcessor)||void 0===t||t.setAudioGain(e.getAudioGain())}getCodecInfo(){return{audiocodec:"mp3",bitrate:160}}getMediaSource(){return this._bufferManager.getMediaSource()}load(e,t,n){var i;const a=function(e,t){return t&&t.hasOwnProperty(e)}(t.uriProperty,e)?t.uriProperty:"uri",s=e[a];if(Be.info("load",s),!s)return Promise.reject(new f(r.PLAYER_CANNOT_FIND_PLAYABLE_URI,"Cannot find a playable URI."));if(!e.logData)return Promise.reject(new Error("Invalid track: logging info not specified"));this.stop(e.logData,e.mediaType),this._loaded=!1,this._licenseRequested=!1,this._buffering=!0,this._currentContent=null,this._subtitleManager.setVideoContent(null);const l=++this._playId,c=this._tracker;let u;c.trackLoadStart(s,e.fileId,l.toString(),e.logData,e.metadata),this.emit(o.PLAYER_BEFORE_LOAD,{track:e,options:t,logData:e.logData,uri:s,timestamp:Date.now()}),this._bufferManager.setPlayId(l),this._loadingOptions={position:je(t.position||0),autoplay:!("autoplay"in t)||t.autoplay,poster:e.poster,useDefaultPlaybackSpeed:!!(null===(i=e.options)||void 0===i?void 0:i.useDefaultPlaybackSpeed),callback:n},c.setPlayIntended(this._loadingOptions.autoplay),c.setPlayedThreshold(t.playedThreshold);const d=this._cache,p="video"===e.mediaType?this._createVideoContent.bind(this,s,e):this._createAudioContent.bind(this,s,e,l);if(e.fileId){const t=e.fileId,n=this._preloadingTracks[t],o=this._disableCache?null:d.get(t);n?(Be.info("Waiting for preloading track.",t),u=n.then((e=>(Be.info("Preloading succeeded.",t),c.setResolveLatency(e.resolveLatency),c.setManifestLatency(e.manifestLatency),d.get(t))),(()=>(Be.info("Preloading failed, creating new track",t),p())))):o?(Be.info("Using cached track.",t,o),c.setMemoryCached(!0),u=Promise.resolve(o)):(Be.info("Creating new track from fileId",t),u=p())}else Be.info("Creating new track without fileId",e.resolvedURL),u=p();return u.then((t=>t.isProtected()&&!this._emeManager?Promise.reject(new f(r.DISALLOW_PROTECTED_TRACK_ERROR,"Protected tracks not supported")):(t.setLogData(e.logData),c.setCalculatedDuration(Je(t.getCalculatedDuration())),this._upcomingContent=t,Promise.resolve()))).then(this._prepareMediaElement.bind(this,this._loadingOptions,l)).then((()=>{this._audioProcessor.setPlayer(this._player)})).then(this._loadContent.bind(this,this._loadingOptions,l)).then(this._handleLoadingComplete,this._handleLoadingError.bind(this,s,e,l))}preload(e){const t=!this._disableCache,n=e.uri,i=e.fileId,r=this._cache;if(!t||!i||!this._emeManager)return Promise.resolve(null);const a="video"===e.mediaType;if(!(Ge[e.format]&&!a)||r.get(i))return Promise.resolve(null);const s=this._preloadingTracks,l=s[i];if(l)return l;Be.info("Preloading track",i);const c={manifestLatency:0,resolveLatency:0},u=this._emeManager.getKeySystemInfo().then((t=>ve.create({abrManager:this._abrManager,keySystem:t.keySystem,licenseEndpoint:e.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:n,fileId:i,format:e.format,fileFormat:e.fileFormat,isAd:e.isAd,resolvedURL:e.resolvedURL,noManifest:e.noManifest,preloadedManifest:e.preloadedManifest,logData:e.logData,disableCache:this._disableCache,emitWarning:this._emitWarning,audioGain:e.audioGain}).load(c))).then((t=>Promise.all([t,"MP4_CBCS"!==e.format?t.getBufferForFragment(t.getHeadFragment()):null]))).then((([e])=>(r.set(i,e),delete s[i],Be.info("Cached",i),c))).catch((e=>(delete s[i],Be.warn("Preloading error",e),this.emit(o.PLAYER_PRELOADING_ERROR,{error:e,track:e.track||null,canPlayNext:!("canPlayNext"in e)||e.canPlayNext,preloading:!0}),Promise.reject(e))));return s[i]=u,u}togglePlay(){return this._isPlaying()?this.pause():this.resume()}setSubtitleLanguage(e){this._subtitleManager.setLanguage(e)}getSubtitleLanguages(){return this._subtitleManager.getAvailableLanguages()}getActiveSubtitleLanguage(){return this._subtitleManager.getActiveLanguage()}deactivateCueEvents(){this._subtitleManager.deactivateListeners()}activateCueEvents(){this._subtitleManager.activateListeners()}setVolume(e,t){if(!this.emitSync(o.PLAYER_BEFORE_VOLUME_CHANGE,{volume:e,options:t}).defaultPrevented){if(e<0||e>1)throw new f(r.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE,"Volume should be in range [0, 1]");this._playerVolume=e,this._player&&(this._player.volume=this._cubicVolume?e*e*e:e)}}getVolume(){return this._playerVolume}getPlayerState(){var e,t,n;const o=this._player,i=this._currentContent,r={src:(null==o?void 0:o.src)?`data:${(null==i?void 0:i.getFileId())||"unknown"}`:void 0,height:(null==o?void 0:o.clientWidth)||0,width:(null==o?void 0:o.clientHeight)||0},a={};if(i){const[e,t]=i.getPlayableCodecs();a.audio_format=e,a.video_format=t,i instanceof he&&o instanceof HTMLVideoElement&&(a.video_height=o.videoHeight,a.video_width=o.videoWidth,r.poster=o.poster)}return{playing:null!==(e=!(null==o?void 0:o.paused))&&void 0!==e&&e,position:o?Je(o.currentTime):0,duration:o?Je(o.duration):0,volume:null!==(t=this._playerVolume)&&void 0!==t?t:1,playback_speed:null!==(n=null==o?void 0:o.playbackRate)&&void 0!==n?n:0,buffering:this._buffering,media_type:(null==i?void 0:i.getMediaType())||null,media_info:a,player_element:r}}getPlayerPosition(){return this._player?Je(this._player.currentTime):0}seek(e){if(!this._player)return;const t=this._playId,n=()=>{if(!this._player||t!==this._playId)return void Be.info("Seek dropped: playId has changed.");let n=je(e);n<0?n=0:n>=this._player.duration&&(n=this._player.duration),this._player.currentTime=n};this._loaded?n():this.once(o.PLAYER_LOAD,n),this._getBufferingLatency().then((e=>{this._tracker.trackSeekRebuffering(e)}))}pause(){return new Promise((e=>{this._player&&this._isPlaying()?e(this._player&&this._player.pause()):e()}))}resume(){return this._audioProcessor.resume().then((()=>{this._player&&!this._isPlaying()&&Promise.resolve(this._player.play())}))}stop(e,t){var n;const i=[],r=e||{};this.emit(o.PLAYER_BEFORE_STOP,{timestamp:Date.now(),logData:r}),this._tracker.trackStopped(this._player?Je(this._player.currentTime):-1,e,this.getStatistics()||void 0),this._bufferManager.abort(!0),this._emeManager&&i.push(this._emeManager.destroySessions());const a=this._player;if(a){this._subtitleManager.clear(),this._fatalOnNextError=this._shouldNextErrorBeFatal(),this._fatalOnNextError&&Be.warn("MediaError detected: next immediate media error will be fatal.");const e=a.src;if(e)Ve.test(e)&&URL.revokeObjectURL(e),a.removeAttribute("src");else{const e=Ee(a.getElementsByTagName("source"));Be.info(`HTMLSourceElements to removed: ${e.length}`);for(const t of e)a.removeChild(t);Be.info("Releasing HLS URLs"),null===(n=this._currentContent)||void 0===n||n.releaseHLSURL()}a.load()}if(this._currentContent&&this._disableCache&&this._currentContent.clearCachedBuffers(),a&&this._currentContent&&"video"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._videoPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"video"!==t)&&(this._subtitleManager.setPlayer(null),e.removeChild(a),this.emit(o.PLAYER_VIDEO_ELEMENT_REMOVED,null))}else if(a&&this._currentContent&&"audio"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._audioPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"audio"!==t)&&e.removeChild(a)}return this.emit(o.PLAYER_STOPPED,null),Promise.all(i).then((()=>!0))}hideSubtitles(){this._subtitleManager.hide()}showSubtitles(){this._subtitleManager.show()}areSubtitlesShown(){return this._subtitleManager.visible()}getKeySystemInfo(){return this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve(null)}getVideoVariants(){if(!(this._currentContent&&this._currentContent instanceof he))return[];const e=[],t=this._currentContent.getVideoProfiles();for(const n of t)e.push({width:n.video_width,height:n.video_height,bitrate:n.video_bitrate});return e}setPreferredBitrate(e){return"number"!=typeof e?Promise.resolve(a.INVALID):(this._preferredBitrate=e,this._currentContent&&"video"===this._currentContent.getMediaType()&&e>0&&this._bufferManager.abort(!0),this._abrManager.overrideBitrate(e),Promise.resolve(a.SUCCESS))}getCurrentBandwidth(){return this._abrManager.getBandwidthEstimate()}setBackgrounded(e){this._abrManager.overrideBitrate(e?1e-32:this._preferredBitrate)}setVideoResolution(e){this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),this._currentContent instanceof he&&this._currentContent.setVideoResolution(this._videoResolution)}activateElement(){return this._playerActivated||!this._player||this._player.src?(this._audioProcessor.resume(),!1):(this._audioProcessor.resume().then((()=>{var e;return null===(e=this._player)||void 0===e?void 0:e.load()})),this._playerActivated=!0,!0)}getMediaConfig(){return void 0===this._mediaConfig?function(e,t){const n=t||He("video"),o=e=>{n.canPlayType("audio/mp3")&&(e.formats.audio.push("audio/mp3"),e.formatsInfo.audio.push({mimeType:"audio/mp3",codec:"mp3",contentType:'audio/mp3; codecs="mp3"'}),e.supports.unprotected_audio=!0)};if(e)return e.getKeySystemInfo().then((e=>{const{audioFormats:t,videoFormats:n}=e,i={supports:{protected_audio:!!t.length,unprotected_audio:!0,protected_video:!!n.length,unprotected_video:!0},formats:{audio:t.map((e=>e.contentType)),video:n.map((e=>e.contentType))},formatsInfo:{audio:[...t],video:[...n]}};return i.keysystem=e.keySystem,i.keysystem_impl=e.keySystemImpl,o(i),i}));const i="undefined"!=typeof window&&window.MediaSource?e=>MediaSource.isTypeSupported(e):e=>"probably"===n.canPlayType(e)||"probably"===n.canPlayType(e.split(";")[0]),r=B([U[0]],i),a=[],s=[],l=[],c=[];if(r){const{audioCapabilities:e,videoCapabilities:t}=r;for(const t of e)a.push(t.contentType),l.push(G(t.contentType));for(const e of t)s.push(e.contentType),c.push(G(e.contentType))}const u={supports:{protected_audio:!1,unprotected_audio:!!a.length,protected_video:!1,unprotected_video:!!s.length},formats:{audio:a,video:s},formatsInfo:{audio:l,video:c}};return o(u),Promise.resolve(u)}(this._emeManager,this._player).then((e=>(this._mediaConfig=e,this._mediaConfig))):Promise.resolve(this._mediaConfig)}setPlaybackSpeed(e){var t;return!(!isFinite(e)||e<=0)&&(!(null===(t=this._loadingOptions)||void 0===t?void 0:t.useDefaultPlaybackSpeed)&&(this._playerSpeed=null!=e?e:1,this._player&&(this._player.playbackRate=this._playerSpeed,this._tracker.trackSpeedChanged(this._playerSpeed)),!0))}getStatistics(){return this._player&&this._currentContent?this._statistics.getSample(this._player,this._currentContent):null}getAudioProcessor(){return this._audioProcessor}}var Ye=n(6768);class We extends Error{constructor(e,t){super(t),this.debug={},this.name="LoggingError",this.message=t,this.code=e}}const ze="7.21.2-8cb7697",qe="7.21.2",Xe=u.P.forTag("playback.logger");class Ze extends d.vp{constructor(e){super(),this._currentTrackingData=null,this._sequenceId=0,this._sequenceSessionStorage={},this._sessionId="0",this._transport=e.transport,this._logSender=e.logSender,this._player=e.player,this._init()}static create(e){return new Ze(e)}_init(){const e=this._player;e.on(o.PLAYER_LOAD,this._onPlayerLoad.bind(this)),e.on(o.PLAYER_ERROR,this._onError.bind(this,!1)),e.on(o.PLAYER_WARNING,this._onError.bind(this,!0)),e.on(o.PLAYER_PRELOADING_ERROR,this._onError.bind(this,!1)),e.on(o.PLAYER_TRACKING_DATA_CREATED,this._onTrackingDataCreated.bind(this)),e.on(o.PLAYER_TRACKING_DATA_FINALIZED,this._onTrackingDataFinalized.bind(this)),e.on(o.PLAYER_PLAYBACK_START,this._onPlaybackStart.bind(this))}_emitError(e,t){this.emit(o.LOGGER_ERROR,{error:e,trackingData:t})}_onError(e,t){var n,o,i;const a=t.data,s=this._currentTrackingData;if(!s||s.noLog)return;const l=a.error,c=null!==(n=null==l?void 0:l.debug)&&void 0!==n?n:{};c.position="position"in a?a.position:0;const u={track:a.track||{},debug:c,preloading:"preloading"in a&&!!a.preloading,session_id:this._sessionId,playback_id:s.playbackId||null,player_play_id:"playId"in a?a.playId:null,http_status_code:null!==(o=null==l?void 0:l.status)&&void 0!==o?o:null,license_server:null!==(i=null==l?void 0:l.licenseServer)&&void 0!==i?i:null};this._logError(l.code||r.UNKNOWN,l,u,s,e)}_onPlayerLoad(e){const t=e.data.logData;if(t)if(t.impressionURLs)for(const e of t.impressionURLs)this._logImpression(e);else t.impressionURL&&this._logImpression(t.impressionURL)}_onPlaybackStart(e){const t=e.data.trackingData;t.noLog||t.noStats||this._logPlaybackStart(t)}_onTrackingDataCreated(e){const t=e.data.trackingData;t.noLog?this._currentTrackingData=null:(this._currentTrackingData=t,this._setSessionId(),t.noTSV||this._setSequenceId())}_setSessionId(){this._sessionId=this._transport.getInitTime().toString()}_setSequenceId(){this._sessionId&&(this._sequenceId=this._getSequenceId(this._sessionId))}_onTrackingDataFinalized(e){const t=e.data.trackingData;if(t.noLog)return;const n=this._sessionId!==this._transport.getInitTime().toString();if(n&&this._setSessionId(),t.playbackId&&!t.noTSV){if(n&&this._setSequenceId(),!t.playIntended&&!t.played)return void this._rollbackSequenceId(this._sessionId);this._logTrackStreamVerification(t)}t.noStats||this._logPlaybackStats(t)}_logTrackStreamVerification(e){const t={play_track:e.currentTrackUri,playback_id:e.playbackId,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,session_id:this._sessionId,sequence_id:this._sequenceId,next_playback_id:e.nextPlaybackId};Xe.debug("Logged TrackStreamVerification",t),this._logSender.logTrackStreamVerification(t).catch((n=>{const o=new We(r.TSV_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,e)}))}_logPlaybackStats(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,internal_play_id:e.internalPlayId,memory_cached:e.memoryCached,persistent_cached:e.persistentCached,audio_format:e.audiocodec||"",video_format:e.videocodec||"",manifest_id:e.fileId,protected:!1,key_system:e.keySystem,key_system_impl:e.keySystemImpl,urls_json:JSON.stringify(e.urls),start_time:e.loadTime,end_time:e.stopTime,external_start_time:e.externalLoadTime,ms_play_latency:e.msPlayLatency,ms_init_latency:e.msInitLatency,ms_head_latency:e.msHeadLatency,ms_manifest_latency:e.msManifestLatency,ms_resolve_latency:e.msResolveLatency,ms_license_session_latency:e.msLicenseSessionLatency,ms_license_generation_latency:e.msLicenseGenerationLatency,ms_license_request_latency:e.msLicenseRequestLatency,ms_license_update_latency:e.msLicenseUpdateLatency,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,ms_file_duration:e.msFileDuration,ms_actual_duration:e.msActualDuration,ms_metadata_duration:e.msMetadataDuration,ms_start_position:e.startPosition,ms_end_position:e.position,ms_seek_rebuffer:e.msSeekRebuffering,ms_seek_rebuffer_longest:e.maxMsSeekRebuffering,ms_stall_rebuffer:e.msStalled,ms_stall_rebuffer_longest:e.maxMsStalled,n_stalls:e.nStalls,n_rendition_upgrade:e.nRenditionUpgrade,n_rendition_downgrade:e.nRenditionDowngrade,bps_bandwidth_max:e.bpsBandwidthMax,bps_bandwidth_min:e.bpsBandwidthMin,bps_bandwidth_avg:e.bpsBandwidthAvg,n_seekback:e.nSeeksBackward,n_seekforward:e.nSeeksForward,start_bitrate:e.startBitrate||e.bitrate||0,audio_quality:e.audioQuality,time_weighted_bitrate:e.timeWeightedBitrate,reason_start:e.reasonStart,reason_end:e.reasonEnd,initially_paused:!e.playIntended,had_error:e.hadError,n_warnings:e.nWarnings,n_navigator_offline:e.nOffline,session_id:this._sessionId,sequence_id:this._sequenceId,client_id:e.clientId,correlation_id:e.correlationId,n_dropped_video_frames:e.droppedVideoFrames,n_total_video_frames:e.totalVideoFrames,resolution_max:e.maxResolution||0,resolution_min:e.minResolution||0};Xe.info("Logging PlaybackStats"),this._logSender.logJSSDKPlaybackStats(t).catch((n=>{const o=new We(r.PLAYBACK_STATS_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,e)}))}_logPlaybackStart(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,session_id:this._sessionId,ms_start_position:e.startPosition,initially_paused:!e.playIntended,client_id:e.clientId,correlation_id:e.correlationId};Xe.info("Logging PlaybackStart"),this._logSender.logJSSDKPlaybackStart(t).catch((n=>{const o=new We(r.PLAYBACK_START_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,e)}))}_getSequenceId(e){let t=this._sequenceSessionStorage[e];return t||(t=0),t+1>=9007199254740991&&(t=0),this._sequenceSessionStorage[e]=t+1,t}_rollbackSequenceId(e){const t=this._sequenceSessionStorage[e];t&&(this._sequenceSessionStorage[e]=Math.max(t-1,0))}_logImpression(e){this._transport.request(e,{forget:!0}).catch((function(e){Xe.warn("Unable to send impression request",e)}))}_logError(e,t,n,o,i){let r="";t&&(r=t.stack||"",r||(r=t.toString()));const a={source:"playback",source_version:ze||Ye.eV.UNKNOWN,type:e||Ye.eV.UNKNOWN,message:t&&t.message||Ye.eV.EMPTY,stack:JSON.stringify(r),json_data:JSON.stringify(n||{}),json_data_version:"1.0.0",client_id:o.clientId,correlation_id:o.correlationId};i?this._logSender.logJSSDKWarning(a).catch((e=>Xe.warn("Failed to log warning",a,e))):this._logSender.logJSSDKError(a).catch((e=>Xe.warn("Failed to log error",a,e)))}}class Qe extends Error{constructor(e=r.STORAGE_ERROR,t="Storage Error"){super(t),this.status=-1,this.fileId="",this.debug={},this.canPlayNext=!0,this.code=e,this.message=t,this.name="StorageError"}}const $e=u.P.forTag("playback.storage_resolve");class et{constructor(e){this._transport=e}_parseResponse(e,t){var n;let o;if(200!==t.status)return o=new Qe(r.STORAGE_FAILED_WITH_STATUS,`Storage Resolve responded with ${t.status}`),o.status=t.status,o.fileId=e,Promise.reject(o);const i=t.body;if(!(null===(n=null==i?void 0:i.cdnurl)||void 0===n?void 0:n.length))return o=new Qe(r.STORAGE_RETURNED_NO_TRACKS,`Storage Resolve returned no tracks for fileId ${e}`),o.fileId=e,Promise.reject(o);const a={uri:i.cdnurl[0],uris:i.cdnurl,protection:"cenc"};return Promise.resolve(a)}getCDNURL(e,t){$e.info("Requesting CDN URL for ",e);const n="files/audio/interactive",o=`@webgate/storage-resolve/${t?`v2/${n}/${t}/${e}`:`${n}/${e}`}?version=10000000&product=9&platform=39&alt=json`;return this._transport.request(o,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then(this._parseResponse.bind(this,e))}getManifest(e){const t=`https://seektables.scdn.co/seektable/${e}.json`;return $e.info("Requesting JSON manifest for ",e),this._transport.request(t,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then((t=>{let n;return 200!==t.status?(n=new Qe(r.STORAGE_TRACK_MANIFEST_FAILED,`Track manifest request failed with status code ${t.status}`),n.debug.file_id=e,n.status=t.status,Promise.reject(n)):t.body?t.body:(n=new Qe(r.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest."),n.debug.file_id=e,n.status=t.status,Promise.reject(n))}))}}class tt extends Error{constructor(e,t){super(t),this.debug={},this.name="TrackingError",this.message=t,this.code=e}}class nt{constructor(){this._version="1.0.0",this._map={}}clear(){this._map={}}track(e,t){let n=this._map[e];n||(n={url:e,segments:0,bandwidths:[],totalBandwidth:0},this._map[e]=n),n.segments+=1,n.bandwidths.push(t.bandwidth),n.totalBandwidth+=t.bandwidth}toJSON(){const e=[];for(const t in this._map){if(!this._map[t])continue;const n=this._map[t];n&&e.push({url:t,segments:n.segments,avg_bw:parseFloat((n.totalBandwidth/n.bandwidths.length).toFixed(7))})}return{version:this._version,urls:e}}}class ot{constructor(){this._bitrates={},this._isFinalized=!1,this._needsEndSegment=!1,this._segments=[],this._cdnURLTracker=new nt,this._currentSpeed=1,this.audiocodec=null,this.bitrate=0,this.audioQuality=void 0,this.bufferLoadStartTime=0,this.urls={},this.currentTrackUri="",this.displayTrack="",this.externalLoadTime=0,this.fileId="",this.gaiaDevId="none",this.hadError=!1,this.internalPlayId="",this.isProtected=!1,this.keySystem="",this.keySystemImpl="",this.lastPlayPosition=-1,this.loadTime=0,this.localTimeMs=-1,this.maxContinuous=0,this.maxMsSeekRebuffering=0,this.maxMsStalled=0,this.memoryCached=!1,this.msActualDuration=0,this.msMetadataDuration=0,this.msFileDuration=0,this.msHeadLatency=0,this.msInitLatency=0,this.msKeyLatency=0,this.msLicenseGenerationLatency=0,this.msLicenseRequestLatency=0,this.msLicenseSessionLatency=0,this.msLicenseUpdateLatency=0,this.msManifestLatency=0,this.msPlayed=0,this.msNominalPlayed=0,this.msPlayedUnion=0,this.msPlayLatency=0,this.msResolveLatency=0,this.msSeekRebuffering=0,this.msSeeksBackward=0,this.msSeeksForward=0,this.nextPlaybackId="",this.nOffline=0,this.noLog=!1,this.noTSV=!1,this.noStats=!1,this.nWarnings=0,this.msStalled=0,this.nSeeksBackward=0,this.nSeeksForward=0,this.nSpeedChanges=!1,this.nStalls=0,this.nRenditionUpgrade=0,this.nRenditionDowngrade=0,this.bpsBandwidthMax=0,this.bpsBandwidthMin=0,this.bpsBandwidthAvg=0,this.totalBandwidth=0,this.lastBitrate=0,this.persistentCached=!1,this.playbackId="",this.playContext="",this.played=!1,this.position=0,this.reasonEnd="unknown",this.reasonStart="unknown",this.referrer="unknown",this.referrerVendor="unknown",this.referrerVersion="unknown",this.sourceEnd="unknown",this.sourceStart="unknown",this.startPosition=0,this.stopTime=0,this.streamingRule="none",this.timeWeightedBitrate=0,this.totalBytes=0,this.playIntended=!1,this.videocodec=null,this.clientId="unknown",this.correlationId="unknown",this.droppedVideoFrames=0,this.totalVideoFrames=0,this.maxResolution=0,this.minResolution=0}static create(){return new ot}_calculateUnion(){const e=this._segments.slice(0);let t=0,n=0,o=0,i=0,r=0,a=0,s=this.maxContinuous;for(;r<e.length;r++)r%2!=0&&void 0!==e[r-1]&&"start"===e[r-1].type&&(a=e[r].time-e[r-1].time,s=a>s?a:s);for(this.maxContinuous=s,e.sort(((e,t)=>e.time-t.time));i<e.length;i++)"start"===e[i].type&&(0===n&&(o=i),++n),"end"===e[i].type&&(--n,0===n&&(t+=e[i].time-e[o].time));return t}_calculateWeightedBitrate(e){const t=this._bitrates;let n=0;for(const o in t)o&&t.hasOwnProperty(o)&&e>0&&(n+=parseInt(o,10)*t[o]/e);return Math.round(n)}registerVideoVariant(e){const t=e.bitrate;t&&(this._bitrates[t]=this._bitrates[t]||0,this.startBitrate||(this.startBitrate=t)),e.audioProfile&&(this.audiocodec=e.audioProfile.audio_codec),e.videoProfile&&(this.videocodec=e.videoProfile.video_codec,this.lastBitrate=e.videoProfile.video_bitrate,this.minResolution=e.videoProfile.video_resolution,this.maxResolution=e.videoProfile.video_resolution)}addStartSegment(){this._segments.push({type:"start",time:this.position}),this._needsEndSegment=!0}addEndSegment(){this._needsEndSegment&&(this._segments.push({type:"end",time:this.position}),this._needsEndSegment=!1)}addMSPlayed(e){if(e){if(e<0)throw new TypeError(`Cannot add negative msPlayed value: ${e}`);this.msPlayed+=e/this._currentSpeed,this.msNominalPlayed+=e}}addSpeedChange(e){this.nSpeedChanges=!0,this._currentSpeed=e}trackBitrate(e,t){const n=e||"dummy";this._bitrates[n]=this._bitrates[n]||0,this._bitrates[n]+=t}trackBufferURL(e,t){this._cdnURLTracker.track(e,t)}finalize(){if(this._isFinalized)throw new tt(r.TRACK_DATA_ALREADY_FINALIZED,"TrackData already finalized.");this.msPlayedUnion=this._calculateUnion(),this.nSeeksBackward||this.nSeeksForward||this.nSpeedChanges||(this.msNominalPlayed=this.maxContinuous=this.msPlayedUnion,this.msPlayed=this.msNominalPlayed/this._currentSpeed,this.nSpeedChanges=!1);const e=this.msPlayed;return this.timeWeightedBitrate=this._calculateWeightedBitrate(e),this.startBitrate||(this.startBitrate=this.bitrate),this.urls=this._cdnURLTracker.toJSON(),this._isFinalized=!0,!0}getURLsJSON(){var e,t;return null!==(t=null===(e=this._cdnURLTracker.toJSON().urls)||void 0===e?void 0:e.map((({url:e})=>e)))&&void 0!==t?t:[]}getPlaybackStats(){let e;switch(this.keySystem){case i.WIDEVINE:e="widevine";break;case i.PLAYREADY:case i.PLAYREADY_HARDWARE:e="playready";break;default:e="none"}return{ms_total_est:this.msActualDuration,ms_metadata_duration:this.msMetadataDuration,ms_manifest_latency:this.msManifestLatency,ms_latency:this.msPlayLatency,start_offset_ms:this.startPosition,ms_initial_buffering:this.msPlayLatency,ms_seek_rebuffering:this.msSeekRebuffering,ms_stalled:this.msStalled,max_ms_seek_rebuffering:this.maxMsSeekRebuffering,max_ms_stalled:this.maxMsStalled,n_stalls:this.nStalls,n_rendition_upgrade:this.nRenditionUpgrade,n_rendition_downgrade:this.nRenditionDowngrade,bps_bandwidth_max:this.bpsBandwidthMax,bps_bandwidth_min:this.bpsBandwidthMin,bps_bandwidth_avg:this.bpsBandwidthAvg,audiocodec:this.audiocodec?this.audiocodec.toLowerCase():void 0,videocodec:this.videocodec?this.videocodec.toLowerCase():void 0,start_bitrate:this.startBitrate||this.bitrate||void 0,full_screen:void 0,time_weighted_bitrate:this.timeWeightedBitrate,buffering_percentage:void 0,prefetched_bytes:void 0,prefetched_bytes_loaded:void 0,prefetched_initial_bitrate:void 0,key_system:e,ms_key_latency:this.msKeyLatency,total_bytes:this.totalBytes,local_time_ms:this.localTimeMs,ms_played_background:void 0,n_dropped_video_frames:this.droppedVideoFrames,n_total_video_frames:this.totalVideoFrames,resolution_max:this.maxResolution,resolution_min:this.minResolution}}isFinalized(){return this._isFinalized}}const it=u.P.forTag("playback.tracker");class rt extends d.vp{constructor(e={}){super(),this._playedThreshold=31e3,this._playedThresholdReached=!1,this._trackingData=null,this._playedThreshold=e.playerThreshold||31e3}static create(e){return new rt(e)}_checkPlayedThreshold(){const e=this._trackingData;!e||!this._playedThreshold||this._playedThresholdReached||e.msPlayed<this._playedThreshold||(this._playedThresholdReached=!0,this.emit(o.TRACKER_PLAYED_THRESHOLD_REACHED,{played:e&&e.msPlayed||0,threshold:this._playedThreshold}))}getMSPlayed(){return this._trackingData?this._trackingData.msPlayed:0}getStallsInformation(){return this._trackingData?{nStalls:this._trackingData.nStalls,msTotalStalled:this._trackingData.msStalled}:{nStalls:0,msTotalStalled:0}}trackLoadStart(e,t,n,i,r){const a=ot.create();this._trackingData=a,this._playedThresholdReached=!1,a.fileId=null!=t?t:"",a.currentTrackUri=e,a.loadTime=Date.now(),a.internalPlayId=n,a.externalLoadTime=i.externalLoadTime||0,a.displayTrack=i.displayTrack||"",a.playbackId=i.playbackId||"",a.playContext=i.playContext||"",a.reasonStart=i.reason||"unknown",a.sourceStart=i.source||"unknown",a.clientId=i.clientId||"",a.correlationId=i.correlationId||"";const s=i.referrer||{};a.referrer=void 0!==s.name?s.name:"unknown",a.referrerVersion=void 0!==s.version?s.version:"unknown",a.referrerVendor=void 0!==s.vendor?s.vendor:"unknown";const l=i.format||{};l.codec&&(a.audiocodec=l.codec.toLowerCase()),l.bitrate&&(a.bitrate=l.bitrate),l.audioQuality&&(a.audioQuality=l.audioQuality),a.gaiaDevId=i.deviceId||"none",a.noLog=i.noLog||!1,a.noTSV=i.noTSV||!1,a.noStats=i.noStats||!1,a.contentMetadata=r,"number"==typeof(null==r?void 0:r.displayDuration)&&(a.msMetadataDuration=r.displayDuration),this.emit(o.TRACKER_TRACKING_DATA_CREATED,{trackingData:a})}trackBufferLoadStart(){const e=this._trackingData;e&&(e.bufferLoadStartTime=Date.now())}trackBytesDownloaded(e){const t=this._trackingData;t&&(t.totalBytes+=e)}trackLoadDone(e){const t=this._trackingData;if(!t)return;const n=Date.now();t.msInitLatency=n-t.bufferLoadStartTime,t.localTimeMs=n,t.position=e,t.addStartSegment()}trackPlay(e,t){const n=this._trackingData;n&&(n.played||this.emit(o.TRACKER_PLAYBACK_START,{trackingData:n}),n.played=!0,n.position=e,n.startPosition=e,n.addSpeedChange(t||1))}trackCanPlayThrough(){const e=this._trackingData;if(!e||e.msPlayLatency)return;const t=Date.now();e.msPlayLatency=t-e.loadTime,e.msHeadLatency=t-e.bufferLoadStartTime}trackBufferURL(e,t){const n=this._trackingData;n&&n.trackBufferURL(e,t)}trackNavigatorOffline(){const e=this._trackingData;e&&(e.nOffline+=1)}trackSeekRebuffering(e){const t=this._trackingData;t&&(e>t.maxMsSeekRebuffering&&(t.maxMsSeekRebuffering=e),t.msSeekRebuffering+=e)}trackMsStalled(e){const t=this._trackingData;t&&(e>t.maxMsStalled&&(t.maxMsStalled=e),t.msStalled+=e,t.nStalls++)}trackLoadFailed(){const e=this._trackingData;e&&(e.msPlayLatency=Date.now()-e.loadTime,e.position=0,e.addStartSegment())}trackStopped(e,t,n){var i,r,a,s;const l=this._trackingData;if(!l||l.isFinalized())return;const c=Date.now();if(l.stopTime=c,l.lastPlayPosition>=0&&e>=0&&l.lastPlayPosition<e){const t=e-l.lastPlayPosition;l.addMSPlayed(t)}l.addEndSegment(),l.sourceEnd=t.source||"unknown",l.reasonEnd=t.reason||"unknown",l.nextPlaybackId=t.playbackId||"",l.droppedVideoFrames=null!==(r=null===(i=null==n?void 0:n.video)||void 0===i?void 0:i.droppedVideoFrames)&&void 0!==r?r:0,l.totalVideoFrames=null!==(s=null===(a=null==n?void 0:n.video)||void 0===a?void 0:a.totalVideoFrames)&&void 0!==s?s:0,l.finalize(),it.info("Tracker data finalized.");const u=l.getPlaybackStats();this.emit(o.TRACKER_TRACKING_DATA_FINALIZED,{trackingData:l,playbackStats:u})}trackPositionChanged(e){const t=this._trackingData;if(!t)return;const n=t.position;e!==n&&(t.addEndSegment(),e>n?(t.nSeeksForward++,t.msSeeksForward+=e-n):e<n&&(t.nSeeksBackward++,t.msSeeksBackward+=n-e),t.position=e,t.lastPlayPosition=-1,t.addStartSegment())}trackPlaying(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackPaused(e){const t=this._trackingData;if(t){if(t.lastPlayPosition>=0&&t.lastPlayPosition<e){const n=e-t.lastPlayPosition;t.addMSPlayed(n)}t.position=e,t.lastPlayPosition=e}}trackProgress(e,t){const n=this._trackingData;if(!(null==n?void 0:n.played))return;let o=0;if(n.lastPlayPosition>=0){if(o=e-n.lastPlayPosition,o<0)return void it.warn("Skipping msPlayed calculation: late progress event.");n.addMSPlayed(o)}this._checkPlayedThreshold(),n.position=e,n.lastPlayPosition=e,t&&n.trackBitrate(t,o)}trackSpeedChanged(e){const t=this._trackingData;t&&t.addSpeedChange(e)}trackVideoLoadStart(e){const t=this._trackingData;t&&t.registerVideoVariant(e)}trackWarning(){const e=this._trackingData;e&&e.nWarnings++}trackOffline(){const e=this._trackingData;e&&e.nOffline++}setActualDuration(e){const t=this._trackingData;t&&(t.msActualDuration=e)}setKeySystem(e){const t=this._trackingData;t&&(t.keySystem=e)}setKeySystemImpl(e){const t=this._trackingData;t&&(t.keySystemImpl=e)}setManifestLatency(e){const t=this._trackingData;t&&(t.msManifestLatency=e)}setPlayIntended(e){const t=this._trackingData;t&&(t.playIntended=e)}setKeyLatency(e){const t=this._trackingData;t&&(t.msKeyLatency=e)}setMemoryCached(e){const t=this._trackingData;t&&(t.memoryCached=e)}setPersistentCached(e){const t=this._trackingData;t&&(t.persistentCached=e)}setProtected(e){const t=this._trackingData;t&&(t.isProtected=e)}setHadError(e){const t=this._trackingData;t&&(t.hadError=e)}setLicenseSessionLatency(e){const t=this._trackingData;t&&(t.msLicenseSessionLatency=e)}setLicenseGenerationLatency(e){const t=this._trackingData;t&&(t.msLicenseGenerationLatency=e)}setLicenseRequestLatency(e){const t=this._trackingData;t&&(t.msLicenseRequestLatency=e)}setLicenseUpdateLatency(e){const t=this._trackingData;t&&(t.msLicenseUpdateLatency=e)}setResolveLatency(e){const t=this._trackingData;t&&(t.msResolveLatency=e)}setCalculatedDuration(e){const t=this._trackingData;t&&(t.msFileDuration=e)}setPlayedThreshold(e){this._playedThreshold=e}trackFragment(e){const t=this._trackingData;if(!t)return;const{bandwidth:n,resolution:o}=e;o&&((o<t.minResolution||!t.minResolution)&&(t.minResolution=o),o>t.maxResolution&&(t.maxResolution=o)),(n<t.bpsBandwidthMin||!t.bpsBandwidthMin)&&(t.bpsBandwidthMin=n),n>t.bpsBandwidthMax&&(t.bpsBandwidthMax=n),t.bpsBandwidthAvg=t.bpsBandwidthAvg?(t.bpsBandwidthAvg+n)/2:n}trackProfileChanged(e){const t=this._trackingData;if(!t)return;const{bitrate:n}=e;n<t.lastBitrate&&t.nRenditionDowngrade++,n>t.lastBitrate&&t.nRenditionUpgrade++,t.lastBitrate=n}}class at extends d.vp{constructor(e){super(),this._transport=e,this._parseManifestResponse=this._parseManifestResponse.bind(this)}static create(e){return new at(e)}_parseManifestResponse(e){var t;const n=e.metadata.startTime;if(200!==e.status){const t=new Qe(r.STORAGE_VIDEO_MANIFEST_FAILED,`Video manifest request failed with status ${e.status}`);return t.status=e.status,this.emit(o.VIDEO_MANIFEST_RESOLVE_FAILED,{url:e.url,error:t,start_time:n}),Promise.reject(t)}const i=e.body,a=null===(t=e.headers)||void 0===t?void 0:t.get("content-length");return this.emit(o.VIDEO_MANIFEST_RESOLVED,{url:e.url,manifest_size:a?parseInt(a,10):JSON.stringify(i).length,start_time:n,end_time:Date.now()}),Promise.resolve(i)}getInitSegmentURLs(e,t,n,o){let i="";n&&(i=e+t.replace("{{profile_id}}",n.id.toString(10)).replace("{{file_type}}",n.file_type));let r="";return o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type)),{audio:i,video:r,audioLogging:i,videoLogging:r}}getSegmentURLs(e,t,n,o,i){let r="";o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type));let a="";return i&&(a=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type)),{audio:r.replace("{{segment_timestamp}}",n.toString()),video:a.replace("{{segment_timestamp}}",n.toString()),audioLogging:r,videoLogging:a}}getManifest(e,t=!1){const n=`${t?"@webgate/manifests/v8/unauth/json/sources":"@webgate/manifests/v7/json/sources"}/${e}/options/supports_drm`;return this._transport.request(n,{authorize:!t,responseType:"json",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS},metadata:{startTime:Date.now()}}).then(this._parseManifestResponse)}}class st extends Error{constructor(e,t){super(),this.status=-1,this.debug={},this.canPlayNext=!0,this.unrecoverable=!1,this.name="LicenseError",this.code=e,this.message=t}static fatal(e,t){const n=new st(e,t);return n.unrecoverable=!0,n.canPlayNext=!1,n}}class lt{constructor(e){this._sdk={name:"",version:""},this._securityLevel=null,this._urls={},e.sdk&&(this._sdk=e.sdk),e.securityLevel&&(this._securityLevel=e.securityLevel),this._transport=e.transport,this._useTestLicenseServer=!!e.useTestLicenseServer,this._transport.on(this._transport.EVENT_CONNECTION_ID,(()=>{this._urls={}}))}get(e,t){const n=`${e}:${t}`,o=this._urls[n];if(o&&o.expires>Date.now()+6e4)return Promise.resolve(o.uri);const i=this._useTestLicenseServer?"&use_test_license_server=true":"",a=`@webgate/melody/v1/license_url?keysystem=${e}&mediatype=${t}&sdk_name=${this._sdk.name}&sdk_version=${this._sdk.version}${i}`;return this._transport.request(a,{responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>{const t=e.body;if(t&&200===e.status)return t.expires*=1e3,t.uri=`@webgate/${t.uri}`,this._securityLevel&&(t.uri+=[-1!==t.uri.indexOf("?")?"&":"?","sl=",this._securityLevel].join("")),this._urls[n]=t,t.uri;let o;return o=t?400===e.status&&t&&"deprecated-version"===t.code?st.fatal(r.LICENSE_RESOLVER_DEPRECATED_VERSION,"This version of the SDK is no longer supported. Please upgrade"):new st(r.LICENSE_RESOLVER_CANT_RESOLVE_URL,`License URL endpoint responded with status ${e.status}`):st.fatal(r.LICENSE_RESOLVE_INVALID_RESPONSE,"License URL endpoint responded with invalid response"),o.status=e.status,Promise.reject(o)}))}remove(e,t){this._urls[`${e}:${t}`]=null}}class ct{constructor(e){this._melodyLogger=new Ye.Hx(e)}logTrackStreamVerification(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"track_stream_verification",message:e},{batch:!0})}logJSSDKPlaybackStats(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_stats",message:e},{batch:!0})}logJSSDKPlaybackStart(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_start",message:e},{batch:!0})}logJSSDKError(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:e},{batch:!0})}logJSSDKWarning(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_warning",message:e},{batch:!0})}}var ut;!function(e){e[e.ABORTED=101]="ABORTED",e[e.NETWORK=102]="NETWORK",e[e.MEDIA_DECODING=103]="MEDIA_DECODING",e[e.SRC_NOT_SUPPORTED=104]="SRC_NOT_SUPPORTED",e[e.EME=105]="EME",e[e.GENERIC=100]="GENERIC"}(ut||(ut={}));const dt={[r.MEDIA_ABORTED]:ut.ABORTED,[r.MEDIA_DECODING_ERROR]:ut.MEDIA_DECODING,[r.MEDIA_NOT_SUPPORTED]:ut.SRC_NOT_SUPPORTED,[r.MEDIA_NETWORK_ERROR]:ut.NETWORK};function pt(e){let t=dt[e];return/_REQUEST_|_RESPONSE$/.test(e)?t=ut.NETWORK:t||(t=/^EME_/.test(e)?ut.EME:ut.GENERIC),t}function ft(e){var t;const n=e.match(/^https?:\/\/([^\/]+@)?([^\/?#]+)/);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:""}var ht;!function(e){e.READY="playerready",e.VIDEO_CHANGE="videochange",e.PLAY="play",e.PLAYING="playing",e.PAUSE="pause",e.TIMEUPDATE="timeupdate",e.SEEKING="seeking",e.SEEKED="seeked",e.ERROR="error",e.ENDED="ended",e.RENDITION_CHANGE="renditionchange",e.REQUEST_COMPLETED="requestcompleted",e.REQUEST_FAILED="requestfailed",e.REQUEST_CANCELED="requestcanceled"}(ht||(ht={}));const mt={player_is_paused:!0,player_width:0,player_height:0,video_source_height:0,video_source_width:0,player_is_fullscreen:void 0,player_autoplay_on:void 0,player_preload_on:void 0,video_source_url:void 0,video_source_mime_type:void 0,video_source_duration:void 0,video_poster_url:void 0,player_language_code:void 0};class gt{constructor(e){this._playerId=`spotify-playback-${Date.now()}`,this._currentContentInfo=null,this._readyDeferred=(0,m.$)(),this._isMuxInitialized=!1,this._muxInitData=null,this._player=e.player,this._mux=e.mux,this._getPlayheadTime=this._getPlayheadTime.bind(this),this._getStateData=this._getStateData.bind(this),this._init(e)}static create(e){return new gt(e)}_init(e){Promise.all([Promise.resolve(e.deviceInfo)]).then((([t])=>{var n;this._muxInitData={data:Object.assign({env_key:e.envKey||"2qbjhhcl4u87btjbo7dh8vi2n",player_name:null!==(n=null==t?void 0:t.platform_name)&&void 0!==n?n:null==t?void 0:t.platform,player_version:null==t?void 0:t.version,viewer_device_manufacturer:null==t?void 0:t.brand,viewer_device_category:null==t?void 0:t.type,viewer_device_name:null==t?void 0:t.model,player_software_name:e.sdk||"spotify-playback",player_software_version:e.sdkVersion||qe,player_mux_plugin_name:"spotify-playback-mux-reporter",player_mux_plugin_version:qe},e.muxCustomDimensions),getPlayheadTime:this._getPlayheadTime,getStateData:this._getStateData},this._player.addListeners({[o.PLAYER_BEFORE_LOAD]:this._onBeforeLoad.bind(this),[o.PLAYER_PLAY]:this._onPlay.bind(this),[o.PLAYER_PLAYING]:this._onPlaying.bind(this),[o.PLAYER_PAUSED]:this._onPause.bind(this),[o.PLAYER_PROGRESS]:this._onProgress.bind(this),[o.PLAYER_SEEKING]:this._onSeeking.bind(this),[o.PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[o.PLAYER_ERROR]:this._onError.bind(this),[o.PLAYER_ENDED]:this._onEnded.bind(this),[o.PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[o.PLAYER_VIDEO_RESIZED]:this._onVideoResized.bind(this),[o.PLAYER_VIDEO_PROFILE_CHANGED]:this._onVideoProfileChanged.bind(this),[o.PLAYER_FRAGMENT_FETCHED]:this._onFragmentFetched.bind(this),[o.PLAYER_FRAGMENT_FETCH_ERROR]:this._onFragmentFetchError.bind(this),[o.PLAYER_VIDEO_MANIFEST_RESOLVED]:this._onVideoManifestResolved.bind(this),[o.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED]:this._onVideoManifestResolveFailed.bind(this)})})).then(this._readyDeferred.resolve,this._readyDeferred.reject)}_getPlayheadTime(){return this._player.getPlayerPosition()}_getStateData(){return this._currentContentInfo?Object.assign(Object.assign({},this._currentContentInfo.stateData),{player_language_code:this._player.getActiveSubtitleLanguage()}):null}_onDurationChanged(e){this._currentContentInfo&&(this._currentContentInfo.stateData.video_source_duration=e.data.duration)}_onVideoResized(e){this._currentContentInfo&&(this._currentContentInfo.stateData.player_width=e.data.width,this._currentContentInfo.stateData.player_height=e.data.height)}_onBeforeLoad(e){const{track:t,options:n,logData:o}=e.data,i=!!this._currentContentInfo;if("video"!==t.mediaType||(null==o?void 0:o.noLog)||(null==o?void 0:o.noMuxEvents))return i&&this._mux.emit(this._playerId,ht.VIDEO_CHANGE,{}),void(this._currentContentInfo=null);const r={video_id:t.fileId,video_title:(null==o?void 0:o.displayTitle)||void 0,video_series:(null==o?void 0:o.displayGroup)||void 0,video_duration:(null==o?void 0:o.displayDuration)||void 0},a=Object.assign({},mt);this._currentContentInfo={track:t,options:n,videoData:r,stateData:a},!this._isMuxInitialized&&this._muxInitData?(this._mux.init(this._playerId,this._muxInitData),this._mux.emit(this._playerId,ht.READY),this._isMuxInitialized=!0):i&&this._mux.emit(this._playerId,ht.VIDEO_CHANGE,r)}_onPlay(){var e,t;if(!this._currentContentInfo)return;const n=this._currentContentInfo.stateData,o=this._player.getPlayerState(),i=o.media_info,r=(null===(t=null===(e=this._currentContentInfo)||void 0===e?void 0:e.options)||void 0===t?void 0:t.autoplay)||!1,{width:a,height:s,src:l,poster:c}=o.player_element;n.player_is_paused=!o.playing,n.player_width=a||0,n.player_height=s||0,n.video_source_height=i.video_height||0,n.video_source_width=i.video_width||0,n.player_autoplay_on=r,n.video_source_url=l,n.video_source_mime_type=i.video_format,n.video_source_duration=o.duration,n.video_poster_url=c,this._mux.emit(this._playerId,ht.PLAY,this._currentContentInfo.videoData)}_onPlaying(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!1,this._mux.emit(this._playerId,ht.PLAYING))}_onPause(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!0,this._mux.emit(this._playerId,ht.PAUSE))}_onProgress(e){this._currentContentInfo&&this._mux.emit(this._playerId,ht.TIMEUPDATE,{player_playhead_time:e.data.position})}_onSeeking(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.SEEKING)}_onPositionChanged(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.SEEKED)}_onError(e){var t,n;const o=null===(n=null===(t=e.data)||void 0===t?void 0:t.error)||void 0===n?void 0:n.code;this._currentContentInfo&&o&&this._mux.emit(this._playerId,ht.ERROR,{player_error_code:pt(o),player_error_message:o})}_onEnded(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.ENDED)}_onVideoProfileChanged(e){if(!this._currentContentInfo)return;const t=e.data.profile,n=this._currentContentInfo.stateData;n.video_source_height=t.height||0,n.video_source_width=t.width||0,n.video_source_mime_type=t.mimeType,this._mux.emit(this._playerId,ht.RENDITION_CHANGE,{video_source_bitrate:t.bitrate,video_source_width:t.width,video_source_height:t.height})}_onFragmentFetched(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,ht.REQUEST_COMPLETED,{request_type:n,request_hostname:ft(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.byte_length})}_onFragmentFetchError(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,ht.REQUEST_FAILED,{request_type:n,request_hostname:ft(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}_onVideoManifestResolved(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,ht.REQUEST_COMPLETED,{request_type:"manifest",request_hostname:ft(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.manifest_size})}_onVideoManifestResolveFailed(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,ht.REQUEST_FAILED,{request_type:"manifest",request_hostname:ft(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}ready(){return this._readyDeferred.promise}}var vt,yt,_t,bt,St,Et,At;!function(e){e.NULL_VALUE="NULL_VALUE",e.LIST_START="LIST_START",e.LIST_END="LIST_END",e.FORBIDDEN="FORBIDDEN",e.IGNORE="IGNORE",e.PAUSE="PAUSE"}(vt||(vt={})),function(e){e.MP4_AUDIO="audio/mp4",e.MP4_VIDEO="video/mp4",e.MTS_VIDEO="video/mp2t",e.WEBM_AUDIO="audio/webm",e.WEBM_VIDEO="video/webm"}(yt||(yt={})),function(e){e.AAC_LC="mp4a.40.2",e.FLAC="flac",e.OPUS="opus",e.VP9="vp9",e.VP8="vp8",e.H264_31="avc1.4d401f"}(_t||(_t={})),function(e){e.APPLOAD="appload",e.BACK_BUTTON="backbtn",e.CLICK_ROW="clickrow",e.CLICK_SIDE="clickside",e.END_PLAY="endplay",e.FORWARD_BUTTON="fwdbtn",e.LOGOUT="logout",e.PLAY_BUTTON="playbtn",e.POPUP="popup",e.REMOTE="remote",e.TRACK_DONE="trackdone",e.TRACK_ERROR="trackerror",e.UNKNOWN="unknown",e.URI_OPEN="uriopen",e.CAPPED="capped",e.SEEK="seek"}(bt||(bt={})),function(e){e.UNKNOWN="UNKNOWN",e.DEFAULT="DEFAULT",e.LOW="LOW",e.NORMAL="NORMAL",e.HIGH="HIGH",e.VERY_HIGH="VERY_HIGH",e.HIFI="HIFI"}(St||(St={})),function(e){e.NONE="NONE",e.CONTEXT="CONTEXT",e.TRACK="TRACK"}(Et||(Et={})),function(e){e.EMPTY="EMPTY",e.SW_CRYPTO="SW_CRYPTO",e.SW_DECODE="SW_DECODE",e.HW_CRYPTO="HW_CRYPTO",e.HW_DECODE="HW_DECODE",e.HW_ALL="HW_ALL"}(At||(At={}));class Tt extends Error{constructor(e,t){super(),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.name="PlaybackError",this.code=e,this.message=t}static fatal(e,t){const n=new Tt(e,t);return n.unrecoverable=!0,n}}function Pt(e){return"uri"in e}class Ot extends d.vp{constructor(e){if(super(),this._trackPlayerPromise=(0,m.$)(),this._maxListErrors=5,this._uid=0,this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this._listPlayCount=0,this._listErrorCount=0,this._shuffled=!1,this._repeatMode=Et.NONE,this._currentSeqId=0,!e.trackPlayer)throw new TypeError("Argument `options.trackPlayerManager` not found.");e.maxListErrors&&(this._maxListErrors=e.maxListErrors),this._setListOptions=this._setListOptions.bind(this),this._replaceCurrentList=this._replaceCurrentList.bind(this),this._handleCapped=this._handleCapped.bind(this),this._handlePlaying=this._handlePlaying.bind(this),this._handlePaused=this._handlePaused.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleCanPreload=this._handleCanPreload.bind(this),this._handleError=this._handleError.bind(this),this._handlePositionChanged=this._handlePositionChanged.bind(this),this._handleDurationChanged=this._handleDurationChanged.bind(this),this._handleTimeout=this._handleTimeout.bind(this),this._handlePlayerInitError=this._handlePlayerInitError.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayedThresholdReached=this._handlePlayedThresholdReached.bind(this),this._handleBeforeLoad=this._handleBeforeLoad.bind(this),this._init(e.trackPlayer)}static create(e){return new Ot(e)}_init(e){this._trackPlayerPromise.promise.catch((()=>{})),Promise.resolve(e).then((e=>{this._attachPlayerEvents(e),this._trackPlayerPromise.resolve(e)})).catch(this._handlePlayerInitError)}_attachPlayerEvents(e){e.addListeners({[o.PLAYER_CAN_PRELOAD]:this._handleCanPreload,[o.PLAYER_CAPPED]:this._handleCapped,[o.PLAYER_ENDED]:this._handleEnded,[o.PLAYER_ERROR]:this._handleError,[o.PLAYER_PAUSED]:this._handlePaused,[o.PLAYER_PLAYING]:this._handlePlaying,[o.PLAYER_TIMEOUT]:this._handleTimeout,[o.PLAYER_POSITION_CHANGED]:this._handlePositionChanged,[o.PLAYER_DURATION_CHANGED]:this._handleDurationChanged,[o.PLAYER_PROGRESS]:this._handleProgress,[o.PLAYER_BEFORE_LOAD]:this._handleBeforeLoad,[o.PLAYER_PLAYED_THRESHOLD_REACHED]:this._handlePlayedThresholdReached}),this.proxyEmitAllSync(e,{[o.PLAYER_BEFORE_VOLUME_CHANGE]:o.LIST_PLAYER_BEFORE_VOLUME_CHANGE,[o.PLAYER_LOAD]:o.LIST_PLAYER_PLAYER_LOAD}),this.proxyEmitAll(e,{[o.PLAYER_AUTOPLAY_FAILED]:o.LIST_PLAYER_AUTOPLAY_FAILED,[o.PLAYER_TRACKING_DATA_CREATED]:o.LIST_PLAYER_TRACKING_DATA_CREATED,[o.PLAYER_TRACKING_DATA_FINALIZED]:o.LIST_PLAYER_TRACKING_DATA_FINALIZED,[o.PLAYER_BUFFER_STALLED]:o.LIST_PLAYER_BUFFER_STALLED,[o.PLAYER_BUFFERING_START]:o.LIST_PLAYER_BUFFERING_START,[o.PLAYER_BUFFERING_END]:o.LIST_PLAYER_BUFFERING_END,[o.PLAYER_VIDEO_ELEMENT_APPENDED]:o.LIST_PLAYER_VIDEO_ELEMENT_APPENDED,[o.PLAYER_VIDEO_ELEMENT_REMOVED]:o.LIST_PLAYER_VIDEO_ELEMENT_REMOVED,[o.PLAYER_DISPLAYED_CUES_CHANGED]:o.LIST_PLAYER_DISPLAYED_CUES_CHANGED,[o.LIST_PLAYER_VIDEO_PROFILE_CHANGED]:o.PLAYER_VIDEO_PROFILE_CHANGED,[o.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:o.PLAYER_PLAYBACK_SPEED_CHANGED,[o.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:o.PLAYER_SUBTITLE_LANGUAGES_LOADED})}_translatePosition(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translatePosition)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_translateDuration(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translateDuration)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_handleProgress(e){const{data:t}=e;this.emit(o.LIST_PLAYER_PROGRESS,Object.assign(Object.assign({},t),{position:this._translatePosition(t.position)}))}_handleBeforeLoad(e){const{data:t}=e;this.emit(o.LIST_PLAYER_BEFORE_PLAYER_LOAD,Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{position:this._translatePosition(t.options.position)})}))}_handlePlayerInitError(e){this._trackPlayerPromise.reject(new Tt(r.LIST_PLAYER_NO_TRACK_PLAYER,e.message||"Track player promise was rejected."))}_handleCapped(){const e=this._currentTrack;e&&this.emit(o.LIST_PLAYER_CAPPED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList})}_handlePlaying(e){const t=this._currentTrack;t&&this.emit(o.LIST_PLAYER_PLAYING,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handlePaused(e){const t=this._currentTrack;t&&this.emit(o.LIST_PLAYER_PAUSED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleCanPreload(){this._preloadUpcomingTrack().catch((()=>{}))}_handleEnded(){const e=this._currentTrack;e&&(this.emit(o.LIST_PLAYER_TRACK_ENDED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(bt.TRACK_DONE))}_handleTimeout(){const e=this._currentTrack;e&&(this.emit(o.LIST_PLAYER_TRACK_TIMEOUT,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(bt.TRACK_ERROR))}_handlePositionChanged(e){const t=this._currentTrack;t&&this.emit(o.LIST_PLAYER_POSITION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleDurationChanged(e){const t=this._currentTrack;t&&this.emit(o.LIST_PLAYER_DURATION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position),duration:this._translateDuration(e.data.duration)})}_handlePlayedThresholdReached(e){const t=this._currentTrack;t&&this.emit(o.LIST_PLAYER_PLAYED_THRESHOLD_REACHED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,threshold:e.data.threshold,position:this._translatePosition(e.data.position)})}_handleError(e){const t=this._currentTrack,n=e.data;if(!t)return;n.position=this._translatePosition(e.data.position),this.emit(o.LIST_PLAYER_ERROR,n),this.emitSync(o.LIST_PLAYER_ERROR_SYNC,n);const i=!!n.error&&n.error.listPlayerIgnore;i||this._listErrorCount++,n.canPlayNext&&(i||this._listErrorCount<=this._maxListErrors?this.next(bt.TRACK_ERROR):this.emit(o.LIST_PLAYER_MAX_LIST_ERRORS_REACHED,{count:this._listErrorCount,threshold:this._maxListErrors}))}_handleTrackLoaded(e){this.emitSync(o.LIST_PLAYER_TRACK_LOADED,e)}_incrementSeqId(){return this._currentSeqId>=9007199254740991?this._currentSeqId=0:this._currentSeqId+=1,this._currentSeqId}_getTrackPlayer(){return this._trackPlayerPromise.promise}_setListIndex(e,t){const n=t.index&&-1!==t.index?t.index:0;return Promise.all([e,t,e.startAt(n)])}_setListOptions([e,t,n]){return Promise.all([e.setShuffle(!!this._shuffled),e.setRepeatMode(this._repeatMode)]).then((()=>[e,t]))}_replaceCurrentList([e,t]){return this.emitSync(o.LIST_PLAYER_BEFORE_LIST_CHANGE,{newList:e,newOptions:t,oldList:this._loadedList,oldOptions:this._loadedOptions}),this._loadedList=e,this._loadedOptions=t,this._listPlayCount=0,this._listErrorCount=0,this.emit(o.LIST_PLAYER_LIST_CHANGED,{list:e,options:t}),a.SUCCESS}_preloadTrack(e){return this._getTrackPlayer().then((t=>(t.preload(e).catch((()=>{})),a.SUCCESS)))}_changeTrack(e,t,n){if(this._currentSeqId!==n)return Promise.resolve(a.CANCELLED);this.emitSync(o.LIST_PLAYER_BEFORE_TRACK_LOAD,{list:this._loadedList,newTrack:e,oldTrack:this._currentTrack}),this._uid++;const i=++this._listPlayCount,r=this._loadedOptions;let s=!0,l=0,c=3e4;r&&(1===i?(s=!r.paused,l=r.initialPosition||r.position||0):l=r.position||0);const u=t===bt.TRACK_DONE;if(e.options){const t=e.options;void 0!==t.paused&&(s=!t.paused),void 0!==t.position&&(l=t.position),void 0!==t.playedThreshold&&(c=t.playedThreshold)}this._currentTrack=e,this._currentTrackOptions={reason:t,paused:!s,position:l,playedThreshold:c};const d=this._handleTrackLoaded.bind(this,{uid:this._uid,track:this._currentTrack,options:this._currentTrackOptions,list:this._loadedList});return this._getTrackPlayer().then((t=>this._currentSeqId!==n?a.CANCELLED:(Promise.resolve(t.load(e,{uriProperty:"playableURI",autoplay:s,position:l,playedThreshold:c,continuePrevious:u},d)).catch((()=>{})),a.SUCCESS)))}_preloadUpcomingTrack(){const e=this._loadedList;if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));const t={reason:bt.TRACK_DONE,listConstants:vt};return e.peekNext(t).then((e=>e===vt.FORBIDDEN?a.FORBIDDEN:e===vt.NULL_VALUE?this._preloadUpcomingTrack():e===vt.LIST_END?a.LIST_END:Pt(e)&&e.playable?this._preloadTrack(e):a.INVALID))}activateElement(){return this._getTrackPlayer().then((e=>(e.activateElement(),a.SUCCESS)))}load(e,t){const n=function(e={}){const t={index:-1,position:0,initialPosition:0,duration:-1,paused:!1,reason:bt.UNKNOWN};return void 0!==e.index&&(t.index=e.index),void 0!==e.position&&(t.position=e.position),void 0!==e.initialPosition&&(t.initialPosition=e.initialPosition),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.paused&&(t.paused=e.paused),void 0!==e.reason&&(t.reason=e.reason),t}(t||this._loadedOptions||{});return this._setListIndex(e,n).then(this._setListOptions).then(this._replaceCurrentList)}play(e,t){return this.load(e,t).then((()=>{if(this._loadedList!==e)return a.CANCELLED;const t=this._loadedOptions?this._loadedOptions.reason:bt.UNKNOWN;return this.next(t)}))}canChangeTrack(){return this._loadedList?this._loadedList.peekNext({reason:bt.FORWARD_BUTTON,listConstants:vt}).then((e=>e!==vt.FORBIDDEN)):Promise.resolve(!0)}next(e){if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(o.LIST_PLAYER_BEFORE_NEXT,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vt};return t.next(i).then((i=>this._currentSeqId!==n?a.CANCELLED:i===vt.FORBIDDEN?a.FORBIDDEN:i===vt.NULL_VALUE?this.next(e):i===vt.LIST_END?(this.emit(o.LIST_PLAYER_LIST_ENDED,{list:t,reason:bt.END_PLAY}),this.clear(e),a.LIST_END):Pt(i)?i.playable?this._changeTrack(i,e,n):(this.emit(o.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.next(e)):a.INVALID))}previous(e){if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(o.LIST_PLAYER_BEFORE_PREVIOUS,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vt};return t.previous(i).then((i=>this._currentSeqId!==n?a.CANCELLED:i===vt.FORBIDDEN?a.FORBIDDEN:i===vt.NULL_VALUE?this.previous(e):i===vt.LIST_START?(this.emit(o.LIST_PLAYER_LIST_ENDED,{list:t,reason:bt.END_PLAY}),this.clear(e),a.LIST_END):Pt(i)?i.playable?this._changeTrack(i,e,n):(this.emit(o.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.previous(e)):a.INVALID))}pause(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.pause().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}resume(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.resume().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}togglePlay(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.togglePlay().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}stop(e){const t={reason:e||bt.UNKNOWN},n=this._currentTrack;return n&&n.logData&&(t.source=n.logData.source),this._incrementSeqId(),this._getTrackPlayer().then((e=>(e.stop(t),this.emit(o.LIST_PLAYER_STOPPED,{uid:this._uid,options:this._currentTrackOptions,list:this._loadedList}),a.SUCCESS)))}clear(e){return this.stop(e).then((()=>(this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this.emit(o.LIST_PLAYER_CLEARED,null),a.SUCCESS)))}setShuffle(e){const t=!!e;if(this._shuffled!==t){this._shuffled=t,this.emit(o.LIST_PLAYER_SHUFFLE_CHANGED,{player:this,shuffled:t});const e=this._loadedList;e&&e.setShuffle(this._shuffled)}return Promise.resolve(a.SUCCESS)}setRepeatMode(e){if(!(e in Et))return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The value of repeat mode is not a correct RepeatMode enum value"));if(this._repeatMode!==e){this._repeatMode=e,this.emit(o.LIST_PLAYER_REPEAT_MODE_CHANGED,{player:this,repeatMode:e});const t=this._loadedList;t&&t.setRepeatMode(this._repeatMode)}return Promise.resolve(a.SUCCESS)}getVolume(){return this._getTrackPlayer().then((e=>e.getVolume()))}setVolume(e,t=null){return this._getTrackPlayer().then((n=>(n.setVolume(e,{commandId:null!=t?t:void 0}),this.emit(o.LIST_PLAYER_VOLUME_CHANGED,{volume:e,commandId:t}),a.SUCCESS)))}seek(e,t=bt.SEEK){var n,i;const s=this._loadedList;if(!s)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));if("function"==typeof s.allowSeeking&&!s.allowSeeking())return Promise.reject(new Tt(r.LIST_PLAYER_FORBIDDEN,"The operation is not allowed."));const l=null!==(i=null===(n=s.handleSeek)||void 0===n?void 0:n.call(s,e,{reason:t,listConstants:vt}))&&void 0!==i?i:e;return l===vt.PAUSE?this.pause().then((t=>(this.emit(o.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:l}),t))):l===vt.IGNORE?(this.emit(o.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:l}),Promise.resolve(a.SUCCESS)):this._currentTrack?this._getTrackPlayer().then((e=>(e.seek(l),a.SUCCESS))):Promise.resolve(a.SUCCESS)}getListConstants(){return vt}getLoadedList(){return this._loadedList}getLoadedOptions(){return this._loadedOptions}getPlayerState(){return this._getTrackPlayer().then((e=>{const t=e.getPlayerState();return Object.assign(Object.assign({},t),{position:this._translatePosition(t.position),duration:this._translateDuration(t.duration)})}))}getState(){return this.getPlayerState().then((e=>({playbackState:e,track:this._currentTrack,list:this._loadedList,options:this._loadedOptions})))}getMediaConfig(){return this._getTrackPlayer().then((e=>e.getMediaConfig()))}hideSubtitles(){return this._getTrackPlayer().then((e=>e.hideSubtitles())).then((()=>a.SUCCESS))}showSubtitles(){return this._getTrackPlayer().then((e=>e.showSubtitles())).then((()=>a.SUCCESS))}areSubtitlesShown(){return this._getTrackPlayer().then((e=>e.areSubtitlesShown()))}getSubtitleLanguages(){return this._getTrackPlayer().then((e=>e.getSubtitleLanguages()))}getActiveSubtitleLanguage(){return this._getTrackPlayer().then((e=>{var t;return null!==(t=e.getActiveSubtitleLanguage())&&void 0!==t?t:null}))}deactivateCueEvents(){return this._getTrackPlayer().then((e=>e.deactivateCueEvents())).then((()=>a.SUCCESS))}activateCueEvents(){return this._getTrackPlayer().then((e=>e.activateCueEvents())).then((()=>a.SUCCESS))}getCurrentBandwidth(){return this._getTrackPlayer().then((e=>e.getCurrentBandwidth()))}setSubtitleLanguage(e){return this._getTrackPlayer().then((t=>t.setSubtitleLanguage(e))).then((()=>a.SUCCESS))}setPlaybackSpeed(e){return this._getTrackPlayer().then((t=>t.setPlaybackSpeed(e))).then((e=>e?a.SUCCESS:a.FORBIDDEN))}getStatistics(){return this._getTrackPlayer().then((e=>e.getStatistics()))}getAudioProcessor(){return this._getTrackPlayer().then((e=>e.getAudioProcessor()))}}const Ct=u.P.forTag("playback.init");function kt(e){return new Promise(((t,n)=>{var o,i,r,a,s,l,u;if(!e.transport)return void n(new TypeError("Argument transport is required."));if("undefined"!=typeof window){("boolean"==typeof window.isSecureContext?window.isSecureContext:function(){if("undefined"==typeof window||!window.location)return!1;const e=window.location;if("https"===e.protocol||"file"===e.protocol)return!0;const t=e.hostname;return!!/^127(\.[0-255]){3}$|^locahost\.?$|\.localhost\.?$/.test(t)}())||null===(o=window.console)||void 0===o||o.warn("%cDRM might not be available from unsecure contexts","background: #222; color: #bada55; font-size: 40px")}const{transport:d}=e,[p="",f=""]=(e.sdkId||"").split(":"),h=Object.assign(Object.assign({},e),{tracker:rt.create(),audioResolver:new et(d),videoResolver:new at(d),licenseURLResolver:new lt({transport:d,sdk:{name:p,version:f},securityLevel:e.securityLevel,useTestLicenseServer:e.useTestLicenseServer}),newBufferPerTrack:null===(i=e.newBufferPerTrack)||void 0===i||i,preinitMediaElement:null===(r=e.preinitMediaElement)||void 0===r||r});e.unauthenticatedLogs&&!(null===(a=e.loggerOptions)||void 0===a?void 0:a.endpoint)&&(e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{endpoint:"https://spclient.wg.spotify.com/melody/unauth"})),(null===(s=null==e?void 0:e.loggerOptions)||void 0===s?void 0:s.deviceInfo)||Promise.all([null===(l=e.loggerOptions)||void 0===l?void 0:l.platform,null===(u=e.loggerOptions)||void 0===u?void 0:u.clientVersion]).then((([t,n])=>{e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{deviceInfo:{platform:t,version:n}})})),Ke.create(h).then((t=>{const n=Object.assign({disableMux:!0},e.loggerOptions),o=function(e){return new ct(e)}(Object.assign(Object.assign({},n),{transport:d,sdkId:e.sdkId,platform:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.platform)&&void 0!==t?t:""})),clientVersion:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.version)&&void 0!==t?t:""}))})),i=Ze.create({transport:d,player:t,logSender:o});return n.disableMux||gt.create({player:t,mux:c,envKey:null==n?void 0:n.muxEnvKey,sdk:p,sdkVersion:f,deviceInfo:n.deviceInfo,muxCustomDimensions:n.muxCustomDimensions}).ready().then((()=>Ct.info("MuxReporter ready")),(e=>Ct.error("Failed to instantiate MuxReporter",null==e?void 0:e.message))),{player:t,logger:i}})).then(t,n)}))}var Rt,Lt=n(72755);!function(e){e.PLAYER_INITIALIZATION_DONE="PLAYER_INITIALIZATION_DONE",e.PLAYER_INITIALIZATION_FAILED="PLAYER_INITIALIZATION_FAILED",e.STATE_CHANGED="STATE_CHANGED",e.AUTOPLAY_FAILED="AUTOPLAY_FAILED",e.BEFORE_LIST_CHANGE="BEFORE_LIST_CHANGE",e.BEFORE_NEXT="BEFORE_NEXT",e.BEFORE_PREVIOUS="BEFORE_PREVIOUS",e.BEFORE_TRACK_LOAD="BEFORE_TRACK_LOAD",e.BUFFER_STALLED="BUFFER_STALLED",e.BUFFERING_START="BUFFERING_START",e.BUFFERING_END="BUFFERING_END",e.CAPPED="CAPPED",e.CLEARED="CLEARED",e.DISPLAYED_CUES_CHANGED="DISPLAYED_CUES_CHANGED",e.SUBTITLE_LANGUAGES_LOADED="SUBTITLE_LANGUAGES_LOADED",e.DURATION_CHANGED="DURATION_CHANGED",e.ERROR="ERROR",e.ERROR_SYNC="ERROR_SYNC",e.LIST_CHANGED="LIST_CHANGED",e.LIST_ENDED="LIST_ENDED",e.LOAD_VIDEO="LOAD_VIDEO",e.MAX_LIST_ERRORS_REACHED="MAX_LIST_ERRORS_REACHED",e.PAUSED="PAUSED",e.PLAYING="PLAYING",e.PLAYED_THRESHOLD_REACHED="PLAYED_THRESHOLD_REACHED",e.POSITION_CHANGED="POSITION_CHANGED",e.PROGRESS="PROGRESS",e.REPEAT_MODE_CHANGED="REPEAT_MODE_CHANGED",e.SHUFFLE_CHANGED="SHUFFLE_CHANGED",e.STOPPED="STOPPED",e.STOPPED_VIDEO="STOPPED_VIDEO",e.TRACKING_DATA_CREATED="TRACKING_DATA_CREATED",e.TRACKING_DATA_FINALIZED="TRACKING_DATA_FINALIZED",e.TRACK_ENDED="TRACK_ENDED",e.TRACK_LOADED="TRACK_LOADED",e.TRACK_TIMEOUT="TRACK_TIMEOUT",e.TRACK_UNPLAYABLE="TRACK_UNPLAYABLE",e.VOLUME_CHANGED="VOLUME_CHANGED",e.VIDEO_ELEMENT_APPENDED="VIDEO_ELEMENT_APPENDED",e.VIDEO_ELEMENT_REMOVED="VIDEO_ELEMENT_REMOVED",e.SPEED_CHANGED="SPEED_CHANGED"}(Rt||(Rt={}));const It={MP3:s.MP3,MP4:s.MP4,MP4_DUAL:s.MP4_DUAL,MP4_CBCS:s.MP4_CBCS,MP4_FLAC:s.MP4_FLAC,MANIFEST_ID:s.MANIFEST_ID};class Nt{constructor(e){var t,n,o,i;if(this.isAd=!1,!e.uri)throw new TypeError("Missing required `uri` option.");if(!e.fileId&&!e.resolvedURL)throw new TypeError("Missing: provide either fileId or resolvedURL");this.uri=e.uri,this.playableURI=this.uri,this.fileId=e.fileId||"",this.playable=null===(t=e.playable)||void 0===t||t,this.mediaType=e.mediaType||"audio",this.metadata=e.metadata||{},this.resolvedURL=e.resolvedURL,this.noManifest=null!==(n=e.noManifest)&&void 0!==n?n:!!this.resolvedURL,this.noAuth=null!==(o=e.noAuth)&&void 0!==o&&o,this.preloadedManifest=e.preloadedManifest,this.licenseEndpoint=e.licenseEndpoint,this.fileFormat=e.fileFormat,this.poster=e.poster,this.options=e.options;const r=null!==(i=e.format)&&void 0!==i?i:"MP4";if(!It.hasOwnProperty(r))throw new TypeError("Invalid `format` option.");this.format=It[r],this.logData=Object.assign(Object.assign({},e.logData),{noLog:!1,noTSV:!0,noStats:!1})}static create(e){return new Nt(e)}}class wt{constructor(e){this._index=-1,this._tracks=[],this._tracks=e.tracks}static create(e){const t=[];for(const n of e.tracks)n instanceof Nt?t.push(n):t.push(Nt.create(n));return new wt({tracks:t})}startAt(e){return e>this._tracks.length||e<0?this._index=-1:this._index=e-1,Promise.resolve(a.SUCCESS)}next(e,t){const n=this._index+1;if(n>=this._tracks.length)return Promise.resolve(e.listConstants.LIST_END);const o=this._tracks[n];return t||(this._index=n),o?Promise.resolve(o):Promise.reject(vt.NULL_VALUE)}peekNext(e){return this.next(e,!0)}allowSeeking(){return!0}previous(e){const t=this._index-1;if(t<0)return Promise.resolve(e.listConstants.LIST_START);const n=this._tracks[t];return this._index=t,n?Promise.resolve(n):Promise.reject(vt.NULL_VALUE)}setShuffle(){return Promise.resolve(a.SUCCESS)}setRepeatMode(){return Promise.resolve(a.SUCCESS)}}class Dt extends d.vp{constructor(e){super(),this._playerPromise=e.playerPromise,this._listPlayer=e.listPlayer,this._transport=e.transport,this._autoActivateElement=!!e.autoActivateElement,this._init()}static create(e){return new Dt(e)}_init(){const e=this._listPlayer;this.proxyEmitAll(e,{[o.LIST_PLAYER_AUTOPLAY_FAILED]:Rt.AUTOPLAY_FAILED,[o.LIST_PLAYER_BEFORE_LIST_CHANGE]:Rt.BEFORE_LIST_CHANGE,[o.LIST_PLAYER_BUFFER_STALLED]:Rt.BUFFER_STALLED,[o.LIST_PLAYER_BUFFERING_START]:Rt.BUFFERING_START,[o.LIST_PLAYER_BUFFERING_END]:Rt.BUFFERING_END,[o.LIST_PLAYER_CLEARED]:Rt.CLEARED,[o.LIST_PLAYER_DURATION_CHANGED]:Rt.DURATION_CHANGED,[o.LIST_PLAYER_ERROR]:Rt.ERROR,[o.LIST_PLAYER_LIST_CHANGED]:Rt.LIST_CHANGED,[o.LIST_PLAYER_LIST_ENDED]:Rt.LIST_ENDED,[o.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:Rt.MAX_LIST_ERRORS_REACHED,[o.LIST_PLAYER_PAUSED]:Rt.PAUSED,[o.LIST_PLAYER_PLAYING]:Rt.PLAYING,[o.LIST_PLAYER_PLAYED_THRESHOLD_REACHED]:Rt.PLAYED_THRESHOLD_REACHED,[o.LIST_PLAYER_POSITION_CHANGED]:Rt.POSITION_CHANGED,[o.LIST_PLAYER_PROGRESS]:Rt.PROGRESS,[o.LIST_PLAYER_REPEAT_MODE_CHANGED]:Rt.REPEAT_MODE_CHANGED,[o.LIST_PLAYER_SHUFFLE_CHANGED]:Rt.SHUFFLE_CHANGED,[o.LIST_PLAYER_STOPPED]:Rt.STOPPED,[o.LIST_PLAYER_TRACKING_DATA_CREATED]:Rt.TRACKING_DATA_CREATED,[o.LIST_PLAYER_TRACKING_DATA_FINALIZED]:Rt.TRACKING_DATA_FINALIZED,[o.LIST_PLAYER_TRACK_ENDED]:Rt.TRACK_ENDED,[o.LIST_PLAYER_TRACK_LOADED]:Rt.TRACK_LOADED,[o.LIST_PLAYER_TRACK_TIMEOUT]:Rt.TRACK_TIMEOUT,[o.LIST_PLAYER_TRACK_UNPLAYABLE]:Rt.TRACK_UNPLAYABLE,[o.LIST_PLAYER_VOLUME_CHANGED]:Rt.VOLUME_CHANGED,[o.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:Rt.VIDEO_ELEMENT_APPENDED,[o.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:Rt.VIDEO_ELEMENT_REMOVED,[o.LIST_PLAYER_AUTOPLAY_FAILED]:Rt.AUTOPLAY_FAILED,[o.PLAYER_DISPLAYED_CUES_CHANGED]:Rt.DISPLAYED_CUES_CHANGED,[o.PLAYER_SUBTITLE_LANGUAGES_LOADED]:Rt.SUBTITLE_LANGUAGES_LOADED,[o.PLAYER_PLAYBACK_SPEED_CHANGED]:Rt.SPEED_CHANGED}),this.proxyEmitAllSync(e,{[o.LIST_PLAYER_BEFORE_NEXT]:Rt.BEFORE_NEXT,[o.LIST_PLAYER_BEFORE_PREVIOUS]:Rt.BEFORE_PREVIOUS,[o.LIST_PLAYER_BEFORE_TRACK_LOAD]:Rt.BEFORE_TRACK_LOAD,[o.LIST_PLAYER_ERROR_SYNC]:Rt.ERROR_SYNC}),this._emitStateChanged=this._emitStateChanged.bind(this),this.on(Rt.CLEARED,this._emitStateChanged),this.on(Rt.PAUSED,this._emitStateChanged),this.on(Rt.PLAYING,this._emitStateChanged),this.on(Rt.POSITION_CHANGED,this._emitStateChanged),this.on(Rt.STOPPED,this._emitStateChanged),this.on(Rt.LIST_CHANGED,this._emitStateChanged),this.on(Rt.VOLUME_CHANGED,this._emitStateChanged),this.on(Rt.SPEED_CHANGED,this._emitStateChanged),this._playerPromise.then((()=>this.emit(Rt.PLAYER_INITIALIZATION_DONE,null))).catch((e=>this.emit(Rt.PLAYER_INITIALIZATION_FAILED,{error:e}))),this._transport.on(Lt.TransportEvent.BEFORE_ONLINE_DISCONNECT,(e=>{e.data.awaitPromise(this._listPlayer.stop(bt.END_PLAY).catch((e=>{})))}))}_emitStateChanged(){this._listPlayer.getState().then((e=>{this.emit(Rt.STATE_CHANGED,{state:e})}))}playTracks(e,t){return this._autoActivateElement&&this._listPlayer.activateElement(),new Promise((t=>{t(wt.create({tracks:e}))})).then((e=>this._listPlayer.play(e,t)))}playList(e,t){return this._autoActivateElement&&this._listPlayer.activateElement(),this._listPlayer.play(e,t)}getState(){return this.getCurrentState()}getCurrentState(){return this._listPlayer.getState()}pause(){return this._listPlayer.pause()}resume(){return this._listPlayer.resume()}togglePlay(){return this._listPlayer.togglePlay()}stop(){return this._listPlayer.stop(bt.END_PLAY)}seek(e){return this._listPlayer.seek(e)}nextTrack(){return this._listPlayer.next(bt.FORWARD_BUTTON)}previousTrack(){return this._listPlayer.previous(bt.BACK_BUTTON)}getVolume(){return this._listPlayer.getVolume()}setVolume(e){return this._listPlayer.setVolume(e)}setPlaybackSpeed(e){return this._listPlayer.setPlaybackSpeed(e)}activateElement(){return this._listPlayer.activateElement()}hideSubtitles(){return this._listPlayer.hideSubtitles()}showSubtitles(){return this._listPlayer.showSubtitles()}getSubtitleLanguages(){return this._listPlayer.getSubtitleLanguages()}setSubtitleLanguage(e){return this._listPlayer.setSubtitleLanguage(e)}areSubtitlesShown(){return this._listPlayer.areSubtitlesShown()}getActiveSubtitleLanguage(){return this._listPlayer.getActiveSubtitleLanguage()}getMediaConfig(){return this._listPlayer.getMediaConfig()}deactivateSubtitleEvents(){return this._listPlayer.deactivateCueEvents()}activateSubtitleEvents(){return this._listPlayer.activateCueEvents()}}const Mt={tagged:"2.17.0-84926a3",version:"2.17.0",revision:"84926a3"},xt=(Object.assign(Object.assign({},Lt.TransportErrors),r),Nt.create),Ft=wt.create;function Ut(e){var t,n,o;const{transport:i,autoActivateElement:r,config:a}=e,s=null==a?void 0:a.mux,l=kt(Object.assign(Object.assign({},e.config),{loggerOptions:{platform:e.platform_identifier,disableMux:null===(n=null!==(t=null==s?void 0:s.disable)&&void 0!==t?t:null==a?void 0:a.disableMux)||void 0===n||n,muxEnvKey:null!==(o=null==s?void 0:s.envKey)&&void 0!==o?o:null==a?void 0:a.muxEnvKey,muxCustomDimensions:null==s?void 0:s.customDimensions,deviceInfo:null==s?void 0:s.deviceInfo},sdkId:`overture:${Mt.version}`,transport:i.toPublic(),audioProcessorOptions:{disable:!0}})).then((e=>e.player)),c=Ot.create({trackPlayer:l});return Dt.create({listPlayer:c,playerPromise:l,transport:i,autoActivateElement:r})}},58929:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerClient=void 0;const o=n(33892),i=n(95073),r=n(551),a=n(5242),s=n(9354),l=n(24901),c=n(57627),u=n(91481),d=n(84681),p=n(84526),f=n(10103),h=n(14404),m=n(50778),g=n(80568),v=n(78117),y=n(1202),_=n(36631),b=n(2387),S=n(63137),E=n(36782),A=n(60534),T=n(26932),P=n(78418),O=n(16207),C=n(82864),k=n(26894),R=n(16838);class L{transport;options;constructor(e,t={}){this.transport=e,this.options=t}preparePlay(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="PreparePlay",a=i.PreparePlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.SessionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}playPrepared(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="PlayPrepared",i=a.PlayPreparedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}deleteSession(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="DeleteSession",i=l.DeleteSessionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.DeleteSessionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateContext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateContext",i=c.UpdateContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateContextPage(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateContextPage",i=c.UpdateContextPageRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateContextTrack(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateContextTrack",i=c.UpdateContextTrackRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateViewUri(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateViewUri",i=c.UpdateViewUriRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}play(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Play",i=a.PlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}pause(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Pause",i=u.PauseRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}resume(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Resume",i=d.ResumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}skipNext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SkipNext",i=p.SkipNextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}skipPrev(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SkipPrev",i=f.SkipPrevRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}seekTo(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SeekTo",i=h.SeekToRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}stop(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Stop",i=m.StopRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setOptions(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetOptions",i=g.SetOptionsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setRepeatingContext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetRepeatingContext",i=v.SetRepeatingContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setRepeatingTrack(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetRepeatingTrack",i=y.SetRepeatingTrackRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setShufflingContext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetShufflingContext",i=_.SetShufflingContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getQueue(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetQueue",r=b.GetQueueRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=S.Queue.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}setQueue(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetQueue",i=E.SetQueueRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}addToQueue(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="AddToQueue",i=A.AddToQueueRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getError(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetError",r=T.GetErrorRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=P.ContextPlayerError.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getState(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetState",r=O.GetStateRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=C.ContextPlayerState.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getPlayHistory(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetPlayHistory",r=k.GetPlayHistoryRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=k.GetPlayHistoryResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getPositionState(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="GetPositionState",i=R.GetPositionStateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=R.GetPositionStateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.player.esperanto.proto.ContextPlayer";static DECODERS={PreparePlay:{request:i.PreparePlayRequest.decode,response:r.SessionResponse.decode},PlayPrepared:{request:a.PlayPreparedRequest.decode,response:s.ResponseWithReasons.decode},DeleteSession:{request:l.DeleteSessionRequest.decode,response:l.DeleteSessionResponse.decode},UpdateContext:{request:c.UpdateContextRequest.decode,response:s.ResponseWithReasons.decode},UpdateContextPage:{request:c.UpdateContextPageRequest.decode,response:s.ResponseWithReasons.decode},UpdateContextTrack:{request:c.UpdateContextTrackRequest.decode,response:s.ResponseWithReasons.decode},UpdateViewUri:{request:c.UpdateViewUriRequest.decode,response:s.ResponseWithReasons.decode},Play:{request:a.PlayRequest.decode,response:s.ResponseWithReasons.decode},Pause:{request:u.PauseRequest.decode,response:s.ResponseWithReasons.decode},Resume:{request:d.ResumeRequest.decode,response:s.ResponseWithReasons.decode},SkipNext:{request:p.SkipNextRequest.decode,response:s.ResponseWithReasons.decode},SkipPrev:{request:f.SkipPrevRequest.decode,response:s.ResponseWithReasons.decode},SeekTo:{request:h.SeekToRequest.decode,response:s.ResponseWithReasons.decode},Stop:{request:m.StopRequest.decode,response:s.ResponseWithReasons.decode},SetOptions:{request:g.SetOptionsRequest.decode,response:s.ResponseWithReasons.decode},SetRepeatingContext:{request:v.SetRepeatingContextRequest.decode,response:s.ResponseWithReasons.decode},SetRepeatingTrack:{request:y.SetRepeatingTrackRequest.decode,response:s.ResponseWithReasons.decode},SetShufflingContext:{request:_.SetShufflingContextRequest.decode,response:s.ResponseWithReasons.decode},GetQueue:{request:b.GetQueueRequest.decode,response:S.Queue.decode},SetQueue:{request:E.SetQueueRequest.decode,response:s.ResponseWithReasons.decode},AddToQueue:{request:A.AddToQueueRequest.decode,response:s.ResponseWithReasons.decode},GetError:{request:T.GetErrorRequest.decode,response:P.ContextPlayerError.decode},GetState:{request:O.GetStateRequest.decode,response:C.ContextPlayerState.decode},GetPlayHistory:{request:k.GetPlayHistoryRequest.decode,response:k.GetPlayHistoryResponse.decode},GetPositionState:{request:R.GetPositionStateRequest.decode,response:R.GetPositionStateResponse.decode}}}t.ContextPlayerClient=L},33782:(e,t,n)=>{"use strict";t.ed=t.c_=t.jx=t.RN=t.eS=t.$5=t.aS=t.a4=t.L6=t.Nr=t.vy=t.Yr=t.l7=t.jX=t.yb=t.o7=t.as=t.vf=t.nh=t.Td=t.dj=t.oW=t.ST=t.uF=t._y=t.R3=void 0,t.eB=t.n=t.t6=void 0;var o=n(58929);Object.defineProperty(t,"R3",{enumerable:!0,get:function(){return o.ContextPlayerClient}});var i=n(60534);var r=n(17544);var a=n(15127);Object.defineProperty(t,"_y",{enumerable:!0,get:function(){return a.Context}});var s=n(11416);Object.defineProperty(t,"uF",{enumerable:!0,get:function(){return s.ContextPage}});var l=n(78418);var c=n(49726);Object.defineProperty(t,"ST",{enumerable:!0,get:function(){return c.ContextPlayerOptionOverrides}});var u=n(82864);Object.defineProperty(t,"oW",{enumerable:!0,get:function(){return u.PlaybackQuality_BitrateLevel}}),Object.defineProperty(t,"dj",{enumerable:!0,get:function(){return u.PlaybackQuality_BitrateStrategy}}),Object.defineProperty(t,"Td",{enumerable:!0,get:function(){return u.PlaybackQuality_HiFiStatus}});var d=n(76498);Object.defineProperty(t,"nh",{enumerable:!0,get:function(){return d.ContextTrack}});var p=n(24901);var f=n(26932);Object.defineProperty(t,"vf",{enumerable:!0,get:function(){return f.GetErrorRequest}});var h=n(26894);var m=n(16838);var g=n(2387);Object.defineProperty(t,"as",{enumerable:!0,get:function(){return g.GetQueueRequest}});var v=n(16207);Object.defineProperty(t,"o7",{enumerable:!0,get:function(){return v.GetStateRequest}});var y=n(1105);Object.defineProperty(t,"yb",{enumerable:!0,get:function(){return y.LoggingParams}});var _=n(1745);var b=n(91481);Object.defineProperty(t,"jX",{enumerable:!0,get:function(){return b.PauseRequest}});var S=n(5242);Object.defineProperty(t,"l7",{enumerable:!0,get:function(){return S.PlayRequest}});var E=n(91011);var A=n(12433);Object.defineProperty(t,"Yr",{enumerable:!0,get:function(){return A.PlayOrigin}});var T=n(95073);Object.defineProperty(t,"vy",{enumerable:!0,get:function(){return T.PreparePlayRequest}});var P=n(12489);Object.defineProperty(t,"Nr",{enumerable:!0,get:function(){return P.PreparePlayOptions}});var O=n(29719);Object.defineProperty(t,"L6",{enumerable:!0,get:function(){return O.ProvidedTrack}});var C=n(63137);var k=n(9354);Object.defineProperty(t,"a4",{enumerable:!0,get:function(){return k.ResponseWithReasons_Error}});var R=n(3669);Object.defineProperty(t,"aS",{enumerable:!0,get:function(){return R.Restrictions}});var L=n(84681);Object.defineProperty(t,"$5",{enumerable:!0,get:function(){return L.ResumeRequest}});var I=n(14404);Object.defineProperty(t,"eS",{enumerable:!0,get:function(){return I.SeekToRequest}}),Object.defineProperty(t,"RN",{enumerable:!0,get:function(){return I.SeekToRequest_Relative}});var N=n(551);var w=n(80568);Object.defineProperty(t,"jx",{enumerable:!0,get:function(){return w.SetOptionsRequest}});var D=n(36782);Object.defineProperty(t,"c_",{enumerable:!0,get:function(){return D.SetQueueRequest}});var M=n(78117);var x=n(1202);var F=n(36631);Object.defineProperty(t,"ed",{enumerable:!0,get:function(){return F.SetShufflingContextRequest}});var U=n(84526);Object.defineProperty(t,"t6",{enumerable:!0,get:function(){return U.SkipNextRequest}});var B=n(10103);Object.defineProperty(t,"n",{enumerable:!0,get:function(){return B.SkipPrevRequest}});var V=n(69316);var G=n(50778);var J=n(57627);Object.defineProperty(t,"eB",{enumerable:!0,get:function(){return J.UpdateContextRequest}})},60534:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddToQueueRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(76498),s=n(1105);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.AddToQueueRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.track&&a.ContextTrack.encode(e.track,t.uint32(10).fork()).ldelim(),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={track:void 0,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.track=a.ContextTrack.decode(n,n.uint32());break;case 2:l.options=r.CommandOptions.decode(n,n.uint32());break;case 3:l.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({track:l(e.track)?a.ContextTrack.fromJSON(e.track):void 0,options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?a.ContextTrack.toJSON(e.track):void 0),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={track:void 0,options:void 0,loggingParams:void 0};return t.track=void 0!==e.track&&null!==e.track?a.ContextTrack.fromPartial(e.track):void 0,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},17544:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommandOptions=t.protobufPackage=void 0;const i=o(n(33892));function r(){return{overrideRestrictions:!1,onlyForLocalDevice:!1,systemInitiated:!1,onlyForPlaybackId:new Uint8Array}}t.protobufPackage="spotify.player.esperanto.proto",t.CommandOptions={encode:(e,t=i.default.Writer.create())=>(!0===e.overrideRestrictions&&t.uint32(8).bool(e.overrideRestrictions),!0===e.onlyForLocalDevice&&t.uint32(16).bool(e.onlyForLocalDevice),!0===e.systemInitiated&&t.uint32(24).bool(e.systemInitiated),0!==e.onlyForPlaybackId.length&&t.uint32(34).bytes(e.onlyForPlaybackId),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.overrideRestrictions=n.bool();break;case 2:a.onlyForLocalDevice=n.bool();break;case 3:a.systemInitiated=n.bool();break;case 4:a.onlyForPlaybackId=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({overrideRestrictions:!!l(e.overrideRestrictions)&&Boolean(e.overrideRestrictions),onlyForLocalDevice:!!l(e.onlyForLocalDevice)&&Boolean(e.onlyForLocalDevice),systemInitiated:!!l(e.systemInitiated)&&Boolean(e.systemInitiated),onlyForPlaybackId:l(e.onlyForPlaybackId)?s(e.onlyForPlaybackId):new Uint8Array}),toJSON(e){const t={};return void 0!==e.overrideRestrictions&&(t.overrideRestrictions=e.overrideRestrictions),void 0!==e.onlyForLocalDevice&&(t.onlyForLocalDevice=e.onlyForLocalDevice),void 0!==e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.onlyForPlaybackId&&(t.onlyForPlaybackId=function(e){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(void 0!==e.onlyForPlaybackId?e.onlyForPlaybackId:new Uint8Array)),t},fromPartial(e){const t=r();return t.overrideRestrictions=e.overrideRestrictions??!1,t.onlyForLocalDevice=e.onlyForLocalDevice??!1,t.systemInitiated=e.systemInitiated??!1,t.onlyForPlaybackId=e.onlyForPlaybackId??new Uint8Array,t}};var a=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function l(e){return null!=e}},15127:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context_MetadataEntry=t.Context=t.protobufPackage=void 0;const i=o(n(33892)),r=n(11416),a=n(3669);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=i.default.Writer.create()){for(const t of e.pages)r.ContextPage.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.Context_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&a.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let s=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:l.pages.push(r.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoading=o.bool();break;case 6:l.restrictions=a.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>r.ContextPage.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:s(e.uri)?String(e.uri):"",url:s(e.url)?String(e.url):"",isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),restrictions:s(e.restrictions)?a.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?r.ContextPage.toJSON(e):void 0)):t.pages=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.url&&(t.url=e.url),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=e.restrictions?a.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>r.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?a.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},11416:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPage_MetadataEntry=t.ContextPage=t.protobufPackage=void 0;const i=o(n(33892)),r=n(76498);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=i.default.Writer.create()){for(const t of e.tracks)r.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.tracks.push(r.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoading=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.ContextTrack.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:a(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:a(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.ContextTrack.toJSON(e):void 0)):t.tracks=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),void 0!==e.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:a(e.key)?String(e.key):"",value:a(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},78418:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerError_DataEntry=t.ContextPlayerError=t.contextPlayerError_ErrorCodeToJSON=t.contextPlayerError_ErrorCodeFromJSON=t.ContextPlayerError_ErrorCode=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"SUCCESS":return r.SUCCESS;case 1:case"PLAYBACK_STUCK":return r.PLAYBACK_STUCK;case 2:case"PLAYBACK_ERROR":return r.PLAYBACK_ERROR;case 3:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;case 4:case"PLAY_RESTRICTED":return r.PLAY_RESTRICTED;case 5:case"STOP_RESTRICTED":return r.STOP_RESTRICTED;case 6:case"UPDATE_RESTRICTED":return r.UPDATE_RESTRICTED;case 7:case"PAUSE_RESTRICTED":return r.PAUSE_RESTRICTED;case 8:case"RESUME_RESTRICTED":return r.RESUME_RESTRICTED;case 9:case"SKIP_TO_PREV_RESTRICTED":return r.SKIP_TO_PREV_RESTRICTED;case 10:case"SKIP_TO_NEXT_RESTRICTED":return r.SKIP_TO_NEXT_RESTRICTED;case 11:case"SKIP_TO_NON_EXISTENT_TRACK":return r.SKIP_TO_NON_EXISTENT_TRACK;case 12:case"SEEK_TO_RESTRICTED":return r.SEEK_TO_RESTRICTED;case 13:case"TOGGLE_REPEAT_CONTEXT_RESTRICTED":return r.TOGGLE_REPEAT_CONTEXT_RESTRICTED;case 14:case"TOGGLE_REPEAT_TRACK_RESTRICTED":return r.TOGGLE_REPEAT_TRACK_RESTRICTED;case 15:case"SET_OPTIONS_RESTRICTED":return r.SET_OPTIONS_RESTRICTED;case 16:case"TOGGLE_SHUFFLE_RESTRICTED":return r.TOGGLE_SHUFFLE_RESTRICTED;case 17:case"SET_QUEUE_RESTRICTED":return r.SET_QUEUE_RESTRICTED;case 18:case"INTERRUPT_PLAYBACK_RESTRICTED":return r.INTERRUPT_PLAYBACK_RESTRICTED;case 19:case"ONE_TRACK_UNPLAYABLE":return r.ONE_TRACK_UNPLAYABLE;case 20:case"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED":return r.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED;case 21:case"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED":return r.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED;case 22:case"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED":return r.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED;case 23:case"QUEUE_REVISION_MISMATCH":return r.QUEUE_REVISION_MISMATCH;case 24:case"VIDEO_PLAYBACK_ERROR":return r.VIDEO_PLAYBACK_ERROR;case 25:case"VIDEO_GEOGRAPHICALLY_RESTRICTED":return r.VIDEO_GEOGRAPHICALLY_RESTRICTED;case 26:case"VIDEO_UNSUPPORTED_PLATFORM_VERSION":return r.VIDEO_UNSUPPORTED_PLATFORM_VERSION;case 27:case"VIDEO_UNSUPPORTED_CLIENT_VERSION":return r.VIDEO_UNSUPPORTED_CLIENT_VERSION;case 28:case"VIDEO_UNSUPPORTED_KEY_SYSTEM":return r.VIDEO_UNSUPPORTED_KEY_SYSTEM;case 29:case"VIDEO_MANIFEST_DELETED":return r.VIDEO_MANIFEST_DELETED;case 30:case"VIDEO_COUNTRY_RESTRICTED":return r.VIDEO_COUNTRY_RESTRICTED;case 31:case"VIDEO_UNAVAILABLE":return r.VIDEO_UNAVAILABLE;case 32:case"VIDEO_CATALOGUE_RESTRICTED":return r.VIDEO_CATALOGUE_RESTRICTED;case 33:case"INVALID":return r.INVALID;case 34:case"TIMEOUT":return r.TIMEOUT;case 35:case"PLAYBACK_REPORTING_ERROR":return r.PLAYBACK_REPORTING_ERROR;case 36:case"UNKNOWN":return r.UNKNOWN;case 37:case"ADD_TO_QUEUE_RESTRICTED":return r.ADD_TO_QUEUE_RESTRICTED;case 38:case"PICK_AND_SHUFFLE_CAPPED":return r.PICK_AND_SHUFFLE_CAPPED;case 39:case"PICK_AND_SHUFFLE_CONNECT_RESTRICTED":return r.PICK_AND_SHUFFLE_CONNECT_RESTRICTED;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.SUCCESS:return"SUCCESS";case r.PLAYBACK_STUCK:return"PLAYBACK_STUCK";case r.PLAYBACK_ERROR:return"PLAYBACK_ERROR";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.PLAY_RESTRICTED:return"PLAY_RESTRICTED";case r.STOP_RESTRICTED:return"STOP_RESTRICTED";case r.UPDATE_RESTRICTED:return"UPDATE_RESTRICTED";case r.PAUSE_RESTRICTED:return"PAUSE_RESTRICTED";case r.RESUME_RESTRICTED:return"RESUME_RESTRICTED";case r.SKIP_TO_PREV_RESTRICTED:return"SKIP_TO_PREV_RESTRICTED";case r.SKIP_TO_NEXT_RESTRICTED:return"SKIP_TO_NEXT_RESTRICTED";case r.SKIP_TO_NON_EXISTENT_TRACK:return"SKIP_TO_NON_EXISTENT_TRACK";case r.SEEK_TO_RESTRICTED:return"SEEK_TO_RESTRICTED";case r.TOGGLE_REPEAT_CONTEXT_RESTRICTED:return"TOGGLE_REPEAT_CONTEXT_RESTRICTED";case r.TOGGLE_REPEAT_TRACK_RESTRICTED:return"TOGGLE_REPEAT_TRACK_RESTRICTED";case r.SET_OPTIONS_RESTRICTED:return"SET_OPTIONS_RESTRICTED";case r.TOGGLE_SHUFFLE_RESTRICTED:return"TOGGLE_SHUFFLE_RESTRICTED";case r.SET_QUEUE_RESTRICTED:return"SET_QUEUE_RESTRICTED";case r.INTERRUPT_PLAYBACK_RESTRICTED:return"INTERRUPT_PLAYBACK_RESTRICTED";case r.ONE_TRACK_UNPLAYABLE:return"ONE_TRACK_UNPLAYABLE";case r.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED:return"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED";case r.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED:return"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED";case r.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED:return"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED";case r.QUEUE_REVISION_MISMATCH:return"QUEUE_REVISION_MISMATCH";case r.VIDEO_PLAYBACK_ERROR:return"VIDEO_PLAYBACK_ERROR";case r.VIDEO_GEOGRAPHICALLY_RESTRICTED:return"VIDEO_GEOGRAPHICALLY_RESTRICTED";case r.VIDEO_UNSUPPORTED_PLATFORM_VERSION:return"VIDEO_UNSUPPORTED_PLATFORM_VERSION";case r.VIDEO_UNSUPPORTED_CLIENT_VERSION:return"VIDEO_UNSUPPORTED_CLIENT_VERSION";case r.VIDEO_UNSUPPORTED_KEY_SYSTEM:return"VIDEO_UNSUPPORTED_KEY_SYSTEM";case r.VIDEO_MANIFEST_DELETED:return"VIDEO_MANIFEST_DELETED";case r.VIDEO_COUNTRY_RESTRICTED:return"VIDEO_COUNTRY_RESTRICTED";case r.VIDEO_UNAVAILABLE:return"VIDEO_UNAVAILABLE";case r.VIDEO_CATALOGUE_RESTRICTED:return"VIDEO_CATALOGUE_RESTRICTED";case r.INVALID:return"INVALID";case r.TIMEOUT:return"TIMEOUT";case r.PLAYBACK_REPORTING_ERROR:return"PLAYBACK_REPORTING_ERROR";case r.UNKNOWN:return"UNKNOWN";case r.ADD_TO_QUEUE_RESTRICTED:return"ADD_TO_QUEUE_RESTRICTED";case r.PICK_AND_SHUFFLE_CAPPED:return"PICK_AND_SHUFFLE_CAPPED";case r.PICK_AND_SHUFFLE_CONNECT_RESTRICTED:return"PICK_AND_SHUFFLE_CONNECT_RESTRICTED";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.SUCCESS=0]="SUCCESS",e[e.PLAYBACK_STUCK=1]="PLAYBACK_STUCK",e[e.PLAYBACK_ERROR=2]="PLAYBACK_ERROR",e[e.LICENSE_CHANGE=3]="LICENSE_CHANGE",e[e.PLAY_RESTRICTED=4]="PLAY_RESTRICTED",e[e.STOP_RESTRICTED=5]="STOP_RESTRICTED",e[e.UPDATE_RESTRICTED=6]="UPDATE_RESTRICTED",e[e.PAUSE_RESTRICTED=7]="PAUSE_RESTRICTED",e[e.RESUME_RESTRICTED=8]="RESUME_RESTRICTED",e[e.SKIP_TO_PREV_RESTRICTED=9]="SKIP_TO_PREV_RESTRICTED",e[e.SKIP_TO_NEXT_RESTRICTED=10]="SKIP_TO_NEXT_RESTRICTED",e[e.SKIP_TO_NON_EXISTENT_TRACK=11]="SKIP_TO_NON_EXISTENT_TRACK",e[e.SEEK_TO_RESTRICTED=12]="SEEK_TO_RESTRICTED",e[e.TOGGLE_REPEAT_CONTEXT_RESTRICTED=13]="TOGGLE_REPEAT_CONTEXT_RESTRICTED",e[e.TOGGLE_REPEAT_TRACK_RESTRICTED=14]="TOGGLE_REPEAT_TRACK_RESTRICTED",e[e.SET_OPTIONS_RESTRICTED=15]="SET_OPTIONS_RESTRICTED",e[e.TOGGLE_SHUFFLE_RESTRICTED=16]="TOGGLE_SHUFFLE_RESTRICTED",e[e.SET_QUEUE_RESTRICTED=17]="SET_QUEUE_RESTRICTED",e[e.INTERRUPT_PLAYBACK_RESTRICTED=18]="INTERRUPT_PLAYBACK_RESTRICTED",e[e.ONE_TRACK_UNPLAYABLE=19]="ONE_TRACK_UNPLAYABLE",e[e.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED=20]="ONE_TRACK_UNPLAYABLE_AUTO_STOPPED",e[e.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED=21]="ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED",e[e.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED=22]="SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED",e[e.QUEUE_REVISION_MISMATCH=23]="QUEUE_REVISION_MISMATCH",e[e.VIDEO_PLAYBACK_ERROR=24]="VIDEO_PLAYBACK_ERROR",e[e.VIDEO_GEOGRAPHICALLY_RESTRICTED=25]="VIDEO_GEOGRAPHICALLY_RESTRICTED",e[e.VIDEO_UNSUPPORTED_PLATFORM_VERSION=26]="VIDEO_UNSUPPORTED_PLATFORM_VERSION",e[e.VIDEO_UNSUPPORTED_CLIENT_VERSION=27]="VIDEO_UNSUPPORTED_CLIENT_VERSION",e[e.VIDEO_UNSUPPORTED_KEY_SYSTEM=28]="VIDEO_UNSUPPORTED_KEY_SYSTEM",e[e.VIDEO_MANIFEST_DELETED=29]="VIDEO_MANIFEST_DELETED",e[e.VIDEO_COUNTRY_RESTRICTED=30]="VIDEO_COUNTRY_RESTRICTED",e[e.VIDEO_UNAVAILABLE=31]="VIDEO_UNAVAILABLE",e[e.VIDEO_CATALOGUE_RESTRICTED=32]="VIDEO_CATALOGUE_RESTRICTED",e[e.INVALID=33]="INVALID",e[e.TIMEOUT=34]="TIMEOUT",e[e.PLAYBACK_REPORTING_ERROR=35]="PLAYBACK_REPORTING_ERROR",e[e.UNKNOWN=36]="UNKNOWN",e[e.ADD_TO_QUEUE_RESTRICTED=37]="ADD_TO_QUEUE_RESTRICTED",e[e.PICK_AND_SHUFFLE_CAPPED=38]="PICK_AND_SHUFFLE_CAPPED",e[e.PICK_AND_SHUFFLE_CONNECT_RESTRICTED=39]="PICK_AND_SHUFFLE_CONNECT_RESTRICTED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.ContextPlayerError_ErrorCode||(t.ContextPlayerError_ErrorCode={})),t.contextPlayerError_ErrorCodeFromJSON=a,t.contextPlayerError_ErrorCodeToJSON=s,t.ContextPlayerError={encode:(e,n=i.default.Writer.create())=>(0!==e.code&&n.uint32(8).int32(e.code),""!==e.message&&n.uint32(18).string(e.message),Object.entries(e.data).forEach((([e,o])=>{t.ContextPlayerError_DataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={code:0,message:"",data:{}};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.code=o.int32();break;case 2:a.message=o.string();break;case 3:const n=t.ContextPlayerError_DataEntry.decode(o,o.uint32());void 0!==n.value&&(a.data[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{code:l(e.code)?a(e.code):0,message:l(e.message)?String(e.message):"",data:(t=e.data,"object"==typeof t&&null!==t?Object.entries(e.data).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.code&&(t.code=s(e.code)),void 0!==e.message&&(t.message=e.message),t.data={},e.data&&Object.entries(e.data).forEach((([e,n])=>{t.data[e]=n})),t},fromPartial(e){const t={code:0,message:"",data:{}};return t.code=e.code??0,t.message=e.message??"",t.data=Object.entries(e.data??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextPlayerError_DataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:l(e.key)?String(e.key):"",value:l(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},49726:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerOptionOverrides=t.ContextPlayerOptions=t.protobufPackage=void 0;const i=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=i.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),!0===e.repeatingContext&&t.uint32(16).bool(e.repeatingContext),!0===e.repeatingTrack&&t.uint32(24).bool(e.repeatingTrack),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.shufflingContext=n.bool();break;case 2:r.repeatingContext=n.bool();break;case 3:r.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({shufflingContext:!!a(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!a(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!a(e.repeatingTrack)&&Boolean(e.repeatingTrack)}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),t},fromPartial(e){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=i.default.Writer.create())=>(void 0!==e.shufflingContext&&r.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&r.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&r.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.shufflingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 2:a.repeatingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 3:a.repeatingTrack=r.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({shufflingContext:a(e.shufflingContext)?r.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:a(e.repeatingContext)?r.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:a(e.repeatingTrack)?r.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?r.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?r.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?r.OptionalBoolean.toJSON(e.repeatingTrack):void 0),t},fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?r.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?r.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?r.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}}},82864:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerState_PageMetadataEntry=t.ContextPlayerState_ContextMetadataEntry=t.ContextPlayerState=t.PlaybackQuality=t.ContextIndex=t.playbackQuality_HiFiStatusToJSON=t.playbackQuality_HiFiStatusFromJSON=t.PlaybackQuality_HiFiStatus=t.playbackQuality_BitrateStrategyToJSON=t.playbackQuality_BitrateStrategyFromJSON=t.PlaybackQuality_BitrateStrategy=t.playbackQuality_BitrateLevelToJSON=t.playbackQuality_BitrateLevelFromJSON=t.PlaybackQuality_BitrateLevel=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(49726),s=n(1745),l=n(12433),c=n(12489),u=n(29719),d=n(3669);var p,f,h;function m(e){switch(e){case 0:case"UNKNOWN":return p.UNKNOWN;case 1:case"LOW":return p.LOW;case 2:case"NORMAL":return p.NORMAL;case 3:case"HIGH":return p.HIGH;case 4:case"VERY_HIGH":return p.VERY_HIGH;case 5:case"HIFI":return p.HIFI;default:return p.UNRECOGNIZED}}function g(e){switch(e){case p.UNKNOWN:return"UNKNOWN";case p.LOW:return"LOW";case p.NORMAL:return"NORMAL";case p.HIGH:return"HIGH";case p.VERY_HIGH:return"VERY_HIGH";case p.HIFI:return"HIFI";case p.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function v(e){switch(e){case 0:case"UNKNOWN_STRATEGY":return f.UNKNOWN_STRATEGY;case 1:case"BEST_MATCHING":return f.BEST_MATCHING;case 2:case"BACKEND_ADVISED":return f.BACKEND_ADVISED;case 3:case"OFFLINED_FILE":return f.OFFLINED_FILE;case 4:case"CACHED_FILE":return f.CACHED_FILE;case 5:case"LOCAL_FILE":return f.LOCAL_FILE;default:return f.UNRECOGNIZED}}function y(e){switch(e){case f.UNKNOWN_STRATEGY:return"UNKNOWN_STRATEGY";case f.BEST_MATCHING:return"BEST_MATCHING";case f.BACKEND_ADVISED:return"BACKEND_ADVISED";case f.OFFLINED_FILE:return"OFFLINED_FILE";case f.CACHED_FILE:return"CACHED_FILE";case f.LOCAL_FILE:return"LOCAL_FILE";case f.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function _(e){switch(e){case 0:case"NONE":return h.NONE;case 1:case"OFF":return h.OFF;case 2:case"ON":return h.ON;default:return h.UNRECOGNIZED}}function b(e){switch(e){case h.NONE:return"NONE";case h.OFF:return"OFF";case h.ON:return"ON";case h.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function S(){return{timestamp:"0",contextUri:"",contextUrl:"",contextRestrictions:void 0,playOrigin:void 0,index:void 0,track:void 0,playbackId:new Uint8Array,playbackQuality:void 0,playbackSpeed:void 0,positionAsOfTimestamp:void 0,duration:void 0,isPlaying:!1,isPaused:!1,isBuffering:!1,isSystemInitiated:!1,options:void 0,restrictions:void 0,suppressions:[],prevTracks:[],nextTracks:[],contextMetadata:{},pageMetadata:{},sessionId:"",queueRevision:"0",audioStream:0}}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.LOW=1]="LOW",e[e.NORMAL=2]="NORMAL",e[e.HIGH=3]="HIGH",e[e.VERY_HIGH=4]="VERY_HIGH",e[e.HIFI=5]="HIFI",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(p=t.PlaybackQuality_BitrateLevel||(t.PlaybackQuality_BitrateLevel={})),t.playbackQuality_BitrateLevelFromJSON=m,t.playbackQuality_BitrateLevelToJSON=g,function(e){e[e.UNKNOWN_STRATEGY=0]="UNKNOWN_STRATEGY",e[e.BEST_MATCHING=1]="BEST_MATCHING",e[e.BACKEND_ADVISED=2]="BACKEND_ADVISED",e[e.OFFLINED_FILE=3]="OFFLINED_FILE",e[e.CACHED_FILE=4]="CACHED_FILE",e[e.LOCAL_FILE=5]="LOCAL_FILE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.PlaybackQuality_BitrateStrategy||(t.PlaybackQuality_BitrateStrategy={})),t.playbackQuality_BitrateStrategyFromJSON=v,t.playbackQuality_BitrateStrategyToJSON=y,function(e){e[e.NONE=0]="NONE",e[e.OFF=1]="OFF",e[e.ON=2]="ON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(h=t.PlaybackQuality_HiFiStatus||(t.PlaybackQuality_HiFiStatus={})),t.playbackQuality_HiFiStatusFromJSON=_,t.playbackQuality_HiFiStatusToJSON=b,t.ContextIndex={encode:(e,t=r.default.Writer.create())=>("0"!==e.page&&t.uint32(8).uint64(e.page),"0"!==e.track&&t.uint32(16).uint64(e.track),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={page:"0",track:"0"};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.page=T(n.uint64());break;case 2:i.track=T(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({page:O(e.page)?String(e.page):"0",track:O(e.track)?String(e.track):"0"}),toJSON(e){const t={};return void 0!==e.page&&(t.page=e.page),void 0!==e.track&&(t.track=e.track),t},fromPartial(e){const t={page:"0",track:"0"};return t.page=e.page??"0",t.track=e.track??"0",t}},t.PlaybackQuality={encode:(e,t=r.default.Writer.create())=>(0!==e.bitrateLevel&&t.uint32(8).int32(e.bitrateLevel),0!==e.strategy&&t.uint32(16).int32(e.strategy),0!==e.targetBitrateLevel&&t.uint32(24).int32(e.targetBitrateLevel),!0===e.targetBitrateAvailable&&t.uint32(32).bool(e.targetBitrateAvailable),0!==e.hifiStatus&&t.uint32(40).int32(e.hifiStatus),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={bitrateLevel:0,strategy:0,targetBitrateLevel:0,targetBitrateAvailable:!1,hifiStatus:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.bitrateLevel=n.int32();break;case 2:i.strategy=n.int32();break;case 3:i.targetBitrateLevel=n.int32();break;case 4:i.targetBitrateAvailable=n.bool();break;case 5:i.hifiStatus=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({bitrateLevel:O(e.bitrateLevel)?m(e.bitrateLevel):0,strategy:O(e.strategy)?v(e.strategy):0,targetBitrateLevel:O(e.targetBitrateLevel)?m(e.targetBitrateLevel):0,targetBitrateAvailable:!!O(e.targetBitrateAvailable)&&Boolean(e.targetBitrateAvailable),hifiStatus:O(e.hifiStatus)?_(e.hifiStatus):0}),toJSON(e){const t={};return void 0!==e.bitrateLevel&&(t.bitrateLevel=g(e.bitrateLevel)),void 0!==e.strategy&&(t.strategy=y(e.strategy)),void 0!==e.targetBitrateLevel&&(t.targetBitrateLevel=g(e.targetBitrateLevel)),void 0!==e.targetBitrateAvailable&&(t.targetBitrateAvailable=e.targetBitrateAvailable),void 0!==e.hifiStatus&&(t.hifiStatus=b(e.hifiStatus)),t},fromPartial(e){const t={bitrateLevel:0,strategy:0,targetBitrateLevel:0,targetBitrateAvailable:!1,hifiStatus:0};return t.bitrateLevel=e.bitrateLevel??0,t.strategy=e.strategy??0,t.targetBitrateLevel=e.targetBitrateLevel??0,t.targetBitrateAvailable=e.targetBitrateAvailable??!1,t.hifiStatus=e.hifiStatus??0,t}},t.ContextPlayerState={encode(e,n=r.default.Writer.create()){"0"!==e.timestamp&&n.uint32(8).uint64(e.timestamp),""!==e.contextUri&&n.uint32(18).string(e.contextUri),""!==e.contextUrl&&n.uint32(26).string(e.contextUrl),void 0!==e.contextRestrictions&&d.Restrictions.encode(e.contextRestrictions,n.uint32(34).fork()).ldelim(),void 0!==e.playOrigin&&l.PlayOrigin.encode(e.playOrigin,n.uint32(42).fork()).ldelim(),void 0!==e.index&&t.ContextIndex.encode(e.index,n.uint32(50).fork()).ldelim(),void 0!==e.track&&u.ProvidedTrack.encode(e.track,n.uint32(58).fork()).ldelim(),0!==e.playbackId.length&&n.uint32(66).bytes(e.playbackId),void 0!==e.playbackQuality&&t.PlaybackQuality.encode(e.playbackQuality,n.uint32(74).fork()).ldelim(),void 0!==e.playbackSpeed&&s.OptionalDouble.encode(e.playbackSpeed,n.uint32(82).fork()).ldelim(),void 0!==e.positionAsOfTimestamp&&s.OptionalInt64.encode(e.positionAsOfTimestamp,n.uint32(90).fork()).ldelim(),void 0!==e.duration&&s.OptionalInt64.encode(e.duration,n.uint32(98).fork()).ldelim(),!0===e.isPlaying&&n.uint32(104).bool(e.isPlaying),!0===e.isPaused&&n.uint32(112).bool(e.isPaused),!0===e.isBuffering&&n.uint32(120).bool(e.isBuffering),!0===e.isSystemInitiated&&n.uint32(128).bool(e.isSystemInitiated),void 0!==e.options&&a.ContextPlayerOptions.encode(e.options,n.uint32(138).fork()).ldelim(),void 0!==e.restrictions&&d.Restrictions.encode(e.restrictions,n.uint32(146).fork()).ldelim();for(const t of e.suppressions)n.uint32(154).string(t);for(const t of e.prevTracks)u.ProvidedTrack.encode(t,n.uint32(162).fork()).ldelim();for(const t of e.nextTracks)u.ProvidedTrack.encode(t,n.uint32(170).fork()).ldelim();return Object.entries(e.contextMetadata).forEach((([e,o])=>{t.ContextPlayerState_ContextMetadataEntry.encode({key:e,value:o},n.uint32(178).fork()).ldelim()})),Object.entries(e.pageMetadata).forEach((([e,o])=>{t.ContextPlayerState_PageMetadataEntry.encode({key:e,value:o},n.uint32(186).fork()).ldelim()})),""!==e.sessionId&&n.uint32(194).string(e.sessionId),"0"!==e.queueRevision&&n.uint32(200).uint64(e.queueRevision),0!==e.audioStream&&n.uint32(208).int32(e.audioStream),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const c=S();for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:c.timestamp=T(o.uint64());break;case 2:c.contextUri=o.string();break;case 3:c.contextUrl=o.string();break;case 4:c.contextRestrictions=d.Restrictions.decode(o,o.uint32());break;case 5:c.playOrigin=l.PlayOrigin.decode(o,o.uint32());break;case 6:c.index=t.ContextIndex.decode(o,o.uint32());break;case 7:c.track=u.ProvidedTrack.decode(o,o.uint32());break;case 8:c.playbackId=o.bytes();break;case 9:c.playbackQuality=t.PlaybackQuality.decode(o,o.uint32());break;case 10:c.playbackSpeed=s.OptionalDouble.decode(o,o.uint32());break;case 11:c.positionAsOfTimestamp=s.OptionalInt64.decode(o,o.uint32());break;case 12:c.duration=s.OptionalInt64.decode(o,o.uint32());break;case 13:c.isPlaying=o.bool();break;case 14:c.isPaused=o.bool();break;case 15:c.isBuffering=o.bool();break;case 16:c.isSystemInitiated=o.bool();break;case 17:c.options=a.ContextPlayerOptions.decode(o,o.uint32());break;case 18:c.restrictions=d.Restrictions.decode(o,o.uint32());break;case 19:c.suppressions.push(o.string());break;case 20:c.prevTracks.push(u.ProvidedTrack.decode(o,o.uint32()));break;case 21:c.nextTracks.push(u.ProvidedTrack.decode(o,o.uint32()));break;case 22:const n=t.ContextPlayerState_ContextMetadataEntry.decode(o,o.uint32());void 0!==n.value&&(c.contextMetadata[n.key]=n.value);break;case 23:const i=t.ContextPlayerState_PageMetadataEntry.decode(o,o.uint32());void 0!==i.value&&(c.pageMetadata[i.key]=i.value);break;case 24:c.sessionId=o.string();break;case 25:c.queueRevision=T(o.uint64());break;case 26:c.audioStream=o.int32();break;default:o.skipType(7&e)}}return c},fromJSON:e=>({timestamp:O(e.timestamp)?String(e.timestamp):"0",contextUri:O(e.contextUri)?String(e.contextUri):"",contextUrl:O(e.contextUrl)?String(e.contextUrl):"",contextRestrictions:O(e.contextRestrictions)?d.Restrictions.fromJSON(e.contextRestrictions):void 0,playOrigin:O(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0,index:O(e.index)?t.ContextIndex.fromJSON(e.index):void 0,track:O(e.track)?u.ProvidedTrack.fromJSON(e.track):void 0,playbackId:O(e.playbackId)?A(e.playbackId):new Uint8Array,playbackQuality:O(e.playbackQuality)?t.PlaybackQuality.fromJSON(e.playbackQuality):void 0,playbackSpeed:O(e.playbackSpeed)?s.OptionalDouble.fromJSON(e.playbackSpeed):void 0,positionAsOfTimestamp:O(e.positionAsOfTimestamp)?s.OptionalInt64.fromJSON(e.positionAsOfTimestamp):void 0,duration:O(e.duration)?s.OptionalInt64.fromJSON(e.duration):void 0,isPlaying:!!O(e.isPlaying)&&Boolean(e.isPlaying),isPaused:!!O(e.isPaused)&&Boolean(e.isPaused),isBuffering:!!O(e.isBuffering)&&Boolean(e.isBuffering),isSystemInitiated:!!O(e.isSystemInitiated)&&Boolean(e.isSystemInitiated),options:O(e.options)?a.ContextPlayerOptions.fromJSON(e.options):void 0,restrictions:O(e.restrictions)?d.Restrictions.fromJSON(e.restrictions):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>u.ProvidedTrack.fromJSON(e))):[],nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>u.ProvidedTrack.fromJSON(e))):[],contextMetadata:P(e.contextMetadata)?Object.entries(e.contextMetadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},pageMetadata:P(e.pageMetadata)?Object.entries(e.pageMetadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},sessionId:O(e.sessionId)?String(e.sessionId):"",queueRevision:O(e.queueRevision)?String(e.queueRevision):"0",audioStream:O(e.audioStream)?(0,c.preparePlayOptions_AudioStreamFromJSON)(e.audioStream):0}),toJSON(e){const n={};return void 0!==e.timestamp&&(n.timestamp=e.timestamp),void 0!==e.contextUri&&(n.contextUri=e.contextUri),void 0!==e.contextUrl&&(n.contextUrl=e.contextUrl),void 0!==e.contextRestrictions&&(n.contextRestrictions=e.contextRestrictions?d.Restrictions.toJSON(e.contextRestrictions):void 0),void 0!==e.playOrigin&&(n.playOrigin=e.playOrigin?l.PlayOrigin.toJSON(e.playOrigin):void 0),void 0!==e.index&&(n.index=e.index?t.ContextIndex.toJSON(e.index):void 0),void 0!==e.track&&(n.track=e.track?u.ProvidedTrack.toJSON(e.track):void 0),void 0!==e.playbackId&&(n.playbackId=function(e){if(E.Buffer)return E.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),E.btoa(t.join(""))}}(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.playbackQuality&&(n.playbackQuality=e.playbackQuality?t.PlaybackQuality.toJSON(e.playbackQuality):void 0),void 0!==e.playbackSpeed&&(n.playbackSpeed=e.playbackSpeed?s.OptionalDouble.toJSON(e.playbackSpeed):void 0),void 0!==e.positionAsOfTimestamp&&(n.positionAsOfTimestamp=e.positionAsOfTimestamp?s.OptionalInt64.toJSON(e.positionAsOfTimestamp):void 0),void 0!==e.duration&&(n.duration=e.duration?s.OptionalInt64.toJSON(e.duration):void 0),void 0!==e.isPlaying&&(n.isPlaying=e.isPlaying),void 0!==e.isPaused&&(n.isPaused=e.isPaused),void 0!==e.isBuffering&&(n.isBuffering=e.isBuffering),void 0!==e.isSystemInitiated&&(n.isSystemInitiated=e.isSystemInitiated),void 0!==e.options&&(n.options=e.options?a.ContextPlayerOptions.toJSON(e.options):void 0),void 0!==e.restrictions&&(n.restrictions=e.restrictions?d.Restrictions.toJSON(e.restrictions):void 0),e.suppressions?n.suppressions=e.suppressions.map((e=>e)):n.suppressions=[],e.prevTracks?n.prevTracks=e.prevTracks.map((e=>e?u.ProvidedTrack.toJSON(e):void 0)):n.prevTracks=[],e.nextTracks?n.nextTracks=e.nextTracks.map((e=>e?u.ProvidedTrack.toJSON(e):void 0)):n.nextTracks=[],n.contextMetadata={},e.contextMetadata&&Object.entries(e.contextMetadata).forEach((([e,t])=>{n.contextMetadata[e]=t})),n.pageMetadata={},e.pageMetadata&&Object.entries(e.pageMetadata).forEach((([e,t])=>{n.pageMetadata[e]=t})),void 0!==e.sessionId&&(n.sessionId=e.sessionId),void 0!==e.queueRevision&&(n.queueRevision=e.queueRevision),void 0!==e.audioStream&&(n.audioStream=(0,c.preparePlayOptions_AudioStreamToJSON)(e.audioStream)),n},fromPartial(e){const n=S();return n.timestamp=e.timestamp??"0",n.contextUri=e.contextUri??"",n.contextUrl=e.contextUrl??"",n.contextRestrictions=void 0!==e.contextRestrictions&&null!==e.contextRestrictions?d.Restrictions.fromPartial(e.contextRestrictions):void 0,n.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,n.index=void 0!==e.index&&null!==e.index?t.ContextIndex.fromPartial(e.index):void 0,n.track=void 0!==e.track&&null!==e.track?u.ProvidedTrack.fromPartial(e.track):void 0,n.playbackId=e.playbackId??new Uint8Array,n.playbackQuality=void 0!==e.playbackQuality&&null!==e.playbackQuality?t.PlaybackQuality.fromPartial(e.playbackQuality):void 0,n.playbackSpeed=void 0!==e.playbackSpeed&&null!==e.playbackSpeed?s.OptionalDouble.fromPartial(e.playbackSpeed):void 0,n.positionAsOfTimestamp=void 0!==e.positionAsOfTimestamp&&null!==e.positionAsOfTimestamp?s.OptionalInt64.fromPartial(e.positionAsOfTimestamp):void 0,n.duration=void 0!==e.duration&&null!==e.duration?s.OptionalInt64.fromPartial(e.duration):void 0,n.isPlaying=e.isPlaying??!1,n.isPaused=e.isPaused??!1,n.isBuffering=e.isBuffering??!1,n.isSystemInitiated=e.isSystemInitiated??!1,n.options=void 0!==e.options&&null!==e.options?a.ContextPlayerOptions.fromPartial(e.options):void 0,n.restrictions=void 0!==e.restrictions&&null!==e.restrictions?d.Restrictions.fromPartial(e.restrictions):void 0,n.suppressions=e.suppressions?.map((e=>e))||[],n.prevTracks=e.prevTracks?.map((e=>u.ProvidedTrack.fromPartial(e)))||[],n.nextTracks=e.nextTracks?.map((e=>u.ProvidedTrack.fromPartial(e)))||[],n.contextMetadata=Object.entries(e.contextMetadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.pageMetadata=Object.entries(e.pageMetadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.sessionId=e.sessionId??"",n.queueRevision=e.queueRevision??"0",n.audioStream=e.audioStream??0,n}},t.ContextPlayerState_ContextMetadataEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:O(e.key)?String(e.key):"",value:O(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.ContextPlayerState_PageMetadataEntry={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:O(e.key)?String(e.key):"",value:O(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var E=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function A(e){if(E.Buffer)return Uint8Array.from(E.Buffer.from(e,"base64"));{const t=E.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function T(e){return e.toString()}function P(e){return"object"==typeof e&&null!==e}function O(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},76498:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTrack_MetadataEntry=t.ContextTrack=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=i.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),""!==e.uid&&n.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{uri:r(e.uri)?String(e.uri):"",uid:r(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.uid&&(t.uid=e.uid),t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),t},fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:r(e.key)?String(e.key):"",value:r(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},24901:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteSessionResponse=t.DeleteSessionRequest=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.DeleteSessionRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.sessionId=n.string();else n.skipType(7&e)}return r},fromJSON(e){return{sessionId:(t=e.sessionId,null!=t?String(e.sessionId):"")};var t},toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),t},fromPartial(e){const t={sessionId:""};return t.sessionId=e.sessionId??"",t}},t.DeleteSessionResponse={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},26932:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetErrorRequest=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.GetErrorRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},26894:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetPlayHistoryResponse=t.GetPlayHistoryRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(76498);t.protobufPackage="spotify.player.esperanto.proto",t.GetPlayHistoryRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetPlayHistoryResponse={encode(e,t=i.default.Writer.create()){for(const n of e.tracks)r.ContextTrack.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={tracks:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.tracks.push(r.ContextTrack.decode(n,n.uint32()));else n.skipType(7&e)}return a},fromJSON:e=>({tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.ContextTrack.fromJSON(e))):[]}),toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.ContextTrack.toJSON(e):void 0)):t.tracks=[],t},fromPartial(e){const t={tracks:[]};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t}}},16838:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetPositionStateResponse=t.GetPositionStateRequest=t.getPositionStateResponse_ErrorToJSON=t.getPositionStateResponse_ErrorFromJSON=t.GetPositionStateResponse_Error=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"OK":return a.OK;case 1:case"NOT_FOUND":return a.NOT_FOUND;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.OK:return"OK";case a.NOT_FOUND:return"NOT_FOUND";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(e){return e.toString()}function u(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.GetPositionStateResponse_Error||(t.GetPositionStateResponse_Error={})),t.getPositionStateResponse_ErrorFromJSON=s,t.getPositionStateResponse_ErrorToJSON=l,t.GetPositionStateRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetPositionStateResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.error&&t.uint32(8).int32(e.error),"0"!==e.timestamp&&t.uint32(16).uint64(e.timestamp),"0"!==e.position&&t.uint32(24).uint64(e.position),0!==e.playbackSpeed&&t.uint32(33).double(e.playbackSpeed),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={error:0,timestamp:"0",position:"0",playbackSpeed:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.error=n.int32();break;case 2:i.timestamp=c(n.uint64());break;case 3:i.position=c(n.uint64());break;case 4:i.playbackSpeed=n.double();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({error:u(e.error)?s(e.error):0,timestamp:u(e.timestamp)?String(e.timestamp):"0",position:u(e.position)?String(e.position):"0",playbackSpeed:u(e.playbackSpeed)?Number(e.playbackSpeed):0}),toJSON(e){const t={};return void 0!==e.error&&(t.error=l(e.error)),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.position&&(t.position=e.position),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},fromPartial(e){const t={error:0,timestamp:"0",position:"0",playbackSpeed:0};return t.error=e.error??0,t.timestamp=e.timestamp??"0",t.position=e.position??"0",t.playbackSpeed=e.playbackSpeed??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},2387:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetQueueRequest=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.GetQueueRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},16207:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetStateRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.GetStateRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.prevTracksCap&&r.OptionalInt64.encode(e.prevTracksCap,t.uint32(10).fork()).ldelim(),void 0!==e.nextTracksCap&&r.OptionalInt64.encode(e.nextTracksCap,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={prevTracksCap:void 0,nextTracksCap:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.prevTracksCap=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.nextTracksCap=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({prevTracksCap:a(e.prevTracksCap)?r.OptionalInt64.fromJSON(e.prevTracksCap):void 0,nextTracksCap:a(e.nextTracksCap)?r.OptionalInt64.fromJSON(e.nextTracksCap):void 0}),toJSON(e){const t={};return void 0!==e.prevTracksCap&&(t.prevTracksCap=e.prevTracksCap?r.OptionalInt64.toJSON(e.prevTracksCap):void 0),void 0!==e.nextTracksCap&&(t.nextTracksCap=e.nextTracksCap?r.OptionalInt64.toJSON(e.nextTracksCap):void 0),t},fromPartial(e){const t={prevTracksCap:void 0,nextTracksCap:void 0};return t.prevTracksCap=void 0!==e.prevTracksCap&&null!==e.prevTracksCap?r.OptionalInt64.fromPartial(e.prevTracksCap):void 0,t.nextTracksCap=void 0!==e.nextTracksCap&&null!==e.nextTracksCap?r.OptionalInt64.fromPartial(e.nextTracksCap):void 0,t}}},1105:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingParams=t.protobufPackage=void 0;const i=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=i.default.Writer.create()){void 0!==e.commandInitiatedTime&&r.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&r.OptionalInt64.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.commandInitiatedTime=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.commandReceivedTime=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.pageInstanceIds.push(n.string());break;case 4:a.interactionIds.push(n.string());break;case 5:a.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({commandInitiatedTime:a(e.commandInitiatedTime)?r.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:a(e.commandReceivedTime)?r.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?r.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?r.OptionalInt64.toJSON(e.commandReceivedTime):void 0),e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),t},fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?r.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?r.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}}},1745:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBoolean=t.OptionalDouble=t.OptionalInt64=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.int64().toString();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?String(e.value):"0"}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.double();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!a(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},91481:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PauseRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105),s=n(1674);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PauseRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.pauseOrigin&&s.PauseResumeOrigin.encode(e.pauseOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,loggingParams:void 0,pauseOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 3:l.pauseOrigin=s.PauseResumeOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,pauseOrigin:l(e.pauseOrigin)?s.PauseResumeOrigin.fromJSON(e.pauseOrigin):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.pauseOrigin&&(t.pauseOrigin=e.pauseOrigin?s.PauseResumeOrigin.toJSON(e.pauseOrigin):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0,pauseOrigin:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.pauseOrigin=void 0!==e.pauseOrigin&&null!==e.pauseOrigin?s.PauseResumeOrigin.fromPartial(e.pauseOrigin):void 0,t}}},1674:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PauseResumeOrigin=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.PauseResumeOrigin={encode:(e,t=i.default.Writer.create())=>(""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.featureIdentifier=n.string();else n.skipType(7&e)}return r},fromJSON(e){return{featureIdentifier:(t=e.featureIdentifier,null!=t?String(e.featureIdentifier):"")};var t},toJSON(e){const t={};return void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),t},fromPartial(e){const t={featureIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t}}},5242:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayPreparedRequest=t.PlayRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105),s=n(91011),l=n(95073);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.preparePlayRequest&&l.PreparePlayRequest.encode(e.preparePlayRequest,t.uint32(10).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(18).fork()).ldelim(),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const c={preparePlayRequest:void 0,playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:c.preparePlayRequest=l.PreparePlayRequest.decode(n,n.uint32());break;case 2:c.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 3:c.options=r.CommandOptions.decode(n,n.uint32());break;case 4:c.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return c},fromJSON:e=>({preparePlayRequest:c(e.preparePlayRequest)?l.PreparePlayRequest.fromJSON(e.preparePlayRequest):void 0,playOptions:c(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,options:c(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.preparePlayRequest&&(t.preparePlayRequest=e.preparePlayRequest?l.PreparePlayRequest.toJSON(e.preparePlayRequest):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={preparePlayRequest:void 0,playOptions:void 0,options:void 0,loggingParams:void 0};return t.preparePlayRequest=void 0!==e.preparePlayRequest&&null!==e.preparePlayRequest?l.PreparePlayRequest.fromPartial(e.preparePlayRequest):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.PlayPreparedRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(18).fork()).ldelim(),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.sessionId=n.string();break;case 2:l.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 3:l.options=r.CommandOptions.decode(n,n.uint32());break;case 4:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",playOptions:c(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,options:c(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},91011:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOptions=t.playOptions_TriggerToJSON=t.playOptions_TriggerFromJSON=t.PlayOptions_Trigger=t.playOptions_OperationToJSON=t.playOptions_OperationFromJSON=t.PlayOptions_Operation=t.playOptions_ReasonToJSON=t.playOptions_ReasonFromJSON=t.PlayOptions_Reason=t.protobufPackage=void 0;const i=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"INTERACTIVE":return r.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return r.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.INTERACTIVE:return"INTERACTIVE";case r.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"REPLACE":return a.REPLACE;case 1:case"ENQUEUE":return a.ENQUEUE;case 2:case"PUSH":return a.PUSH;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.REPLACE:return"REPLACE";case a.ENQUEUE:return"ENQUEUE";case a.PUSH:return"PUSH";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"IMMEDIATELY":return s.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return s.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return s.ADVANCED_PAST_CONTEXT;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.IMMEDIATELY:return"IMMEDIATELY";case s.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case s.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=l,t.playOptions_ReasonToJSON=c,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=u,t.playOptions_OperationToJSON=d,function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=p,t.playOptions_TriggerToJSON=f,t.PlayOptions={encode:(e,t=i.default.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.reason=n.int32();break;case 2:r.operation=n.int32();break;case 3:r.trigger=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({reason:h(e.reason)?l(e.reason):0,operation:h(e.operation)?u(e.operation):0,trigger:h(e.trigger)?p(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.operation&&(t.operation=d(e.operation)),void 0!==e.trigger&&(t.trigger=f(e.trigger)),t},fromPartial(e){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}}},12433:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOrigin=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=i.default.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.featureIdentifier=n.string();break;case 2:r.featureVersion=n.string();break;case 3:r.viewUri=n.string();break;case 4:r.externalReferrer=n.string();break;case 5:r.referrerIdentifier=n.string();break;case 6:r.deviceIdentifier=n.string();break;case 7:r.featureClasses.push(n.string());break;case 8:r.restrictionIdentifier=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({featureIdentifier:r(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:r(e.featureVersion)?String(e.featureVersion):"",viewUri:r(e.viewUri)?String(e.viewUri):"",externalReferrer:r(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:r(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:r(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:r(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),void 0!==e.featureVersion&&(t.featureVersion=e.featureVersion),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),void 0!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?t.featureClasses=e.featureClasses.map((e=>e)):t.featureClasses=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}}},95073:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreparePlayRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(15127),a=n(12433),s=n(12489);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PreparePlayRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.context&&r.Context.encode(e.context,t.uint32(10).fork()).ldelim(),void 0!==e.options&&s.PreparePlayOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.playOrigin&&a.PlayOrigin.encode(e.playOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={context:void 0,options:void 0,playOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.context=r.Context.decode(n,n.uint32());break;case 2:l.options=s.PreparePlayOptions.decode(n,n.uint32());break;case 3:l.playOrigin=a.PlayOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({context:l(e.context)?r.Context.fromJSON(e.context):void 0,options:l(e.options)?s.PreparePlayOptions.fromJSON(e.options):void 0,playOrigin:l(e.playOrigin)?a.PlayOrigin.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.context&&(t.context=e.context?r.Context.toJSON(e.context):void 0),void 0!==e.options&&(t.options=e.options?s.PreparePlayOptions.toJSON(e.options):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?a.PlayOrigin.toJSON(e.playOrigin):void 0),t},fromPartial(e){const t={context:void 0,options:void 0,playOrigin:void 0};return t.context=void 0!==e.context&&null!==e.context?r.Context.fromPartial(e.context):void 0,t.options=void 0!==e.options&&null!==e.options?s.PreparePlayOptions.fromPartial(e.options):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?a.PlayOrigin.fromPartial(e.playOrigin):void 0,t}}},12489:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreparePlayOptions_ConfigurationOverrideEntry=t.PreparePlayOptions=t.preparePlayOptions_AudioStreamToJSON=t.preparePlayOptions_AudioStreamFromJSON=t.PreparePlayOptions_AudioStream=t.preparePlayOptions_PrefetchLevelToJSON=t.preparePlayOptions_PrefetchLevelFromJSON=t.PreparePlayOptions_PrefetchLevel=t.protobufPackage=void 0;const i=o(n(33892)),r=n(49726),a=n(1745),s=n(69316);var l,c;function u(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"MEDIA":return l.MEDIA;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.NONE:return"NONE";case l.MEDIA:return"MEDIA";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"DEFAULT":return c.DEFAULT;case 1:case"ALARM":return c.ALARM;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.DEFAULT:return"DEFAULT";case c.ALARM:return"ALARM";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(){return{playbackId:new Uint8Array,alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=u,t.preparePlayOptions_PrefetchLevelToJSON=d,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=p,t.preparePlayOptions_AudioStreamToJSON=f,t.PreparePlayOptions={encode(e,n=i.default.Writer.create()){0!==e.playbackId.length&&n.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&n.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&s.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&a.OptionalInt64.encode(e.seekTo,n.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&n.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&n.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&r.ContextPlayerOptionOverrides.encode(e.playerOptionsOverride,n.uint32(58).fork()).ldelim();for(const t of e.suppressions)n.uint32(66).string(t);return 0!==e.prefetchLevel&&n.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&n.uint32(80).int32(e.audioStream),""!==e.sessionId&&n.uint32(90).string(e.sessionId),""!==e.license&&n.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c=h();for(;o.pos<l;){const e=o.uint32();switch(e>>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=s.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=a.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=r.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.skipType(7&e)}}return c},fromJSON(e){return{playbackId:v(e.playbackId)?g(e.playbackId):new Uint8Array,alwaysPlaySomething:!!v(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:v(e.skipTo)?s.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:v(e.seekTo)?a.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!v(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!v(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:v(e.playerOptionsOverride)?r.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:v(e.prefetchLevel)?u(e.prefetchLevel):0,audioStream:v(e.audioStream)?p(e.audioStream):0,sessionId:v(e.sessionId)?String(e.sessionId):"",license:v(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=function(e){if(m.Buffer)return m.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),m.btoa(t.join(""))}}(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=e.skipTo?s.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?a.OptionalInt64.toJSON(e.seekTo):void 0),void 0!==e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),void 0!==e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=e.playerOptionsOverride?r.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=d(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=f(e.audioStream)),void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.license&&(t.license=e.license),t.configurationOverride={},e.configurationOverride&&Object.entries(e.configurationOverride).forEach((([e,n])=>{t.configurationOverride[e]=n})),t},fromPartial(e){const t=h();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?s.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?a.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?r.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var m=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function g(e){if(m.Buffer)return Uint8Array.from(m.Buffer.from(e,"base64"));{const t=m.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function v(e){return null!=e}},29719:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProvidedTrack=t.protobufPackage=void 0;const i=o(n(33892)),r=n(76498);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ProvidedTrack={encode(e,t=i.default.Writer.create()){void 0!==e.contextTrack&&r.ContextTrack.encode(e.contextTrack,t.uint32(10).fork()).ldelim();for(const n of e.removed)t.uint32(18).string(n);for(const n of e.blocked)t.uint32(26).string(n);return""!==e.provider&&t.uint32(34).string(e.provider),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={contextTrack:void 0,removed:[],blocked:[],provider:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.contextTrack=r.ContextTrack.decode(n,n.uint32());break;case 2:a.removed.push(n.string());break;case 3:a.blocked.push(n.string());break;case 4:a.provider=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({contextTrack:a(e.contextTrack)?r.ContextTrack.fromJSON(e.contextTrack):void 0,removed:Array.isArray(e?.removed)?e.removed.map((e=>String(e))):[],blocked:Array.isArray(e?.blocked)?e.blocked.map((e=>String(e))):[],provider:a(e.provider)?String(e.provider):""}),toJSON(e){const t={};return void 0!==e.contextTrack&&(t.contextTrack=e.contextTrack?r.ContextTrack.toJSON(e.contextTrack):void 0),e.removed?t.removed=e.removed.map((e=>e)):t.removed=[],e.blocked?t.blocked=e.blocked.map((e=>e)):t.blocked=[],void 0!==e.provider&&(t.provider=e.provider),t},fromPartial(e){const t={contextTrack:void 0,removed:[],blocked:[],provider:""};return t.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?r.ContextTrack.fromPartial(e.contextTrack):void 0,t.removed=e.removed?.map((e=>e))||[],t.blocked=e.blocked?.map((e=>e))||[],t.provider=e.provider??"",t}}},63137:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Queue=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(29719);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Queue={encode(e,t=r.default.Writer.create()){"0"!==e.queueRevision&&t.uint32(8).uint64(e.queueRevision),void 0!==e.track&&a.ProvidedTrack.encode(e.track,t.uint32(18).fork()).ldelim();for(const n of e.nextTracks)a.ProvidedTrack.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.prevTracks)a.ProvidedTrack.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={queueRevision:"0",track:void 0,nextTracks:[],prevTracks:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.queueRevision=n.uint64().toString();break;case 2:i.track=a.ProvidedTrack.decode(n,n.uint32());break;case 3:i.nextTracks.push(a.ProvidedTrack.decode(n,n.uint32()));break;case 4:i.prevTracks.push(a.ProvidedTrack.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({queueRevision:s(e.queueRevision)?String(e.queueRevision):"0",track:s(e.track)?a.ProvidedTrack.fromJSON(e.track):void 0,nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>a.ProvidedTrack.fromJSON(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>a.ProvidedTrack.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.queueRevision&&(t.queueRevision=e.queueRevision),void 0!==e.track&&(t.track=e.track?a.ProvidedTrack.toJSON(e.track):void 0),e.nextTracks?t.nextTracks=e.nextTracks.map((e=>e?a.ProvidedTrack.toJSON(e):void 0)):t.nextTracks=[],e.prevTracks?t.prevTracks=e.prevTracks.map((e=>e?a.ProvidedTrack.toJSON(e):void 0)):t.prevTracks=[],t},fromPartial(e){const t={queueRevision:"0",track:void 0,nextTracks:[],prevTracks:[]};return t.queueRevision=e.queueRevision??"0",t.track=void 0!==e.track&&null!==e.track?a.ProvidedTrack.fromPartial(e.track):void 0,t.nextTracks=e.nextTracks?.map((e=>a.ProvidedTrack.fromPartial(e)))||[],t.prevTracks=e.prevTracks?.map((e=>a.ProvidedTrack.fromPartial(e)))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},9354:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseWithReasons=t.responseWithReasons_ErrorToJSON=t.responseWithReasons_ErrorFromJSON=t.ResponseWithReasons_Error=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"OK":return r.OK;case 1:case"FORBIDDEN":return r.FORBIDDEN;case 2:case"NOT_FOUND":return r.NOT_FOUND;case 3:case"CONFLICT":return r.CONFLICT;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.OK:return"OK";case r.FORBIDDEN:return"FORBIDDEN";case r.NOT_FOUND:return"NOT_FOUND";case r.CONFLICT:return"CONFLICT";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.OK=0]="OK",e[e.FORBIDDEN=1]="FORBIDDEN",e[e.NOT_FOUND=2]="NOT_FOUND",e[e.CONFLICT=3]="CONFLICT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.ResponseWithReasons_Error||(t.ResponseWithReasons_Error={})),t.responseWithReasons_ErrorFromJSON=a,t.responseWithReasons_ErrorToJSON=s,t.ResponseWithReasons={encode:(e,t=i.default.Writer.create())=>(0!==e.error&&t.uint32(8).int32(e.error),""!==e.reasons&&t.uint32(18).string(e.reasons),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={error:0,reasons:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.error=n.int32();break;case 2:r.reasons=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({error:l(e.error)?a(e.error):0,reasons:l(e.reasons)?String(e.reasons):""}),toJSON(e){const t={};return void 0!==e.error&&(t.error=s(e.error)),void 0!==e.reasons&&(t.reasons=e.reasons),t},fromPartial(e){const t={error:0,reasons:""};return t.error=e.error??0,t.reasons=e.reasons??"",t}}},3669:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Restrictions=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.Restrictions={encode(e,t=i.default.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.disallowPausingReasons.push(n.string());break;case 2:r.disallowResumingReasons.push(n.string());break;case 3:r.disallowSeekingReasons.push(n.string());break;case 4:r.disallowPeekingPrevReasons.push(n.string());break;case 5:r.disallowPeekingNextReasons.push(n.string());break;case 6:r.disallowSkippingPrevReasons.push(n.string());break;case 7:r.disallowSkippingNextReasons.push(n.string());break;case 8:r.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:r.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:r.disallowTogglingShuffleReasons.push(n.string());break;case 11:r.disallowSetQueueReasons.push(n.string());break;case 12:r.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:r.disallowTransferringPlaybackReasons.push(n.string());break;case 14:r.disallowRemoteControlReasons.push(n.string());break;case 15:r.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:r.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:r.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:r.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:r.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:r.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:r.disallowUpdatingContextReasons.push(n.string());break;case 22:r.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?t.disallowPausingReasons=e.disallowPausingReasons.map((e=>e)):t.disallowPausingReasons=[],e.disallowResumingReasons?t.disallowResumingReasons=e.disallowResumingReasons.map((e=>e)):t.disallowResumingReasons=[],e.disallowSeekingReasons?t.disallowSeekingReasons=e.disallowSeekingReasons.map((e=>e)):t.disallowSeekingReasons=[],e.disallowPeekingPrevReasons?t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons.map((e=>e)):t.disallowPeekingPrevReasons=[],e.disallowPeekingNextReasons?t.disallowPeekingNextReasons=e.disallowPeekingNextReasons.map((e=>e)):t.disallowPeekingNextReasons=[],e.disallowSkippingPrevReasons?t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons.map((e=>e)):t.disallowSkippingPrevReasons=[],e.disallowSkippingNextReasons?t.disallowSkippingNextReasons=e.disallowSkippingNextReasons.map((e=>e)):t.disallowSkippingNextReasons=[],e.disallowTogglingRepeatContextReasons?t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons.map((e=>e)):t.disallowTogglingRepeatContextReasons=[],e.disallowTogglingRepeatTrackReasons?t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons.map((e=>e)):t.disallowTogglingRepeatTrackReasons=[],e.disallowTogglingShuffleReasons?t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons.map((e=>e)):t.disallowTogglingShuffleReasons=[],e.disallowSetQueueReasons?t.disallowSetQueueReasons=e.disallowSetQueueReasons.map((e=>e)):t.disallowSetQueueReasons=[],e.disallowInterruptingPlaybackReasons?t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons.map((e=>e)):t.disallowInterruptingPlaybackReasons=[],e.disallowTransferringPlaybackReasons?t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons.map((e=>e)):t.disallowTransferringPlaybackReasons=[],e.disallowRemoteControlReasons?t.disallowRemoteControlReasons=e.disallowRemoteControlReasons.map((e=>e)):t.disallowRemoteControlReasons=[],e.disallowInsertingIntoNextTracksReasons?t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons.map((e=>e)):t.disallowInsertingIntoNextTracksReasons=[],e.disallowInsertingIntoContextTracksReasons?t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons.map((e=>e)):t.disallowInsertingIntoContextTracksReasons=[],e.disallowReorderingInNextTracksReasons?t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons.map((e=>e)):t.disallowReorderingInNextTracksReasons=[],e.disallowReorderingInContextTracksReasons?t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons.map((e=>e)):t.disallowReorderingInContextTracksReasons=[],e.disallowRemovingFromNextTracksReasons?t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons.map((e=>e)):t.disallowRemovingFromNextTracksReasons=[],e.disallowRemovingFromContextTracksReasons?t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons.map((e=>e)):t.disallowRemovingFromContextTracksReasons=[],e.disallowUpdatingContextReasons?t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons.map((e=>e)):t.disallowUpdatingContextReasons=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}}},84681:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResumeRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105),s=n(1674);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ResumeRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.resumeOrigin&&s.PauseResumeOrigin.encode(e.resumeOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,loggingParams:void 0,resumeOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 3:l.resumeOrigin=s.PauseResumeOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,resumeOrigin:l(e.resumeOrigin)?s.PauseResumeOrigin.fromJSON(e.resumeOrigin):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.resumeOrigin&&(t.resumeOrigin=e.resumeOrigin?s.PauseResumeOrigin.toJSON(e.resumeOrigin):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0,resumeOrigin:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.resumeOrigin=void 0!==e.resumeOrigin&&null!==e.resumeOrigin?s.PauseResumeOrigin.fromPartial(e.resumeOrigin):void 0,t}}},14404:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SeekToRequest=t.seekToRequest_RelativeToJSON=t.seekToRequest_RelativeFromJSON=t.SeekToRequest_Relative=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(17544),s=n(1105);var l;function c(e){switch(e){case 0:case"BEGINNING":return l.BEGINNING;case 1:case"END":return l.END;case 2:case"CURRENT":return l.CURRENT;default:return l.UNRECOGNIZED}}function u(e){switch(e){case l.BEGINNING:return"BEGINNING";case l.END:return"END";case l.CURRENT:return"CURRENT";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.BEGINNING=0]="BEGINNING",e[e.END=1]="END",e[e.CURRENT=2]="CURRENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.SeekToRequest_Relative||(t.SeekToRequest_Relative={})),t.seekToRequest_RelativeFromJSON=c,t.seekToRequest_RelativeToJSON=u,t.SeekToRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),"0"!==e.position&&t.uint32(24).int64(e.position),0!==e.relative&&t.uint32(32).int32(e.relative),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={options:void 0,loggingParams:void 0,position:"0",relative:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.options=a.CommandOptions.decode(n,n.uint32());break;case 2:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 3:i.position=n.int64().toString();break;case 4:i.relative=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({options:d(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:d(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,position:d(e.position)?String(e.position):"0",relative:d(e.relative)?c(e.relative):0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.position&&(t.position=e.position),void 0!==e.relative&&(t.relative=u(e.relative)),t},fromPartial(e){const t={options:void 0,loggingParams:void 0,position:"0",relative:0};return t.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t.position=e.position??"0",t.relative=e.relative??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},551:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SessionResponse=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.SessionResponse={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.sessionId=n.string();else n.skipType(7&e)}return r},fromJSON(e){return{sessionId:(t=e.sessionId,null!=t?String(e.sessionId):"")};var t},toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),t},fromPartial(e){const t={sessionId:""};return t.sessionId=e.sessionId??"",t}}},80568:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetOptionsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105),s=n(1745);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetOptionsRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.repeatingTrack&&s.OptionalBoolean.encode(e.repeatingTrack,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&s.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.shufflingContext&&s.OptionalBoolean.encode(e.shufflingContext,t.uint32(26).fork()).ldelim(),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={repeatingTrack:void 0,repeatingContext:void 0,shufflingContext:void 0,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.repeatingTrack=s.OptionalBoolean.decode(n,n.uint32());break;case 2:l.repeatingContext=s.OptionalBoolean.decode(n,n.uint32());break;case 3:l.shufflingContext=s.OptionalBoolean.decode(n,n.uint32());break;case 4:l.options=r.CommandOptions.decode(n,n.uint32());break;case 5:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({repeatingTrack:l(e.repeatingTrack)?s.OptionalBoolean.fromJSON(e.repeatingTrack):void 0,repeatingContext:l(e.repeatingContext)?s.OptionalBoolean.fromJSON(e.repeatingContext):void 0,shufflingContext:l(e.shufflingContext)?s.OptionalBoolean.fromJSON(e.shufflingContext):void 0,options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?s.OptionalBoolean.toJSON(e.repeatingTrack):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?s.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?s.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={repeatingTrack:void 0,repeatingContext:void 0,shufflingContext:void 0,options:void 0,loggingParams:void 0};return t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?s.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?s.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?s.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},36782:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetQueueRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(17544),s=n(1105),l=n(29719);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetQueueRequest={encode(e,t=r.default.Writer.create()){for(const n of e.nextTracks)l.ProvidedTrack.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.prevTracks)l.ProvidedTrack.encode(n,t.uint32(18).fork()).ldelim();return"0"!==e.queueRevision&&t.uint32(24).uint64(e.queueRevision),void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={nextTracks:[],prevTracks:[],queueRevision:"0",options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.nextTracks.push(l.ProvidedTrack.decode(n,n.uint32()));break;case 2:i.prevTracks.push(l.ProvidedTrack.decode(n,n.uint32()));break;case 3:i.queueRevision=n.uint64().toString();break;case 4:i.options=a.CommandOptions.decode(n,n.uint32());break;case 5:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>l.ProvidedTrack.fromJSON(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>l.ProvidedTrack.fromJSON(e))):[],queueRevision:c(e.queueRevision)?String(e.queueRevision):"0",options:c(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return e.nextTracks?t.nextTracks=e.nextTracks.map((e=>e?l.ProvidedTrack.toJSON(e):void 0)):t.nextTracks=[],e.prevTracks?t.prevTracks=e.prevTracks.map((e=>e?l.ProvidedTrack.toJSON(e):void 0)):t.prevTracks=[],void 0!==e.queueRevision&&(t.queueRevision=e.queueRevision),void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={nextTracks:[],prevTracks:[],queueRevision:"0",options:void 0,loggingParams:void 0};return t.nextTracks=e.nextTracks?.map((e=>l.ProvidedTrack.fromPartial(e)))||[],t.prevTracks=e.prevTracks?.map((e=>l.ProvidedTrack.fromPartial(e)))||[],t.queueRevision=e.queueRevision??"0",t.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},78117:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetRepeatingContextRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetRepeatingContextRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.repeatingContext&&t.uint32(8).bool(e.repeatingContext),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={repeatingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.repeatingContext=n.bool();break;case 2:s.options=r.CommandOptions.decode(n,n.uint32());break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({repeatingContext:!!s(e.repeatingContext)&&Boolean(e.repeatingContext),options:s(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:s(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={repeatingContext:!1,options:void 0,loggingParams:void 0};return t.repeatingContext=e.repeatingContext??!1,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},1202:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetRepeatingTrackRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetRepeatingTrackRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.repeatingTrack&&t.uint32(8).bool(e.repeatingTrack),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={repeatingTrack:!1,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.repeatingTrack=n.bool();break;case 2:s.options=r.CommandOptions.decode(n,n.uint32());break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({repeatingTrack:!!s(e.repeatingTrack)&&Boolean(e.repeatingTrack),options:s(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:s(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={repeatingTrack:!1,options:void 0,loggingParams:void 0};return t.repeatingTrack=e.repeatingTrack??!1,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},36631:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetShufflingContextRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetShufflingContextRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={shufflingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.shufflingContext=n.bool();break;case 2:s.options=r.CommandOptions.decode(n,n.uint32());break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({shufflingContext:!!s(e.shufflingContext)&&Boolean(e.shufflingContext),options:s(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:s(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={shufflingContext:!1,options:void 0,loggingParams:void 0};return t.shufflingContext=e.shufflingContext??!1,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},84526:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipNextRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(76498),s=n(1105);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipNextRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.track&&a.ContextTrack.encode(e.track,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,loggingParams:void 0,track:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 3:l.track=a.ContextTrack.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,track:l(e.track)?a.ContextTrack.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.track&&(t.track=e.track?a.ContextTrack.toJSON(e.track):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0,track:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t.track=void 0!==e.track&&null!==e.track?a.ContextTrack.fromPartial(e.track):void 0,t}}},10103:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipPrevRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(76498),s=n(1105);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipPrevRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),!0===e.allowSeeking&&t.uint32(16).bool(e.allowSeeking),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),void 0!==e.track&&a.ContextTrack.encode(e.track,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.allowSeeking=n.bool();break;case 3:l.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 4:l.track=a.ContextTrack.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,allowSeeking:!!l(e.allowSeeking)&&Boolean(e.allowSeeking),loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,track:l(e.track)?a.ContextTrack.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.allowSeeking&&(t.allowSeeking=e.allowSeeking),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.track&&(t.track=e.track?a.ContextTrack.toJSON(e.track):void 0),t},fromPartial(e){const t={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.allowSeeking=e.allowSeeking??!1,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t.track=void 0!==e.track&&null!==e.track?a.ContextTrack.fromPartial(e.track):void 0,t}}},69316:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipToTrack=t.protobufPackage=void 0;const i=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=i.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&r.OptionalInt64.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&r.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.pageUrl=n.string();break;case 2:a.pageIndex=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.trackUid=n.string();break;case 4:a.trackUri=n.string();break;case 5:a.trackIndex=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({pageUrl:a(e.pageUrl)?String(e.pageUrl):"",pageIndex:a(e.pageIndex)?r.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:a(e.trackUid)?String(e.trackUid):"",trackUri:a(e.trackUri)?String(e.trackUri):"",trackIndex:a(e.trackIndex)?r.OptionalInt64.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=e.pageIndex?r.OptionalInt64.toJSON(e.pageIndex):void 0),void 0!==e.trackUid&&(t.trackUid=e.trackUid),void 0!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=e.trackIndex?r.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?r.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?r.OptionalInt64.fromPartial(e.trackIndex):void 0,t}}},50778:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StopRequest=t.stopRequest_ReasonToJSON=t.stopRequest_ReasonFromJSON=t.StopRequest_Reason=t.protobufPackage=void 0;const i=o(n(33892)),r=n(17544),a=n(1105);var s;function l(e){switch(e){case 0:case"INTERACTIVE":return s.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return s.REMOTE_TRANSFER;case 2:case"SHUTDOWN":return s.SHUTDOWN;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.INTERACTIVE:return"INTERACTIVE";case s.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case s.SHUTDOWN:return"SHUTDOWN";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.SHUTDOWN=2]="SHUTDOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.StopRequest_Reason||(t.StopRequest_Reason={})),t.stopRequest_ReasonFromJSON=l,t.stopRequest_ReasonToJSON=c,t.StopRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),0!==e.reason&&t.uint32(16).int32(e.reason),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={options:void 0,reason:0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.options=r.CommandOptions.decode(n,n.uint32());break;case 2:s.reason=n.int32();break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({options:u(e.options)?r.CommandOptions.fromJSON(e.options):void 0,reason:u(e.reason)?l(e.reason):0,loggingParams:u(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={options:void 0,reason:0,loggingParams:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.reason=e.reason??0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},57627:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateViewUriRequest=t.UpdateContextTrackRequest=t.UpdateContextPageRequest=t.UpdateContextRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(15127),a=n(11416),s=n(76498),l=n(1105);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.UpdateContextRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.context&&r.Context.encode(e.context,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={sessionId:"",context:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.sessionId=n.string();break;case 2:a.context=r.Context.decode(n,n.uint32());break;case 3:a.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",context:c(e.context)?r.Context.fromJSON(e.context):void 0,loggingParams:c(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.context&&(t.context=e.context?r.Context.toJSON(e.context):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",context:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.context=void 0!==e.context&&null!==e.context?r.Context.fromPartial(e.context):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.UpdateContextPageRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextPage&&a.ContextPage.encode(e.contextPage,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",contextPage:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.sessionId=n.string();break;case 2:r.contextPage=a.ContextPage.decode(n,n.uint32());break;case 3:r.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",contextPage:c(e.contextPage)?a.ContextPage.fromJSON(e.contextPage):void 0,loggingParams:c(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.contextPage&&(t.contextPage=e.contextPage?a.ContextPage.toJSON(e.contextPage):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",contextPage:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.contextPage=void 0!==e.contextPage&&null!==e.contextPage?a.ContextPage.fromPartial(e.contextPage):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.UpdateContextTrackRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextTrack&&s.ContextTrack.encode(e.contextTrack,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",contextTrack:void 0,loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.sessionId=n.string();break;case 2:r.contextTrack=s.ContextTrack.decode(n,n.uint32());break;case 3:r.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",contextTrack:c(e.contextTrack)?s.ContextTrack.fromJSON(e.contextTrack):void 0,loggingParams:c(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.contextTrack&&(t.contextTrack=e.contextTrack?s.ContextTrack.toJSON(e.contextTrack):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",contextTrack:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?s.ContextTrack.fromPartial(e.contextTrack):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.UpdateViewUriRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),""!==e.viewUri&&t.uint32(18).string(e.viewUri),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",viewUri:"",loggingParams:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.sessionId=n.string();break;case 2:r.viewUri=n.string();break;case 3:r.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",viewUri:c(e.viewUri)?String(e.viewUri):"",loggingParams:c(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",viewUri:"",loggingParams:void 0};return t.sessionId=e.sessionId??"",t.viewUri=e.viewUri??"",t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},43249:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},65689:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncDecorationPolicy=t.AlbumCollectionDecorationPolicy=t.AlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};t.AlbumDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.copyrights=n.bool();break;case 4:i.covers=n.bool();break;case 5:i.year=n.bool();break;case 6:i.numDiscs=n.bool();break;case 7:i.numTracks=n.bool();break;case 8:i.playability=n.bool();break;case 9:i.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.copyrights&&null!==e.copyrights?t.copyrights=Boolean(e.copyrights):t.copyrights=!1,void 0!==e.covers&&null!==e.covers?t.covers=Boolean(e.covers):t.covers=!1,void 0!==e.year&&null!==e.year?t.year=Boolean(e.year):t.year=!1,void 0!==e.numDiscs&&null!==e.numDiscs?t.numDiscs=Boolean(e.numDiscs):t.numDiscs=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=Boolean(e.numTracks):t.numTracks=!1,void 0!==e.playability&&null!==e.playability?t.playability=Boolean(e.playability):t.playability=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=Boolean(e.isPremiumOnly):t.isPremiumOnly=!1,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t={...a};return void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.copyrights&&null!==e.copyrights?t.copyrights=e.copyrights:t.copyrights=!1,void 0!==e.covers&&null!==e.covers?t.covers=e.covers:t.covers=!1,void 0!==e.year&&null!==e.year?t.year=e.year:t.year=!1,void 0!==e.numDiscs&&null!==e.numDiscs?t.numDiscs=e.numDiscs:t.numDiscs=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=e.numTracks:t.numTracks=!1,void 0!==e.playability&&null!==e.playability?t.playability=e.playability:t.playability=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=e.isPremiumOnly:t.isPremiumOnly=!1,t}};const s={collectionLink:!1,numTracksInCollection:!1,complete:!1};t.AlbumCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.bool();break;case 2:i.numTracksInCollection=n.bool();break;case 3:i.complete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=Boolean(e.collectionLink):t.collectionLink=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=Boolean(e.numTracksInCollection):t.numTracksInCollection=!1,void 0!==e.complete&&null!==e.complete?t.complete=Boolean(e.complete):t.complete=!1,t},toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={...s};return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=e.collectionLink:t.collectionLink=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=e.numTracksInCollection:t.numTracksInCollection=!1,void 0!==e.complete&&null!==e.complete?t.complete=e.complete:t.complete=!1,t}};const l={inferredOffline:!1,offlineState:!1,syncProgress:!1};t.AlbumSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=Boolean(e.inferredOffline):t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=Boolean(e.offlineState):t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={...l};return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=e.inferredOffline:t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},32691:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncDecorationPolicy=t.ArtistCollectionDecorationPolicy=t.ArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={link:!1,name:!1,isVariousArtists:!1,portraits:!1};t.ArtistDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.isVariousArtists=n.bool();break;case 4:i.portraits=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.isVariousArtists&&null!==e.isVariousArtists?t.isVariousArtists=Boolean(e.isVariousArtists):t.isVariousArtists=!1,void 0!==e.portraits&&null!==e.portraits?t.portraits=Boolean(e.portraits):t.portraits=!1,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){const t={...a};return void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.isVariousArtists&&null!==e.isVariousArtists?t.isVariousArtists=e.isVariousArtists:t.isVariousArtists=!1,void 0!==e.portraits&&null!==e.portraits?t.portraits=e.portraits:t.portraits=!1,t}};const s={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};t.ArtistCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.collectionLink=n.bool();break;case 2:i.isFollowed=n.bool();break;case 3:i.numTracksInCollection=n.bool();break;case 4:i.numAlbumsInCollection=n.bool();break;case 5:i.isBanned=n.bool();break;case 6:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=Boolean(e.collectionLink):t.collectionLink=!1,void 0!==e.isFollowed&&null!==e.isFollowed?t.isFollowed=Boolean(e.isFollowed):t.isFollowed=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=Boolean(e.numTracksInCollection):t.numTracksInCollection=!1,void 0!==e.numAlbumsInCollection&&null!==e.numAlbumsInCollection?t.numAlbumsInCollection=Boolean(e.numAlbumsInCollection):t.numAlbumsInCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,t},toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={...s};return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=e.collectionLink:t.collectionLink=!1,void 0!==e.isFollowed&&null!==e.isFollowed?t.isFollowed=e.isFollowed:t.isFollowed=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=e.numTracksInCollection:t.numTracksInCollection=!1,void 0!==e.numAlbumsInCollection&&null!==e.numAlbumsInCollection?t.numAlbumsInCollection=e.numAlbumsInCollection:t.numAlbumsInCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,t}};const l={inferredOffline:!1,offlineState:!1,syncProgress:!1};t.ArtistSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=Boolean(e.inferredOffline):t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=Boolean(e.offlineState):t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={...l};return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=e.inferredOffline:t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},43434:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(43249);t.protobufPackage="spotify.cosmos_util.proto";const s={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:0,is19PlusOnly:!1,isBookChapter:!1};t.EpisodeDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(i.extension=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.length=n.bool();break;case 3:i.name=n.bool();break;case 4:i.manifestId=n.bool();break;case 5:i.previewId=n.bool();break;case 6:i.previewManifestId=n.bool();break;case 7:i.description=n.bool();break;case 8:i.publishDate=n.bool();break;case 9:i.covers=n.bool();break;case 10:i.freezeFrames=n.bool();break;case 11:i.language=n.bool();break;case 12:i.available=n.bool();break;case 13:i.mediaTypeEnum=n.bool();break;case 14:i.number=n.bool();break;case 15:i.backgroundable=n.bool();break;case 16:i.isExplicit=n.bool();break;case 17:i.type=n.bool();break;case 18:i.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extension.push(n.int32())}else i.extension.push(n.int32());break;case 22:i.is19PlusOnly=n.bool();break;case 23:i.isBookChapter=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};if(t.extension=[],void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.length&&null!==e.length?t.length=Boolean(e.length):t.length=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.manifestId&&null!==e.manifestId?t.manifestId=Boolean(e.manifestId):t.manifestId=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=Boolean(e.previewId):t.previewId=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?t.previewManifestId=Boolean(e.previewManifestId):t.previewManifestId=!1,void 0!==e.description&&null!==e.description?t.description=Boolean(e.description):t.description=!1,void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=Boolean(e.publishDate):t.publishDate=!1,void 0!==e.covers&&null!==e.covers?t.covers=Boolean(e.covers):t.covers=!1,void 0!==e.freezeFrames&&null!==e.freezeFrames?t.freezeFrames=Boolean(e.freezeFrames):t.freezeFrames=!1,void 0!==e.language&&null!==e.language?t.language=Boolean(e.language):t.language=!1,void 0!==e.available&&null!==e.available?t.available=Boolean(e.available):t.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=Boolean(e.mediaTypeEnum):t.mediaTypeEnum=!1,void 0!==e.number&&null!==e.number?t.number=Boolean(e.number):t.number=!1,void 0!==e.backgroundable&&null!==e.backgroundable?t.backgroundable=Boolean(e.backgroundable):t.backgroundable=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=Boolean(e.isExplicit):t.isExplicit=!1,void 0!==e.type&&null!==e.type?t.type=Boolean(e.type):t.type=!1,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=Boolean(e.isMusicAndTalk):t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(a.extensionKindFromJSON(n));return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=Boolean(e.is19PlusOnly):t.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?t.isBookChapter=Boolean(e.isBookChapter):t.isBookChapter=!1,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>a.extensionKindToJSON(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),t},fromPartial(e){const t={...s};if(t.extension=[],void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.manifestId&&null!==e.manifestId?t.manifestId=e.manifestId:t.manifestId=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=e.previewId:t.previewId=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?t.previewManifestId=e.previewManifestId:t.previewManifestId=!1,void 0!==e.description&&null!==e.description?t.description=e.description:t.description=!1,void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=e.publishDate:t.publishDate=!1,void 0!==e.covers&&null!==e.covers?t.covers=e.covers:t.covers=!1,void 0!==e.freezeFrames&&null!==e.freezeFrames?t.freezeFrames=e.freezeFrames:t.freezeFrames=!1,void 0!==e.language&&null!==e.language?t.language=e.language:t.language=!1,void 0!==e.available&&null!==e.available?t.available=e.available:t.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=e.mediaTypeEnum:t.mediaTypeEnum=!1,void 0!==e.number&&null!==e.number?t.number=e.number:t.number=!1,void 0!==e.backgroundable&&null!==e.backgroundable?t.backgroundable=e.backgroundable:t.backgroundable=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.type&&null!==e.type?t.type=e.type:t.type=!1,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=e.isMusicAndTalk:t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(n);return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=e.is19PlusOnly:t.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?t.isBookChapter=e.isBookChapter:t.isBookChapter=!1,t}};const l={isFollowingShow:!1,isInListenLater:!1,isNew:!1};t.EpisodeCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isInListenLater=n.bool();break;case 3:i.isNew=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=Boolean(e.isFollowingShow):t.isFollowingShow=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=Boolean(e.isInListenLater):t.isInListenLater=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=Boolean(e.isNew):t.isNew=!1,t},toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t={...l};return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=e.isFollowingShow:t.isFollowingShow=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=e.isInListenLater:t.isInListenLater=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=e.isNew:t.isNew=!1,t}};const c={offline:!1,syncProgress:!1};t.EpisodeSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.offline&&null!==e.offline?t.offline=Boolean(e.offline):t.offline=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={...c};return void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}};const u={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};t.EpisodePlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.timeLeft=n.bool();break;case 2:i.isPlayed=n.bool();break;case 3:i.playable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...u};return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=Boolean(e.timeLeft):t.timeLeft=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=Boolean(e.isPlayed):t.isPlayed=!1,void 0!==e.playable&&null!==e.playable?t.playable=Boolean(e.playable):t.playable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=Boolean(e.playabilityRestriction):t.playabilityRestriction=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=Boolean(e.lastPlayedAt):t.lastPlayedAt=!1,t},toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t={...u};return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=e.timeLeft:t.timeLeft=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=e.isPlayed:t.isPlayed=!1,void 0!==e.playable&&null!==e.playable?t.playable=e.playable:t.playable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=e.lastPlayedAt:t.lastPlayedAt=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},10853:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};t.FolderDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.rowId&&t.uint32(8).bool(e.rowId),!0===e.id&&t.uint32(16).bool(e.id),!0===e.link&&t.uint32(24).bool(e.link),!0===e.name&&t.uint32(32).bool(e.name),!0===e.folders&&t.uint32(40).bool(e.folders),!0===e.playlists&&t.uint32(48).bool(e.playlists),!0===e.recursiveFolders&&t.uint32(56).bool(e.recursiveFolders),!0===e.recursivePlaylists&&t.uint32(64).bool(e.recursivePlaylists),!0===e.rows&&t.uint32(72).bool(e.rows),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.rowId=n.bool();break;case 2:i.id=n.bool();break;case 3:i.link=n.bool();break;case 4:i.name=n.bool();break;case 5:i.folders=n.bool();break;case 6:i.playlists=n.bool();break;case 7:i.recursiveFolders=n.bool();break;case 8:i.recursivePlaylists=n.bool();break;case 9:i.rows=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.rowId&&null!==e.rowId?t.rowId=Boolean(e.rowId):t.rowId=!1,void 0!==e.id&&null!==e.id?t.id=Boolean(e.id):t.id=!1,void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.folders&&null!==e.folders?t.folders=Boolean(e.folders):t.folders=!1,void 0!==e.playlists&&null!==e.playlists?t.playlists=Boolean(e.playlists):t.playlists=!1,void 0!==e.recursiveFolders&&null!==e.recursiveFolders?t.recursiveFolders=Boolean(e.recursiveFolders):t.recursiveFolders=!1,void 0!==e.recursivePlaylists&&null!==e.recursivePlaylists?t.recursivePlaylists=Boolean(e.recursivePlaylists):t.recursivePlaylists=!1,void 0!==e.rows&&null!==e.rows?t.rows=Boolean(e.rows):t.rows=!1,t},toJSON(e){const t={};return void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.id&&(t.id=e.id),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.folders&&(t.folders=e.folders),void 0!==e.playlists&&(t.playlists=e.playlists),void 0!==e.recursiveFolders&&(t.recursiveFolders=e.recursiveFolders),void 0!==e.recursivePlaylists&&(t.recursivePlaylists=e.recursivePlaylists),void 0!==e.rows&&(t.rows=e.rows),t},fromPartial(e){const t={...a};return void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId=!1,void 0!==e.id&&null!==e.id?t.id=e.id:t.id=!1,void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.folders&&null!==e.folders?t.folders=e.folders:t.folders=!1,void 0!==e.playlists&&null!==e.playlists?t.playlists=e.playlists:t.playlists=!1,void 0!==e.recursiveFolders&&null!==e.recursiveFolders?t.recursiveFolders=e.recursiveFolders:t.recursiveFolders=!1,void 0!==e.recursivePlaylists&&null!==e.recursivePlaylists?t.recursivePlaylists=e.recursivePlaylists:t.recursivePlaylists=!1,void 0!==e.rows&&null!==e.rows?t.rows=e.rows:t.rows=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},52272:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistAlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(65689),s=n(32691);t.protobufPackage="spotify.playlist.cosmos.proto";const l={};t.PlaylistAlbumDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.album&&a.AlbumDecorationPolicy.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&s.ArtistDecorationPolicy.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.album=a.AlbumDecorationPolicy.decode(n,n.uint32());break;case 2:i.artist=s.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.album&&null!==e.album?t.album=a.AlbumDecorationPolicy.fromJSON(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=s.ArtistDecorationPolicy.fromJSON(e.artist):t.artist=void 0,t},toJSON(e){const t={};return void 0!==e.album&&(t.album=e.album?a.AlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?s.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t={...l};return void 0!==e.album&&null!==e.album?t.album=a.AlbumDecorationPolicy.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=s.ArtistDecorationPolicy.fromPartial(e.artist):t.artist=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},73034:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDecorationPolicy=t.PlaylistAllowsDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(54546),s=n(43249);t.protobufPackage="spotify.playlist.cosmos.proto";const l={insert:!1,remove:!1};t.PlaylistAllowsDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.insert&&t.uint32(8).bool(e.insert),!0===e.remove&&t.uint32(16).bool(e.remove),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.insert=n.bool();break;case 2:i.remove=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.insert&&null!==e.insert?t.insert=Boolean(e.insert):t.insert=!1,void 0!==e.remove&&null!==e.remove?t.remove=Boolean(e.remove):t.remove=!1,t},toJSON(e){const t={};return void 0!==e.insert&&(t.insert=e.insert),void 0!==e.remove&&(t.remove=e.remove),t},fromPartial(e){const t={...l};return void 0!==e.insert&&null!==e.insert?t.insert=e.insert:t.insert=!1,void 0!==e.remove&&null!==e.remove?t.remove=e.remove:t.remove=!1,t}};const c={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,basePermission:!1,userCapabilities:!1,extension:0};t.PlaylistDecorationPolicy={encode(e,n=r.default.Writer.create()){!0===e.rowId&&n.uint32(8).bool(e.rowId),!0===e.link&&n.uint32(16).bool(e.link),!0===e.name&&n.uint32(24).bool(e.name),!0===e.loadState&&n.uint32(32).bool(e.loadState),!0===e.loaded&&n.uint32(40).bool(e.loaded),!0===e.collaborative&&n.uint32(48).bool(e.collaborative),!0===e.length&&n.uint32(56).bool(e.length),!0===e.lastModification&&n.uint32(64).bool(e.lastModification),!0===e.totalLength&&n.uint32(72).bool(e.totalLength),!0===e.duration&&n.uint32(80).bool(e.duration),!0===e.description&&n.uint32(88).bool(e.description),!0===e.picture&&n.uint32(96).bool(e.picture),!0===e.playable&&n.uint32(104).bool(e.playable),!0===e.descriptionFromAnnotate&&n.uint32(112).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(120).bool(e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.followed&&n.uint32(136).bool(e.followed),!0===e.followers&&n.uint32(144).bool(e.followers),!0===e.ownedBySelf&&n.uint32(152).bool(e.ownedBySelf),!0===e.offline&&n.uint32(160).bool(e.offline),!0===e.syncProgress&&n.uint32(168).bool(e.syncProgress),!0===e.published&&n.uint32(176).bool(e.published),!0===e.browsableOffline&&n.uint32(184).bool(e.browsableOffline),!0===e.formatListType&&n.uint32(192).bool(e.formatListType),!0===e.formatListAttributes&&n.uint32(200).bool(e.formatListAttributes),!0===e.hasExplicitContent&&n.uint32(208).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&n.uint32(216).bool(e.containsSpotifyTracks),!0===e.containsTracks&&n.uint32(224).bool(e.containsTracks),!0===e.containsEpisodes&&n.uint32(232).bool(e.containsEpisodes),!0===e.containsAudioEpisodes&&n.uint32(240).bool(e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&n.uint32(248).bool(e.onlyContainsExplicit),!0===e.isOnDemandInFree&&n.uint32(256).bool(e.isOnDemandInFree),void 0!==e.owner&&a.UserDecorationPolicy.encode(e.owner,n.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&a.UserDecorationPolicy.encode(e.madeFor,n.uint32(274).fork()).ldelim(),void 0!==e.allows&&t.PlaylistAllowsDecorationPolicy.encode(e.allows,n.uint32(282).fork()).ldelim(),!0===e.numberOfEpisodes&&n.uint32(288).bool(e.numberOfEpisodes),!0===e.numberOfTracks&&n.uint32(296).bool(e.numberOfTracks),!0===e.preferLinearPlayback&&n.uint32(304).bool(e.preferLinearPlayback),!0===e.onDemandInFreeReason&&n.uint32(312).bool(e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&a.CollaboratingUsersDecorationPolicy.encode(e.collaboratingUsers,n.uint32(322).fork()).ldelim(),!0===e.basePermission&&n.uint32(328).bool(e.basePermission),!0===e.userCapabilities&&n.uint32(336).bool(e.userCapabilities),n.uint32(346).fork();for(const t of e.extension)n.int32(t);return n.ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...c};for(s.extension=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.rowId=o.bool();break;case 2:s.link=o.bool();break;case 3:s.name=o.bool();break;case 4:s.loadState=o.bool();break;case 5:s.loaded=o.bool();break;case 6:s.collaborative=o.bool();break;case 7:s.length=o.bool();break;case 8:s.lastModification=o.bool();break;case 9:s.totalLength=o.bool();break;case 10:s.duration=o.bool();break;case 11:s.description=o.bool();break;case 12:s.picture=o.bool();break;case 13:s.playable=o.bool();break;case 14:s.descriptionFromAnnotate=o.bool();break;case 15:s.pictureFromAnnotate=o.bool();break;case 16:s.canReportAnnotationAbuse=o.bool();break;case 17:s.followed=o.bool();break;case 18:s.followers=o.bool();break;case 19:s.ownedBySelf=o.bool();break;case 20:s.offline=o.bool();break;case 21:s.syncProgress=o.bool();break;case 22:s.published=o.bool();break;case 23:s.browsableOffline=o.bool();break;case 24:s.formatListType=o.bool();break;case 25:s.formatListAttributes=o.bool();break;case 26:s.hasExplicitContent=o.bool();break;case 27:s.containsSpotifyTracks=o.bool();break;case 28:s.containsTracks=o.bool();break;case 29:s.containsEpisodes=o.bool();break;case 30:s.containsAudioEpisodes=o.bool();break;case 31:s.onlyContainsExplicit=o.bool();break;case 32:s.isOnDemandInFree=o.bool();break;case 33:s.owner=a.UserDecorationPolicy.decode(o,o.uint32());break;case 34:s.madeFor=a.UserDecorationPolicy.decode(o,o.uint32());break;case 35:s.allows=t.PlaylistAllowsDecorationPolicy.decode(o,o.uint32());break;case 36:s.numberOfEpisodes=o.bool();break;case 37:s.numberOfTracks=o.bool();break;case 38:s.preferLinearPlayback=o.bool();break;case 39:s.onDemandInFreeReason=o.bool();break;case 40:s.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.decode(o,o.uint32());break;case 41:s.basePermission=o.bool();break;case 42:s.userCapabilities=o.bool();break;case 43:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)s.extension.push(o.int32())}else s.extension.push(o.int32());break;default:o.skipType(7&e)}}return s},fromJSON(e){const n={...c};if(n.extension=[],void 0!==e.rowId&&null!==e.rowId?n.rowId=Boolean(e.rowId):n.rowId=!1,void 0!==e.link&&null!==e.link?n.link=Boolean(e.link):n.link=!1,void 0!==e.name&&null!==e.name?n.name=Boolean(e.name):n.name=!1,void 0!==e.loadState&&null!==e.loadState?n.loadState=Boolean(e.loadState):n.loadState=!1,void 0!==e.loaded&&null!==e.loaded?n.loaded=Boolean(e.loaded):n.loaded=!1,void 0!==e.collaborative&&null!==e.collaborative?n.collaborative=Boolean(e.collaborative):n.collaborative=!1,void 0!==e.length&&null!==e.length?n.length=Boolean(e.length):n.length=!1,void 0!==e.lastModification&&null!==e.lastModification?n.lastModification=Boolean(e.lastModification):n.lastModification=!1,void 0!==e.totalLength&&null!==e.totalLength?n.totalLength=Boolean(e.totalLength):n.totalLength=!1,void 0!==e.duration&&null!==e.duration?n.duration=Boolean(e.duration):n.duration=!1,void 0!==e.description&&null!==e.description?n.description=Boolean(e.description):n.description=!1,void 0!==e.picture&&null!==e.picture?n.picture=Boolean(e.picture):n.picture=!1,void 0!==e.playable&&null!==e.playable?n.playable=Boolean(e.playable):n.playable=!1,void 0!==e.descriptionFromAnnotate&&null!==e.descriptionFromAnnotate?n.descriptionFromAnnotate=Boolean(e.descriptionFromAnnotate):n.descriptionFromAnnotate=!1,void 0!==e.pictureFromAnnotate&&null!==e.pictureFromAnnotate?n.pictureFromAnnotate=Boolean(e.pictureFromAnnotate):n.pictureFromAnnotate=!1,void 0!==e.canReportAnnotationAbuse&&null!==e.canReportAnnotationAbuse?n.canReportAnnotationAbuse=Boolean(e.canReportAnnotationAbuse):n.canReportAnnotationAbuse=!1,void 0!==e.followed&&null!==e.followed?n.followed=Boolean(e.followed):n.followed=!1,void 0!==e.followers&&null!==e.followers?n.followers=Boolean(e.followers):n.followers=!1,void 0!==e.ownedBySelf&&null!==e.ownedBySelf?n.ownedBySelf=Boolean(e.ownedBySelf):n.ownedBySelf=!1,void 0!==e.offline&&null!==e.offline?n.offline=Boolean(e.offline):n.offline=!1,void 0!==e.syncProgress&&null!==e.syncProgress?n.syncProgress=Boolean(e.syncProgress):n.syncProgress=!1,void 0!==e.published&&null!==e.published?n.published=Boolean(e.published):n.published=!1,void 0!==e.browsableOffline&&null!==e.browsableOffline?n.browsableOffline=Boolean(e.browsableOffline):n.browsableOffline=!1,void 0!==e.formatListType&&null!==e.formatListType?n.formatListType=Boolean(e.formatListType):n.formatListType=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?n.formatListAttributes=Boolean(e.formatListAttributes):n.formatListAttributes=!1,void 0!==e.hasExplicitContent&&null!==e.hasExplicitContent?n.hasExplicitContent=Boolean(e.hasExplicitContent):n.hasExplicitContent=!1,void 0!==e.containsSpotifyTracks&&null!==e.containsSpotifyTracks?n.containsSpotifyTracks=Boolean(e.containsSpotifyTracks):n.containsSpotifyTracks=!1,void 0!==e.containsTracks&&null!==e.containsTracks?n.containsTracks=Boolean(e.containsTracks):n.containsTracks=!1,void 0!==e.containsEpisodes&&null!==e.containsEpisodes?n.containsEpisodes=Boolean(e.containsEpisodes):n.containsEpisodes=!1,void 0!==e.containsAudioEpisodes&&null!==e.containsAudioEpisodes?n.containsAudioEpisodes=Boolean(e.containsAudioEpisodes):n.containsAudioEpisodes=!1,void 0!==e.onlyContainsExplicit&&null!==e.onlyContainsExplicit?n.onlyContainsExplicit=Boolean(e.onlyContainsExplicit):n.onlyContainsExplicit=!1,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?n.isOnDemandInFree=Boolean(e.isOnDemandInFree):n.isOnDemandInFree=!1,void 0!==e.owner&&null!==e.owner?n.owner=a.UserDecorationPolicy.fromJSON(e.owner):n.owner=void 0,void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=a.UserDecorationPolicy.fromJSON(e.madeFor):n.madeFor=void 0,void 0!==e.allows&&null!==e.allows?n.allows=t.PlaylistAllowsDecorationPolicy.fromJSON(e.allows):n.allows=void 0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=Boolean(e.numberOfEpisodes):n.numberOfEpisodes=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=Boolean(e.numberOfTracks):n.numberOfTracks=!1,void 0!==e.preferLinearPlayback&&null!==e.preferLinearPlayback?n.preferLinearPlayback=Boolean(e.preferLinearPlayback):n.preferLinearPlayback=!1,void 0!==e.onDemandInFreeReason&&null!==e.onDemandInFreeReason?n.onDemandInFreeReason=Boolean(e.onDemandInFreeReason):n.onDemandInFreeReason=!1,void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?n.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.fromJSON(e.collaboratingUsers):n.collaboratingUsers=void 0,void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=Boolean(e.basePermission):n.basePermission=!1,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=Boolean(e.userCapabilities):n.userCapabilities=!1,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(s.extensionKindFromJSON(t));return n},toJSON(e){const n={};return void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.length&&(n.length=e.length),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.totalLength&&(n.totalLength=e.totalLength),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.description&&(n.description=e.description),void 0!==e.picture&&(n.picture=e.picture),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.followers&&(n.followers=e.followers),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.offline&&(n.offline=e.offline),void 0!==e.syncProgress&&(n.syncProgress=e.syncProgress),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.formatListType&&(n.formatListType=e.formatListType),void 0!==e.formatListAttributes&&(n.formatListAttributes=e.formatListAttributes),void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(n.owner=e.owner?a.UserDecorationPolicy.toJSON(e.owner):void 0),void 0!==e.madeFor&&(n.madeFor=e.madeFor?a.UserDecorationPolicy.toJSON(e.madeFor):void 0),void 0!==e.allows&&(n.allows=e.allows?t.PlaylistAllowsDecorationPolicy.toJSON(e.allows):void 0),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(n.collaboratingUsers=e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.toJSON(e.collaboratingUsers):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities),e.extension?n.extension=e.extension.map((e=>s.extensionKindToJSON(e))):n.extension=[],n},fromPartial(e){const n={...c};if(n.extension=[],void 0!==e.rowId&&null!==e.rowId?n.rowId=e.rowId:n.rowId=!1,void 0!==e.link&&null!==e.link?n.link=e.link:n.link=!1,void 0!==e.name&&null!==e.name?n.name=e.name:n.name=!1,void 0!==e.loadState&&null!==e.loadState?n.loadState=e.loadState:n.loadState=!1,void 0!==e.loaded&&null!==e.loaded?n.loaded=e.loaded:n.loaded=!1,void 0!==e.collaborative&&null!==e.collaborative?n.collaborative=e.collaborative:n.collaborative=!1,void 0!==e.length&&null!==e.length?n.length=e.length:n.length=!1,void 0!==e.lastModification&&null!==e.lastModification?n.lastModification=e.lastModification:n.lastModification=!1,void 0!==e.totalLength&&null!==e.totalLength?n.totalLength=e.totalLength:n.totalLength=!1,void 0!==e.duration&&null!==e.duration?n.duration=e.duration:n.duration=!1,void 0!==e.description&&null!==e.description?n.description=e.description:n.description=!1,void 0!==e.picture&&null!==e.picture?n.picture=e.picture:n.picture=!1,void 0!==e.playable&&null!==e.playable?n.playable=e.playable:n.playable=!1,void 0!==e.descriptionFromAnnotate&&null!==e.descriptionFromAnnotate?n.descriptionFromAnnotate=e.descriptionFromAnnotate:n.descriptionFromAnnotate=!1,void 0!==e.pictureFromAnnotate&&null!==e.pictureFromAnnotate?n.pictureFromAnnotate=e.pictureFromAnnotate:n.pictureFromAnnotate=!1,void 0!==e.canReportAnnotationAbuse&&null!==e.canReportAnnotationAbuse?n.canReportAnnotationAbuse=e.canReportAnnotationAbuse:n.canReportAnnotationAbuse=!1,void 0!==e.followed&&null!==e.followed?n.followed=e.followed:n.followed=!1,void 0!==e.followers&&null!==e.followers?n.followers=e.followers:n.followers=!1,void 0!==e.ownedBySelf&&null!==e.ownedBySelf?n.ownedBySelf=e.ownedBySelf:n.ownedBySelf=!1,void 0!==e.offline&&null!==e.offline?n.offline=e.offline:n.offline=!1,void 0!==e.syncProgress&&null!==e.syncProgress?n.syncProgress=e.syncProgress:n.syncProgress=!1,void 0!==e.published&&null!==e.published?n.published=e.published:n.published=!1,void 0!==e.browsableOffline&&null!==e.browsableOffline?n.browsableOffline=e.browsableOffline:n.browsableOffline=!1,void 0!==e.formatListType&&null!==e.formatListType?n.formatListType=e.formatListType:n.formatListType=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?n.formatListAttributes=e.formatListAttributes:n.formatListAttributes=!1,void 0!==e.hasExplicitContent&&null!==e.hasExplicitContent?n.hasExplicitContent=e.hasExplicitContent:n.hasExplicitContent=!1,void 0!==e.containsSpotifyTracks&&null!==e.containsSpotifyTracks?n.containsSpotifyTracks=e.containsSpotifyTracks:n.containsSpotifyTracks=!1,void 0!==e.containsTracks&&null!==e.containsTracks?n.containsTracks=e.containsTracks:n.containsTracks=!1,void 0!==e.containsEpisodes&&null!==e.containsEpisodes?n.containsEpisodes=e.containsEpisodes:n.containsEpisodes=!1,void 0!==e.containsAudioEpisodes&&null!==e.containsAudioEpisodes?n.containsAudioEpisodes=e.containsAudioEpisodes:n.containsAudioEpisodes=!1,void 0!==e.onlyContainsExplicit&&null!==e.onlyContainsExplicit?n.onlyContainsExplicit=e.onlyContainsExplicit:n.onlyContainsExplicit=!1,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?n.isOnDemandInFree=e.isOnDemandInFree:n.isOnDemandInFree=!1,void 0!==e.owner&&null!==e.owner?n.owner=a.UserDecorationPolicy.fromPartial(e.owner):n.owner=void 0,void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=a.UserDecorationPolicy.fromPartial(e.madeFor):n.madeFor=void 0,void 0!==e.allows&&null!==e.allows?n.allows=t.PlaylistAllowsDecorationPolicy.fromPartial(e.allows):n.allows=void 0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=e.numberOfEpisodes:n.numberOfEpisodes=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=e.numberOfTracks:n.numberOfTracks=!1,void 0!==e.preferLinearPlayback&&null!==e.preferLinearPlayback?n.preferLinearPlayback=e.preferLinearPlayback:n.preferLinearPlayback=!1,void 0!==e.onDemandInFreeReason&&null!==e.onDemandInFreeReason?n.onDemandInFreeReason=e.onDemandInFreeReason:n.onDemandInFreeReason=!1,void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?n.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.fromPartial(e.collaboratingUsers):n.collaboratingUsers=void 0,void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=e.basePermission:n.basePermission=!1,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=e.userCapabilities:n.userCapabilities=!1,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(t);return n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},72599:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistEpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(43434),s=n(54546),l=n(50614);t.protobufPackage="spotify.playlist.cosmos.proto";const c={rowId:!1,addTime:!1,formatListAttributes:!1};t.PlaylistEpisodeDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episode&&a.EpisodeDecorationPolicy.encode(e.episode,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.formatListAttributes&&t.uint32(32).bool(e.formatListAttributes),void 0!==e.collection&&a.EpisodeCollectionDecorationPolicy.encode(e.collection,t.uint32(42).fork()).ldelim(),void 0!==e.sync&&a.EpisodeSyncDecorationPolicy.encode(e.sync,t.uint32(50).fork()).ldelim(),void 0!==e.playedState&&a.EpisodePlayedStateDecorationPolicy.encode(e.playedState,t.uint32(58).fork()).ldelim(),void 0!==e.addedBy&&s.UserDecorationPolicy.encode(e.addedBy,t.uint32(66).fork()).ldelim(),void 0!==e.show&&l.ShowDecorationPolicy.encode(e.show,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.episode=a.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:i.rowId=n.bool();break;case 3:i.addTime=n.bool();break;case 4:i.formatListAttributes=n.bool();break;case 5:i.collection=a.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 6:i.sync=a.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 7:i.playedState=a.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 8:i.addedBy=s.UserDecorationPolicy.decode(n,n.uint32());break;case 9:i.show=l.ShowDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.episode&&null!==e.episode?t.episode=a.EpisodeDecorationPolicy.fromJSON(e.episode):t.episode=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=Boolean(e.rowId):t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=Boolean(e.formatListAttributes):t.formatListAttributes=!1,void 0!==e.collection&&null!==e.collection?t.collection=a.EpisodeCollectionDecorationPolicy.fromJSON(e.collection):t.collection=void 0,void 0!==e.sync&&null!==e.sync?t.sync=a.EpisodeSyncDecorationPolicy.fromJSON(e.sync):t.sync=void 0,void 0!==e.playedState&&null!==e.playedState?t.playedState=a.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedState):t.playedState=void 0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.UserDecorationPolicy.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.show&&null!==e.show?t.show=l.ShowDecorationPolicy.fromJSON(e.show):t.show=void 0,t},toJSON(e){const t={};return void 0!==e.episode&&(t.episode=e.episode?a.EpisodeDecorationPolicy.toJSON(e.episode):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.collection&&(t.collection=e.collection?a.EpisodeCollectionDecorationPolicy.toJSON(e.collection):void 0),void 0!==e.sync&&(t.sync=e.sync?a.EpisodeSyncDecorationPolicy.toJSON(e.sync):void 0),void 0!==e.playedState&&(t.playedState=e.playedState?a.EpisodePlayedStateDecorationPolicy.toJSON(e.playedState):void 0),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.show&&(t.show=e.show?l.ShowDecorationPolicy.toJSON(e.show):void 0),t},fromPartial(e){const t={...c};return void 0!==e.episode&&null!==e.episode?t.episode=a.EpisodeDecorationPolicy.fromPartial(e.episode):t.episode=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=e.formatListAttributes:t.formatListAttributes=!1,void 0!==e.collection&&null!==e.collection?t.collection=a.EpisodeCollectionDecorationPolicy.fromPartial(e.collection):t.collection=void 0,void 0!==e.sync&&null!==e.sync?t.sync=a.EpisodeSyncDecorationPolicy.fromPartial(e.sync):t.sync=void 0,void 0!==e.playedState&&null!==e.playedState?t.playedState=a.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedState):t.playedState=void 0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.UserDecorationPolicy.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.show&&null!==e.show?t.show=l.ShowDecorationPolicy.fromPartial(e.show):t.show=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94296:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistRequestDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(73034),s=n(13485),l=n(72599);t.protobufPackage="spotify.playlist.cosmos.proto";const c={};t.PlaylistRequestDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.playlist&&a.PlaylistDecorationPolicy.encode(e.playlist,t.uint32(10).fork()).ldelim(),void 0!==e.track&&s.PlaylistTrackDecorationPolicy.encode(e.track,t.uint32(18).fork()).ldelim(),void 0!==e.episode&&l.PlaylistEpisodeDecorationPolicy.encode(e.episode,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playlist=a.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 2:i.track=s.PlaylistTrackDecorationPolicy.decode(n,n.uint32());break;case 3:i.episode=l.PlaylistEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.playlist&&null!==e.playlist?t.playlist=a.PlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.track&&null!==e.track?t.track=s.PlaylistTrackDecorationPolicy.fromJSON(e.track):t.track=void 0,void 0!==e.episode&&null!==e.episode?t.episode=l.PlaylistEpisodeDecorationPolicy.fromJSON(e.episode):t.episode=void 0,t},toJSON(e){const t={};return void 0!==e.playlist&&(t.playlist=e.playlist?a.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.track&&(t.track=e.track?s.PlaylistTrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.episode&&(t.episode=e.episode?l.PlaylistEpisodeDecorationPolicy.toJSON(e.episode):void 0),t},fromPartial(e){const t={...c};return void 0!==e.playlist&&null!==e.playlist?t.playlist=a.PlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.track&&null!==e.track?t.track=s.PlaylistTrackDecorationPolicy.fromPartial(e.track):t.track=void 0,void 0!==e.episode&&null!==e.episode?t.episode=l.PlaylistEpisodeDecorationPolicy.fromPartial(e.episode):t.episode=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13485:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistTrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(1531),s=n(54546),l=n(52272),c=n(32691);t.protobufPackage="spotify.playlist.cosmos.proto";const u={rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1};t.PlaylistTrackDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.track&&a.TrackDecorationPolicy.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&s.UserDecorationPolicy.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&l.PlaylistAlbumDecorationPolicy.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&c.ArtistDecorationPolicy.encode(e.artist,t.uint32(114).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.track=a.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.rowId=n.bool();break;case 3:i.addTime=n.bool();break;case 4:i.inCollection=n.bool();break;case 5:i.canAddToCollection=n.bool();break;case 6:i.isBanned=n.bool();break;case 7:i.canBan=n.bool();break;case 8:i.localFile=n.bool();break;case 9:i.offline=n.bool();break;case 10:i.formatListAttributes=n.bool();break;case 11:i.displayCovers=n.bool();break;case 12:i.addedBy=s.UserDecorationPolicy.decode(n,n.uint32());break;case 13:i.album=l.PlaylistAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:i.artist=c.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...u};return void 0!==e.track&&null!==e.track?t.track=a.TrackDecorationPolicy.fromJSON(e.track):t.track=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=Boolean(e.rowId):t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.inCollection&&null!==e.inCollection?t.inCollection=Boolean(e.inCollection):t.inCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=Boolean(e.canAddToCollection):t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,void 0!==e.localFile&&null!==e.localFile?t.localFile=Boolean(e.localFile):t.localFile=!1,void 0!==e.offline&&null!==e.offline?t.offline=Boolean(e.offline):t.offline=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=Boolean(e.formatListAttributes):t.formatListAttributes=!1,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=Boolean(e.displayCovers):t.displayCovers=!1,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.UserDecorationPolicy.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.album&&null!==e.album?t.album=l.PlaylistAlbumDecorationPolicy.fromJSON(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=c.ArtistDecorationPolicy.fromJSON(e.artist):t.artist=void 0,t},toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?a.TrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),void 0!==e.localFile&&(t.localFile=e.localFile),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.album&&(t.album=e.album?l.PlaylistAlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?c.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t={...u};return void 0!==e.track&&null!==e.track?t.track=a.TrackDecorationPolicy.fromPartial(e.track):t.track=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.inCollection&&null!==e.inCollection?t.inCollection=e.inCollection:t.inCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=e.canAddToCollection:t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,void 0!==e.localFile&&null!==e.localFile?t.localFile=e.localFile:t.localFile=!1,void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=e.formatListAttributes:t.formatListAttributes=!1,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=e.displayCovers:t.displayCovers=!1,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.UserDecorationPolicy.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.album&&null!==e.album?t.album=l.PlaylistAlbumDecorationPolicy.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=c.ArtistDecorationPolicy.fromPartial(e.artist):t.artist=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},6894:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistFolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(10853);t.protobufPackage="spotify.playlist.cosmos.proto";const s={addTime:!1,groupLabel:!1};t.RootlistFolderDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.folder&&a.FolderDecorationPolicy.encode(e.folder,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.addTime=n.bool();break;case 2:i.folder=a.FolderDecorationPolicy.decode(n,n.uint32());break;case 3:i.groupLabel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.folder&&null!==e.folder?t.folder=a.FolderDecorationPolicy.fromJSON(e.folder):t.folder=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=Boolean(e.groupLabel):t.groupLabel=!1,t},toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.folder&&(t.folder=e.folder?a.FolderDecorationPolicy.toJSON(e.folder):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={...s};return void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.folder&&null!==e.folder?t.folder=a.FolderDecorationPolicy.fromPartial(e.folder):t.folder=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},41381:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistPlaylistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(73034);t.protobufPackage="spotify.playlist.cosmos.proto";const s={addTime:!1,groupLabel:!1};t.RootlistPlaylistDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.playlist&&a.PlaylistDecorationPolicy.encode(e.playlist,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.addTime=n.bool();break;case 2:i.playlist=a.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 3:i.groupLabel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=a.PlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=Boolean(e.groupLabel):t.groupLabel=!1,t},toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.playlist&&(t.playlist=e.playlist?a.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={...s};return void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=a.PlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},46747:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistRequestDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(41381),s=n(6894);t.protobufPackage="spotify.playlist.cosmos.proto";const l={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1};t.RootlistRequestDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.unfilteredLength&&t.uint32(8).bool(e.unfilteredLength),!0===e.unrangedLength&&t.uint32(16).bool(e.unrangedLength),!0===e.isLoadingContents&&t.uint32(24).bool(e.isLoadingContents),void 0!==e.playlist&&a.RootlistPlaylistDecorationPolicy.encode(e.playlist,t.uint32(34).fork()).ldelim(),void 0!==e.folder&&s.RootlistFolderDecorationPolicy.encode(e.folder,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.unfilteredLength=n.bool();break;case 2:i.unrangedLength=n.bool();break;case 3:i.isLoadingContents=n.bool();break;case 4:i.playlist=a.RootlistPlaylistDecorationPolicy.decode(n,n.uint32());break;case 5:i.folder=s.RootlistFolderDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=Boolean(e.unfilteredLength):t.unfilteredLength=!1,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=Boolean(e.unrangedLength):t.unrangedLength=!1,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?t.isLoadingContents=Boolean(e.isLoadingContents):t.isLoadingContents=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=a.RootlistPlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.folder&&null!==e.folder?t.folder=s.RootlistFolderDecorationPolicy.fromJSON(e.folder):t.folder=void 0,t},toJSON(e){const t={};return void 0!==e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(t.unrangedLength=e.unrangedLength),void 0!==e.isLoadingContents&&(t.isLoadingContents=e.isLoadingContents),void 0!==e.playlist&&(t.playlist=e.playlist?a.RootlistPlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.folder&&(t.folder=e.folder?s.RootlistFolderDecorationPolicy.toJSON(e.folder):void 0),t},fromPartial(e){const t={...l};return void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=e.unfilteredLength:t.unfilteredLength=!1,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=e.unrangedLength:t.unrangedLength=!1,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?t.isLoadingContents=e.isLoadingContents:t.isLoadingContents=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=a.RootlistPlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.folder&&null!==e.folder?t.folder=s.RootlistFolderDecorationPolicy.fromPartial(e.folder):t.folder=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},50614:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(43249);t.protobufPackage="spotify.cosmos_util.proto";const s={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:0,isBook:!1};t.ShowDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(i.extension=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.description=n.bool();break;case 4:i.popularity=n.bool();break;case 5:i.publisher=n.bool();break;case 6:i.language=n.bool();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=n.bool();break;case 9:i.numEpisodes=n.bool();break;case 10:i.consumptionOrder=n.bool();break;case 11:i.mediaTypeEnum=n.bool();break;case 12:i.copyrights=n.bool();break;case 13:i.trailerUri=n.bool();break;case 14:i.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.extension.push(n.int32())}else i.extension.push(n.int32());break;case 17:i.isBook=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};if(t.extension=[],void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.description&&null!==e.description?t.description=Boolean(e.description):t.description=!1,void 0!==e.popularity&&null!==e.popularity?t.popularity=Boolean(e.popularity):t.popularity=!1,void 0!==e.publisher&&null!==e.publisher?t.publisher=Boolean(e.publisher):t.publisher=!1,void 0!==e.language&&null!==e.language?t.language=Boolean(e.language):t.language=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=Boolean(e.isExplicit):t.isExplicit=!1,void 0!==e.covers&&null!==e.covers?t.covers=Boolean(e.covers):t.covers=!1,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=Boolean(e.numEpisodes):t.numEpisodes=!1,void 0!==e.consumptionOrder&&null!==e.consumptionOrder?t.consumptionOrder=Boolean(e.consumptionOrder):t.consumptionOrder=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=Boolean(e.mediaTypeEnum):t.mediaTypeEnum=!1,void 0!==e.copyrights&&null!==e.copyrights?t.copyrights=Boolean(e.copyrights):t.copyrights=!1,void 0!==e.trailerUri&&null!==e.trailerUri?t.trailerUri=Boolean(e.trailerUri):t.trailerUri=!1,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=Boolean(e.isMusicAndTalk):t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(a.extensionKindFromJSON(n));return void 0!==e.isBook&&null!==e.isBook?t.isBook=Boolean(e.isBook):t.isBook=!1,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>a.extensionKindToJSON(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),t},fromPartial(e){const t={...s};if(t.extension=[],void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.description&&null!==e.description?t.description=e.description:t.description=!1,void 0!==e.popularity&&null!==e.popularity?t.popularity=e.popularity:t.popularity=!1,void 0!==e.publisher&&null!==e.publisher?t.publisher=e.publisher:t.publisher=!1,void 0!==e.language&&null!==e.language?t.language=e.language:t.language=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.covers&&null!==e.covers?t.covers=e.covers:t.covers=!1,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=e.numEpisodes:t.numEpisodes=!1,void 0!==e.consumptionOrder&&null!==e.consumptionOrder?t.consumptionOrder=e.consumptionOrder:t.consumptionOrder=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=e.mediaTypeEnum:t.mediaTypeEnum=!1,void 0!==e.copyrights&&null!==e.copyrights?t.copyrights=e.copyrights:t.copyrights=!1,void 0!==e.trailerUri&&null!==e.trailerUri?t.trailerUri=e.trailerUri:t.trailerUri=!1,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=e.isMusicAndTalk:t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(n);return void 0!==e.isBook&&null!==e.isBook?t.isBook=e.isBook:t.isBook=!1,t}};const l={latestPlayedEpisodeLink:!1};t.ShowPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.latestPlayedEpisodeLink=n.bool();else n.skipType(7&e)}return i},fromJSON(e){const t={...l};return void 0!==e.latestPlayedEpisodeLink&&null!==e.latestPlayedEpisodeLink?t.latestPlayedEpisodeLink=Boolean(e.latestPlayedEpisodeLink):t.latestPlayedEpisodeLink=!1,t},toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),t},fromPartial(e){const t={...l};return void 0!==e.latestPlayedEpisodeLink&&null!==e.latestPlayedEpisodeLink?t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink:t.latestPlayedEpisodeLink=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},1531:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncDecorationPolicy=t.TrackCollectionDecorationPolicy=t.TrackPlayedStateDecorationPolicy=t.TrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1};t.TrackDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.hasLyrics=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.length=n.bool();break;case 5:i.playable=n.bool();break;case 6:i.isAvailableInMetadataCatalogue=n.bool();break;case 7:i.locallyPlayable=n.bool();break;case 8:i.playableLocalTrack=n.bool();break;case 9:i.discNumber=n.bool();break;case 10:i.trackNumber=n.bool();break;case 11:i.isExplicit=n.bool();break;case 12:i.previewId=n.bool();break;case 13:i.isLocal=n.bool();break;case 14:i.isPremiumOnly=n.bool();break;case 15:i.playableTrackLink=n.bool();break;case 16:i.popularity=n.bool();break;case 17:i.is19PlusOnly=n.bool();break;case 18:i.trackDescriptors=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.hasLyrics&&null!==e.hasLyrics?t.hasLyrics=Boolean(e.hasLyrics):t.hasLyrics=!1,void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.length&&null!==e.length?t.length=Boolean(e.length):t.length=!1,void 0!==e.playable&&null!==e.playable?t.playable=Boolean(e.playable):t.playable=!1,void 0!==e.isAvailableInMetadataCatalogue&&null!==e.isAvailableInMetadataCatalogue?t.isAvailableInMetadataCatalogue=Boolean(e.isAvailableInMetadataCatalogue):t.isAvailableInMetadataCatalogue=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?t.locallyPlayable=Boolean(e.locallyPlayable):t.locallyPlayable=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?t.playableLocalTrack=Boolean(e.playableLocalTrack):t.playableLocalTrack=!1,void 0!==e.discNumber&&null!==e.discNumber?t.discNumber=Boolean(e.discNumber):t.discNumber=!1,void 0!==e.trackNumber&&null!==e.trackNumber?t.trackNumber=Boolean(e.trackNumber):t.trackNumber=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=Boolean(e.isExplicit):t.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=Boolean(e.previewId):t.previewId=!1,void 0!==e.isLocal&&null!==e.isLocal?t.isLocal=Boolean(e.isLocal):t.isLocal=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=Boolean(e.isPremiumOnly):t.isPremiumOnly=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?t.playableTrackLink=Boolean(e.playableTrackLink):t.playableTrackLink=!1,void 0!==e.popularity&&null!==e.popularity?t.popularity=Boolean(e.popularity):t.popularity=!1,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=Boolean(e.is19PlusOnly):t.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors?t.trackDescriptors=Boolean(e.trackDescriptors):t.trackDescriptors=!1,t},toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),t},fromPartial(e){const t={...a};return void 0!==e.hasLyrics&&null!==e.hasLyrics?t.hasLyrics=e.hasLyrics:t.hasLyrics=!1,void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=!1,void 0!==e.playable&&null!==e.playable?t.playable=e.playable:t.playable=!1,void 0!==e.isAvailableInMetadataCatalogue&&null!==e.isAvailableInMetadataCatalogue?t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue:t.isAvailableInMetadataCatalogue=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?t.locallyPlayable=e.locallyPlayable:t.locallyPlayable=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?t.playableLocalTrack=e.playableLocalTrack:t.playableLocalTrack=!1,void 0!==e.discNumber&&null!==e.discNumber?t.discNumber=e.discNumber:t.discNumber=!1,void 0!==e.trackNumber&&null!==e.trackNumber?t.trackNumber=e.trackNumber:t.trackNumber=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=e.previewId:t.previewId=!1,void 0!==e.isLocal&&null!==e.isLocal?t.isLocal=e.isLocal:t.isLocal=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=e.isPremiumOnly:t.isPremiumOnly=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?t.playableTrackLink=e.playableTrackLink:t.playableTrackLink=!1,void 0!==e.popularity&&null!==e.popularity?t.popularity=e.popularity:t.popularity=!1,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=e.is19PlusOnly:t.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors?t.trackDescriptors=e.trackDescriptors:t.trackDescriptors=!1,t}};const s={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};t.TrackPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playable=n.bool();break;case 2:i.isCurrentlyPlayable=n.bool();break;case 3:i.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.playable&&null!==e.playable?t.playable=Boolean(e.playable):t.playable=!1,void 0!==e.isCurrentlyPlayable&&null!==e.isCurrentlyPlayable?t.isCurrentlyPlayable=Boolean(e.isCurrentlyPlayable):t.isCurrentlyPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=Boolean(e.playabilityRestriction):t.playabilityRestriction=!1,t},toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){const t={...s};return void 0!==e.playable&&null!==e.playable?t.playable=e.playable:t.playable=!1,void 0!==e.isCurrentlyPlayable&&null!==e.isCurrentlyPlayable?t.isCurrentlyPlayable=e.isCurrentlyPlayable:t.isCurrentlyPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=!1,t}};const l={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};t.TrackCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=Boolean(e.isInCollection):t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=Boolean(e.canAddToCollection):t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={...l};return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=e.isInCollection:t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=e.canAddToCollection:t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,t}};const c={offlineState:!1,syncProgress:!1};t.TrackSyncDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offlineState=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=Boolean(e.offlineState):t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={...c};return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},54546:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollaboratingUsersDecorationPolicy=t.CollaboratorPolicy=t.UserDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};t.UserDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.username=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.image=n.bool();break;case 5:i.thumbnail=n.bool();break;case 6:i.color=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.username&&null!==e.username?t.username=Boolean(e.username):t.username=!1,void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.image&&null!==e.image?t.image=Boolean(e.image):t.image=!1,void 0!==e.thumbnail&&null!==e.thumbnail?t.thumbnail=Boolean(e.thumbnail):t.thumbnail=!1,void 0!==e.color&&null!==e.color?t.color=Boolean(e.color):t.color=!1,t},toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.image&&(t.image=e.image),void 0!==e.thumbnail&&(t.thumbnail=e.thumbnail),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){const t={...a};return void 0!==e.username&&null!==e.username?t.username=e.username:t.username=!1,void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.image&&null!==e.image?t.image=e.image:t.image=!1,void 0!==e.thumbnail&&null!==e.thumbnail?t.thumbnail=e.thumbnail:t.thumbnail=!1,void 0!==e.color&&null!==e.color?t.color=e.color:t.color=!1,t}};const s={numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};t.CollaboratorPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.user&&t.UserDecorationPolicy.encode(e.user,n.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&n.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&n.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&n.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&n.uint32(40).bool(e.isOwner),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...s};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...s};return void 0!==e.user&&null!==e.user?n.user=t.UserDecorationPolicy.fromJSON(e.user):n.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?n.numberOfItems=Boolean(e.numberOfItems):n.numberOfItems=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=Boolean(e.numberOfTracks):n.numberOfTracks=!1,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=Boolean(e.numberOfEpisodes):n.numberOfEpisodes=!1,void 0!==e.isOwner&&null!==e.isOwner?n.isOwner=Boolean(e.isOwner):n.isOwner=!1,n},toJSON(e){const n={};return void 0!==e.user&&(n.user=e.user?t.UserDecorationPolicy.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(n.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(n.isOwner=e.isOwner),n},fromPartial(e){const n={...s};return void 0!==e.user&&null!==e.user?n.user=t.UserDecorationPolicy.fromPartial(e.user):n.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?n.numberOfItems=e.numberOfItems:n.numberOfItems=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=e.numberOfTracks:n.numberOfTracks=!1,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=e.numberOfEpisodes:n.numberOfEpisodes=!1,void 0!==e.isOwner&&null!==e.isOwner?n.isOwner=e.isOwner:n.isOwner=!1,n}};const l={count:!1,limit:0};t.CollaboratingUsersDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(!0===e.count&&n.uint32(8).bool(e.count),0!==e.limit&&n.uint32(16).int32(e.limit),void 0!==e.collaborator&&t.CollaboratorPolicy.encode(e.collaborator,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...l};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...l};return void 0!==e.count&&null!==e.count?n.count=Boolean(e.count):n.count=!1,void 0!==e.limit&&null!==e.limit?n.limit=Number(e.limit):n.limit=0,void 0!==e.collaborator&&null!==e.collaborator?n.collaborator=t.CollaboratorPolicy.fromJSON(e.collaborator):n.collaborator=void 0,n},toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),void 0!==e.limit&&(n.limit=e.limit),void 0!==e.collaborator&&(n.collaborator=e.collaborator?t.CollaboratorPolicy.toJSON(e.collaborator):void 0),n},fromPartial(e){const n={...l};return void 0!==e.count&&null!==e.count?n.count=e.count:n.count=!1,void 0!==e.limit&&null!==e.limit?n.limit=e.limit:n.limit=0,void 0!==e.collaborator&&null!==e.collaborator?n.collaborator=t.CollaboratorPolicy.fromPartial(e.collaborator):n.collaborator=void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},41815:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={isFollowingShow:!1,isNew:!1,isInListenLater:!1};t.EpisodeCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isNew=n.bool();break;case 3:i.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=Boolean(e.isFollowingShow):t.isFollowingShow=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=Boolean(e.isNew):t.isNew=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=Boolean(e.isInListenLater):t.isInListenLater=!1,t},toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){const t={...a};return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=e.isFollowingShow:t.isFollowingShow=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=e.isNew:t.isNew=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=e.isInListenLater:t.isInListenLater=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},46838:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContainsResponse=t.ContainsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={items:""};t.ContainsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.items)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(i.items=[];n.pos<o;){const e=n.uint32();if(e>>>3==1)i.items.push(n.string());else n.skipType(7&e)}return i},fromJSON(e){const t={...a};if(t.items=[],void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(String(n));return t},toJSON(e){const t={};return e.items?t.items=e.items.map((e=>e)):t.items=[],t},fromPartial(e){const t={...a};if(t.items=[],void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(n);return t}};const s={found:!1};t.ContainsResponse={encode(e,t=r.default.Writer.create()){t.uint32(10).fork();for(const n of e.found)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(i.found=[];n.pos<o;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.found.push(n.bool())}else i.found.push(n.bool());else n.skipType(7&e)}return i},fromJSON(e){const t={...s};if(t.found=[],void 0!==e.found&&null!==e.found)for(const n of e.found)t.found.push(Boolean(n));return t},toJSON(e){const t={};return e.found?t.found=e.found.map((e=>e)):t.found=[],t},fromPartial(e){const t={...s};if(t.found=[],void 0!==e.found&&null!==e.found)for(const n of e.found)t.found.push(n);return t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},80610:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},52645:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sync_request=t.set_member_permission_request=t.rootlist_request=t.playlist_set_permission_request=t.playlist_request=t.playlist_playback_request=t.offline_playlists_containing=t.modification_request=t.members_response=t.members_request=t.contains_request=void 0;const a=r(n(46838));t.contains_request=a;const s=r(n(51204));t.members_request=s;const l=r(n(71920));t.members_response=l;const c=r(n(89513));t.modification_request=c;const u=r(n(86902));t.offline_playlists_containing=u;const d=r(n(5546));t.playlist_playback_request=d;const p=r(n(22852));t.playlist_request=p;const f=r(n(89648));t.playlist_set_permission_request=f;const h=r(n(67168));t.rootlist_request=h;const m=r(n(12216));t.set_member_permission_request=m;const g=r(n(95574));t.sync_request=g},51204:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersRequest=t.OptionalLimit=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={value:0};t.OptionalLimit={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(8).uint32(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.uint32();else n.skipType(7&e)}return i},fromJSON(e){const t={...a};return void 0!==e.value&&null!==e.value?t.value=Number(e.value):t.value=0,t},toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={...a};return void 0!==e.value&&null!==e.value?t.value=e.value:t.value=0,t}};const s={uri:""};t.PlaylistMembersRequest={encode:(e,n=r.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),void 0!==e.limit&&t.OptionalLimit.encode(e.limit,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...s};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.limit=t.OptionalLimit.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...s};return void 0!==e.uri&&null!==e.uri?n.uri=String(e.uri):n.uri="",void 0!==e.limit&&null!==e.limit?n.limit=t.OptionalLimit.fromJSON(e.limit):n.limit=void 0,n},toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),void 0!==e.limit&&(n.limit=e.limit?t.OptionalLimit.toJSON(e.limit):void 0),n},fromPartial(e){const n={...s};return void 0!==e.uri&&null!==e.uri?n.uri=e.uri:n.uri="",void 0!==e.limit&&null!==e.limit?n.limit=t.OptionalLimit.fromPartial(e.limit):n.limit=void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},71920:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersResponse=t.Member=t.followStateToJSON=t.followStateFromJSON=t.FollowState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(71249),s=n(95583);var l;function c(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"CAN_BE_FOLLOWED":return l.CAN_BE_FOLLOWED;case 2:case"CAN_BE_UNFOLLOWED":return l.CAN_BE_UNFOLLOWED;default:return l.UNRECOGNIZED}}function u(e){switch(e){case l.NONE:return"NONE";case l.CAN_BE_FOLLOWED:return"CAN_BE_FOLLOWED";case l.CAN_BE_UNFOLLOWED:return"CAN_BE_UNFOLLOWED";default:return"UNKNOWN"}}t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.NONE=0]="NONE",e[e.CAN_BE_FOLLOWED=1]="CAN_BE_FOLLOWED",e[e.CAN_BE_UNFOLLOWED=2]="CAN_BE_UNFOLLOWED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.FollowState||(t.FollowState={})),t.followStateFromJSON=c,t.followStateToJSON=u;const d={isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};t.Member={encode:(e,t=r.default.Writer.create())=>(void 0!==e.user&&s.User.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.isOwner&&t.uint32(16).bool(e.isOwner),0!==e.numTracks&&t.uint32(24).uint32(e.numTracks),0!==e.numEpisodes&&t.uint32(32).uint32(e.numEpisodes),0!==e.followState&&t.uint32(40).int32(e.followState),0!==e.permissionLevel&&t.uint32(48).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...d};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.user=s.User.decode(n,n.uint32());break;case 2:i.isOwner=n.bool();break;case 3:i.numTracks=n.uint32();break;case 4:i.numEpisodes=n.uint32();break;case 5:i.followState=n.int32();break;case 6:i.permissionLevel=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...d};return void 0!==e.user&&null!==e.user?t.user=s.User.fromJSON(e.user):t.user=void 0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=Boolean(e.isOwner):t.isOwner=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=Number(e.numTracks):t.numTracks=0,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=Number(e.numEpisodes):t.numEpisodes=0,void 0!==e.followState&&null!==e.followState?t.followState=c(e.followState):t.followState=0,void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=a.permissionLevelFromJSON(e.permissionLevel):t.permissionLevel=0,t},toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?s.User.toJSON(e.user):void 0),void 0!==e.isOwner&&(t.isOwner=e.isOwner),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.followState&&(t.followState=u(e.followState)),void 0!==e.permissionLevel&&(t.permissionLevel=a.permissionLevelToJSON(e.permissionLevel)),t},fromPartial(e){const t={...d};return void 0!==e.user&&null!==e.user?t.user=s.User.fromPartial(e.user):t.user=void 0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=e.isOwner:t.isOwner=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=e.numTracks:t.numTracks=0,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=e.numEpisodes:t.numEpisodes=0,void 0!==e.followState&&null!==e.followState?t.followState=e.followState:t.followState=0,void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,t}};const p={title:"",numTotalMembers:0,basePermissionLevel:0};t.PlaylistMembersResponse={encode(e,n=r.default.Writer.create()){""!==e.title&&n.uint32(10).string(e.title),0!==e.numTotalMembers&&n.uint32(16).uint32(e.numTotalMembers),void 0!==e.capabilities&&a.Capabilities.encode(e.capabilities,n.uint32(26).fork()).ldelim(),0!==e.basePermissionLevel&&n.uint32(32).int32(e.basePermissionLevel);for(const o of e.members)t.Member.encode(o,n.uint32(42).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...p};for(s.members=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.title=o.string();break;case 2:s.numTotalMembers=o.uint32();break;case 3:s.capabilities=a.Capabilities.decode(o,o.uint32());break;case 4:s.basePermissionLevel=o.int32();break;case 5:s.members.push(t.Member.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON(e){const n={...p};if(n.members=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.numTotalMembers&&null!==e.numTotalMembers?n.numTotalMembers=Number(e.numTotalMembers):n.numTotalMembers=0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=a.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,void 0!==e.basePermissionLevel&&null!==e.basePermissionLevel?n.basePermissionLevel=a.permissionLevelFromJSON(e.basePermissionLevel):n.basePermissionLevel=0,void 0!==e.members&&null!==e.members)for(const o of e.members)n.members.push(t.Member.fromJSON(o));return n},toJSON(e){const n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.numTotalMembers&&(n.numTotalMembers=e.numTotalMembers),void 0!==e.capabilities&&(n.capabilities=e.capabilities?a.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.basePermissionLevel&&(n.basePermissionLevel=a.permissionLevelToJSON(e.basePermissionLevel)),e.members?n.members=e.members.map((e=>e?t.Member.toJSON(e):void 0)):n.members=[],n},fromPartial(e){const n={...p};if(n.members=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.numTotalMembers&&null!==e.numTotalMembers?n.numTotalMembers=e.numTotalMembers:n.numTotalMembers=0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=a.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,void 0!==e.basePermissionLevel&&null!==e.basePermissionLevel?n.basePermissionLevel=e.basePermissionLevel:n.basePermissionLevel=0,void 0!==e.members&&null!==e.members)for(const o of e.members)n.members.push(t.Member.fromPartial(o));return n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},8640:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(15792),s=n(94581);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";default:return"UNKNOWN"}}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f;const h={link:"",name:"",publisher:""};t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...h};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...h};return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.publisher&&null!==e.publisher?t.publisher=String(e.publisher):t.publisher="",void 0!==e.covers&&null!==e.covers?t.covers=a.ImageGroup.fromJSON(e.covers):t.covers=void 0,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={...h};return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.publisher&&null!==e.publisher?t.publisher=e.publisher:t.publisher="",void 0!==e.covers&&null!==e.covers?t.covers=a.ImageGroup.fromPartial(e.covers):t.covers=void 0,t}};const m={link:"",name:"",length:0,manifestId:"",description:"",publishDate:"0",language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,is19PlusOnly:!1,isBookChapter:!1};t.EpisodeMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&a.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)s.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={...m};for(l.extension=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=a.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(s.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON(e){const n={...m};if(n.extension=[],void 0!==e.show&&null!==e.show?n.show=t.EpisodeShowMetadata.fromJSON(e.show):n.show=void 0,void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.length&&null!==e.length?n.length=Number(e.length):n.length=0,void 0!==e.covers&&null!==e.covers?n.covers=a.ImageGroup.fromJSON(e.covers):n.covers=void 0,void 0!==e.manifestId&&null!==e.manifestId?n.manifestId=String(e.manifestId):n.manifestId="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.publishDate&&null!==e.publishDate?n.publishDate=String(e.publishDate):n.publishDate="0",void 0!==e.freezeFrames&&null!==e.freezeFrames?n.freezeFrames=a.ImageGroup.fromJSON(e.freezeFrames):n.freezeFrames=void 0,void 0!==e.language&&null!==e.language?n.language=String(e.language):n.language="",void 0!==e.available&&null!==e.available?n.available=Boolean(e.available):n.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?n.mediaTypeEnum=p(e.mediaTypeEnum):n.mediaTypeEnum=0,void 0!==e.number&&null!==e.number?n.number=Number(e.number):n.number=0,void 0!==e.backgroundable&&null!==e.backgroundable?n.backgroundable=Boolean(e.backgroundable):n.backgroundable=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?n.previewManifestId=String(e.previewManifestId):n.previewManifestId="",void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=Boolean(e.isExplicit):n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=String(e.previewId):n.previewId="",void 0!==e.episodeType&&null!==e.episodeType?n.episodeType=u(e.episodeType):n.episodeType=0,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?n.isMusicAndTalk=Boolean(e.isMusicAndTalk):n.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(s.Extension.fromJSON(t));return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=Boolean(e.is19PlusOnly):n.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?n.isBookChapter=Boolean(e.isBookChapter):n.isBookChapter=!1,n},toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=e.length),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?a.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=e.number),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),n},fromPartial(e){const n={...m};if(n.extension=[],void 0!==e.show&&null!==e.show?n.show=t.EpisodeShowMetadata.fromPartial(e.show):n.show=void 0,void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.length&&null!==e.length?n.length=e.length:n.length=0,void 0!==e.covers&&null!==e.covers?n.covers=a.ImageGroup.fromPartial(e.covers):n.covers=void 0,void 0!==e.manifestId&&null!==e.manifestId?n.manifestId=e.manifestId:n.manifestId="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.publishDate&&null!==e.publishDate?n.publishDate=e.publishDate:n.publishDate="0",void 0!==e.freezeFrames&&null!==e.freezeFrames?n.freezeFrames=a.ImageGroup.fromPartial(e.freezeFrames):n.freezeFrames=void 0,void 0!==e.language&&null!==e.language?n.language=e.language:n.language="",void 0!==e.available&&null!==e.available?n.available=e.available:n.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?n.mediaTypeEnum=e.mediaTypeEnum:n.mediaTypeEnum=0,void 0!==e.number&&null!==e.number?n.number=e.number:n.number=0,void 0!==e.backgroundable&&null!==e.backgroundable?n.backgroundable=e.backgroundable:n.backgroundable=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?n.previewManifestId=e.previewManifestId:n.previewManifestId="",void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=e.isExplicit:n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=e.previewId:n.previewId="",void 0!==e.episodeType&&null!==e.episodeType?n.episodeType=e.episodeType:n.episodeType=0,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?n.isMusicAndTalk=e.isMusicAndTalk:n.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(s.Extension.fromPartial(t));return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=e.is19PlusOnly:n.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?n.isBookChapter=e.isBookChapter:n.isBookChapter=!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94581:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(80610);t.protobufPackage="spotify.cosmos_util.proto";const s={extensionKind:0};t.Extension={encode:(e,t=r.default.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(i.data=new Uint8Array;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.extensionKind=n.int32();break;case 2:i.data=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return t.data=new Uint8Array,void 0!==e.extensionKind&&null!==e.extensionKind?t.extensionKind=a.extensionKindFromJSON(e.extensionKind):t.extensionKind=0,void 0!==e.data&&null!==e.data&&(t.data=function(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}(e.data)),t},toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=a.extensionKindToJSON(e.extensionKind)),void 0!==e.data&&(t.data=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return u(t.join(""))}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t={...s};return void 0!==e.extensionKind&&null!==e.extensionKind?t.extensionKind=e.extensionKind:t.extensionKind=0,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var l=(()=>{if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const c=l.atob||(e=>l.Buffer.from(e,"base64").toString("binary"));const u=l.btoa||(e=>l.Buffer.from(e,"binary").toString("base64"));r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},15792:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};t.ImageGroup={encode:(e,t=r.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.standardLink=n.string();break;case 2:i.smallLink=n.string();break;case 3:i.largeLink=n.string();break;case 4:i.xlargeLink=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.standardLink&&null!==e.standardLink?t.standardLink=String(e.standardLink):t.standardLink="",void 0!==e.smallLink&&null!==e.smallLink?t.smallLink=String(e.smallLink):t.smallLink="",void 0!==e.largeLink&&null!==e.largeLink?t.largeLink=String(e.largeLink):t.largeLink="",void 0!==e.xlargeLink&&null!==e.xlargeLink?t.xlargeLink=String(e.xlargeLink):t.xlargeLink="",t},toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={...a};return void 0!==e.standardLink&&null!==e.standardLink?t.standardLink=e.standardLink:t.standardLink="",void 0!==e.smallLink&&null!==e.smallLink?t.smallLink=e.smallLink:t.smallLink="",void 0!==e.largeLink&&null!==e.largeLink?t.largeLink=e.largeLink:t.largeLink="",void 0!==e.xlargeLink&&null!==e.xlargeLink?t.xlargeLink=e.xlargeLink:t.xlargeLink="",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},72711:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackMetadata=t.TrackDescriptor=t.TrackArtistMetadata=t.TrackAlbumMetadata=t.TrackAlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(15792);t.protobufPackage="spotify.cosmos_util.proto";const s={link:"",name:""};t.TrackAlbumArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={...s};return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",t}};const l={link:"",name:""};t.TrackAlbumMetadata={encode:(e,n=r.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...l};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON(e){const n={...l};return void 0!==e.artist&&null!==e.artist?n.artist=t.TrackAlbumArtistMetadata.fromJSON(e.artist):n.artist=void 0,void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.covers&&null!==e.covers?n.covers=a.ImageGroup.fromJSON(e.covers):n.covers=void 0,n},toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n={...l};return void 0!==e.artist&&null!==e.artist?n.artist=t.TrackAlbumArtistMetadata.fromPartial(e.artist):n.artist=void 0,void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.covers&&null!==e.covers?n.covers=a.ImageGroup.fromPartial(e.covers):n.covers=void 0,n}};const c={link:"",name:""};t.TrackArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.portraits&&null!==e.portraits?t.portraits=a.ImageGroup.fromJSON(e.portraits):t.portraits=void 0,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={...c};return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.portraits&&null!==e.portraits?t.portraits=a.ImageGroup.fromPartial(e.portraits):t.portraits=void 0,t}};const u={name:""};t.TrackDescriptor={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.name=n.string();else n.skipType(7&e)}return i},fromJSON(e){const t={...u};return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",t},toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={...u};return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",t}};const d={link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1};t.TrackMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...d};for(a.artist=[],a.trackDescriptors=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:a.link=o.string();break;case 4:a.name=o.string();break;case 5:a.length=o.uint32();break;case 6:a.playable=o.bool();break;case 7:a.discNumber=o.uint32();break;case 8:a.trackNumber=o.uint32();break;case 9:a.isExplicit=o.bool();break;case 10:a.previewId=o.string();break;case 11:a.isLocal=o.bool();break;case 12:a.playableLocalTrack=o.bool();break;case 13:a.hasLyrics=o.bool();break;case 14:a.isPremiumOnly=o.bool();break;case 15:a.locallyPlayable=o.bool();break;case 16:a.playableTrackLink=o.string();break;case 17:a.popularity=o.uint32();break;case 18:a.is19PlusOnly=o.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...d};if(n.artist=[],n.trackDescriptors=[],void 0!==e.album&&null!==e.album?n.album=t.TrackAlbumMetadata.fromJSON(e.album):n.album=void 0,void 0!==e.artist&&null!==e.artist)for(const o of e.artist)n.artist.push(t.TrackArtistMetadata.fromJSON(o));if(void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.length&&null!==e.length?n.length=Number(e.length):n.length=0,void 0!==e.playable&&null!==e.playable?n.playable=Boolean(e.playable):n.playable=!1,void 0!==e.discNumber&&null!==e.discNumber?n.discNumber=Number(e.discNumber):n.discNumber=0,void 0!==e.trackNumber&&null!==e.trackNumber?n.trackNumber=Number(e.trackNumber):n.trackNumber=0,void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=Boolean(e.isExplicit):n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=String(e.previewId):n.previewId="",void 0!==e.isLocal&&null!==e.isLocal?n.isLocal=Boolean(e.isLocal):n.isLocal=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?n.playableLocalTrack=Boolean(e.playableLocalTrack):n.playableLocalTrack=!1,void 0!==e.hasLyrics&&null!==e.hasLyrics?n.hasLyrics=Boolean(e.hasLyrics):n.hasLyrics=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?n.isPremiumOnly=Boolean(e.isPremiumOnly):n.isPremiumOnly=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?n.locallyPlayable=Boolean(e.locallyPlayable):n.locallyPlayable=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?n.playableTrackLink=String(e.playableTrackLink):n.playableTrackLink="",void 0!==e.popularity&&null!==e.popularity?n.popularity=Number(e.popularity):n.popularity=0,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=Boolean(e.is19PlusOnly):n.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors)for(const o of e.trackDescriptors)n.trackDescriptors.push(t.TrackDescriptor.fromJSON(o));return n},toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=e.length),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=e.discNumber),void 0!==e.trackNumber&&(n.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=e.popularity),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],n},fromPartial(e){const n={...d};if(n.artist=[],n.trackDescriptors=[],void 0!==e.album&&null!==e.album?n.album=t.TrackAlbumMetadata.fromPartial(e.album):n.album=void 0,void 0!==e.artist&&null!==e.artist)for(const o of e.artist)n.artist.push(t.TrackArtistMetadata.fromPartial(o));if(void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.length&&null!==e.length?n.length=e.length:n.length=0,void 0!==e.playable&&null!==e.playable?n.playable=e.playable:n.playable=!1,void 0!==e.discNumber&&null!==e.discNumber?n.discNumber=e.discNumber:n.discNumber=0,void 0!==e.trackNumber&&null!==e.trackNumber?n.trackNumber=e.trackNumber:n.trackNumber=0,void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=e.isExplicit:n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=e.previewId:n.previewId="",void 0!==e.isLocal&&null!==e.isLocal?n.isLocal=e.isLocal:n.isLocal=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?n.playableLocalTrack=e.playableLocalTrack:n.playableLocalTrack=!1,void 0!==e.hasLyrics&&null!==e.hasLyrics?n.hasLyrics=e.hasLyrics:n.hasLyrics=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?n.isPremiumOnly=e.isPremiumOnly:n.isPremiumOnly=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?n.locallyPlayable=e.locallyPlayable:n.locallyPlayable=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?n.playableTrackLink=e.playableTrackLink:n.playableTrackLink="",void 0!==e.popularity&&null!==e.popularity?n.popularity=e.popularity:n.popularity=0,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=e.is19PlusOnly:n.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors)for(const o of e.trackDescriptors)n.trackDescriptors.push(t.TrackDescriptor.fromPartial(o));return n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},89513:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModificationResponse=t.ModificationRequest_Attributes=t.ModificationRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={operation:"",before:"",after:"",name:"",playlist:!1,uris:"",rows:"",contents:!1,itemId:""};t.ModificationRequest={encode(e,n=r.default.Writer.create()){""!==e.operation&&n.uint32(10).string(e.operation),""!==e.before&&n.uint32(18).string(e.before),""!==e.after&&n.uint32(26).string(e.after),""!==e.name&&n.uint32(34).string(e.name),!0===e.playlist&&n.uint32(40).bool(e.playlist),void 0!==e.attributes&&t.ModificationRequest_Attributes.encode(e.attributes,n.uint32(50).fork()).ldelim();for(const t of e.uris)n.uint32(58).string(t);for(const t of e.rows)n.uint32(66).string(t);return!0===e.contents&&n.uint32(72).bool(e.contents),""!==e.itemId&&n.uint32(82).string(e.itemId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...a};for(s.uris=[],s.rows=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:s.operation=o.string();break;case 2:s.before=o.string();break;case 3:s.after=o.string();break;case 4:s.name=o.string();break;case 5:s.playlist=o.bool();break;case 6:s.attributes=t.ModificationRequest_Attributes.decode(o,o.uint32());break;case 7:s.uris.push(o.string());break;case 8:s.rows.push(o.string());break;case 9:s.contents=o.bool();break;case 10:s.itemId=o.string();break;default:o.skipType(7&e)}}return s},fromJSON(e){const n={...a};if(n.uris=[],n.rows=[],void 0!==e.operation&&null!==e.operation?n.operation=String(e.operation):n.operation="",void 0!==e.before&&null!==e.before?n.before=String(e.before):n.before="",void 0!==e.after&&null!==e.after?n.after=String(e.after):n.after="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.playlist&&null!==e.playlist?n.playlist=Boolean(e.playlist):n.playlist=!1,void 0!==e.attributes&&null!==e.attributes?n.attributes=t.ModificationRequest_Attributes.fromJSON(e.attributes):n.attributes=void 0,void 0!==e.uris&&null!==e.uris)for(const t of e.uris)n.uris.push(String(t));if(void 0!==e.rows&&null!==e.rows)for(const t of e.rows)n.rows.push(String(t));return void 0!==e.contents&&null!==e.contents?n.contents=Boolean(e.contents):n.contents=!1,void 0!==e.itemId&&null!==e.itemId?n.itemId=String(e.itemId):n.itemId="",n},toJSON(e){const n={};return void 0!==e.operation&&(n.operation=e.operation),void 0!==e.before&&(n.before=e.before),void 0!==e.after&&(n.after=e.after),void 0!==e.name&&(n.name=e.name),void 0!==e.playlist&&(n.playlist=e.playlist),void 0!==e.attributes&&(n.attributes=e.attributes?t.ModificationRequest_Attributes.toJSON(e.attributes):void 0),e.uris?n.uris=e.uris.map((e=>e)):n.uris=[],e.rows?n.rows=e.rows.map((e=>e)):n.rows=[],void 0!==e.contents&&(n.contents=e.contents),void 0!==e.itemId&&(n.itemId=e.itemId),n},fromPartial(e){const n={...a};if(n.uris=[],n.rows=[],void 0!==e.operation&&null!==e.operation?n.operation=e.operation:n.operation="",void 0!==e.before&&null!==e.before?n.before=e.before:n.before="",void 0!==e.after&&null!==e.after?n.after=e.after:n.after="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.playlist&&null!==e.playlist?n.playlist=e.playlist:n.playlist=!1,void 0!==e.attributes&&null!==e.attributes?n.attributes=t.ModificationRequest_Attributes.fromPartial(e.attributes):n.attributes=void 0,void 0!==e.uris&&null!==e.uris)for(const t of e.uris)n.uris.push(t);if(void 0!==e.rows&&null!==e.rows)for(const t of e.rows)n.rows.push(t);return void 0!==e.contents&&null!==e.contents?n.contents=e.contents:n.contents=!1,void 0!==e.itemId&&null!==e.itemId?n.itemId=e.itemId:n.itemId="",n}};const s={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:""};t.ModificationRequest_Attributes={encode:(e,t=r.default.Writer.create())=>(!0===e.published&&t.uint32(8).bool(e.published),!0===e.collaborative&&t.uint32(16).bool(e.collaborative),""!==e.name&&t.uint32(26).string(e.name),""!==e.description&&t.uint32(34).string(e.description),""!==e.imageUri&&t.uint32(42).string(e.imageUri),""!==e.picture&&t.uint32(50).string(e.picture),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.published=n.bool();break;case 2:i.collaborative=n.bool();break;case 3:i.name=n.string();break;case 4:i.description=n.string();break;case 5:i.imageUri=n.string();break;case 6:i.picture=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.published&&null!==e.published?t.published=Boolean(e.published):t.published=!1,void 0!==e.collaborative&&null!==e.collaborative?t.collaborative=Boolean(e.collaborative):t.collaborative=!1,void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=String(e.imageUri):t.imageUri="",void 0!==e.picture&&null!==e.picture?t.picture=String(e.picture):t.picture="",t},toJSON(e){const t={};return void 0!==e.published&&(t.published=e.published),void 0!==e.collaborative&&(t.collaborative=e.collaborative),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.picture&&(t.picture=e.picture),t},fromPartial(e){const t={...s};return void 0!==e.published&&null!==e.published?t.published=e.published:t.published=!1,void 0!==e.collaborative&&null!==e.collaborative?t.collaborative=e.collaborative:t.collaborative=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=e.imageUri:t.imageUri="",void 0!==e.picture&&null!==e.picture?t.picture=e.picture:t.picture="",t}};const l={success:!1,uri:""};t.ModificationResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),""!==e.uri&&t.uint32(18).string(e.uri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.success=n.bool();break;case 2:i.uri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};return void 0!==e.success&&null!==e.success?t.success=Boolean(e.success):t.success=!1,void 0!==e.uri&&null!==e.uri?t.uri=String(e.uri):t.uri="",t},toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={...l};return void 0!==e.success&&null!==e.success?t.success=e.success:t.success=!1,void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri="",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},86902:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfflinePlaylistsContainingItemResponse=t.OfflinePlaylistContainingItem=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={playlistLink:"",playlistName:""};t.OfflinePlaylistContainingItem={encode:(e,t=r.default.Writer.create())=>(""!==e.playlistLink&&t.uint32(10).string(e.playlistLink),""!==e.playlistName&&t.uint32(18).string(e.playlistName),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playlistLink=n.string();break;case 2:i.playlistName=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.playlistLink&&null!==e.playlistLink?t.playlistLink=String(e.playlistLink):t.playlistLink="",void 0!==e.playlistName&&null!==e.playlistName?t.playlistName=String(e.playlistName):t.playlistName="",t},toJSON(e){const t={};return void 0!==e.playlistLink&&(t.playlistLink=e.playlistLink),void 0!==e.playlistName&&(t.playlistName=e.playlistName),t},fromPartial(e){const t={...a};return void 0!==e.playlistLink&&null!==e.playlistLink?t.playlistLink=e.playlistLink:t.playlistLink="",void 0!==e.playlistName&&null!==e.playlistName?t.playlistName=e.playlistName:t.playlistName="",t}};const s={};t.OfflinePlaylistsContainingItemResponse={encode(e,n=r.default.Writer.create()){for(const o of e.playlists)t.OfflinePlaylistContainingItem.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...s};for(a.playlists=[];o.pos<i;){const e=o.uint32();if(e>>>3==1)a.playlists.push(t.OfflinePlaylistContainingItem.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON(e){const n={...s};if(n.playlists=[],void 0!==e.playlists&&null!==e.playlists)for(const o of e.playlists)n.playlists.push(t.OfflinePlaylistContainingItem.fromJSON(o));return n},toJSON(e){const n={};return e.playlists?n.playlists=e.playlists.map((e=>e?t.OfflinePlaylistContainingItem.toJSON(e):void 0)):n.playlists=[],n},fromPartial(e){const n={...s};if(n.playlists=[],void 0!==e.playlists&&null!==e.playlists)for(const o of e.playlists)n.playlists.push(t.OfflinePlaylistContainingItem.fromPartial(o));return n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},70456:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.onDemandInFreeReasonToJSON=t.onDemandInFreeReasonFromJSON=t.OnDemandInFreeReason=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.on_demand_set.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_ON_DEMAND=1]="NOT_ON_DEMAND",e[e.ON_DEMAND=2]="ON_DEMAND",e[e.ON_DEMAND_EPISODES_ONLY=3]="ON_DEMAND_EPISODES_ONLY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.OnDemandInFreeReason||(t.OnDemandInFreeReason={})),t.onDemandInFreeReasonFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"NOT_ON_DEMAND":return a.NOT_ON_DEMAND;case 2:case"ON_DEMAND":return a.ON_DEMAND;case 3:case"ON_DEMAND_EPISODES_ONLY":return a.ON_DEMAND_EPISODES_ONLY;default:return a.UNRECOGNIZED}},t.onDemandInFreeReasonToJSON=function(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.NOT_ON_DEMAND:return"NOT_ON_DEMAND";case a.ON_DEMAND:return"ON_DEMAND";case a.ON_DEMAND_EPISODES_ONLY:return"ON_DEMAND_EPISODES_ONLY";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},63192:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(89623);t.protobufPackage="spotify.cosmos_util.proto";const s={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};t.EpisodePlayState={encode:(e,t=r.default.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.timeLeft=n.uint32();break;case 2:i.isPlayable=n.bool();break;case 3:i.isPlayed=n.bool();break;case 4:i.lastPlayedAt=n.uint32();break;case 5:i.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=Number(e.timeLeft):t.timeLeft=0,void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=Boolean(e.isPlayable):t.isPlayable=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=Boolean(e.isPlayed):t.isPlayed=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=Number(e.lastPlayedAt):t.lastPlayedAt=0,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=a.playabilityRestrictionFromJSON(e.playabilityRestriction):t.playabilityRestriction=0,t},toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=a.playabilityRestrictionToJSON(e.playabilityRestriction)),t},fromPartial(e){const t={...s};return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=e.timeLeft:t.timeLeft=0,void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=e.isPlayable:t.isPlayable=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=e.isPlayed:t.isPlayed=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=e.lastPlayedAt:t.lastPlayedAt=0,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},89623:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"NO_RESTRICTION":return a.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return a.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return a.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return a.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return a.NOT_AVAILABLE_OFFLINE;default:return a.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.NO_RESTRICTION:return"NO_RESTRICTION";case a.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case a.AGE_RESTRICTED:return"AGE_RESTRICTED";case a.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case a.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},67524:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(89623);t.protobufPackage="spotify.cosmos_util.proto";const s={isPlayable:!1,playabilityRestriction:0};t.TrackPlayState={encode:(e,t=r.default.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isPlayable=n.bool();break;case 2:i.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=Boolean(e.isPlayable):t.isPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=a.playabilityRestrictionFromJSON(e.playabilityRestriction):t.playabilityRestriction=0,t},toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=a.playabilityRestrictionToJSON(e.playabilityRestriction)),t},fromPartial(e){const t={...s};return void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=e.isPlayable:t.isPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},81708:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};t.FolderMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.name&&t.uint32(18).string(e.name),0!==e.numFolders&&t.uint32(24).uint32(e.numFolders),0!==e.numPlaylists&&t.uint32(32).uint32(e.numPlaylists),0!==e.numRecursiveFolders&&t.uint32(40).uint32(e.numRecursiveFolders),0!==e.numRecursivePlaylists&&t.uint32(48).uint32(e.numRecursivePlaylists),""!==e.link&&t.uint32(58).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.id=n.string();break;case 2:i.name=n.string();break;case 3:i.numFolders=n.uint32();break;case 4:i.numPlaylists=n.uint32();break;case 5:i.numRecursiveFolders=n.uint32();break;case 6:i.numRecursivePlaylists=n.uint32();break;case 7:i.link=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.id&&null!==e.id?t.id=String(e.id):t.id="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.numFolders&&null!==e.numFolders?t.numFolders=Number(e.numFolders):t.numFolders=0,void 0!==e.numPlaylists&&null!==e.numPlaylists?t.numPlaylists=Number(e.numPlaylists):t.numPlaylists=0,void 0!==e.numRecursiveFolders&&null!==e.numRecursiveFolders?t.numRecursiveFolders=Number(e.numRecursiveFolders):t.numRecursiveFolders=0,void 0!==e.numRecursivePlaylists&&null!==e.numRecursivePlaylists?t.numRecursivePlaylists=Number(e.numRecursivePlaylists):t.numRecursivePlaylists=0,void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",t},toJSON(e){const t={};return void 0!==e.id&&(t.id=e.id),void 0!==e.name&&(t.name=e.name),void 0!==e.numFolders&&(t.numFolders=e.numFolders),void 0!==e.numPlaylists&&(t.numPlaylists=e.numPlaylists),void 0!==e.numRecursiveFolders&&(t.numRecursiveFolders=e.numRecursiveFolders),void 0!==e.numRecursivePlaylists&&(t.numRecursivePlaylists=e.numRecursivePlaylists),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={...a};return void 0!==e.id&&null!==e.id?t.id=e.id:t.id="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.numFolders&&null!==e.numFolders?t.numFolders=e.numFolders:t.numFolders=0,void 0!==e.numPlaylists&&null!==e.numPlaylists?t.numPlaylists=e.numPlaylists:t.numPlaylists=0,void 0!==e.numRecursiveFolders&&null!==e.numRecursiveFolders?t.numRecursiveFolders=e.numRecursiveFolders:t.numRecursiveFolders=0,void 0!==e.numRecursivePlaylists&&null!==e.numRecursivePlaylists?t.numRecursivePlaylists=e.numRecursivePlaylists:t.numRecursivePlaylists=0,void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},71249:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseStatus=t.ClaimPermissionGrantResponse=t.PermissionGrant=t.PermissionGrantOptions=t.PermissionStatePub=t.PermissionState=t.Permissions=t.GetMemberPermissionsResponse_MemberPermissionsEntry=t.GetMemberPermissionsResponse=t.SetPermissionResponse=t.SetPermissionLevelRequest=t.CapabilitiesResponse=t.CapabilitiesMultiResponse=t.CapabilitiesRequest=t.CapabilitiesMultiRequest=t.Capabilities=t.Permission=t.permissionLevelToJSON=t.permissionLevelFromJSON=t.PermissionLevel=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"BLOCKED":return a.BLOCKED;case 2:case"VIEWER":return a.VIEWER;case 3:case"CONTRIBUTOR":return a.CONTRIBUTOR;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.BLOCKED:return"BLOCKED";case a.VIEWER:return"VIEWER";case a.CONTRIBUTOR:return"CONTRIBUTOR";default:return"UNKNOWN"}}t.protobufPackage="spotify.playlist_permission.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PermissionLevel||(t.PermissionLevel={})),t.permissionLevelFromJSON=s,t.permissionLevelToJSON=l;const c={permissionLevel:0};t.Permission={encode:(e,t=r.default.Writer.create())=>(0!==e.revision.length&&t.uint32(10).bytes(e.revision),0!==e.permissionLevel&&t.uint32(16).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(i.revision=new Uint8Array;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.revision=n.bytes();break;case 2:i.permissionLevel=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return t.revision=new Uint8Array,void 0!==e.revision&&null!==e.revision&&(t.revision=function(e){const t=C(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}(e.revision)),void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=s(e.permissionLevel):t.permissionLevel=0,t},toJSON(e){const t={};return void 0!==e.revision&&(t.revision=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return k(t.join(""))}(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.permissionLevel&&(t.permissionLevel=l(e.permissionLevel)),t},fromPartial(e){const t={...c};return void 0!==e.revision&&null!==e.revision?t.revision=e.revision:t.revision=new Uint8Array,void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,t}};const u={canView:!1,canAdministratePermissions:!1,grantableLevel:0,canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1};t.Capabilities={encode(e,t=r.default.Writer.create()){!0===e.canView&&t.uint32(8).bool(e.canView),!0===e.canAdministratePermissions&&t.uint32(16).bool(e.canAdministratePermissions),t.uint32(26).fork();for(const n of e.grantableLevel)t.int32(n);return t.ldelim(),!0===e.canEditMetadata&&t.uint32(32).bool(e.canEditMetadata),!0===e.canEditItems&&t.uint32(40).bool(e.canEditItems),!0===e.canCancelMembership&&t.uint32(48).bool(e.canCancelMembership),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(i.grantableLevel=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.canView=n.bool();break;case 2:i.canAdministratePermissions=n.bool();break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.grantableLevel.push(n.int32())}else i.grantableLevel.push(n.int32());break;case 4:i.canEditMetadata=n.bool();break;case 5:i.canEditItems=n.bool();break;case 6:i.canCancelMembership=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...u};if(t.grantableLevel=[],void 0!==e.canView&&null!==e.canView?t.canView=Boolean(e.canView):t.canView=!1,void 0!==e.canAdministratePermissions&&null!==e.canAdministratePermissions?t.canAdministratePermissions=Boolean(e.canAdministratePermissions):t.canAdministratePermissions=!1,void 0!==e.grantableLevel&&null!==e.grantableLevel)for(const n of e.grantableLevel)t.grantableLevel.push(s(n));return void 0!==e.canEditMetadata&&null!==e.canEditMetadata?t.canEditMetadata=Boolean(e.canEditMetadata):t.canEditMetadata=!1,void 0!==e.canEditItems&&null!==e.canEditItems?t.canEditItems=Boolean(e.canEditItems):t.canEditItems=!1,void 0!==e.canCancelMembership&&null!==e.canCancelMembership?t.canCancelMembership=Boolean(e.canCancelMembership):t.canCancelMembership=!1,t},toJSON(e){const t={};return void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?t.grantableLevel=e.grantableLevel.map((e=>l(e))):t.grantableLevel=[],void 0!==e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),void 0!==e.canEditItems&&(t.canEditItems=e.canEditItems),void 0!==e.canCancelMembership&&(t.canCancelMembership=e.canCancelMembership),t},fromPartial(e){const t={...u};if(t.grantableLevel=[],void 0!==e.canView&&null!==e.canView?t.canView=e.canView:t.canView=!1,void 0!==e.canAdministratePermissions&&null!==e.canAdministratePermissions?t.canAdministratePermissions=e.canAdministratePermissions:t.canAdministratePermissions=!1,void 0!==e.grantableLevel&&null!==e.grantableLevel)for(const n of e.grantableLevel)t.grantableLevel.push(n);return void 0!==e.canEditMetadata&&null!==e.canEditMetadata?t.canEditMetadata=e.canEditMetadata:t.canEditMetadata=!1,void 0!==e.canEditItems&&null!==e.canEditItems?t.canEditItems=e.canEditItems:t.canEditItems=!1,void 0!==e.canCancelMembership&&null!==e.canCancelMembership?t.canCancelMembership=e.canCancelMembership:t.canCancelMembership=!1,t}};const d={fallbackUsername:"",fallbackUserId:"",fallbackUri:""};t.CapabilitiesMultiRequest={encode(e,n=r.default.Writer.create()){for(const o of e.request)t.CapabilitiesRequest.encode(o,n.uint32(10).fork()).ldelim();return""!==e.fallbackUsername&&n.uint32(18).string(e.fallbackUsername),""!==e.fallbackUserId&&n.uint32(26).string(e.fallbackUserId),""!==e.fallbackUri&&n.uint32(34).string(e.fallbackUri),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...d};for(a.request=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.request.push(t.CapabilitiesRequest.decode(o,o.uint32()));break;case 2:a.fallbackUsername=o.string();break;case 3:a.fallbackUserId=o.string();break;case 4:a.fallbackUri=o.string();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...d};if(n.request=[],void 0!==e.request&&null!==e.request)for(const o of e.request)n.request.push(t.CapabilitiesRequest.fromJSON(o));return void 0!==e.fallbackUsername&&null!==e.fallbackUsername?n.fallbackUsername=String(e.fallbackUsername):n.fallbackUsername="",void 0!==e.fallbackUserId&&null!==e.fallbackUserId?n.fallbackUserId=String(e.fallbackUserId):n.fallbackUserId="",void 0!==e.fallbackUri&&null!==e.fallbackUri?n.fallbackUri=String(e.fallbackUri):n.fallbackUri="",n},toJSON(e){const n={};return e.request?n.request=e.request.map((e=>e?t.CapabilitiesRequest.toJSON(e):void 0)):n.request=[],void 0!==e.fallbackUsername&&(n.fallbackUsername=e.fallbackUsername),void 0!==e.fallbackUserId&&(n.fallbackUserId=e.fallbackUserId),void 0!==e.fallbackUri&&(n.fallbackUri=e.fallbackUri),n},fromPartial(e){const n={...d};if(n.request=[],void 0!==e.request&&null!==e.request)for(const o of e.request)n.request.push(t.CapabilitiesRequest.fromPartial(o));return void 0!==e.fallbackUsername&&null!==e.fallbackUsername?n.fallbackUsername=e.fallbackUsername:n.fallbackUsername="",void 0!==e.fallbackUserId&&null!==e.fallbackUserId?n.fallbackUserId=e.fallbackUserId:n.fallbackUserId="",void 0!==e.fallbackUri&&null!==e.fallbackUri?n.fallbackUri=e.fallbackUri:n.fallbackUri="",n}};const p={username:"",userId:"",uri:"",userIsOwner:!1};t.CapabilitiesRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.username&&t.uint32(10).string(e.username),""!==e.userId&&t.uint32(18).string(e.userId),""!==e.uri&&t.uint32(26).string(e.uri),!0===e.userIsOwner&&t.uint32(32).bool(e.userIsOwner),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...p};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.username=n.string();break;case 2:i.userId=n.string();break;case 3:i.uri=n.string();break;case 4:i.userIsOwner=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...p};return void 0!==e.username&&null!==e.username?t.username=String(e.username):t.username="",void 0!==e.userId&&null!==e.userId?t.userId=String(e.userId):t.userId="",void 0!==e.uri&&null!==e.uri?t.uri=String(e.uri):t.uri="",void 0!==e.userIsOwner&&null!==e.userIsOwner?t.userIsOwner=Boolean(e.userIsOwner):t.userIsOwner=!1,t},toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.userId&&(t.userId=e.userId),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.userIsOwner&&(t.userIsOwner=e.userIsOwner),t},fromPartial(e){const t={...p};return void 0!==e.username&&null!==e.username?t.username=e.username:t.username="",void 0!==e.userId&&null!==e.userId?t.userId=e.userId:t.userId="",void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri="",void 0!==e.userIsOwner&&null!==e.userIsOwner?t.userIsOwner=e.userIsOwner:t.userIsOwner=!1,t}};const f={};t.CapabilitiesMultiResponse={encode(e,n=r.default.Writer.create()){for(const o of e.response)t.CapabilitiesResponse.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...f};for(a.response=[];o.pos<i;){const e=o.uint32();if(e>>>3==1)a.response.push(t.CapabilitiesResponse.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON(e){const n={...f};if(n.response=[],void 0!==e.response&&null!==e.response)for(const o of e.response)n.response.push(t.CapabilitiesResponse.fromJSON(o));return n},toJSON(e){const n={};return e.response?n.response=e.response.map((e=>e?t.CapabilitiesResponse.toJSON(e):void 0)):n.response=[],n},fromPartial(e){const n={...f};if(n.response=[],void 0!==e.response&&null!==e.response)for(const o of e.response)n.response.push(t.CapabilitiesResponse.fromPartial(o));return n}};const h={};t.CapabilitiesResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.status&&t.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...h};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=t.ResponseStatus.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...h};return void 0!==e.status&&null!==e.status?n.status=t.ResponseStatus.fromJSON(e.status):n.status=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,n},toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.ResponseStatus.toJSON(e.status):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n={...h};return void 0!==e.status&&null!==e.status?n.status=t.ResponseStatus.fromPartial(e.status):n.status=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,n}};const m={permissionLevel:0};t.SetPermissionLevelRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...m};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.permissionLevel=n.int32();else n.skipType(7&e)}return i},fromJSON(e){const t={...m};return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=s(e.permissionLevel):t.permissionLevel=0,t},toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=l(e.permissionLevel)),t},fromPartial(e){const t={...m};return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,t}};const g={};t.SetPermissionResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.resultingPermission&&t.Permission.encode(e.resultingPermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...g};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.resultingPermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON(e){const n={...g};return void 0!==e.resultingPermission&&null!==e.resultingPermission?n.resultingPermission=t.Permission.fromJSON(e.resultingPermission):n.resultingPermission=void 0,n},toJSON(e){const n={};return void 0!==e.resultingPermission&&(n.resultingPermission=e.resultingPermission?t.Permission.toJSON(e.resultingPermission):void 0),n},fromPartial(e){const n={...g};return void 0!==e.resultingPermission&&null!==e.resultingPermission?n.resultingPermission=t.Permission.fromPartial(e.resultingPermission):n.resultingPermission=void 0,n}};const v={};t.GetMemberPermissionsResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.memberPermissions).forEach((([e,o])=>{t.GetMemberPermissionsResponse_MemberPermissionsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...v};for(a.memberPermissions={};o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.GetMemberPermissionsResponse_MemberPermissionsEntry.decode(o,o.uint32());void 0!==e.value&&(a.memberPermissions[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON(e){const n={...v};return n.memberPermissions={},void 0!==e.memberPermissions&&null!==e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{n.memberPermissions[e]=t.Permission.fromJSON(o)})),n},toJSON(e){const n={memberPermissions:{}};return e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{n.memberPermissions[e]=t.Permission.toJSON(o)})),n},fromPartial(e){const n={...v};return n.memberPermissions={},void 0!==e.memberPermissions&&null!==e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{void 0!==o&&(n.memberPermissions[e]=t.Permission.fromPartial(o))})),n}};const y={key:""};t.GetMemberPermissionsResponse_MemberPermissionsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Permission.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...y};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.Permission.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...y};return void 0!==e.key&&null!==e.key?n.key=String(e.key):n.key="",void 0!==e.value&&null!==e.value?n.value=t.Permission.fromJSON(e.value):n.value=void 0,n},toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Permission.toJSON(e.value):void 0),n},fromPartial(e){const n={...y};return void 0!==e.key&&null!==e.key?n.key=e.key:n.key="",void 0!==e.value&&null!==e.value?n.value=t.Permission.fromPartial(e.value):n.value=void 0,n}};const _={};t.Permissions={encode:(e,n=r.default.Writer.create())=>(void 0!==e.basePermission&&t.Permission.encode(e.basePermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={..._};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.basePermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON(e){const n={..._};return void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=t.Permission.fromJSON(e.basePermission):n.basePermission=void 0,n},toJSON(e){const n={};return void 0!==e.basePermission&&(n.basePermission=e.basePermission?t.Permission.toJSON(e.basePermission):void 0),n},fromPartial(e){const n={..._};return void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=t.Permission.fromPartial(e.basePermission):n.basePermission=void 0,n}};const b={isPrivate:!1,isCollaborative:!1};t.PermissionState={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissions&&t.Permissions.encode(e.permissions,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),!0===e.isPrivate&&n.uint32(24).bool(e.isPrivate),!0===e.isCollaborative&&n.uint32(32).bool(e.isCollaborative),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...b};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.permissions=t.Permissions.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;case 3:a.isPrivate=o.bool();break;case 4:a.isCollaborative=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...b};return void 0!==e.permissions&&null!==e.permissions?n.permissions=t.Permissions.fromJSON(e.permissions):n.permissions=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,void 0!==e.isPrivate&&null!==e.isPrivate?n.isPrivate=Boolean(e.isPrivate):n.isPrivate=!1,void 0!==e.isCollaborative&&null!==e.isCollaborative?n.isCollaborative=Boolean(e.isCollaborative):n.isCollaborative=!1,n},toJSON(e){const n={};return void 0!==e.permissions&&(n.permissions=e.permissions?t.Permissions.toJSON(e.permissions):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.isPrivate&&(n.isPrivate=e.isPrivate),void 0!==e.isCollaborative&&(n.isCollaborative=e.isCollaborative),n},fromPartial(e){const n={...b};return void 0!==e.permissions&&null!==e.permissions?n.permissions=t.Permissions.fromPartial(e.permissions):n.permissions=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,void 0!==e.isPrivate&&null!==e.isPrivate?n.isPrivate=e.isPrivate:n.isPrivate=!1,void 0!==e.isCollaborative&&null!==e.isCollaborative?n.isCollaborative=e.isCollaborative:n.isCollaborative=!1,n}};const S={};t.PermissionStatePub={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissionState&&t.PermissionState.encode(e.permissionState,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...S};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.permissionState=t.PermissionState.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON(e){const n={...S};return void 0!==e.permissionState&&null!==e.permissionState?n.permissionState=t.PermissionState.fromJSON(e.permissionState):n.permissionState=void 0,n},toJSON(e){const n={};return void 0!==e.permissionState&&(n.permissionState=e.permissionState?t.PermissionState.toJSON(e.permissionState):void 0),n},fromPartial(e){const n={...S};return void 0!==e.permissionState&&null!==e.permissionState?n.permissionState=t.PermissionState.fromPartial(e.permissionState):n.permissionState=void 0,n}};const E={ttlMs:"0"};t.PermissionGrantOptions={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permission&&t.Permission.encode(e.permission,n.uint32(10).fork()).ldelim(),"0"!==e.ttlMs&&n.uint32(16).int64(e.ttlMs),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...E};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.permission=t.Permission.decode(o,o.uint32());break;case 2:a.ttlMs=o.int64().toString();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...E};return void 0!==e.permission&&null!==e.permission?n.permission=t.Permission.fromJSON(e.permission):n.permission=void 0,void 0!==e.ttlMs&&null!==e.ttlMs?n.ttlMs=String(e.ttlMs):n.ttlMs="0",n},toJSON(e){const n={};return void 0!==e.permission&&(n.permission=e.permission?t.Permission.toJSON(e.permission):void 0),void 0!==e.ttlMs&&(n.ttlMs=e.ttlMs),n},fromPartial(e){const n={...E};return void 0!==e.permission&&null!==e.permission?n.permission=t.Permission.fromPartial(e.permission):n.permission=void 0,void 0!==e.ttlMs&&null!==e.ttlMs?n.ttlMs=e.ttlMs:n.ttlMs="0",n}};const A={token:""};t.PermissionGrant={encode:(e,n=r.default.Writer.create())=>(""!==e.token&&n.uint32(10).string(e.token),void 0!==e.permissionGrantOptions&&t.PermissionGrantOptions.encode(e.permissionGrantOptions,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...A};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.token=o.string();break;case 2:a.permissionGrantOptions=t.PermissionGrantOptions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...A};return void 0!==e.token&&null!==e.token?n.token=String(e.token):n.token="",void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?n.permissionGrantOptions=t.PermissionGrantOptions.fromJSON(e.permissionGrantOptions):n.permissionGrantOptions=void 0,n},toJSON(e){const n={};return void 0!==e.token&&(n.token=e.token),void 0!==e.permissionGrantOptions&&(n.permissionGrantOptions=e.permissionGrantOptions?t.PermissionGrantOptions.toJSON(e.permissionGrantOptions):void 0),n},fromPartial(e){const n={...A};return void 0!==e.token&&null!==e.token?n.token=e.token:n.token="",void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?n.permissionGrantOptions=t.PermissionGrantOptions.fromPartial(e.permissionGrantOptions):n.permissionGrantOptions=void 0,n}};const T={};t.ClaimPermissionGrantResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.userPermission&&t.Permission.encode(e.userPermission,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...T};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.userPermission=t.Permission.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...T};return void 0!==e.userPermission&&null!==e.userPermission?n.userPermission=t.Permission.fromJSON(e.userPermission):n.userPermission=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,n},toJSON(e){const n={};return void 0!==e.userPermission&&(n.userPermission=e.userPermission?t.Permission.toJSON(e.userPermission):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n={...T};return void 0!==e.userPermission&&null!==e.userPermission?n.userPermission=t.Permission.fromPartial(e.userPermission):n.userPermission=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,n}};const P={statusCode:0,statusMessage:""};t.ResponseStatus={encode:(e,t=r.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.statusMessage&&t.uint32(18).string(e.statusMessage),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...P};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.statusCode=n.int32();break;case 2:i.statusMessage=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...P};return void 0!==e.statusCode&&null!==e.statusCode?t.statusCode=Number(e.statusCode):t.statusCode=0,void 0!==e.statusMessage&&null!==e.statusMessage?t.statusMessage=String(e.statusMessage):t.statusMessage="",t},toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=e.statusCode),void 0!==e.statusMessage&&(t.statusMessage=e.statusMessage),t},fromPartial(e){const t={...P};return void 0!==e.statusCode&&null!==e.statusCode?t.statusCode=e.statusCode:t.statusCode=0,void 0!==e.statusMessage&&null!==e.statusMessage?t.statusMessage=e.statusMessage:t.statusMessage="",t}};var O=(()=>{if(void 0!==O)return O;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const C=O.atob||(e=>O.Buffer.from(e,"base64").toString("binary"));const k=O.btoa||(e=>O.Buffer.from(e,"binary").toString("base64"));r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5546:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={success:!1};t.PlaybackResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.success=n.bool();else n.skipType(7&e)}return i},fromJSON(e){const t={...a};return void 0!==e.success&&null!==e.success?t.success=Boolean(e.success):t.success=!1,t},toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),t},fromPartial(e){const t={...a};return void 0!==e.success&&null!==e.success?t.success=e.success:t.success=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},93048:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineState=t.PlaylistMetadata=t.Allows=t.FormatListAttribute=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(95583),s=n(15792),l=n(94581);t.protobufPackage="spotify.playlist.cosmos.proto";const c={key:"",value:""};t.FormatListAttribute={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={...c};return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};const u={canInsert:!1,canRemove:!1};t.Allows={encode:(e,t=r.default.Writer.create())=>(!0===e.canInsert&&t.uint32(8).bool(e.canInsert),!0===e.canRemove&&t.uint32(16).bool(e.canRemove),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.canInsert=n.bool();break;case 2:i.canRemove=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...u};return void 0!==e.canInsert&&null!==e.canInsert?t.canInsert=Boolean(e.canInsert):t.canInsert=!1,void 0!==e.canRemove&&null!==e.canRemove?t.canRemove=Boolean(e.canRemove):t.canRemove=!1,t},toJSON(e){const t={};return void 0!==e.canInsert&&(t.canInsert=e.canInsert),void 0!==e.canRemove&&(t.canRemove=e.canRemove),t},fromPartial(e){const t={...u};return void 0!==e.canInsert&&null!==e.canInsert?t.canInsert=e.canInsert:t.canInsert=!1,void 0!==e.canRemove&&null!==e.canRemove?t.canRemove=e.canRemove:t.canRemove=!1,t}};const d={link:"",name:"",ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",canReportAnnotationAbuse:!1,isLoaded:!1,loadState:""};t.PlaylistMetadata={encode(e,n=r.default.Writer.create()){""!==e.link&&n.uint32(10).string(e.link),""!==e.name&&n.uint32(18).string(e.name),void 0!==e.owner&&a.User.encode(e.owner,n.uint32(26).fork()).ldelim(),!0===e.ownedBySelf&&n.uint32(32).bool(e.ownedBySelf),!0===e.collaborative&&n.uint32(40).bool(e.collaborative),0!==e.totalLength&&n.uint32(48).uint32(e.totalLength),""!==e.description&&n.uint32(58).string(e.description),void 0!==e.pictures&&s.ImageGroup.encode(e.pictures,n.uint32(66).fork()).ldelim(),!0===e.followed&&n.uint32(72).bool(e.followed),!0===e.published&&n.uint32(80).bool(e.published),!0===e.browsableOffline&&n.uint32(88).bool(e.browsableOffline),!0===e.descriptionFromAnnotate&&n.uint32(96).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(104).bool(e.pictureFromAnnotate),""!==e.formatListType&&n.uint32(114).string(e.formatListType);for(const o of e.formatListAttributes)t.FormatListAttribute.encode(o,n.uint32(122).fork()).ldelim();!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.isLoaded&&n.uint32(136).bool(e.isLoaded),void 0!==e.allows&&t.Allows.encode(e.allows,n.uint32(146).fork()).ldelim(),""!==e.loadState&&n.uint32(154).string(e.loadState),void 0!==e.madeFor&&a.User.encode(e.madeFor,n.uint32(162).fork()).ldelim();for(const t of e.extension)l.Extension.encode(t,n.uint32(170).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const c={...d};for(c.formatListAttributes=[],c.extension=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:c.link=o.string();break;case 2:c.name=o.string();break;case 3:c.owner=a.User.decode(o,o.uint32());break;case 4:c.ownedBySelf=o.bool();break;case 5:c.collaborative=o.bool();break;case 6:c.totalLength=o.uint32();break;case 7:c.description=o.string();break;case 8:c.pictures=s.ImageGroup.decode(o,o.uint32());break;case 9:c.followed=o.bool();break;case 10:c.published=o.bool();break;case 11:c.browsableOffline=o.bool();break;case 12:c.descriptionFromAnnotate=o.bool();break;case 13:c.pictureFromAnnotate=o.bool();break;case 14:c.formatListType=o.string();break;case 15:c.formatListAttributes.push(t.FormatListAttribute.decode(o,o.uint32()));break;case 16:c.canReportAnnotationAbuse=o.bool();break;case 17:c.isLoaded=o.bool();break;case 18:c.allows=t.Allows.decode(o,o.uint32());break;case 19:c.loadState=o.string();break;case 20:c.madeFor=a.User.decode(o,o.uint32());break;case 21:c.extension.push(l.Extension.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return c},fromJSON(e){const n={...d};if(n.formatListAttributes=[],n.extension=[],void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.owner&&null!==e.owner?n.owner=a.User.fromJSON(e.owner):n.owner=void 0,void 0!==e.ownedBySelf&&null!==e.ownedBySelf?n.ownedBySelf=Boolean(e.ownedBySelf):n.ownedBySelf=!1,void 0!==e.collaborative&&null!==e.collaborative?n.collaborative=Boolean(e.collaborative):n.collaborative=!1,void 0!==e.totalLength&&null!==e.totalLength?n.totalLength=Number(e.totalLength):n.totalLength=0,void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.pictures&&null!==e.pictures?n.pictures=s.ImageGroup.fromJSON(e.pictures):n.pictures=void 0,void 0!==e.followed&&null!==e.followed?n.followed=Boolean(e.followed):n.followed=!1,void 0!==e.published&&null!==e.published?n.published=Boolean(e.published):n.published=!1,void 0!==e.browsableOffline&&null!==e.browsableOffline?n.browsableOffline=Boolean(e.browsableOffline):n.browsableOffline=!1,void 0!==e.descriptionFromAnnotate&&null!==e.descriptionFromAnnotate?n.descriptionFromAnnotate=Boolean(e.descriptionFromAnnotate):n.descriptionFromAnnotate=!1,void 0!==e.pictureFromAnnotate&&null!==e.pictureFromAnnotate?n.pictureFromAnnotate=Boolean(e.pictureFromAnnotate):n.pictureFromAnnotate=!1,void 0!==e.formatListType&&null!==e.formatListType?n.formatListType=String(e.formatListType):n.formatListType="",void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const o of e.formatListAttributes)n.formatListAttributes.push(t.FormatListAttribute.fromJSON(o));if(void 0!==e.canReportAnnotationAbuse&&null!==e.canReportAnnotationAbuse?n.canReportAnnotationAbuse=Boolean(e.canReportAnnotationAbuse):n.canReportAnnotationAbuse=!1,void 0!==e.isLoaded&&null!==e.isLoaded?n.isLoaded=Boolean(e.isLoaded):n.isLoaded=!1,void 0!==e.allows&&null!==e.allows?n.allows=t.Allows.fromJSON(e.allows):n.allows=void 0,void 0!==e.loadState&&null!==e.loadState?n.loadState=String(e.loadState):n.loadState="",void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=a.User.fromJSON(e.madeFor):n.madeFor=void 0,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(l.Extension.fromJSON(t));return n},toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.owner&&(n.owner=e.owner?a.User.toJSON(e.owner):void 0),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.totalLength&&(n.totalLength=e.totalLength),void 0!==e.description&&(n.description=e.description),void 0!==e.pictures&&(n.pictures=e.pictures?s.ImageGroup.toJSON(e.pictures):void 0),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.formatListType&&(n.formatListType=e.formatListType),e.formatListAttributes?n.formatListAttributes=e.formatListAttributes.map((e=>e?t.FormatListAttribute.toJSON(e):void 0)):n.formatListAttributes=[],void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.isLoaded&&(n.isLoaded=e.isLoaded),void 0!==e.allows&&(n.allows=e.allows?t.Allows.toJSON(e.allows):void 0),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.madeFor&&(n.madeFor=e.madeFor?a.User.toJSON(e.madeFor):void 0),e.extension?n.extension=e.extension.map((e=>e?l.Extension.toJSON(e):void 0)):n.extension=[],n},fromPartial(e){const n={...d};if(n.formatListAttributes=[],n.extension=[],void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.owner&&null!==e.owner?n.owner=a.User.fromPartial(e.owner):n.owner=void 0,void 0!==e.ownedBySelf&&null!==e.ownedBySelf?n.ownedBySelf=e.ownedBySelf:n.ownedBySelf=!1,void 0!==e.collaborative&&null!==e.collaborative?n.collaborative=e.collaborative:n.collaborative=!1,void 0!==e.totalLength&&null!==e.totalLength?n.totalLength=e.totalLength:n.totalLength=0,void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.pictures&&null!==e.pictures?n.pictures=s.ImageGroup.fromPartial(e.pictures):n.pictures=void 0,void 0!==e.followed&&null!==e.followed?n.followed=e.followed:n.followed=!1,void 0!==e.published&&null!==e.published?n.published=e.published:n.published=!1,void 0!==e.browsableOffline&&null!==e.browsableOffline?n.browsableOffline=e.browsableOffline:n.browsableOffline=!1,void 0!==e.descriptionFromAnnotate&&null!==e.descriptionFromAnnotate?n.descriptionFromAnnotate=e.descriptionFromAnnotate:n.descriptionFromAnnotate=!1,void 0!==e.pictureFromAnnotate&&null!==e.pictureFromAnnotate?n.pictureFromAnnotate=e.pictureFromAnnotate:n.pictureFromAnnotate=!1,void 0!==e.formatListType&&null!==e.formatListType?n.formatListType=e.formatListType:n.formatListType="",void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const o of e.formatListAttributes)n.formatListAttributes.push(t.FormatListAttribute.fromPartial(o));if(void 0!==e.canReportAnnotationAbuse&&null!==e.canReportAnnotationAbuse?n.canReportAnnotationAbuse=e.canReportAnnotationAbuse:n.canReportAnnotationAbuse=!1,void 0!==e.isLoaded&&null!==e.isLoaded?n.isLoaded=e.isLoaded:n.isLoaded=!1,void 0!==e.allows&&null!==e.allows?n.allows=t.Allows.fromPartial(e.allows):n.allows=void 0,void 0!==e.loadState&&null!==e.loadState?n.loadState=e.loadState:n.loadState="",void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=a.User.fromPartial(e.madeFor):n.madeFor=void 0,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(l.Extension.fromPartial(t));return n}};const p={offline:"",syncProgress:0};t.PlaylistOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...p};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...p};return void 0!==e.offline&&null!==e.offline?t.offline=String(e.offline):t.offline="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Number(e.syncProgress):t.syncProgress=0,t},toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={...p};return void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},22852:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Collaborators=t.Collaborator=t.RecommendationItem=t.Playlist=t.Item=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(70456),s=n(95583),l=n(72711),c=n(57812),u=n(67524),d=n(93048),p=n(8640),f=n(66141),h=n(41815),m=n(63192),g=n(15792),v=n(71249);t.protobufPackage="spotify.playlist.cosmos.playlist_request.proto";const y={headerField:"",addTime:0,rowId:""};t.Item={encode(e,t=r.default.Writer.create()){""!==e.headerField&&t.uint32(10).string(e.headerField),0!==e.addTime&&t.uint32(16).uint32(e.addTime),void 0!==e.addedBy&&s.User.encode(e.addedBy,t.uint32(26).fork()).ldelim(),void 0!==e.trackMetadata&&l.TrackMetadata.encode(e.trackMetadata,t.uint32(34).fork()).ldelim(),void 0!==e.trackCollectionState&&c.TrackCollectionState.encode(e.trackCollectionState,t.uint32(42).fork()).ldelim(),void 0!==e.trackOfflineState&&c.TrackOfflineState.encode(e.trackOfflineState,t.uint32(50).fork()).ldelim(),""!==e.rowId&&t.uint32(58).string(e.rowId),void 0!==e.trackPlayState&&u.TrackPlayState.encode(e.trackPlayState,t.uint32(66).fork()).ldelim();for(const n of e.formatListAttributes)d.FormatListAttribute.encode(n,t.uint32(74).fork()).ldelim();return void 0!==e.episodeMetadata&&p.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(82).fork()).ldelim(),void 0!==e.episodeOfflineState&&f.EpisodeSyncState.encode(e.episodeOfflineState,t.uint32(90).fork()).ldelim(),void 0!==e.episodeCollectionState&&h.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(98).fork()).ldelim(),void 0!==e.episodePlayState&&m.EpisodePlayState.encode(e.episodePlayState,t.uint32(106).fork()).ldelim(),void 0!==e.displayCovers&&g.ImageGroup.encode(e.displayCovers,t.uint32(114).fork()).ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...y};for(i.formatListAttributes=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.headerField=n.string();break;case 2:i.addTime=n.uint32();break;case 3:i.addedBy=s.User.decode(n,n.uint32());break;case 4:i.trackMetadata=l.TrackMetadata.decode(n,n.uint32());break;case 5:i.trackCollectionState=c.TrackCollectionState.decode(n,n.uint32());break;case 6:i.trackOfflineState=c.TrackOfflineState.decode(n,n.uint32());break;case 7:i.rowId=n.string();break;case 8:i.trackPlayState=u.TrackPlayState.decode(n,n.uint32());break;case 9:i.formatListAttributes.push(d.FormatListAttribute.decode(n,n.uint32()));break;case 10:i.episodeMetadata=p.EpisodeMetadata.decode(n,n.uint32());break;case 11:i.episodeOfflineState=f.EpisodeSyncState.decode(n,n.uint32());break;case 12:i.episodeCollectionState=h.EpisodeCollectionState.decode(n,n.uint32());break;case 13:i.episodePlayState=m.EpisodePlayState.decode(n,n.uint32());break;case 14:i.displayCovers=g.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...y};if(t.formatListAttributes=[],void 0!==e.headerField&&null!==e.headerField?t.headerField=String(e.headerField):t.headerField="",void 0!==e.addTime&&null!==e.addTime?t.addTime=Number(e.addTime):t.addTime=0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.User.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromJSON(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromJSON(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.TrackOfflineState.fromJSON(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=String(e.rowId):t.rowId="",void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=u.TrackPlayState.fromJSON(e.trackPlayState):t.trackPlayState=void 0,void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const n of e.formatListAttributes)t.formatListAttributes.push(d.FormatListAttribute.fromJSON(n));return void 0!==e.episodeMetadata&&null!==e.episodeMetadata?t.episodeMetadata=p.EpisodeMetadata.fromJSON(e.episodeMetadata):t.episodeMetadata=void 0,void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?t.episodeOfflineState=f.EpisodeSyncState.fromJSON(e.episodeOfflineState):t.episodeOfflineState=void 0,void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?t.episodeCollectionState=h.EpisodeCollectionState.fromJSON(e.episodeCollectionState):t.episodeCollectionState=void 0,void 0!==e.episodePlayState&&null!==e.episodePlayState?t.episodePlayState=m.EpisodePlayState.fromJSON(e.episodePlayState):t.episodePlayState=void 0,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=g.ImageGroup.fromJSON(e.displayCovers):t.displayCovers=void 0,t},toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.User.toJSON(e.addedBy):void 0),void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?l.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?c.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?c.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?u.TrackPlayState.toJSON(e.trackPlayState):void 0),e.formatListAttributes?t.formatListAttributes=e.formatListAttributes.map((e=>e?d.FormatListAttribute.toJSON(e):void 0)):t.formatListAttributes=[],void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?p.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?f.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?h.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?m.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers?g.ImageGroup.toJSON(e.displayCovers):void 0),t},fromPartial(e){const t={...y};if(t.formatListAttributes=[],void 0!==e.headerField&&null!==e.headerField?t.headerField=e.headerField:t.headerField="",void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.User.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromPartial(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromPartial(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.TrackOfflineState.fromPartial(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId="",void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=u.TrackPlayState.fromPartial(e.trackPlayState):t.trackPlayState=void 0,void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const n of e.formatListAttributes)t.formatListAttributes.push(d.FormatListAttribute.fromPartial(n));return void 0!==e.episodeMetadata&&null!==e.episodeMetadata?t.episodeMetadata=p.EpisodeMetadata.fromPartial(e.episodeMetadata):t.episodeMetadata=void 0,void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?t.episodeOfflineState=f.EpisodeSyncState.fromPartial(e.episodeOfflineState):t.episodeOfflineState=void 0,void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?t.episodeCollectionState=h.EpisodeCollectionState.fromPartial(e.episodeCollectionState):t.episodeCollectionState=void 0,void 0!==e.episodePlayState&&null!==e.episodePlayState?t.episodePlayState=m.EpisodePlayState.fromPartial(e.episodePlayState):t.episodePlayState=void 0,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=g.ImageGroup.fromPartial(e.displayCovers):t.displayCovers=void 0,t}};const _={};t.Playlist={encode:(e,t=r.default.Writer.create())=>(void 0!==e.playlistMetadata&&d.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.playlistOfflineState&&d.PlaylistOfflineState.encode(e.playlistOfflineState,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={..._};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playlistMetadata=d.PlaylistMetadata.decode(n,n.uint32());break;case 2:i.playlistOfflineState=d.PlaylistOfflineState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={..._};return void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=d.PlaylistMetadata.fromJSON(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=d.PlaylistOfflineState.fromJSON(e.playlistOfflineState):t.playlistOfflineState=void 0,t},toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?d.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?d.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),t},fromPartial(e){const t={..._};return void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=d.PlaylistMetadata.fromPartial(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=d.PlaylistOfflineState.fromPartial(e.playlistOfflineState):t.playlistOfflineState=void 0,t}};const b={};t.RecommendationItem={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackMetadata&&l.TrackMetadata.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&c.TrackCollectionState.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackOfflineState&&c.TrackOfflineState.encode(e.trackOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.trackPlayState&&u.TrackPlayState.encode(e.trackPlayState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...b};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.trackMetadata=l.TrackMetadata.decode(n,n.uint32());break;case 2:i.trackCollectionState=c.TrackCollectionState.decode(n,n.uint32());break;case 3:i.trackOfflineState=c.TrackOfflineState.decode(n,n.uint32());break;case 4:i.trackPlayState=u.TrackPlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...b};return void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromJSON(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromJSON(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.TrackOfflineState.fromJSON(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=u.TrackPlayState.fromJSON(e.trackPlayState):t.trackPlayState=void 0,t},toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?l.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?c.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?c.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?u.TrackPlayState.toJSON(e.trackPlayState):void 0),t},fromPartial(e){const t={...b};return void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromPartial(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromPartial(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.TrackOfflineState.fromPartial(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=u.TrackPlayState.fromPartial(e.trackPlayState):t.trackPlayState=void 0,t}};const S={numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};t.Collaborator={encode:(e,t=r.default.Writer.create())=>(void 0!==e.user&&s.User.encode(e.user,t.uint32(10).fork()).ldelim(),0!==e.numberOfItems&&t.uint32(16).uint32(e.numberOfItems),0!==e.numberOfTracks&&t.uint32(24).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&t.uint32(32).uint32(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...S};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.user=s.User.decode(n,n.uint32());break;case 2:i.numberOfItems=n.uint32();break;case 3:i.numberOfTracks=n.uint32();break;case 4:i.numberOfEpisodes=n.uint32();break;case 5:i.isOwner=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...S};return void 0!==e.user&&null!==e.user?t.user=s.User.fromJSON(e.user):t.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?t.numberOfItems=Number(e.numberOfItems):t.numberOfItems=0,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?t.numberOfTracks=Number(e.numberOfTracks):t.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?t.numberOfEpisodes=Number(e.numberOfEpisodes):t.numberOfEpisodes=0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=Boolean(e.isOwner):t.isOwner=!1,t},toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?s.User.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(t.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(t.isOwner=e.isOwner),t},fromPartial(e){const t={...S};return void 0!==e.user&&null!==e.user?t.user=s.User.fromPartial(e.user):t.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?t.numberOfItems=e.numberOfItems:t.numberOfItems=0,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?t.numberOfTracks=e.numberOfTracks:t.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?t.numberOfEpisodes=e.numberOfEpisodes:t.numberOfEpisodes=0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=e.isOwner:t.isOwner=!1,t}};const E={count:0};t.Collaborators={encode(e,n=r.default.Writer.create()){0!==e.count&&n.uint32(8).uint32(e.count);for(const o of e.collaborator)t.Collaborator.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...E};for(a.collaborator=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.count=o.uint32();break;case 2:a.collaborator.push(t.Collaborator.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...E};if(n.collaborator=[],void 0!==e.count&&null!==e.count?n.count=Number(e.count):n.count=0,void 0!==e.collaborator&&null!==e.collaborator)for(const o of e.collaborator)n.collaborator.push(t.Collaborator.fromJSON(o));return n},toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),e.collaborator?n.collaborator=e.collaborator.map((e=>e?t.Collaborator.toJSON(e):void 0)):n.collaborator=[],n},fromPartial(e){const n={...E};if(n.collaborator=[],void 0!==e.count&&null!==e.count?n.count=e.count:n.count=0,void 0!==e.collaborator&&null!==e.collaborator)for(const o of e.collaborator)n.collaborator.push(t.Collaborator.fromPartial(o));return n}};const A={unfilteredLength:0,unrangedLength:0,duration:"0",loadingContents:!1,lastModification:"0",numFollowers:0,playable:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0};function T(e){return e.toString()}t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();void 0!==e.playlist&&t.Playlist.encode(e.playlist,n.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(32).uint32(e.unrangedLength),"0"!==e.duration&&n.uint32(40).uint64(e.duration),!0===e.loadingContents&&n.uint32(48).bool(e.loadingContents),"0"!==e.lastModification&&n.uint32(56).uint64(e.lastModification),0!==e.numFollowers&&n.uint32(64).uint32(e.numFollowers),!0===e.playable&&n.uint32(72).bool(e.playable);for(const o of e.recommendations)t.RecommendationItem.encode(o,n.uint32(82).fork()).ldelim();return!0===e.hasExplicitContent&&n.uint32(88).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&n.uint32(96).bool(e.containsSpotifyTracks),!0===e.containsEpisodes&&n.uint32(104).bool(e.containsEpisodes),!0===e.onlyContainsExplicit&&n.uint32(112).bool(e.onlyContainsExplicit),!0===e.containsAudioEpisodes&&n.uint32(120).bool(e.containsAudioEpisodes),!0===e.containsTracks&&n.uint32(128).bool(e.containsTracks),!0===e.isOnDemandInFree&&n.uint32(136).bool(e.isOnDemandInFree),0!==e.numberOfTracks&&n.uint32(144).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&n.uint32(152).uint32(e.numberOfEpisodes),!0===e.preferLinearPlayback&&n.uint32(160).bool(e.preferLinearPlayback),0!==e.onDemandInFreeReason&&n.uint32(168).int32(e.onDemandInFreeReason),void 0!==e.collaborators&&t.Collaborators.encode(e.collaborators,n.uint32(178).fork()).ldelim(),void 0!==e.basePermission&&v.Permission.encode(e.basePermission,n.uint32(186).fork()).ldelim(),void 0!==e.userCapabilities&&v.Capabilities.encode(e.userCapabilities,n.uint32(194).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...A};for(a.item=[],a.recommendations=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.playlist=t.Playlist.decode(o,o.uint32());break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.duration=T(o.uint64());break;case 6:a.loadingContents=o.bool();break;case 7:a.lastModification=T(o.uint64());break;case 8:a.numFollowers=o.uint32();break;case 9:a.playable=o.bool();break;case 10:a.recommendations.push(t.RecommendationItem.decode(o,o.uint32()));break;case 11:a.hasExplicitContent=o.bool();break;case 12:a.containsSpotifyTracks=o.bool();break;case 13:a.containsEpisodes=o.bool();break;case 14:a.onlyContainsExplicit=o.bool();break;case 15:a.containsAudioEpisodes=o.bool();break;case 16:a.containsTracks=o.bool();break;case 17:a.isOnDemandInFree=o.bool();break;case 18:a.numberOfTracks=o.uint32();break;case 19:a.numberOfEpisodes=o.uint32();break;case 20:a.preferLinearPlayback=o.bool();break;case 21:a.onDemandInFreeReason=o.int32();break;case 22:a.collaborators=t.Collaborators.decode(o,o.uint32());break;case 23:a.basePermission=v.Permission.decode(o,o.uint32());break;case 24:a.userCapabilities=v.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...A};if(n.item=[],n.recommendations=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromJSON(o));if(void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromJSON(e.playlist):n.playlist=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=Number(e.unfilteredLength):n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=Number(e.unrangedLength):n.unrangedLength=0,void 0!==e.duration&&null!==e.duration?n.duration=String(e.duration):n.duration="0",void 0!==e.loadingContents&&null!==e.loadingContents?n.loadingContents=Boolean(e.loadingContents):n.loadingContents=!1,void 0!==e.lastModification&&null!==e.lastModification?n.lastModification=String(e.lastModification):n.lastModification="0",void 0!==e.numFollowers&&null!==e.numFollowers?n.numFollowers=Number(e.numFollowers):n.numFollowers=0,void 0!==e.playable&&null!==e.playable?n.playable=Boolean(e.playable):n.playable=!1,void 0!==e.recommendations&&null!==e.recommendations)for(const o of e.recommendations)n.recommendations.push(t.RecommendationItem.fromJSON(o));return void 0!==e.hasExplicitContent&&null!==e.hasExplicitContent?n.hasExplicitContent=Boolean(e.hasExplicitContent):n.hasExplicitContent=!1,void 0!==e.containsSpotifyTracks&&null!==e.containsSpotifyTracks?n.containsSpotifyTracks=Boolean(e.containsSpotifyTracks):n.containsSpotifyTracks=!1,void 0!==e.containsEpisodes&&null!==e.containsEpisodes?n.containsEpisodes=Boolean(e.containsEpisodes):n.containsEpisodes=!1,void 0!==e.onlyContainsExplicit&&null!==e.onlyContainsExplicit?n.onlyContainsExplicit=Boolean(e.onlyContainsExplicit):n.onlyContainsExplicit=!1,void 0!==e.containsAudioEpisodes&&null!==e.containsAudioEpisodes?n.containsAudioEpisodes=Boolean(e.containsAudioEpisodes):n.containsAudioEpisodes=!1,void 0!==e.containsTracks&&null!==e.containsTracks?n.containsTracks=Boolean(e.containsTracks):n.containsTracks=!1,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?n.isOnDemandInFree=Boolean(e.isOnDemandInFree):n.isOnDemandInFree=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=Number(e.numberOfTracks):n.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=Number(e.numberOfEpisodes):n.numberOfEpisodes=0,void 0!==e.preferLinearPlayback&&null!==e.preferLinearPlayback?n.preferLinearPlayback=Boolean(e.preferLinearPlayback):n.preferLinearPlayback=!1,void 0!==e.onDemandInFreeReason&&null!==e.onDemandInFreeReason?n.onDemandInFreeReason=a.onDemandInFreeReasonFromJSON(e.onDemandInFreeReason):n.onDemandInFreeReason=0,void 0!==e.collaborators&&null!==e.collaborators?n.collaborators=t.Collaborators.fromJSON(e.collaborators):n.collaborators=void 0,void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=v.Permission.fromJSON(e.basePermission):n.basePermission=void 0,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=v.Capabilities.fromJSON(e.userCapabilities):n.userCapabilities=void 0,n},toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.playlist&&(n.playlist=e.playlist?t.Playlist.toJSON(e.playlist):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(n.unrangedLength=e.unrangedLength),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.numFollowers&&(n.numFollowers=e.numFollowers),void 0!==e.playable&&(n.playable=e.playable),e.recommendations?n.recommendations=e.recommendations.map((e=>e?t.RecommendationItem.toJSON(e):void 0)):n.recommendations=[],void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=a.onDemandInFreeReasonToJSON(e.onDemandInFreeReason)),void 0!==e.collaborators&&(n.collaborators=e.collaborators?t.Collaborators.toJSON(e.collaborators):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission?v.Permission.toJSON(e.basePermission):void 0),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities?v.Capabilities.toJSON(e.userCapabilities):void 0),n},fromPartial(e){const n={...A};if(n.item=[],n.recommendations=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromPartial(o));if(void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromPartial(e.playlist):n.playlist=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=e.unfilteredLength:n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=e.unrangedLength:n.unrangedLength=0,void 0!==e.duration&&null!==e.duration?n.duration=e.duration:n.duration="0",void 0!==e.loadingContents&&null!==e.loadingContents?n.loadingContents=e.loadingContents:n.loadingContents=!1,void 0!==e.lastModification&&null!==e.lastModification?n.lastModification=e.lastModification:n.lastModification="0",void 0!==e.numFollowers&&null!==e.numFollowers?n.numFollowers=e.numFollowers:n.numFollowers=0,void 0!==e.playable&&null!==e.playable?n.playable=e.playable:n.playable=!1,void 0!==e.recommendations&&null!==e.recommendations)for(const o of e.recommendations)n.recommendations.push(t.RecommendationItem.fromPartial(o));return void 0!==e.hasExplicitContent&&null!==e.hasExplicitContent?n.hasExplicitContent=e.hasExplicitContent:n.hasExplicitContent=!1,void 0!==e.containsSpotifyTracks&&null!==e.containsSpotifyTracks?n.containsSpotifyTracks=e.containsSpotifyTracks:n.containsSpotifyTracks=!1,void 0!==e.containsEpisodes&&null!==e.containsEpisodes?n.containsEpisodes=e.containsEpisodes:n.containsEpisodes=!1,void 0!==e.onlyContainsExplicit&&null!==e.onlyContainsExplicit?n.onlyContainsExplicit=e.onlyContainsExplicit:n.onlyContainsExplicit=!1,void 0!==e.containsAudioEpisodes&&null!==e.containsAudioEpisodes?n.containsAudioEpisodes=e.containsAudioEpisodes:n.containsAudioEpisodes=!1,void 0!==e.containsTracks&&null!==e.containsTracks?n.containsTracks=e.containsTracks:n.containsTracks=!1,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?n.isOnDemandInFree=e.isOnDemandInFree:n.isOnDemandInFree=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=e.numberOfTracks:n.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=e.numberOfEpisodes:n.numberOfEpisodes=0,void 0!==e.preferLinearPlayback&&null!==e.preferLinearPlayback?n.preferLinearPlayback=e.preferLinearPlayback:n.preferLinearPlayback=!1,void 0!==e.onDemandInFreeReason&&null!==e.onDemandInFreeReason?n.onDemandInFreeReason=e.onDemandInFreeReason:n.onDemandInFreeReason=0,void 0!==e.collaborators&&null!==e.collaborators?n.collaborators=t.Collaborators.fromPartial(e.collaborators):n.collaborators=void 0,void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=v.Permission.fromPartial(e.basePermission):n.basePermission=void 0,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=v.Capabilities.fromPartial(e.userCapabilities):n.userCapabilities=void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},89648:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetBasePermissionResponse=t.SetBasePermissionRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(71249);t.protobufPackage="spotify.playlist.cosmos.proto";const s={permissionLevel:0,timeoutMs:0};t.SetBasePermissionRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(16).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.permissionLevel=n.int32();break;case 2:i.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=a.permissionLevelFromJSON(e.permissionLevel):t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=Number(e.timeoutMs):t.timeoutMs=0,t},toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=a.permissionLevelToJSON(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=e.timeoutMs),t},fromPartial(e){const t={...s};return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=e.timeoutMs:t.timeoutMs=0,t}};const l={};t.SetBasePermissionResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.basePermission&&a.Permission.encode(e.basePermission,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.basePermission=a.Permission.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){const t={...l};return void 0!==e.basePermission&&null!==e.basePermission?t.basePermission=a.Permission.fromJSON(e.basePermission):t.basePermission=void 0,t},toJSON(e){const t={};return void 0!==e.basePermission&&(t.basePermission=e.basePermission?a.Permission.toJSON(e.basePermission):void 0),t},fromPartial(e){const t={...l};return void 0!==e.basePermission&&null!==e.basePermission?t.basePermission=a.Permission.fromPartial(e.basePermission):t.basePermission=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},57812:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackOfflineState=t.TrackCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};t.TrackCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=Boolean(e.isInCollection):t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=Boolean(e.canAddToCollection):t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={...a};return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=e.isInCollection:t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=e.canAddToCollection:t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,t}};const s={offline:""};t.TrackOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.offline=n.string();else n.skipType(7&e)}return i},fromJSON(e){const t={...s};return void 0!==e.offline&&null!==e.offline?t.offline=String(e.offline):t.offline="",t},toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){const t={...s};return void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95583:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};t.User={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.username&&t.uint32(18).string(e.username),""!==e.displayName&&t.uint32(26).string(e.displayName),""!==e.imageUri&&t.uint32(34).string(e.imageUri),""!==e.thumbnailUri&&t.uint32(42).string(e.thumbnailUri),0!==e.color&&t.uint32(48).int32(e.color),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.username=n.string();break;case 3:i.displayName=n.string();break;case 4:i.imageUri=n.string();break;case 5:i.thumbnailUri=n.string();break;case 6:i.color=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.username&&null!==e.username?t.username=String(e.username):t.username="",void 0!==e.displayName&&null!==e.displayName?t.displayName=String(e.displayName):t.displayName="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=String(e.imageUri):t.imageUri="",void 0!==e.thumbnailUri&&null!==e.thumbnailUri?t.thumbnailUri=String(e.thumbnailUri):t.thumbnailUri="",void 0!==e.color&&null!==e.color?t.color=Number(e.color):t.color=0,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.username&&(t.username=e.username),void 0!==e.displayName&&(t.displayName=e.displayName),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.thumbnailUri&&(t.thumbnailUri=e.thumbnailUri),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){const t={...a};return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.username&&null!==e.username?t.username=e.username:t.username="",void 0!==e.displayName&&null!==e.displayName?t.displayName=e.displayName:t.displayName="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=e.imageUri:t.imageUri="",void 0!==e.thumbnailUri&&null!==e.thumbnailUri?t.thumbnailUri=e.thumbnailUri:t.thumbnailUri="",void 0!==e.color&&null!==e.color?t.color=e.color:t.color=0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},45793:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delta=t.delta_TypeToJSON=t.delta_TypeFromJSON=t.Delta_Type=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"DELETE":return a.DELETE;case 1:case"INSERT":return a.INSERT;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.DELETE:return"DELETE";case a.INSERT:return"INSERT";default:return"UNKNOWN"}}t.protobufPackage="spotify.protobuf_deltas.proto",function(e){e[e.DELETE=0]="DELETE",e[e.INSERT=1]="INSERT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Delta_Type||(t.Delta_Type={})),t.delta_TypeFromJSON=s,t.delta_TypeToJSON=l;const c={type:0,index:0,length:0};t.Delta={encode:(e,t=r.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.length&&t.uint32(24).uint32(e.length),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.type=n.int32();break;case 2:i.index=n.uint32();break;case 3:i.length=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.type&&null!==e.type?t.type=s(e.type):t.type=0,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.length&&null!==e.length?t.length=Number(e.length):t.length=0,t},toJSON(e){const t={};return void 0!==e.type&&(t.type=l(e.type)),void 0!==e.index&&(t.index=e.index),void 0!==e.length&&(t.length=e.length),t},fromPartial(e){const t={...c};return void 0!==e.type&&null!==e.type?t.type=e.type:t.type=0,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},67168:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Folder=t.Item=t.Playlist=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(93048),s=n(71249),l=n(45793),c=n(81708);t.protobufPackage="spotify.playlist.cosmos.rootlist_request.proto";const u={rowId:"",addTime:0,isOnDemandInFree:!1,groupLabel:""};t.Playlist={encode:(e,t=r.default.Writer.create())=>(""!==e.rowId&&t.uint32(10).string(e.rowId),void 0!==e.playlistMetadata&&a.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.playlistOfflineState&&a.PlaylistOfflineState.encode(e.playlistOfflineState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),!0===e.isOnDemandInFree&&t.uint32(40).bool(e.isOnDemandInFree),""!==e.groupLabel&&t.uint32(50).string(e.groupLabel),void 0!==e.capabilities&&s.Capabilities.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.rowId=n.string();break;case 2:i.playlistMetadata=a.PlaylistMetadata.decode(n,n.uint32());break;case 3:i.playlistOfflineState=a.PlaylistOfflineState.decode(n,n.uint32());break;case 4:i.addTime=n.uint32();break;case 5:i.isOnDemandInFree=n.bool();break;case 6:i.groupLabel=n.string();break;case 7:i.capabilities=s.Capabilities.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...u};return void 0!==e.rowId&&null!==e.rowId?t.rowId=String(e.rowId):t.rowId="",void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=a.PlaylistMetadata.fromJSON(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=a.PlaylistOfflineState.fromJSON(e.playlistOfflineState):t.playlistOfflineState=void 0,void 0!==e.addTime&&null!==e.addTime?t.addTime=Number(e.addTime):t.addTime=0,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?t.isOnDemandInFree=Boolean(e.isOnDemandInFree):t.isOnDemandInFree=!1,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=String(e.groupLabel):t.groupLabel="",void 0!==e.capabilities&&null!==e.capabilities?t.capabilities=s.Capabilities.fromJSON(e.capabilities):t.capabilities=void 0,t},toJSON(e){const t={};return void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?a.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?a.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.capabilities&&(t.capabilities=e.capabilities?s.Capabilities.toJSON(e.capabilities):void 0),t},fromPartial(e){const t={...u};return void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId="",void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=a.PlaylistMetadata.fromPartial(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=a.PlaylistOfflineState.fromPartial(e.playlistOfflineState):t.playlistOfflineState=void 0,void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=0,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?t.isOnDemandInFree=e.isOnDemandInFree:t.isOnDemandInFree=!1,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel="",void 0!==e.capabilities&&null!==e.capabilities?t.capabilities=s.Capabilities.fromPartial(e.capabilities):t.capabilities=void 0,t}};const d={headerField:""};t.Item={encode:(e,n=r.default.Writer.create())=>(""!==e.headerField&&n.uint32(10).string(e.headerField),void 0!==e.folder&&t.Folder.encode(e.folder,n.uint32(18).fork()).ldelim(),void 0!==e.playlist&&t.Playlist.encode(e.playlist,n.uint32(26).fork()).ldelim(),void 0!==e.delta&&l.Delta.encode(e.delta,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...d};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.headerField=o.string();break;case 2:a.folder=t.Folder.decode(o,o.uint32());break;case 3:a.playlist=t.Playlist.decode(o,o.uint32());break;case 4:a.delta=l.Delta.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...d};return void 0!==e.headerField&&null!==e.headerField?n.headerField=String(e.headerField):n.headerField="",void 0!==e.folder&&null!==e.folder?n.folder=t.Folder.fromJSON(e.folder):n.folder=void 0,void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromJSON(e.playlist):n.playlist=void 0,void 0!==e.delta&&null!==e.delta?n.delta=l.Delta.fromJSON(e.delta):n.delta=void 0,n},toJSON(e){const n={};return void 0!==e.headerField&&(n.headerField=e.headerField),void 0!==e.folder&&(n.folder=e.folder?t.Folder.toJSON(e.folder):void 0),void 0!==e.playlist&&(n.playlist=e.playlist?t.Playlist.toJSON(e.playlist):void 0),void 0!==e.delta&&(n.delta=e.delta?l.Delta.toJSON(e.delta):void 0),n},fromPartial(e){const n={...d};return void 0!==e.headerField&&null!==e.headerField?n.headerField=e.headerField:n.headerField="",void 0!==e.folder&&null!==e.folder?n.folder=t.Folder.fromPartial(e.folder):n.folder=void 0,void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromPartial(e.playlist):n.playlist=void 0,void 0!==e.delta&&null!==e.delta?n.delta=l.Delta.fromPartial(e.delta):n.delta=void 0,n}};const p={rowId:"",addTime:0,groupLabel:""};t.Folder={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.folderMetadata&&c.FolderMetadata.encode(e.folderMetadata,n.uint32(18).fork()).ldelim(),""!==e.rowId&&n.uint32(26).string(e.rowId),0!==e.addTime&&n.uint32(32).uint32(e.addTime),""!==e.groupLabel&&n.uint32(42).string(e.groupLabel),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...p};for(a.item=[];o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.folderMetadata=c.FolderMetadata.decode(o,o.uint32());break;case 3:a.rowId=o.string();break;case 4:a.addTime=o.uint32();break;case 5:a.groupLabel=o.string();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...p};if(n.item=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromJSON(o));return void 0!==e.folderMetadata&&null!==e.folderMetadata?n.folderMetadata=c.FolderMetadata.fromJSON(e.folderMetadata):n.folderMetadata=void 0,void 0!==e.rowId&&null!==e.rowId?n.rowId=String(e.rowId):n.rowId="",void 0!==e.addTime&&null!==e.addTime?n.addTime=Number(e.addTime):n.addTime=0,void 0!==e.groupLabel&&null!==e.groupLabel?n.groupLabel=String(e.groupLabel):n.groupLabel="",n},toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.folderMetadata&&(n.folderMetadata=e.folderMetadata?c.FolderMetadata.toJSON(e.folderMetadata):void 0),void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.addTime&&(n.addTime=e.addTime),void 0!==e.groupLabel&&(n.groupLabel=e.groupLabel),n},fromPartial(e){const n={...p};if(n.item=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromPartial(o));return void 0!==e.folderMetadata&&null!==e.folderMetadata?n.folderMetadata=c.FolderMetadata.fromPartial(e.folderMetadata):n.folderMetadata=void 0,void 0!==e.rowId&&null!==e.rowId?n.rowId=e.rowId:n.rowId="",void 0!==e.addTime&&null!==e.addTime?n.addTime=e.addTime:n.addTime=0,void 0!==e.groupLabel&&null!==e.groupLabel?n.groupLabel=e.groupLabel:n.groupLabel="",n}};const f={unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};t.Response={encode:(e,n=r.default.Writer.create())=>(void 0!==e.root&&t.Folder.encode(e.root,n.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(16).int32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(24).int32(e.unrangedLength),!0===e.isLoadingContents&&n.uint32(32).bool(e.isLoadingContents),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...f};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.root=t.Folder.decode(o,o.uint32());break;case 2:a.unfilteredLength=o.int32();break;case 3:a.unrangedLength=o.int32();break;case 4:a.isLoadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...f};return void 0!==e.root&&null!==e.root?n.root=t.Folder.fromJSON(e.root):n.root=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=Number(e.unfilteredLength):n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=Number(e.unrangedLength):n.unrangedLength=0,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?n.isLoadingContents=Boolean(e.isLoadingContents):n.isLoadingContents=!1,n},toJSON(e){const n={};return void 0!==e.root&&(n.root=e.root?t.Folder.toJSON(e.root):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(n.unrangedLength=e.unrangedLength),void 0!==e.isLoadingContents&&(n.isLoadingContents=e.isLoadingContents),n},fromPartial(e){const n={...f};return void 0!==e.root&&null!==e.root?n.root=t.Folder.fromPartial(e.root):n.root=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=e.unfilteredLength:n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=e.unrangedLength:n.unrangedLength=0,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?n.isLoadingContents=e.isLoadingContents:n.isLoadingContents=!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12216:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetMemberPermissionRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(71249);t.protobufPackage="spotify.playlist.cosmos.proto";const s={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};t.SetMemberPermissionRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.playlistUri&&t.uint32(10).string(e.playlistUri),""!==e.username&&t.uint32(18).string(e.username),0!==e.permissionLevel&&t.uint32(24).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(32).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playlistUri=n.string();break;case 2:i.username=n.string();break;case 3:i.permissionLevel=n.int32();break;case 4:i.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};return void 0!==e.playlistUri&&null!==e.playlistUri?t.playlistUri=String(e.playlistUri):t.playlistUri="",void 0!==e.username&&null!==e.username?t.username=String(e.username):t.username="",void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=a.permissionLevelFromJSON(e.permissionLevel):t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=Number(e.timeoutMs):t.timeoutMs=0,t},toJSON(e){const t={};return void 0!==e.playlistUri&&(t.playlistUri=e.playlistUri),void 0!==e.username&&(t.username=e.username),void 0!==e.permissionLevel&&(t.permissionLevel=a.permissionLevelToJSON(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=e.timeoutMs),t},fromPartial(e){const t={...s};return void 0!==e.playlistUri&&null!==e.playlistUri?t.playlistUri=e.playlistUri:t.playlistUri="",void 0!==e.username&&null!==e.username?t.username=e.username:t.username="",void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=e.timeoutMs:t.timeoutMs=0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66141:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={offlineState:"",syncProgress:0};t.EpisodeSyncState={encode:(e,t=r.default.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offlineState=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...a};return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=String(e.offlineState):t.offlineState="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Number(e.syncProgress):t.syncProgress=0,t},toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={...a};return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95574:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={playlistUris:""};t.SyncRequest={encode(e,t=r.default.Writer.create()){for(const n of e.playlistUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(i.playlistUris=[];n.pos<o;){const e=n.uint32();if(e>>>3==1)i.playlistUris.push(n.string());else n.skipType(7&e)}return i},fromJSON(e){const t={...a};if(t.playlistUris=[],void 0!==e.playlistUris&&null!==e.playlistUris)for(const n of e.playlistUris)t.playlistUris.push(String(n));return t},toJSON(e){const t={};return e.playlistUris?t.playlistUris=e.playlistUris.map((e=>e)):t.playlistUris=[],t},fromPartial(e){const t={...a};if(t.playlistUris=[],void 0!==e.playlistUris&&null!==e.playlistUris)for(const n of e.playlistUris)t.playlistUris.push(n);return t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDataServiceClient=void 0;const o=n(33892),i=n(82440),r=n(65373);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}find(e){const t="spotify.playlist_esperanto.proto.PlaylistDataService",n="Find",r=i.PlaylistFindRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PlaylistFindResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}get(e){const t="spotify.playlist_esperanto.proto.PlaylistDataService",n="Get",i=r.PlaylistGetRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.PlaylistGetResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribe(e,t){const n="spotify.playlist_esperanto.proto.PlaylistDataService",i="Subscribe",a=r.PlaylistGetRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.PlaylistGetResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistDataService";static DECODERS={Find:{request:i.PlaylistFindRequest.decode,response:i.PlaylistFindResponse.decode},Get:{request:r.PlaylistGetRequest.decode,response:r.PlaylistGetResponse.decode},Subscribe:{request:r.PlaylistGetRequest.decode,response:r.PlaylistGetResponse.decode}}}t.PlaylistDataServiceClient=a},49560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistPlayServiceClient=void 0;const o=n(33892),i=n(59011),r=n(174);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}play(e){const t="spotify.playlist_esperanto.proto.PlaylistPlayService",n="Play",r=i.PlaylistPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PlaylistPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getPlayContext(e){const t="spotify.playlist_esperanto.proto.PlaylistPlayService",n="GetPlayContext",i=r.PlaylistGetPlayContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.PlaylistGetPlayContextResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistPlayService";static DECODERS={Play:{request:i.PlaylistPlayRequest.decode,response:i.PlaylistPlayResponse.decode},GetPlayContext:{request:r.PlaylistGetPlayContextRequest.decode,response:r.PlaylistGetPlayContextResponse.decode}}}t.PlaylistPlayServiceClient=a},46528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistServiceClient=void 0;const o=n(33892),i=n(42733),r=n(35708),a=n(44031),s=n(36912),l=n(94930),c=n(17081),u=n(22660),d=n(64270),p=n(9265),f=n(53872),h=n(87731),m=n(82706),g=n(58779),v=n(76850);class y{transport;options;constructor(e,t={}){this.transport=e,this.options=t}requestLenses(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="RequestLenses",r=i.PlaylistLensRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PlaylistLensResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}signalItem(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SignalItem",i=r.PlaylistItemSignalRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.PlaylistItemSignalResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}modify(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="Modify",i=a.PlaylistModificationRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.PlaylistModificationResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setBasePermission(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetBasePermission",i=s.PlaylistSetBasePermissionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.PlaylistSetBasePermissionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getMembers(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="GetMembers",i=l.PlaylistMembersRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=c.PlaylistMembersResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeToMembers(e,t){const n="spotify.playlist_esperanto.proto.PlaylistService",i="SubscribeToMembers",r=l.PlaylistMembersRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=c.PlaylistMembersResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}setMemberPermission(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetMemberPermission",i=u.SetMemberPermissionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.PlaylistSetMemberPermissionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}contains(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="Contains",i=p.PlaylistContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.PlaylistContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setOfflineState(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetOfflineState",i=f.PlaylistOfflineRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.PlaylistOfflineResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}resync(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="Resync",i=h.SyncRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=m.PlaylistResyncResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setToken(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetToken",i=g.PlaylistSetTokenRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=g.PlaylistSetTokenResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}clearToken(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="ClearToken",i=v.PlaylistClearTokenRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=v.PlaylistClearTokenResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistService";static DECODERS={RequestLenses:{request:i.PlaylistLensRequest.decode,response:i.PlaylistLensResponse.decode},SignalItem:{request:r.PlaylistItemSignalRequest.decode,response:r.PlaylistItemSignalResponse.decode},Modify:{request:a.PlaylistModificationRequest.decode,response:a.PlaylistModificationResponse.decode},SetBasePermission:{request:s.PlaylistSetBasePermissionRequest.decode,response:s.PlaylistSetBasePermissionResponse.decode},GetMembers:{request:l.PlaylistMembersRequest.decode,response:c.PlaylistMembersResponse.decode},SubscribeToMembers:{request:l.PlaylistMembersRequest.decode,response:c.PlaylistMembersResponse.decode},SetMemberPermission:{request:u.SetMemberPermissionRequest.decode,response:d.PlaylistSetMemberPermissionResponse.decode},Contains:{request:p.PlaylistContainsRequest.decode,response:p.PlaylistContainsResponse.decode},SetOfflineState:{request:f.PlaylistOfflineRequest.decode,response:f.PlaylistOfflineResponse.decode},Resync:{request:h.SyncRequest.decode,response:m.PlaylistResyncResponse.decode},SetToken:{request:g.PlaylistSetTokenRequest.decode,response:g.PlaylistSetTokenResponse.decode},ClearToken:{request:v.PlaylistClearTokenRequest.decode,response:v.PlaylistClearTokenResponse.decode}}}t.PlaylistServiceClient=y},94314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistDataServiceClient=void 0;const o=n(33892),i=n(4206),r=n(24766),a=n(73706),s=n(89818);class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e){const t="spotify.playlist_esperanto.proto.RootlistDataService",n="Contains",a=i.ContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.RootlistContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}get(e){const t="spotify.playlist_esperanto.proto.RootlistDataService",n="Get",i=a.RootlistGetRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.RootlistGetResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribe(e,t){const n="spotify.playlist_esperanto.proto.RootlistDataService",i="Subscribe",r=a.RootlistGetRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=a.RootlistGetResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getOfflinePlaylistsContainingItem(e){const t="spotify.playlist_esperanto.proto.RootlistDataService",n="GetOfflinePlaylistsContainingItem",i=s.GetOfflinePlaylistsContainingItemRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.GetOfflinePlaylistsContainingItemResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.playlist_esperanto.proto.RootlistDataService";static DECODERS={Contains:{request:i.ContainsRequest.decode,response:r.RootlistContainsResponse.decode},Get:{request:a.RootlistGetRequest.decode,response:a.RootlistGetResponse.decode},Subscribe:{request:a.RootlistGetRequest.decode,response:a.RootlistGetResponse.decode},GetOfflinePlaylistsContainingItem:{request:s.GetOfflinePlaylistsContainingItemRequest.decode,response:s.GetOfflinePlaylistsContainingItemResponse.decode}}}t.RootlistDataServiceClient=l},54292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistModificationServiceClient=void 0;const o=n(33892),i=n(64011);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}modify(e){const t="spotify.playlist_esperanto.proto.RootlistModificationService",n="Modify",r=i.RootlistModificationRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.RootlistModificationResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.playlist_esperanto.proto.RootlistModificationService";static DECODERS={Modify:{request:i.RootlistModificationRequest.decode,response:i.RootlistModificationResponse.decode}}}t.RootlistModificationServiceClient=r},95869:(e,t,n)=>{"use strict";t.a5=t.LM=t.IB=t.lc=t.MR=t.p1=void 0,t.$r=void 0;var o=n(46528);Object.defineProperty(t,"p1",{enumerable:!0,get:function(){return o.PlaylistServiceClient}});var i=n(12871);Object.defineProperty(t,"MR",{enumerable:!0,get:function(){return i.PlaylistDataServiceClient}});var r=n(49560);var a=n(94314);Object.defineProperty(t,"lc",{enumerable:!0,get:function(){return a.RootlistDataServiceClient}});var s=n(54292);Object.defineProperty(t,"IB",{enumerable:!0,get:function(){return s.RootlistModificationServiceClient}});var l=n(32781);var c=n(38931);var u=n(46615);var d=n(13741);var p=n(45295);var f=n(84622);var h=n(29940);var m=n(37861);var g=n(12645);var v=n(81085);var y=n(34992);var _=n(42430);var b=n(73820);var S=n(33733);var E=n(19801);Object.defineProperty(t,"LM",{enumerable:!0,get:function(){return E.PlaylistDecorationPolicy}});var A=n(23557);var T=n(90802);Object.defineProperty(t,"a5",{enumerable:!0,get:function(){return T.PlaylistRequestDecorationPolicy}});var P=n(66028);var O=n(36393);var C=n(52631);var k=n(23630);var R=n(12379);var L=n(94930);var I=n(90923);var N=n(33632);var w=n(65373);var D=n(17081);var M=n(44031);var x=n(9265);var F=n(174);var U=n(53872);var B=n(58779);var V=n(16056);var G=n(59011);var J=n(71119);Object.defineProperty(t,"$r",{enumerable:!0,get:function(){return J.PlaylistQuery}});var j=n(64366);var H=n(36912);var K=n(64270);var Y=n(64937);var W=n(28848);var z=n(39081);var q=n(87445);var X=n(22660);var Z=n(73706);var Q=n(84420);var $=n(27567);var ee=n(27567);var te=n(27567);var ne=n(4206);var oe=n(89818);var ie=n(64011)},32781:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=i.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isNew=n.bool();break;case 3:r.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!r(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!r(e.isNew)&&Boolean(e.isNew),isInListenLater:!!r(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}}},4206:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContainsResponse=t.ContainsRequest=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto",t.ContainsRequest={encode(e,t=i.default.Writer.create()){for(const n of e.items)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={items:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.items.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>String(e))):[]}),toJSON(e){const t={};return e.items?t.items=e.items.map((e=>e)):t.items=[],t},fromPartial(e){const t={items:[]};return t.items=e.items?.map((e=>e))||[],t}},t.ContainsResponse={encode(e,t=i.default.Writer.create()){t.uint32(10).fork();for(const n of e.found)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={found:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.found.push(n.bool())}else r.found.push(n.bool());else n.skipType(7&e)}return r},fromJSON:e=>({found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return e.found?t.found=e.found.map((e=>e)):t.found=[],t},fromPartial(e){const t={found:[]};return t.found=e.found?.map((e=>e))||[],t}}},2866:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context_MetadataEntry=t.Context=t.protobufPackage=void 0;const i=o(n(33892)),r=n(99829),a=n(19190);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=i.default.Writer.create()){for(const t of e.pages)r.ContextPage.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.Context_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&a.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let s=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;o.pos<s;){const e=o.uint32();switch(e>>>3){case 1:l.pages.push(r.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoading=o.bool();break;case 6:l.restrictions=a.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>r.ContextPage.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:s(e.uri)?String(e.uri):"",url:s(e.url)?String(e.url):"",isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),restrictions:s(e.restrictions)?a.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?r.ContextPage.toJSON(e):void 0)):t.pages=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.url&&(t.url=e.url),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=e.restrictions?a.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>r.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?a.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},99829:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPage_MetadataEntry=t.ContextPage=t.protobufPackage=void 0;const i=o(n(33892)),r=n(48304);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=i.default.Writer.create()){for(const t of e.tracks)r.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.tracks.push(r.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoading=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.ContextTrack.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:a(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:a(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.ContextTrack.toJSON(e):void 0)):t.tracks=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),void 0!==e.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:a(e.key)?String(e.key):"",value:a(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},98950:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerOptionOverrides=t.ContextPlayerOptions=t.protobufPackage=void 0;const i=o(n(33892)),r=n(70947);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=i.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),!0===e.repeatingContext&&t.uint32(16).bool(e.repeatingContext),!0===e.repeatingTrack&&t.uint32(24).bool(e.repeatingTrack),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.shufflingContext=n.bool();break;case 2:r.repeatingContext=n.bool();break;case 3:r.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({shufflingContext:!!a(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!a(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!a(e.repeatingTrack)&&Boolean(e.repeatingTrack)}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),t},fromPartial(e){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=i.default.Writer.create())=>(void 0!==e.shufflingContext&&r.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&r.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&r.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.shufflingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 2:a.repeatingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 3:a.repeatingTrack=r.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({shufflingContext:a(e.shufflingContext)?r.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:a(e.repeatingContext)?r.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:a(e.repeatingTrack)?r.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?r.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?r.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?r.OptionalBoolean.toJSON(e.repeatingTrack):void 0),t},fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?r.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?r.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?r.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}}},48304:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTrack_MetadataEntry=t.ContextTrack=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=i.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),""!==e.uid&&n.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{uri:r(e.uri)?String(e.uri):"",uid:r(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.uid&&(t.uid=e.uid),t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),t},fromPartial(e){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:r(e.key)?String(e.key):"",value:r(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},84314:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingParams=t.protobufPackage=void 0;const i=o(n(33892)),r=n(70947);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=i.default.Writer.create()){void 0!==e.commandInitiatedTime&&r.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&r.OptionalInt64.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.commandInitiatedTime=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.commandReceivedTime=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.pageInstanceIds.push(n.string());break;case 4:a.interactionIds.push(n.string());break;case 5:a.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({commandInitiatedTime:a(e.commandInitiatedTime)?r.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:a(e.commandReceivedTime)?r.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?r.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?r.OptionalInt64.toJSON(e.commandReceivedTime):void 0),e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),t},fromPartial(e){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?r.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?r.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}}},70947:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBoolean=t.OptionalDouble=t.OptionalInt64=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:"0"};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.int64().toString();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?String(e.value):"0"}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.double();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!a(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},25259:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOptions=t.playOptions_TriggerToJSON=t.playOptions_TriggerFromJSON=t.PlayOptions_Trigger=t.playOptions_OperationToJSON=t.playOptions_OperationFromJSON=t.PlayOptions_Operation=t.playOptions_ReasonToJSON=t.playOptions_ReasonFromJSON=t.PlayOptions_Reason=t.protobufPackage=void 0;const i=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"INTERACTIVE":return r.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return r.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.INTERACTIVE:return"INTERACTIVE";case r.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"REPLACE":return a.REPLACE;case 1:case"ENQUEUE":return a.ENQUEUE;case 2:case"PUSH":return a.PUSH;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.REPLACE:return"REPLACE";case a.ENQUEUE:return"ENQUEUE";case a.PUSH:return"PUSH";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"IMMEDIATELY":return s.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return s.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return s.ADVANCED_PAST_CONTEXT;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.IMMEDIATELY:return"IMMEDIATELY";case s.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case s.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=l,t.playOptions_ReasonToJSON=c,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=u,t.playOptions_OperationToJSON=d,function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=p,t.playOptions_TriggerToJSON=f,t.PlayOptions={encode:(e,t=i.default.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.reason=n.int32();break;case 2:r.operation=n.int32();break;case 3:r.trigger=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({reason:h(e.reason)?l(e.reason):0,operation:h(e.operation)?u(e.operation):0,trigger:h(e.trigger)?p(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.operation&&(t.operation=d(e.operation)),void 0!==e.trigger&&(t.trigger=f(e.trigger)),t},fromPartial(e){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}}},39016:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOrigin=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=i.default.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.featureIdentifier=n.string();break;case 2:r.featureVersion=n.string();break;case 3:r.viewUri=n.string();break;case 4:r.externalReferrer=n.string();break;case 5:r.referrerIdentifier=n.string();break;case 6:r.deviceIdentifier=n.string();break;case 7:r.featureClasses.push(n.string());break;case 8:r.restrictionIdentifier=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({featureIdentifier:r(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:r(e.featureVersion)?String(e.featureVersion):"",viewUri:r(e.viewUri)?String(e.viewUri):"",externalReferrer:r(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:r(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:r(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:r(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),toJSON(e){const t={};return void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),void 0!==e.featureVersion&&(t.featureVersion=e.featureVersion),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),void 0!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?t.featureClasses=e.featureClasses.map((e=>e)):t.featureClasses=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}}},41293:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreparePlayOptions_ConfigurationOverrideEntry=t.PreparePlayOptions=t.preparePlayOptions_AudioStreamToJSON=t.preparePlayOptions_AudioStreamFromJSON=t.PreparePlayOptions_AudioStream=t.preparePlayOptions_PrefetchLevelToJSON=t.preparePlayOptions_PrefetchLevelFromJSON=t.PreparePlayOptions_PrefetchLevel=t.protobufPackage=void 0;const i=o(n(33892)),r=n(98950),a=n(70947),s=n(72479);var l,c;function u(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"MEDIA":return l.MEDIA;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.NONE:return"NONE";case l.MEDIA:return"MEDIA";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"DEFAULT":return c.DEFAULT;case 1:case"ALARM":return c.ALARM;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.DEFAULT:return"DEFAULT";case c.ALARM:return"ALARM";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(){return{playbackId:new Uint8Array,alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=u,t.preparePlayOptions_PrefetchLevelToJSON=d,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=p,t.preparePlayOptions_AudioStreamToJSON=f,t.PreparePlayOptions={encode(e,n=i.default.Writer.create()){0!==e.playbackId.length&&n.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&n.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&s.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&a.OptionalInt64.encode(e.seekTo,n.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&n.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&n.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&r.ContextPlayerOptionOverrides.encode(e.playerOptionsOverride,n.uint32(58).fork()).ldelim();for(const t of e.suppressions)n.uint32(66).string(t);return 0!==e.prefetchLevel&&n.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&n.uint32(80).int32(e.audioStream),""!==e.sessionId&&n.uint32(90).string(e.sessionId),""!==e.license&&n.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c=h();for(;o.pos<l;){const e=o.uint32();switch(e>>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=s.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=a.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=r.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.skipType(7&e)}}return c},fromJSON(e){return{playbackId:v(e.playbackId)?g(e.playbackId):new Uint8Array,alwaysPlaySomething:!!v(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:v(e.skipTo)?s.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:v(e.seekTo)?a.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!v(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!v(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:v(e.playerOptionsOverride)?r.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:v(e.prefetchLevel)?u(e.prefetchLevel):0,audioStream:v(e.audioStream)?p(e.audioStream):0,sessionId:v(e.sessionId)?String(e.sessionId):"",license:v(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=function(e){if(m.Buffer)return m.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),m.btoa(t.join(""))}}(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=e.skipTo?s.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?a.OptionalInt64.toJSON(e.seekTo):void 0),void 0!==e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),void 0!==e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=e.playerOptionsOverride?r.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=d(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=f(e.audioStream)),void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.license&&(t.license=e.license),t.configurationOverride={},e.configurationOverride&&Object.entries(e.configurationOverride).forEach((([e,n])=>{t.configurationOverride[e]=n})),t},fromPartial(e){const t=h();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?s.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?a.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?r.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var m=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function g(e){if(m.Buffer)return Uint8Array.from(m.Buffer.from(e,"base64"));{const t=m.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function v(e){return null!=e}},19190:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Restrictions=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.Restrictions={encode(e,t=i.default.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.disallowPausingReasons.push(n.string());break;case 2:r.disallowResumingReasons.push(n.string());break;case 3:r.disallowSeekingReasons.push(n.string());break;case 4:r.disallowPeekingPrevReasons.push(n.string());break;case 5:r.disallowPeekingNextReasons.push(n.string());break;case 6:r.disallowSkippingPrevReasons.push(n.string());break;case 7:r.disallowSkippingNextReasons.push(n.string());break;case 8:r.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:r.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:r.disallowTogglingShuffleReasons.push(n.string());break;case 11:r.disallowSetQueueReasons.push(n.string());break;case 12:r.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:r.disallowTransferringPlaybackReasons.push(n.string());break;case 14:r.disallowRemoteControlReasons.push(n.string());break;case 15:r.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:r.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:r.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:r.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:r.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:r.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:r.disallowUpdatingContextReasons.push(n.string());break;case 22:r.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.map((e=>String(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?t.disallowPausingReasons=e.disallowPausingReasons.map((e=>e)):t.disallowPausingReasons=[],e.disallowResumingReasons?t.disallowResumingReasons=e.disallowResumingReasons.map((e=>e)):t.disallowResumingReasons=[],e.disallowSeekingReasons?t.disallowSeekingReasons=e.disallowSeekingReasons.map((e=>e)):t.disallowSeekingReasons=[],e.disallowPeekingPrevReasons?t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons.map((e=>e)):t.disallowPeekingPrevReasons=[],e.disallowPeekingNextReasons?t.disallowPeekingNextReasons=e.disallowPeekingNextReasons.map((e=>e)):t.disallowPeekingNextReasons=[],e.disallowSkippingPrevReasons?t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons.map((e=>e)):t.disallowSkippingPrevReasons=[],e.disallowSkippingNextReasons?t.disallowSkippingNextReasons=e.disallowSkippingNextReasons.map((e=>e)):t.disallowSkippingNextReasons=[],e.disallowTogglingRepeatContextReasons?t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons.map((e=>e)):t.disallowTogglingRepeatContextReasons=[],e.disallowTogglingRepeatTrackReasons?t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons.map((e=>e)):t.disallowTogglingRepeatTrackReasons=[],e.disallowTogglingShuffleReasons?t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons.map((e=>e)):t.disallowTogglingShuffleReasons=[],e.disallowSetQueueReasons?t.disallowSetQueueReasons=e.disallowSetQueueReasons.map((e=>e)):t.disallowSetQueueReasons=[],e.disallowInterruptingPlaybackReasons?t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons.map((e=>e)):t.disallowInterruptingPlaybackReasons=[],e.disallowTransferringPlaybackReasons?t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons.map((e=>e)):t.disallowTransferringPlaybackReasons=[],e.disallowRemoteControlReasons?t.disallowRemoteControlReasons=e.disallowRemoteControlReasons.map((e=>e)):t.disallowRemoteControlReasons=[],e.disallowInsertingIntoNextTracksReasons?t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons.map((e=>e)):t.disallowInsertingIntoNextTracksReasons=[],e.disallowInsertingIntoContextTracksReasons?t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons.map((e=>e)):t.disallowInsertingIntoContextTracksReasons=[],e.disallowReorderingInNextTracksReasons?t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons.map((e=>e)):t.disallowReorderingInNextTracksReasons=[],e.disallowReorderingInContextTracksReasons?t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons.map((e=>e)):t.disallowReorderingInContextTracksReasons=[],e.disallowRemovingFromNextTracksReasons?t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons.map((e=>e)):t.disallowRemovingFromNextTracksReasons=[],e.disallowRemovingFromContextTracksReasons?t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons.map((e=>e)):t.disallowRemovingFromContextTracksReasons=[],e.disallowUpdatingContextReasons?t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons.map((e=>e)):t.disallowUpdatingContextReasons=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}}},72479:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipToTrack=t.protobufPackage=void 0;const i=o(n(33892)),r=n(70947);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=i.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&r.OptionalInt64.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&r.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.pageUrl=n.string();break;case 2:a.pageIndex=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.trackUid=n.string();break;case 4:a.trackUri=n.string();break;case 5:a.trackIndex=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({pageUrl:a(e.pageUrl)?String(e.pageUrl):"",pageIndex:a(e.pageIndex)?r.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:a(e.trackUid)?String(e.trackUid):"",trackUri:a(e.trackUri)?String(e.trackUri):"",trackIndex:a(e.trackIndex)?r.OptionalInt64.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=e.pageIndex?r.OptionalInt64.toJSON(e.pageIndex):void 0),void 0!==e.trackUid&&(t.trackUid=e.trackUid),void 0!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=e.trackIndex?r.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?r.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?r.OptionalInt64.fromPartial(e.trackIndex):void 0,t}}},45295:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.MUSIC_VIDEO=85]="MUSIC_VIDEO",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;case 79:case"COVER_IMAGE":return n.COVER_IMAGE;case 80:case"SHARE_TRAIT":return n.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return n.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return n.ARTIST_TOUR;case 85:case"MUSIC_VIDEO":return n.MUSIC_VIDEO;case 87:case"LIVE_EVENTS":return n.LIVE_EVENTS;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.COVER_IMAGE:return"COVER_IMAGE";case n.SHARE_TRAIT:return"SHARE_TRAIT";case n.INSTANCE_SHARING:return"INSTANCE_SHARING";case n.ARTIST_TOUR:return"ARTIST_TOUR";case n.MUSIC_VIDEO:return"MUSIC_VIDEO";case n.LIVE_EVENTS:return"LIVE_EVENTS";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},94930:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersRequest=t.OptionalLimit=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.OptionalLimit={encode:(e,t=i.default.Writer.create())=>(0!==e.value&&t.uint32(8).uint32(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={value:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.value=n.uint32();else n.skipType(7&e)}return r},fromJSON:e=>({value:r(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=Math.round(e.value)),t},fromPartial(e){const t={value:0};return t.value=e.value??0,t}},t.PlaylistMembersRequest={encode:(e,n=i.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),void 0!==e.limit&&t.OptionalLimit.encode(e.limit,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",limit:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.limit=t.OptionalLimit.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:r(e.uri)?String(e.uri):"",limit:r(e.limit)?t.OptionalLimit.fromJSON(e.limit):void 0}),toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),void 0!==e.limit&&(n.limit=e.limit?t.OptionalLimit.toJSON(e.limit):void 0),n},fromPartial(e){const n={uri:"",limit:void 0};return n.uri=e.uri??"",n.limit=void 0!==e.limit&&null!==e.limit?t.OptionalLimit.fromPartial(e.limit):void 0,n}}},90923:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersResponse=t.Member=t.followStateToJSON=t.followStateFromJSON=t.FollowState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16056),a=n(39081);var s;function l(e){switch(e){case 0:case"NONE":return s.NONE;case 1:case"CAN_BE_FOLLOWED":return s.CAN_BE_FOLLOWED;case 2:case"CAN_BE_UNFOLLOWED":return s.CAN_BE_UNFOLLOWED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.NONE:return"NONE";case s.CAN_BE_FOLLOWED:return"CAN_BE_FOLLOWED";case s.CAN_BE_UNFOLLOWED:return"CAN_BE_UNFOLLOWED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.NONE=0]="NONE",e[e.CAN_BE_FOLLOWED=1]="CAN_BE_FOLLOWED",e[e.CAN_BE_UNFOLLOWED=2]="CAN_BE_UNFOLLOWED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.FollowState||(t.FollowState={})),t.followStateFromJSON=l,t.followStateToJSON=c,t.Member={encode:(e,t=i.default.Writer.create())=>(void 0!==e.user&&a.User.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.isOwner&&t.uint32(16).bool(e.isOwner),0!==e.numTracks&&t.uint32(24).uint32(e.numTracks),0!==e.numEpisodes&&t.uint32(32).uint32(e.numEpisodes),0!==e.followState&&t.uint32(40).int32(e.followState),0!==e.permissionLevel&&t.uint32(48).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.user=a.User.decode(n,n.uint32());break;case 2:r.isOwner=n.bool();break;case 3:r.numTracks=n.uint32();break;case 4:r.numEpisodes=n.uint32();break;case 5:r.followState=n.int32();break;case 6:r.permissionLevel=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({user:u(e.user)?a.User.fromJSON(e.user):void 0,isOwner:!!u(e.isOwner)&&Boolean(e.isOwner),numTracks:u(e.numTracks)?Number(e.numTracks):0,numEpisodes:u(e.numEpisodes)?Number(e.numEpisodes):0,followState:u(e.followState)?l(e.followState):0,permissionLevel:u(e.permissionLevel)?(0,r.permissionLevelFromJSON)(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?a.User.toJSON(e.user):void 0),void 0!==e.isOwner&&(t.isOwner=e.isOwner),void 0!==e.numTracks&&(t.numTracks=Math.round(e.numTracks)),void 0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),void 0!==e.followState&&(t.followState=c(e.followState)),void 0!==e.permissionLevel&&(t.permissionLevel=(0,r.permissionLevelToJSON)(e.permissionLevel)),t},fromPartial(e){const t={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};return t.user=void 0!==e.user&&null!==e.user?a.User.fromPartial(e.user):void 0,t.isOwner=e.isOwner??!1,t.numTracks=e.numTracks??0,t.numEpisodes=e.numEpisodes??0,t.followState=e.followState??0,t.permissionLevel=e.permissionLevel??0,t}},t.PlaylistMembersResponse={encode(e,n=i.default.Writer.create()){""!==e.title&&n.uint32(10).string(e.title),0!==e.numTotalMembers&&n.uint32(16).uint32(e.numTotalMembers),void 0!==e.capabilities&&r.Capabilities.encode(e.capabilities,n.uint32(26).fork()).ldelim(),0!==e.basePermissionLevel&&n.uint32(32).int32(e.basePermissionLevel);for(const o of e.members)t.Member.encode(o,n.uint32(42).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.title=o.string();break;case 2:s.numTotalMembers=o.uint32();break;case 3:s.capabilities=r.Capabilities.decode(o,o.uint32());break;case 4:s.basePermissionLevel=o.int32();break;case 5:s.members.push(t.Member.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON:e=>({title:u(e.title)?String(e.title):"",numTotalMembers:u(e.numTotalMembers)?Number(e.numTotalMembers):0,capabilities:u(e.capabilities)?r.Capabilities.fromJSON(e.capabilities):void 0,basePermissionLevel:u(e.basePermissionLevel)?(0,r.permissionLevelFromJSON)(e.basePermissionLevel):0,members:Array.isArray(e?.members)?e.members.map((e=>t.Member.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.numTotalMembers&&(n.numTotalMembers=Math.round(e.numTotalMembers)),void 0!==e.capabilities&&(n.capabilities=e.capabilities?r.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.basePermissionLevel&&(n.basePermissionLevel=(0,r.permissionLevelToJSON)(e.basePermissionLevel)),e.members?n.members=e.members.map((e=>e?t.Member.toJSON(e):void 0)):n.members=[],n},fromPartial(e){const n={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};return n.title=e.title??"",n.numTotalMembers=e.numTotalMembers??0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?r.Capabilities.fromPartial(e.capabilities):void 0,n.basePermissionLevel=e.basePermissionLevel??0,n.members=e.members?.map((e=>t.Member.fromPartial(e)))||[],n}}},38931:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(13741),s=n(46615);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&s.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&s.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)a.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?s.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?s.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?s.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?s.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?a.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13741:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function c(e){return null!=e}},46615:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=i.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},84622:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackMetadata=t.TrackDescriptor=t.TrackArtistMetadata=t.TrackAlbumMetadata=t.TrackAlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(13741),a=n(46615);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=i.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artist:s(e.artist)?t.TrackAlbumArtistMetadata.fromJSON(e.artist):void 0,link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",portraits:s(e.portraits)?a.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=i.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.name=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=i.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(162).fork()).ldelim();return!0===e.isCurated&&n.uint32(168).bool(e.isCurated),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:s.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:s.link=o.string();break;case 4:s.name=o.string();break;case 5:s.length=o.uint32();break;case 6:s.playable=o.bool();break;case 7:s.discNumber=o.uint32();break;case 8:s.trackNumber=o.uint32();break;case 9:s.isExplicit=o.bool();break;case 10:s.previewId=o.string();break;case 11:s.isLocal=o.bool();break;case 12:s.playableLocalTrack=o.bool();break;case 13:s.hasLyrics=o.bool();break;case 14:s.isPremiumOnly=o.bool();break;case 15:s.locallyPlayable=o.bool();break;case 16:s.playableTrackLink=o.string();break;case 17:s.popularity=o.uint32();break;case 18:s.is19PlusOnly=o.bool();break;case 19:s.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:s.extension.push(r.Extension.decode(o,o.uint32()));break;case 21:s.isCurated=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>t.TrackArtistMetadata.fromJSON(e))):[],link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",length:s(e.length)?Number(e.length):0,playable:!!s(e.playable)&&Boolean(e.playable),discNumber:s(e.discNumber)?Number(e.discNumber):0,trackNumber:s(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),previewId:s(e.previewId)?String(e.previewId):"",isLocal:!!s(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!s(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!s(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!s(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:s(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:s(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isCurated:!!s(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=Math.round(e.discNumber)),void 0!==e.trackNumber&&(n.trackNumber=Math.round(e.trackNumber)),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=Math.round(e.popularity)),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[],extension:[],isCurated:!1};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.isCurated=e.isCurated??!1,n}}},33632:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModificationResponse=t.ModificationRequest_Attributes=t.ModificationRequest=t.listAttributeKindToJSON=t.listAttributeKindFromJSON=t.ListAttributeKind=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"LIST_UNKNOWN":return r.LIST_UNKNOWN;case 1:case"LIST_NAME":return r.LIST_NAME;case 2:case"LIST_DESCRIPTION":return r.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return r.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return r.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return r.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return r.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return r.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return r.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return r.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return r.LIST_PICTURE_SIZE;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.LIST_UNKNOWN:return"LIST_UNKNOWN";case r.LIST_NAME:return"LIST_NAME";case r.LIST_DESCRIPTION:return"LIST_DESCRIPTION";case r.LIST_PICTURE:return"LIST_PICTURE";case r.LIST_COLLABORATIVE:return"LIST_COLLABORATIVE";case r.LIST_PL3_VERSION:return"LIST_PL3_VERSION";case r.LIST_DELETED_BY_OWNER:return"LIST_DELETED_BY_OWNER";case r.LIST_CLIENT_ID:return"LIST_CLIENT_ID";case r.LIST_FORMAT:return"LIST_FORMAT";case r.LIST_FORMAT_ATTRIBUTES:return"LIST_FORMAT_ATTRIBUTES";case r.LIST_PICTURE_SIZE:return"LIST_PICTURE_SIZE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.LIST_UNKNOWN=0]="LIST_UNKNOWN",e[e.LIST_NAME=1]="LIST_NAME",e[e.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",e[e.LIST_PICTURE=3]="LIST_PICTURE",e[e.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",e[e.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",e[e.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",e[e.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",e[e.LIST_FORMAT=11]="LIST_FORMAT",e[e.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",e[e.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.ListAttributeKind||(t.ListAttributeKind={})),t.listAttributeKindFromJSON=a,t.listAttributeKindToJSON=s,t.ModificationRequest={encode(e,n=i.default.Writer.create()){""!==e.operation&&n.uint32(10).string(e.operation),""!==e.before&&n.uint32(18).string(e.before),""!==e.after&&n.uint32(26).string(e.after),""!==e.name&&n.uint32(34).string(e.name),!0===e.playlist&&n.uint32(40).bool(e.playlist),void 0!==e.attributes&&t.ModificationRequest_Attributes.encode(e.attributes,n.uint32(50).fork()).ldelim();for(const t of e.uris)n.uint32(58).string(t);for(const t of e.rows)n.uint32(66).string(t);!0===e.contents&&n.uint32(72).bool(e.contents),""!==e.itemId&&n.uint32(82).string(e.itemId),n.uint32(90).fork();for(const t of e.attributesToClear)n.int32(t);return n.ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[]};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.operation=o.string();break;case 2:a.before=o.string();break;case 3:a.after=o.string();break;case 4:a.name=o.string();break;case 5:a.playlist=o.bool();break;case 6:a.attributes=t.ModificationRequest_Attributes.decode(o,o.uint32());break;case 7:a.uris.push(o.string());break;case 8:a.rows.push(o.string());break;case 9:a.contents=o.bool();break;case 10:a.itemId=o.string();break;case 11:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)a.attributesToClear.push(o.int32())}else a.attributesToClear.push(o.int32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({operation:l(e.operation)?String(e.operation):"",before:l(e.before)?String(e.before):"",after:l(e.after)?String(e.after):"",name:l(e.name)?String(e.name):"",playlist:!!l(e.playlist)&&Boolean(e.playlist),attributes:l(e.attributes)?t.ModificationRequest_Attributes.fromJSON(e.attributes):void 0,uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[],rows:Array.isArray(e?.rows)?e.rows.map((e=>String(e))):[],contents:!!l(e.contents)&&Boolean(e.contents),itemId:l(e.itemId)?String(e.itemId):"",attributesToClear:Array.isArray(e?.attributesToClear)?e.attributesToClear.map((e=>a(e))):[]}),toJSON(e){const n={};return void 0!==e.operation&&(n.operation=e.operation),void 0!==e.before&&(n.before=e.before),void 0!==e.after&&(n.after=e.after),void 0!==e.name&&(n.name=e.name),void 0!==e.playlist&&(n.playlist=e.playlist),void 0!==e.attributes&&(n.attributes=e.attributes?t.ModificationRequest_Attributes.toJSON(e.attributes):void 0),e.uris?n.uris=e.uris.map((e=>e)):n.uris=[],e.rows?n.rows=e.rows.map((e=>e)):n.rows=[],void 0!==e.contents&&(n.contents=e.contents),void 0!==e.itemId&&(n.itemId=e.itemId),e.attributesToClear?n.attributesToClear=e.attributesToClear.map((e=>s(e))):n.attributesToClear=[],n},fromPartial(e){const n={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[]};return n.operation=e.operation??"",n.before=e.before??"",n.after=e.after??"",n.name=e.name??"",n.playlist=e.playlist??!1,n.attributes=void 0!==e.attributes&&null!==e.attributes?t.ModificationRequest_Attributes.fromPartial(e.attributes):void 0,n.uris=e.uris?.map((e=>e))||[],n.rows=e.rows?.map((e=>e))||[],n.contents=e.contents??!1,n.itemId=e.itemId??"",n.attributesToClear=e.attributesToClear?.map((e=>e))||[],n}},t.ModificationRequest_Attributes={encode:(e,t=i.default.Writer.create())=>(!0===e.published&&t.uint32(8).bool(e.published),!0===e.collaborative&&t.uint32(16).bool(e.collaborative),""!==e.name&&t.uint32(26).string(e.name),""!==e.description&&t.uint32(34).string(e.description),""!==e.imageUri&&t.uint32(42).string(e.imageUri),""!==e.picture&&t.uint32(50).string(e.picture),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.published=n.bool();break;case 2:r.collaborative=n.bool();break;case 3:r.name=n.string();break;case 4:r.description=n.string();break;case 5:r.imageUri=n.string();break;case 6:r.picture=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({published:!!l(e.published)&&Boolean(e.published),collaborative:!!l(e.collaborative)&&Boolean(e.collaborative),name:l(e.name)?String(e.name):"",description:l(e.description)?String(e.description):"",imageUri:l(e.imageUri)?String(e.imageUri):"",picture:l(e.picture)?String(e.picture):""}),toJSON(e){const t={};return void 0!==e.published&&(t.published=e.published),void 0!==e.collaborative&&(t.collaborative=e.collaborative),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.picture&&(t.picture=e.picture),t},fromPartial(e){const t={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:""};return t.published=e.published??!1,t.collaborative=e.collaborative??!1,t.name=e.name??"",t.description=e.description??"",t.imageUri=e.imageUri??"",t.picture=e.picture??"",t}},t.ModificationResponse={encode:(e,t=i.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),""!==e.uri&&t.uint32(18).string(e.uri),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1,uri:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.success=n.bool();break;case 2:r.uri=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({success:!!l(e.success)&&Boolean(e.success),uri:l(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={success:!1,uri:""};return t.success=e.success??!1,t.uri=e.uri??"",t}}},89818:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetOfflinePlaylistsContainingItemResponse=t.GetOfflinePlaylistsContainingItemRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(35164),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.GetOfflinePlaylistsContainingItemRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.itemUri&&t.uint32(10).string(e.itemUri),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={itemUri:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.itemUri=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({itemUri:s(e.itemUri)?String(e.itemUri):""}),toJSON(e){const t={};return void 0!==e.itemUri&&(t.itemUri=e.itemUri),t},fromPartial(e){const t={itemUri:""};return t.itemUri=e.itemUri??"",t}},t.GetOfflinePlaylistsContainingItemResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.OfflinePlaylistsContainingItemResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.OfflinePlaylistsContainingItemResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.OfflinePlaylistsContainingItemResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.OfflinePlaylistsContainingItemResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.OfflinePlaylistsContainingItemResponse.fromPartial(e.response):void 0,t}}},35164:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfflinePlaylistsContainingItemResponse=t.OfflinePlaylistContainingItem=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.OfflinePlaylistContainingItem={encode:(e,t=i.default.Writer.create())=>(""!==e.playlistLink&&t.uint32(10).string(e.playlistLink),""!==e.playlistName&&t.uint32(18).string(e.playlistName),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistLink:"",playlistName:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playlistLink=n.string();break;case 2:r.playlistName=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistLink:r(e.playlistLink)?String(e.playlistLink):"",playlistName:r(e.playlistName)?String(e.playlistName):""}),toJSON(e){const t={};return void 0!==e.playlistLink&&(t.playlistLink=e.playlistLink),void 0!==e.playlistName&&(t.playlistName=e.playlistName),t},fromPartial(e){const t={playlistLink:"",playlistName:""};return t.playlistLink=e.playlistLink??"",t.playlistName=e.playlistName??"",t}},t.OfflinePlaylistsContainingItemResponse={encode(e,n=i.default.Writer.create()){for(const o of e.playlists)t.OfflinePlaylistContainingItem.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={playlists:[]};for(;o.pos<r;){const e=o.uint32();if(e>>>3==1)a.playlists.push(t.OfflinePlaylistContainingItem.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({playlists:Array.isArray(e?.playlists)?e.playlists.map((e=>t.OfflinePlaylistContainingItem.fromJSON(e))):[]}),toJSON(e){const n={};return e.playlists?n.playlists=e.playlists.map((e=>e?t.OfflinePlaylistContainingItem.toJSON(e):void 0)):n.playlists=[],n},fromPartial(e){const n={playlists:[]};return n.playlists=e.playlists?.map((e=>t.OfflinePlaylistContainingItem.fromPartial(e)))||[],n}}},81085:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.onDemandInFreeReasonToJSON=t.onDemandInFreeReasonFromJSON=t.OnDemandInFreeReason=t.protobufPackage=void 0,t.protobufPackage="spotify.on_demand_set.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_ON_DEMAND=1]="NOT_ON_DEMAND",e[e.ON_DEMAND=2]="ON_DEMAND",e[e.ON_DEMAND_EPISODES_ONLY=3]="ON_DEMAND_EPISODES_ONLY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.OnDemandInFreeReason||(t.OnDemandInFreeReason={})),t.onDemandInFreeReasonFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NOT_ON_DEMAND":return n.NOT_ON_DEMAND;case 2:case"ON_DEMAND":return n.ON_DEMAND;case 3:case"ON_DEMAND_EPISODES_ONLY":return n.ON_DEMAND_EPISODES_ONLY;default:return n.UNRECOGNIZED}},t.onDemandInFreeReasonToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NOT_ON_DEMAND:return"NOT_ON_DEMAND";case n.ON_DEMAND:return"ON_DEMAND";case n.ON_DEMAND_EPISODES_ONLY:return"ON_DEMAND_EPISODES_ONLY";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},29940:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(37861);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=i.default.Writer.create())=>(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.timeLeft=n.uint32();break;case 2:r.isPlayable=n.bool();break;case 3:r.isPlayed=n.bool();break;case 4:r.lastPlayedAt=n.uint32();break;case 5:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:a(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:a(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:a(e.playabilityRestriction)?(0,r.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}}},37861:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0,t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NO_RESTRICTION":return n.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return n.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return n.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return n.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return n.NOT_AVAILABLE_OFFLINE;default:return n.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NO_RESTRICTION:return"NO_RESTRICTION";case n.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case n.AGE_RESTRICTED:return"AGE_RESTRICTED";case n.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case n.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},12645:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(37861);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackPlayState={encode:(e,t=i.default.Writer.create())=>(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isPlayable:!1,playabilityRestriction:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isPlayable=n.bool();break;case 2:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:a(e.playabilityRestriction)?(0,r.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}}},76850:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistClearTokenResponse=t.PlaylistClearTokenRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistClearTokenRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.uri=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({uri:a(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}},t.PlaylistClearTokenResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},9265:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistContainsResponse=t.PlaylistContainsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(4206),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistContainsRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&r.ContainsRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.uri=n.string();break;case 2:a.request=r.ContainsRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",request:s(e.request)?r.ContainsRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=e.request?r.ContainsRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?r.ContainsRequest.fromPartial(e.request):void 0,t}},t.PlaylistContainsResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.ContainsResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.ContainsResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.ContainsResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.ContainsResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.ContainsResponse.fromPartial(e.response):void 0,t}}},82440:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistFindResponse=t.ItemUriToRowIds=t.PlaylistFindRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistFindRequest={encode(e,t=i.default.Writer.create()){""!==e.playlistUri&&t.uint32(10).string(e.playlistUri);for(const n of e.itemUris)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUri:"",itemUris:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playlistUri=n.string();break;case 2:r.itemUris.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistUri:a(e.playlistUri)?String(e.playlistUri):"",itemUris:Array.isArray(e?.itemUris)?e.itemUris.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.playlistUri&&(t.playlistUri=e.playlistUri),e.itemUris?t.itemUris=e.itemUris.map((e=>e)):t.itemUris=[],t},fromPartial(e){const t={playlistUri:"",itemUris:[]};return t.playlistUri=e.playlistUri??"",t.itemUris=e.itemUris?.map((e=>e))||[],t}},t.ItemUriToRowIds={encode(e,t=i.default.Writer.create()){""!==e.uri&&t.uint32(10).string(e.uri);for(const n of e.rowIds)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",rowIds:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.rowIds.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",rowIds:Array.isArray(e?.rowIds)?e.rowIds.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),e.rowIds?t.rowIds=e.rowIds.map((e=>e)):t.rowIds=[],t},fromPartial(e){const t={uri:"",rowIds:[]};return t.uri=e.uri??"",t.rowIds=e.rowIds?.map((e=>e))||[],t}},t.PlaylistFindResponse={encode(e,n=i.default.Writer.create()){void 0!==e.status&&r.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.items)t.ItemUriToRowIds.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={status:void 0,items:[]};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.status=r.ResponseStatus.decode(o,o.uint32());break;case 2:s.items.push(t.ItemUriToRowIds.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0,items:Array.isArray(e?.items)?e.items.map((e=>t.ItemUriToRowIds.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),e.items?n.items=e.items.map((e=>e?t.ItemUriToRowIds.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={status:void 0,items:[]};return n.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,n.items=e.items?.map((e=>t.ItemUriToRowIds.fromPartial(e)))||[],n}}},48670:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderMetadata=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FolderMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.name&&t.uint32(18).string(e.name),0!==e.numFolders&&t.uint32(24).uint32(e.numFolders),0!==e.numPlaylists&&t.uint32(32).uint32(e.numPlaylists),0!==e.numRecursiveFolders&&t.uint32(40).uint32(e.numRecursiveFolders),0!==e.numRecursivePlaylists&&t.uint32(48).uint32(e.numRecursivePlaylists),""!==e.link&&t.uint32(58).string(e.link),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.id=n.string();break;case 2:r.name=n.string();break;case 3:r.numFolders=n.uint32();break;case 4:r.numPlaylists=n.uint32();break;case 5:r.numRecursiveFolders=n.uint32();break;case 6:r.numRecursivePlaylists=n.uint32();break;case 7:r.link=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({id:r(e.id)?String(e.id):"",name:r(e.name)?String(e.name):"",numFolders:r(e.numFolders)?Number(e.numFolders):0,numPlaylists:r(e.numPlaylists)?Number(e.numPlaylists):0,numRecursiveFolders:r(e.numRecursiveFolders)?Number(e.numRecursiveFolders):0,numRecursivePlaylists:r(e.numRecursivePlaylists)?Number(e.numRecursivePlaylists):0,link:r(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.id&&(t.id=e.id),void 0!==e.name&&(t.name=e.name),void 0!==e.numFolders&&(t.numFolders=Math.round(e.numFolders)),void 0!==e.numPlaylists&&(t.numPlaylists=Math.round(e.numPlaylists)),void 0!==e.numRecursiveFolders&&(t.numRecursiveFolders=Math.round(e.numRecursiveFolders)),void 0!==e.numRecursivePlaylists&&(t.numRecursivePlaylists=Math.round(e.numRecursivePlaylists)),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};return t.id=e.id??"",t.name=e.name??"",t.numFolders=e.numFolders??0,t.numPlaylists=e.numPlaylists??0,t.numRecursiveFolders=e.numRecursiveFolders??0,t.numRecursivePlaylists=e.numRecursivePlaylists??0,t.link=e.link??"",t}}},174:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistGetPlayContextResponse_MetadataEntry=t.PlaylistGetPlayContextResponse=t.PlaylistGetPlayContextRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(71119),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistGetPlayContextRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.playlistQuery&&r.PlaylistQuery.encode(e.playlistQuery,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",playlistQuery:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.uri=n.string();break;case 2:a.playlistQuery=r.PlaylistQuery.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",playlistQuery:s(e.playlistQuery)?r.PlaylistQuery.fromJSON(e.playlistQuery):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.playlistQuery&&(t.playlistQuery=e.playlistQuery?r.PlaylistQuery.toJSON(e.playlistQuery):void 0),t},fromPartial(e){const t={uri:"",playlistQuery:void 0};return t.uri=e.uri??"",t.playlistQuery=void 0!==e.playlistQuery&&null!==e.playlistQuery?r.PlaylistQuery.fromPartial(e.playlistQuery):void 0,t}},t.PlaylistGetPlayContextResponse={encode:(e,n=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim(),Object.entries(e.metadata).forEach((([e,o])=>{t.PlaylistGetPlayContextResponse_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={status:void 0,metadata:{}};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.status=a.ResponseStatus.decode(o,o.uint32());break;case 2:const n=t.PlaylistGetPlayContextResponse_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return s},fromJSON(e){return{status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),t},fromPartial(e){const t={status:void 0,metadata:{}};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PlaylistGetPlayContextResponse_MetadataEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},65373:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistGetResponse=t.PlaylistGetRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(71119),a=n(64366),s=n(90802),l=n(87445);function c(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistGetRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.query&&r.PlaylistQuery.encode(e.query,t.uint32(18).fork()).ldelim(),void 0!==e.policy&&s.PlaylistRequestDecorationPolicy.encode(e.policy,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",query:void 0,policy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.uri=n.string();break;case 2:a.query=r.PlaylistQuery.decode(n,n.uint32());break;case 3:a.policy=s.PlaylistRequestDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:c(e.uri)?String(e.uri):"",query:c(e.query)?r.PlaylistQuery.fromJSON(e.query):void 0,policy:c(e.policy)?s.PlaylistRequestDecorationPolicy.fromJSON(e.policy):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.query&&(t.query=e.query?r.PlaylistQuery.toJSON(e.query):void 0),void 0!==e.policy&&(t.policy=e.policy?s.PlaylistRequestDecorationPolicy.toJSON(e.policy):void 0),t},fromPartial(e){const t={uri:"",query:void 0,policy:void 0};return t.uri=e.uri??"",t.query=void 0!==e.query&&null!==e.query?r.PlaylistQuery.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?s.PlaylistRequestDecorationPolicy.fromPartial(e.policy):void 0,t}},t.PlaylistGetResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&l.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&a.Response.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.query&&r.PlaylistQuery.encode(e.query,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,data:void 0,query:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=l.ResponseStatus.decode(n,n.uint32());break;case 2:s.data=a.Response.decode(n,n.uint32());break;case 3:s.query=r.PlaylistQuery.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:c(e.status)?l.ResponseStatus.fromJSON(e.status):void 0,data:c(e.data)?a.Response.fromJSON(e.data):void 0,query:c(e.query)?r.PlaylistQuery.fromJSON(e.query):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?l.ResponseStatus.toJSON(e.status):void 0),void 0!==e.data&&(t.data=e.data?a.Response.toJSON(e.data):void 0),void 0!==e.query&&(t.query=e.query?r.PlaylistQuery.toJSON(e.query):void 0),t},fromPartial(e){const t={status:void 0,data:void 0,query:void 0};return t.status=void 0!==e.status&&null!==e.status?l.ResponseStatus.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?a.Response.fromPartial(e.data):void 0,t.query=void 0!==e.query&&null!==e.query?r.PlaylistQuery.fromPartial(e.query):void 0,t}}},42733:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistLensResponse=t.PlaylistLensRequest=t.LensDefinition=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.LensDefinition={encode:(e,t=i.default.Writer.create())=>(""!==e.identifier&&t.uint32(10).string(e.identifier),!0===e.active&&t.uint32(16).bool(e.active),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={identifier:"",active:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.identifier=n.string();break;case 2:r.active=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({identifier:a(e.identifier)?String(e.identifier):"",active:!!a(e.active)&&Boolean(e.active)}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.active&&(t.active=e.active),t},fromPartial(e){const t={identifier:"",active:!1};return t.identifier=e.identifier??"",t.active=e.active??!1,t}},t.PlaylistLensRequest={encode(e,n=i.default.Writer.create()){""!==e.uri&&n.uint32(10).string(e.uri);for(const o of e.lenses)t.LensDefinition.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",lenses:[]};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.string();break;case 2:a.lenses.push(t.LensDefinition.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",lenses:Array.isArray(e?.lenses)?e.lenses.map((e=>t.LensDefinition.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),e.lenses?n.lenses=e.lenses.map((e=>e?t.LensDefinition.toJSON(e):void 0)):n.lenses=[],n},fromPartial(e){const n={uri:"",lenses:[]};return n.uri=e.uri??"",n.lenses=e.lenses?.map((e=>t.LensDefinition.fromPartial(e)))||[],n}},t.PlaylistLensResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},17081:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(90923),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistMembersResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.PlaylistMembersResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.PlaylistMembersResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.PlaylistMembersResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.PlaylistMembersResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.PlaylistMembersResponse.fromPartial(e.response):void 0,t}}},44031:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistModificationResponse=t.PlaylistModificationRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(33632),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistModificationRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&r.ModificationRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.uri=n.string();break;case 2:a.request=r.ModificationRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",request:s(e.request)?r.ModificationRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=e.request?r.ModificationRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?r.ModificationRequest.fromPartial(e.request):void 0,t}},t.PlaylistModificationResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.status=a.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return r},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t}}},53872:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineResponse=t.PlaylistOfflineRequest=t.playlistOfflineActionToJSON=t.playlistOfflineActionFromJSON=t.PlaylistOfflineAction=t.protobufPackage=void 0;const i=o(n(33892)),r=n(71119),a=n(87445);var s;function l(e){switch(e){case 0:case"NONE":return s.NONE;case 1:case"SET_AS_AVAILABLE_OFFLINE":return s.SET_AS_AVAILABLE_OFFLINE;case 2:case"REMOVE_AS_AVAILABLE_OFFLINE":return s.REMOVE_AS_AVAILABLE_OFFLINE;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.NONE:return"NONE";case s.SET_AS_AVAILABLE_OFFLINE:return"SET_AS_AVAILABLE_OFFLINE";case s.REMOVE_AS_AVAILABLE_OFFLINE:return"REMOVE_AS_AVAILABLE_OFFLINE";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.SET_AS_AVAILABLE_OFFLINE=1]="SET_AS_AVAILABLE_OFFLINE",e[e.REMOVE_AS_AVAILABLE_OFFLINE=2]="REMOVE_AS_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlaylistOfflineAction||(t.PlaylistOfflineAction={})),t.playlistOfflineActionFromJSON=l,t.playlistOfflineActionToJSON=c,t.PlaylistOfflineRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.query&&r.PlaylistQuery.encode(e.query,t.uint32(18).fork()).ldelim(),0!==e.action&&t.uint32(24).int32(e.action),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",query:void 0,action:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.uri=n.string();break;case 2:a.query=r.PlaylistQuery.decode(n,n.uint32());break;case 3:a.action=n.int32();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:u(e.uri)?String(e.uri):"",query:u(e.query)?r.PlaylistQuery.fromJSON(e.query):void 0,action:u(e.action)?l(e.action):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.query&&(t.query=e.query?r.PlaylistQuery.toJSON(e.query):void 0),void 0!==e.action&&(t.action=c(e.action)),t},fromPartial(e){const t={uri:"",query:void 0,action:0};return t.uri=e.uri??"",t.query=void 0!==e.query&&null!==e.query?r.PlaylistQuery.fromPartial(e.query):void 0,t.action=e.action??0,t}},t.PlaylistOfflineResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.status=a.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return r},fromJSON:e=>({status:u(e.status)?a.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t}}},16056:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseStatus=t.ClaimPermissionGrantResponse=t.PermissionGrantDescription=t.PermissionGrant=t.PermissionGrantOptions=t.PermissionStatePub=t.PermissionState=t.Permissions=t.GetMemberPermissionsResponse_MemberPermissionsEntry=t.GetMemberPermissionsResponse=t.SetPermissionResponse=t.SetPermissionLevelRequest=t.CapabilitiesResponse=t.CapabilitiesMultiResponse=t.CapabilitiesRequest=t.CapabilitiesMultiRequest=t.Capabilities=t.Permission=t.permissionGrantDescription_ClaimFailReasonToJSON=t.permissionGrantDescription_ClaimFailReasonFromJSON=t.PermissionGrantDescription_ClaimFailReason=t.permissionLevelToJSON=t.permissionLevelFromJSON=t.PermissionLevel=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s;function l(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"BLOCKED":return a.BLOCKED;case 2:case"VIEWER":return a.VIEWER;case 3:case"CONTRIBUTOR":return a.CONTRIBUTOR;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.BLOCKED:return"BLOCKED";case a.VIEWER:return"VIEWER";case a.CONTRIBUTOR:return"CONTRIBUTOR";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"CLAIM_FAIL_REASON_UNSPECIFIED":return s.CLAIM_FAIL_REASON_UNSPECIFIED;case 1:case"CLAIM_FAIL_REASON_ANONYMOUS":return s.CLAIM_FAIL_REASON_ANONYMOUS;case 2:case"CLAIM_FAIL_REASON_NO_GRANT_FOUND":return s.CLAIM_FAIL_REASON_NO_GRANT_FOUND;case 3:case"CLAIM_FAIL_REASON_GRANT_EXPIRED":return s.CLAIM_FAIL_REASON_GRANT_EXPIRED;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.CLAIM_FAIL_REASON_UNSPECIFIED:return"CLAIM_FAIL_REASON_UNSPECIFIED";case s.CLAIM_FAIL_REASON_ANONYMOUS:return"CLAIM_FAIL_REASON_ANONYMOUS";case s.CLAIM_FAIL_REASON_NO_GRANT_FOUND:return"CLAIM_FAIL_REASON_NO_GRANT_FOUND";case s.CLAIM_FAIL_REASON_GRANT_EXPIRED:return"CLAIM_FAIL_REASON_GRANT_EXPIRED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(){return{revision:new Uint8Array,permissionLevel:0}}t.protobufPackage="spotify.playlist_permission.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PermissionLevel||(t.PermissionLevel={})),t.permissionLevelFromJSON=l,t.permissionLevelToJSON=c,function(e){e[e.CLAIM_FAIL_REASON_UNSPECIFIED=0]="CLAIM_FAIL_REASON_UNSPECIFIED",e[e.CLAIM_FAIL_REASON_ANONYMOUS=1]="CLAIM_FAIL_REASON_ANONYMOUS",e[e.CLAIM_FAIL_REASON_NO_GRANT_FOUND=2]="CLAIM_FAIL_REASON_NO_GRANT_FOUND",e[e.CLAIM_FAIL_REASON_GRANT_EXPIRED=3]="CLAIM_FAIL_REASON_GRANT_EXPIRED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PermissionGrantDescription_ClaimFailReason||(t.PermissionGrantDescription_ClaimFailReason={})),t.permissionGrantDescription_ClaimFailReasonFromJSON=u,t.permissionGrantDescription_ClaimFailReasonToJSON=d,t.Permission={encode:(e,t=r.default.Writer.create())=>(0!==e.revision.length&&t.uint32(10).bytes(e.revision),0!==e.permissionLevel&&t.uint32(16).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=p();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.revision=n.bytes();break;case 2:i.permissionLevel=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({revision:m(e.revision)?h(e.revision):new Uint8Array,permissionLevel:m(e.permissionLevel)?l(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=function(e){if(f.Buffer)return f.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),f.btoa(t.join(""))}}(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.permissionLevel&&(t.permissionLevel=c(e.permissionLevel)),t},fromPartial(e){const t=p();return t.revision=e.revision??new Uint8Array,t.permissionLevel=e.permissionLevel??0,t}},t.Capabilities={encode(e,t=r.default.Writer.create()){!0===e.canView&&t.uint32(8).bool(e.canView),!0===e.canAdministratePermissions&&t.uint32(16).bool(e.canAdministratePermissions),t.uint32(26).fork();for(const n of e.grantableLevel)t.int32(n);return t.ldelim(),!0===e.canEditMetadata&&t.uint32(32).bool(e.canEditMetadata),!0===e.canEditItems&&t.uint32(40).bool(e.canEditItems),!0===e.canCancelMembership&&t.uint32(48).bool(e.canCancelMembership),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.canView=n.bool();break;case 2:i.canAdministratePermissions=n.bool();break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.grantableLevel.push(n.int32())}else i.grantableLevel.push(n.int32());break;case 4:i.canEditMetadata=n.bool();break;case 5:i.canEditItems=n.bool();break;case 6:i.canCancelMembership=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({canView:!!m(e.canView)&&Boolean(e.canView),canAdministratePermissions:!!m(e.canAdministratePermissions)&&Boolean(e.canAdministratePermissions),grantableLevel:Array.isArray(e?.grantableLevel)?e.grantableLevel.map((e=>l(e))):[],canEditMetadata:!!m(e.canEditMetadata)&&Boolean(e.canEditMetadata),canEditItems:!!m(e.canEditItems)&&Boolean(e.canEditItems),canCancelMembership:!!m(e.canCancelMembership)&&Boolean(e.canCancelMembership)}),toJSON(e){const t={};return void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?t.grantableLevel=e.grantableLevel.map((e=>c(e))):t.grantableLevel=[],void 0!==e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),void 0!==e.canEditItems&&(t.canEditItems=e.canEditItems),void 0!==e.canCancelMembership&&(t.canCancelMembership=e.canCancelMembership),t},fromPartial(e){const t={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1};return t.canView=e.canView??!1,t.canAdministratePermissions=e.canAdministratePermissions??!1,t.grantableLevel=e.grantableLevel?.map((e=>e))||[],t.canEditMetadata=e.canEditMetadata??!1,t.canEditItems=e.canEditItems??!1,t.canCancelMembership=e.canCancelMembership??!1,t}},t.CapabilitiesMultiRequest={encode(e,n=r.default.Writer.create()){for(const o of e.request)t.CapabilitiesRequest.encode(o,n.uint32(10).fork()).ldelim();return""!==e.fallbackUsername&&n.uint32(18).string(e.fallbackUsername),""!==e.fallbackUserId&&n.uint32(26).string(e.fallbackUserId),""!==e.fallbackUri&&n.uint32(34).string(e.fallbackUri),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={request:[],fallbackUsername:"",fallbackUserId:"",fallbackUri:""};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.request.push(t.CapabilitiesRequest.decode(o,o.uint32()));break;case 2:a.fallbackUsername=o.string();break;case 3:a.fallbackUserId=o.string();break;case 4:a.fallbackUri=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({request:Array.isArray(e?.request)?e.request.map((e=>t.CapabilitiesRequest.fromJSON(e))):[],fallbackUsername:m(e.fallbackUsername)?String(e.fallbackUsername):"",fallbackUserId:m(e.fallbackUserId)?String(e.fallbackUserId):"",fallbackUri:m(e.fallbackUri)?String(e.fallbackUri):""}),toJSON(e){const n={};return e.request?n.request=e.request.map((e=>e?t.CapabilitiesRequest.toJSON(e):void 0)):n.request=[],void 0!==e.fallbackUsername&&(n.fallbackUsername=e.fallbackUsername),void 0!==e.fallbackUserId&&(n.fallbackUserId=e.fallbackUserId),void 0!==e.fallbackUri&&(n.fallbackUri=e.fallbackUri),n},fromPartial(e){const n={request:[],fallbackUsername:"",fallbackUserId:"",fallbackUri:""};return n.request=e.request?.map((e=>t.CapabilitiesRequest.fromPartial(e)))||[],n.fallbackUsername=e.fallbackUsername??"",n.fallbackUserId=e.fallbackUserId??"",n.fallbackUri=e.fallbackUri??"",n}},t.CapabilitiesRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.username&&t.uint32(10).string(e.username),""!==e.userId&&t.uint32(18).string(e.userId),""!==e.uri&&t.uint32(26).string(e.uri),!0===e.userIsOwner&&t.uint32(32).bool(e.userIsOwner),""!==e.permissionGrantToken&&t.uint32(42).string(e.permissionGrantToken),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={username:"",userId:"",uri:"",userIsOwner:!1,permissionGrantToken:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.username=n.string();break;case 2:i.userId=n.string();break;case 3:i.uri=n.string();break;case 4:i.userIsOwner=n.bool();break;case 5:i.permissionGrantToken=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({username:m(e.username)?String(e.username):"",userId:m(e.userId)?String(e.userId):"",uri:m(e.uri)?String(e.uri):"",userIsOwner:!!m(e.userIsOwner)&&Boolean(e.userIsOwner),permissionGrantToken:m(e.permissionGrantToken)?String(e.permissionGrantToken):""}),toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.userId&&(t.userId=e.userId),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.userIsOwner&&(t.userIsOwner=e.userIsOwner),void 0!==e.permissionGrantToken&&(t.permissionGrantToken=e.permissionGrantToken),t},fromPartial(e){const t={username:"",userId:"",uri:"",userIsOwner:!1,permissionGrantToken:""};return t.username=e.username??"",t.userId=e.userId??"",t.uri=e.uri??"",t.userIsOwner=e.userIsOwner??!1,t.permissionGrantToken=e.permissionGrantToken??"",t}},t.CapabilitiesMultiResponse={encode(e,n=r.default.Writer.create()){for(const o of e.response)t.CapabilitiesResponse.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:[]};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.response.push(t.CapabilitiesResponse.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({response:Array.isArray(e?.response)?e.response.map((e=>t.CapabilitiesResponse.fromJSON(e))):[]}),toJSON(e){const n={};return e.response?n.response=e.response.map((e=>e?t.CapabilitiesResponse.toJSON(e):void 0)):n.response=[],n},fromPartial(e){const n={response:[]};return n.response=e.response?.map((e=>t.CapabilitiesResponse.fromPartial(e)))||[],n}},t.CapabilitiesResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.status&&t.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,capabilities:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.status=t.ResponseStatus.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:m(e.status)?t.ResponseStatus.fromJSON(e.status):void 0,capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):void 0}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.ResponseStatus.toJSON(e.status):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n={status:void 0,capabilities:void 0};return n.status=void 0!==e.status&&null!==e.status?t.ResponseStatus.fromPartial(e.status):void 0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n}},t.SetPermissionLevelRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={permissionLevel:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.permissionLevel=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({permissionLevel:m(e.permissionLevel)?l(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=c(e.permissionLevel)),t},fromPartial(e){const t={permissionLevel:0};return t.permissionLevel=e.permissionLevel??0,t}},t.SetPermissionResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.resultingPermission&&t.Permission.encode(e.resultingPermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={resultingPermission:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.resultingPermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({resultingPermission:m(e.resultingPermission)?t.Permission.fromJSON(e.resultingPermission):void 0}),toJSON(e){const n={};return void 0!==e.resultingPermission&&(n.resultingPermission=e.resultingPermission?t.Permission.toJSON(e.resultingPermission):void 0),n},fromPartial(e){const n={resultingPermission:void 0};return n.resultingPermission=void 0!==e.resultingPermission&&null!==e.resultingPermission?t.Permission.fromPartial(e.resultingPermission):void 0,n}},t.GetMemberPermissionsResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.memberPermissions).forEach((([e,o])=>{t.GetMemberPermissionsResponse_MemberPermissionsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={memberPermissions:{}};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1){const e=t.GetMemberPermissionsResponse_MemberPermissionsEntry.decode(o,o.uint32());void 0!==e.value&&(a.memberPermissions[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON(e){return{memberPermissions:(n=e.memberPermissions,"object"==typeof n&&null!==n?Object.entries(e.memberPermissions).reduce(((e,[n,o])=>(e[n]=t.Permission.fromJSON(o),e)),{}):{})};var n},toJSON(e){const n={memberPermissions:{}};return e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{n.memberPermissions[e]=t.Permission.toJSON(o)})),n},fromPartial(e){const n={memberPermissions:{}};return n.memberPermissions=Object.entries(e.memberPermissions??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Permission.fromPartial(o)),e)),{}),n}},t.GetMemberPermissionsResponse_MemberPermissionsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Permission.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.key=o.string();break;case 2:a.value=t.Permission.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:m(e.key)?String(e.key):"",value:m(e.value)?t.Permission.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Permission.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Permission.fromPartial(e.value):void 0,n}},t.Permissions={encode:(e,n=r.default.Writer.create())=>(void 0!==e.basePermission&&t.Permission.encode(e.basePermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={basePermission:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.basePermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({basePermission:m(e.basePermission)?t.Permission.fromJSON(e.basePermission):void 0}),toJSON(e){const n={};return void 0!==e.basePermission&&(n.basePermission=e.basePermission?t.Permission.toJSON(e.basePermission):void 0),n},fromPartial(e){const n={basePermission:void 0};return n.basePermission=void 0!==e.basePermission&&null!==e.basePermission?t.Permission.fromPartial(e.basePermission):void 0,n}},t.PermissionState={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissions&&t.Permissions.encode(e.permissions,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),!0===e.isPrivate&&n.uint32(24).bool(e.isPrivate),!0===e.isCollaborative&&n.uint32(32).bool(e.isCollaborative),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permissions:void 0,capabilities:void 0,isPrivate:!1,isCollaborative:!1};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.permissions=t.Permissions.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;case 3:a.isPrivate=o.bool();break;case 4:a.isCollaborative=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({permissions:m(e.permissions)?t.Permissions.fromJSON(e.permissions):void 0,capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):void 0,isPrivate:!!m(e.isPrivate)&&Boolean(e.isPrivate),isCollaborative:!!m(e.isCollaborative)&&Boolean(e.isCollaborative)}),toJSON(e){const n={};return void 0!==e.permissions&&(n.permissions=e.permissions?t.Permissions.toJSON(e.permissions):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.isPrivate&&(n.isPrivate=e.isPrivate),void 0!==e.isCollaborative&&(n.isCollaborative=e.isCollaborative),n},fromPartial(e){const n={permissions:void 0,capabilities:void 0,isPrivate:!1,isCollaborative:!1};return n.permissions=void 0!==e.permissions&&null!==e.permissions?t.Permissions.fromPartial(e.permissions):void 0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n.isPrivate=e.isPrivate??!1,n.isCollaborative=e.isCollaborative??!1,n}},t.PermissionStatePub={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissionState&&t.PermissionState.encode(e.permissionState,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permissionState:void 0};for(;o.pos<i;){const e=o.uint32();if(e>>>3==1)a.permissionState=t.PermissionState.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({permissionState:m(e.permissionState)?t.PermissionState.fromJSON(e.permissionState):void 0}),toJSON(e){const n={};return void 0!==e.permissionState&&(n.permissionState=e.permissionState?t.PermissionState.toJSON(e.permissionState):void 0),n},fromPartial(e){const n={permissionState:void 0};return n.permissionState=void 0!==e.permissionState&&null!==e.permissionState?t.PermissionState.fromPartial(e.permissionState):void 0,n}},t.PermissionGrantOptions={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permission&&t.Permission.encode(e.permission,n.uint32(10).fork()).ldelim(),"0"!==e.ttlMs&&n.uint32(16).int64(e.ttlMs),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permission:void 0,ttlMs:"0"};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.permission=t.Permission.decode(o,o.uint32());break;case 2:a.ttlMs=o.int64().toString();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({permission:m(e.permission)?t.Permission.fromJSON(e.permission):void 0,ttlMs:m(e.ttlMs)?String(e.ttlMs):"0"}),toJSON(e){const n={};return void 0!==e.permission&&(n.permission=e.permission?t.Permission.toJSON(e.permission):void 0),void 0!==e.ttlMs&&(n.ttlMs=e.ttlMs),n},fromPartial(e){const n={permission:void 0,ttlMs:"0"};return n.permission=void 0!==e.permission&&null!==e.permission?t.Permission.fromPartial(e.permission):void 0,n.ttlMs=e.ttlMs??"0",n}},t.PermissionGrant={encode:(e,n=r.default.Writer.create())=>(""!==e.token&&n.uint32(10).string(e.token),void 0!==e.permissionGrantOptions&&t.PermissionGrantOptions.encode(e.permissionGrantOptions,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={token:"",permissionGrantOptions:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.token=o.string();break;case 2:a.permissionGrantOptions=t.PermissionGrantOptions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({token:m(e.token)?String(e.token):"",permissionGrantOptions:m(e.permissionGrantOptions)?t.PermissionGrantOptions.fromJSON(e.permissionGrantOptions):void 0}),toJSON(e){const n={};return void 0!==e.token&&(n.token=e.token),void 0!==e.permissionGrantOptions&&(n.permissionGrantOptions=e.permissionGrantOptions?t.PermissionGrantOptions.toJSON(e.permissionGrantOptions):void 0),n},fromPartial(e){const n={token:"",permissionGrantOptions:void 0};return n.token=e.token??"",n.permissionGrantOptions=void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?t.PermissionGrantOptions.fromPartial(e.permissionGrantOptions):void 0,n}},t.PermissionGrantDescription={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissionGrantOptions&&t.PermissionGrantOptions.encode(e.permissionGrantOptions,n.uint32(10).fork()).ldelim(),0!==e.claimFailReason&&n.uint32(16).int32(e.claimFailReason),!0===e.isEffective&&n.uint32(24).bool(e.isEffective),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permissionGrantOptions:void 0,claimFailReason:0,isEffective:!1,capabilities:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.permissionGrantOptions=t.PermissionGrantOptions.decode(o,o.uint32());break;case 2:a.claimFailReason=o.int32();break;case 3:a.isEffective=o.bool();break;case 4:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({permissionGrantOptions:m(e.permissionGrantOptions)?t.PermissionGrantOptions.fromJSON(e.permissionGrantOptions):void 0,claimFailReason:m(e.claimFailReason)?u(e.claimFailReason):0,isEffective:!!m(e.isEffective)&&Boolean(e.isEffective),capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):void 0}),toJSON(e){const n={};return void 0!==e.permissionGrantOptions&&(n.permissionGrantOptions=e.permissionGrantOptions?t.PermissionGrantOptions.toJSON(e.permissionGrantOptions):void 0),void 0!==e.claimFailReason&&(n.claimFailReason=d(e.claimFailReason)),void 0!==e.isEffective&&(n.isEffective=e.isEffective),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n={permissionGrantOptions:void 0,claimFailReason:0,isEffective:!1,capabilities:void 0};return n.permissionGrantOptions=void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?t.PermissionGrantOptions.fromPartial(e.permissionGrantOptions):void 0,n.claimFailReason=e.claimFailReason??0,n.isEffective=e.isEffective??!1,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n}},t.ClaimPermissionGrantResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.userPermission&&t.Permission.encode(e.userPermission,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={userPermission:void 0,capabilities:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.userPermission=t.Permission.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({userPermission:m(e.userPermission)?t.Permission.fromJSON(e.userPermission):void 0,capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):void 0}),toJSON(e){const n={};return void 0!==e.userPermission&&(n.userPermission=e.userPermission?t.Permission.toJSON(e.userPermission):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n={userPermission:void 0,capabilities:void 0};return n.userPermission=void 0!==e.userPermission&&null!==e.userPermission?t.Permission.fromPartial(e.userPermission):void 0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n}},t.ResponseStatus={encode:(e,t=r.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.statusMessage&&t.uint32(18).string(e.statusMessage),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={statusCode:0,statusMessage:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.statusCode=n.int32();break;case 2:i.statusMessage=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({statusCode:m(e.statusCode)?Number(e.statusCode):0,statusMessage:m(e.statusMessage)?String(e.statusMessage):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.statusMessage&&(t.statusMessage=e.statusMessage),t},fromPartial(e){const t={statusCode:0,statusMessage:""};return t.statusCode=e.statusCode??0,t.statusMessage=e.statusMessage??"",t}};var f=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function h(e){if(f.Buffer)return Uint8Array.from(f.Buffer.from(e,"base64"));{const t=f.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function m(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},59011:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistPlayResponse=t.PlaylistPlayRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(2866),a=n(84314),s=n(25259),l=n(39016),c=n(41293),u=n(71119),d=n(87445);function p(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistPlayRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.playlistQuery&&u.PlaylistQuery.encode(e.playlistQuery,t.uint32(10).fork()).ldelim(),void 0!==e.context&&r.Context.encode(e.context,t.uint32(18).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),void 0!==e.preparePlayOptions&&c.PreparePlayOptions.encode(e.preparePlayOptions,t.uint32(42).fork()).ldelim(),void 0!==e.playOrigin&&l.PlayOrigin.encode(e.playOrigin,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const d={playlistQuery:void 0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:d.playlistQuery=u.PlaylistQuery.decode(n,n.uint32());break;case 2:d.context=r.Context.decode(n,n.uint32());break;case 3:d.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 4:d.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 5:d.preparePlayOptions=c.PreparePlayOptions.decode(n,n.uint32());break;case 6:d.playOrigin=l.PlayOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return d},fromJSON:e=>({playlistQuery:p(e.playlistQuery)?u.PlaylistQuery.fromJSON(e.playlistQuery):void 0,context:p(e.context)?r.Context.fromJSON(e.context):void 0,playOptions:p(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,loggingParams:p(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,preparePlayOptions:p(e.preparePlayOptions)?c.PreparePlayOptions.fromJSON(e.preparePlayOptions):void 0,playOrigin:p(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.playlistQuery&&(t.playlistQuery=e.playlistQuery?u.PlaylistQuery.toJSON(e.playlistQuery):void 0),void 0!==e.context&&(t.context=e.context?r.Context.toJSON(e.context):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=e.preparePlayOptions?c.PreparePlayOptions.toJSON(e.preparePlayOptions):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?l.PlayOrigin.toJSON(e.playOrigin):void 0),t},fromPartial(e){const t={playlistQuery:void 0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};return t.playlistQuery=void 0!==e.playlistQuery&&null!==e.playlistQuery?u.PlaylistQuery.fromPartial(e.playlistQuery):void 0,t.context=void 0!==e.context&&null!==e.context?r.Context.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?c.PreparePlayOptions.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,t}},t.PlaylistPlayResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&d.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.status=d.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return r},fromJSON:e=>({status:p(e.status)?d.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?d.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?d.ResponseStatus.fromPartial(e.status):void 0,t}}},57074:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineState=t.PlaylistMetadata=t.Allows=t.FormatListAttribute=t.protobufPackage=void 0;const i=o(n(33892)),r=n(13741),a=n(46615),s=n(39081);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FormatListAttribute={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:l(e.key)?String(e.key):"",value:l(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Allows={encode:(e,t=i.default.Writer.create())=>(!0===e.canInsert&&t.uint32(8).bool(e.canInsert),!0===e.canRemove&&t.uint32(16).bool(e.canRemove),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={canInsert:!1,canRemove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.canInsert=n.bool();break;case 2:r.canRemove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({canInsert:!!l(e.canInsert)&&Boolean(e.canInsert),canRemove:!!l(e.canRemove)&&Boolean(e.canRemove)}),toJSON(e){const t={};return void 0!==e.canInsert&&(t.canInsert=e.canInsert),void 0!==e.canRemove&&(t.canRemove=e.canRemove),t},fromPartial(e){const t={canInsert:!1,canRemove:!1};return t.canInsert=e.canInsert??!1,t.canRemove=e.canRemove??!1,t}},t.PlaylistMetadata={encode(e,n=i.default.Writer.create()){""!==e.link&&n.uint32(10).string(e.link),""!==e.name&&n.uint32(18).string(e.name),void 0!==e.owner&&s.User.encode(e.owner,n.uint32(26).fork()).ldelim(),!0===e.ownedBySelf&&n.uint32(32).bool(e.ownedBySelf),!0===e.collaborative&&n.uint32(40).bool(e.collaborative),0!==e.totalLength&&n.uint32(48).uint32(e.totalLength),""!==e.description&&n.uint32(58).string(e.description),void 0!==e.pictures&&a.ImageGroup.encode(e.pictures,n.uint32(66).fork()).ldelim(),!0===e.followed&&n.uint32(72).bool(e.followed),!0===e.published&&n.uint32(80).bool(e.published),!0===e.browsableOffline&&n.uint32(88).bool(e.browsableOffline),!0===e.descriptionFromAnnotate&&n.uint32(96).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(104).bool(e.pictureFromAnnotate),""!==e.formatListType&&n.uint32(114).string(e.formatListType);for(const o of e.formatListAttributes)t.FormatListAttribute.encode(o,n.uint32(122).fork()).ldelim();!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.isLoaded&&n.uint32(136).bool(e.isLoaded),void 0!==e.allows&&t.Allows.encode(e.allows,n.uint32(146).fork()).ldelim(),""!==e.loadState&&n.uint32(154).string(e.loadState),void 0!==e.madeFor&&s.User.encode(e.madeFor,n.uint32(162).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(170).fork()).ldelim();return 0!==e.lengthIgnoringTextFilter&&n.uint32(176).uint32(e.lengthIgnoringTextFilter),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};for(;o.pos<l;){const e=o.uint32();switch(e>>>3){case 1:c.link=o.string();break;case 2:c.name=o.string();break;case 3:c.owner=s.User.decode(o,o.uint32());break;case 4:c.ownedBySelf=o.bool();break;case 5:c.collaborative=o.bool();break;case 6:c.totalLength=o.uint32();break;case 7:c.description=o.string();break;case 8:c.pictures=a.ImageGroup.decode(o,o.uint32());break;case 9:c.followed=o.bool();break;case 10:c.published=o.bool();break;case 11:c.browsableOffline=o.bool();break;case 12:c.descriptionFromAnnotate=o.bool();break;case 13:c.pictureFromAnnotate=o.bool();break;case 14:c.formatListType=o.string();break;case 15:c.formatListAttributes.push(t.FormatListAttribute.decode(o,o.uint32()));break;case 16:c.canReportAnnotationAbuse=o.bool();break;case 17:c.isLoaded=o.bool();break;case 18:c.allows=t.Allows.decode(o,o.uint32());break;case 19:c.loadState=o.string();break;case 20:c.madeFor=s.User.decode(o,o.uint32());break;case 21:c.extension.push(r.Extension.decode(o,o.uint32()));break;case 22:c.lengthIgnoringTextFilter=o.uint32();break;default:o.skipType(7&e)}}return c},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",owner:l(e.owner)?s.User.fromJSON(e.owner):void 0,ownedBySelf:!!l(e.ownedBySelf)&&Boolean(e.ownedBySelf),collaborative:!!l(e.collaborative)&&Boolean(e.collaborative),totalLength:l(e.totalLength)?Number(e.totalLength):0,description:l(e.description)?String(e.description):"",pictures:l(e.pictures)?a.ImageGroup.fromJSON(e.pictures):void 0,followed:!!l(e.followed)&&Boolean(e.followed),published:!!l(e.published)&&Boolean(e.published),browsableOffline:!!l(e.browsableOffline)&&Boolean(e.browsableOffline),descriptionFromAnnotate:!!l(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!l(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),formatListType:l(e.formatListType)?String(e.formatListType):"",formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>t.FormatListAttribute.fromJSON(e))):[],canReportAnnotationAbuse:!!l(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),isLoaded:!!l(e.isLoaded)&&Boolean(e.isLoaded),allows:l(e.allows)?t.Allows.fromJSON(e.allows):void 0,loadState:l(e.loadState)?String(e.loadState):"",madeFor:l(e.madeFor)?s.User.fromJSON(e.madeFor):void 0,extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],lengthIgnoringTextFilter:l(e.lengthIgnoringTextFilter)?Number(e.lengthIgnoringTextFilter):0}),toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.owner&&(n.owner=e.owner?s.User.toJSON(e.owner):void 0),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.totalLength&&(n.totalLength=Math.round(e.totalLength)),void 0!==e.description&&(n.description=e.description),void 0!==e.pictures&&(n.pictures=e.pictures?a.ImageGroup.toJSON(e.pictures):void 0),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.formatListType&&(n.formatListType=e.formatListType),e.formatListAttributes?n.formatListAttributes=e.formatListAttributes.map((e=>e?t.FormatListAttribute.toJSON(e):void 0)):n.formatListAttributes=[],void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.isLoaded&&(n.isLoaded=e.isLoaded),void 0!==e.allows&&(n.allows=e.allows?t.Allows.toJSON(e.allows):void 0),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.madeFor&&(n.madeFor=e.madeFor?s.User.toJSON(e.madeFor):void 0),e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=Math.round(e.lengthIgnoringTextFilter)),n},fromPartial(e){const n={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};return n.link=e.link??"",n.name=e.name??"",n.owner=void 0!==e.owner&&null!==e.owner?s.User.fromPartial(e.owner):void 0,n.ownedBySelf=e.ownedBySelf??!1,n.collaborative=e.collaborative??!1,n.totalLength=e.totalLength??0,n.description=e.description??"",n.pictures=void 0!==e.pictures&&null!==e.pictures?a.ImageGroup.fromPartial(e.pictures):void 0,n.followed=e.followed??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.formatListType=e.formatListType??"",n.formatListAttributes=e.formatListAttributes?.map((e=>t.FormatListAttribute.fromPartial(e)))||[],n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.isLoaded=e.isLoaded??!1,n.allows=void 0!==e.allows&&null!==e.allows?t.Allows.fromPartial(e.allows):void 0,n.loadState=e.loadState??"",n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?s.User.fromPartial(e.madeFor):void 0,n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??0,n}},t.PlaylistOfflineState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:l(e.offline)?String(e.offline):"",syncProgress:l(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}}},71119:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistQuery=t.PlaylistRange=t.playlistQuery_SortByToJSON=t.playlistQuery_SortByFromJSON=t.PlaylistQuery_SortBy=t.playlistQuery_BoolPredicateToJSON=t.playlistQuery_BoolPredicateFromJSON=t.PlaylistQuery_BoolPredicate=t.playlistSourceRestrictionToJSON=t.playlistSourceRestrictionFromJSON=t.PlaylistSourceRestriction=t.protobufPackage=void 0;const i=o(n(33892)),r=n(89473);var a,s,l;function c(e){switch(e){case 0:case"NO_RESTRICTION":return a.NO_RESTRICTION;case 1:case"RESTRICT_SOURCE_TO_50":return a.RESTRICT_SOURCE_TO_50;case 2:case"RESTRICT_SOURCE_TO_500":return a.RESTRICT_SOURCE_TO_500;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.NO_RESTRICTION:return"NO_RESTRICTION";case a.RESTRICT_SOURCE_TO_50:return"RESTRICT_SOURCE_TO_50";case a.RESTRICT_SOURCE_TO_500:return"RESTRICT_SOURCE_TO_500";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"NO_FILTER":return s.NO_FILTER;case 1:case"AVAILABLE":return s.AVAILABLE;case 2:case"AVAILABLE_OFFLINE":return s.AVAILABLE_OFFLINE;case 3:case"ARTIST_NOT_BANNED":return s.ARTIST_NOT_BANNED;case 4:case"NOT_BANNED":return s.NOT_BANNED;case 5:case"NOT_EXPLICIT":return s.NOT_EXPLICIT;case 6:case"NOT_EPISODE":return s.NOT_EPISODE;case 7:case"NOT_RECOMMENDATION":return s.NOT_RECOMMENDATION;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.NO_FILTER:return"NO_FILTER";case s.AVAILABLE:return"AVAILABLE";case s.AVAILABLE_OFFLINE:return"AVAILABLE_OFFLINE";case s.ARTIST_NOT_BANNED:return"ARTIST_NOT_BANNED";case s.NOT_BANNED:return"NOT_BANNED";case s.NOT_EXPLICIT:return"NOT_EXPLICIT";case s.NOT_EPISODE:return"NOT_EPISODE";case s.NOT_RECOMMENDATION:return"NOT_RECOMMENDATION";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"NO_SORT":return l.NO_SORT;case 1:case"ALBUM_ARTIST_NAME_ASC":return l.ALBUM_ARTIST_NAME_ASC;case 2:case"ALBUM_ARTIST_NAME_DESC":return l.ALBUM_ARTIST_NAME_DESC;case 3:case"TRACK_NUMBER_ASC":return l.TRACK_NUMBER_ASC;case 4:case"TRACK_NUMBER_DESC":return l.TRACK_NUMBER_DESC;case 5:case"DISC_NUMBER_ASC":return l.DISC_NUMBER_ASC;case 6:case"DISC_NUMBER_DESC":return l.DISC_NUMBER_DESC;case 7:case"ALBUM_NAME_ASC":return l.ALBUM_NAME_ASC;case 8:case"ALBUM_NAME_DESC":return l.ALBUM_NAME_DESC;case 9:case"ARTIST_NAME_ASC":return l.ARTIST_NAME_ASC;case 10:case"ARTIST_NAME_DESC":return l.ARTIST_NAME_DESC;case 11:case"NAME_ASC":return l.NAME_ASC;case 12:case"NAME_DESC":return l.NAME_DESC;case 13:case"ADD_TIME_ASC":return l.ADD_TIME_ASC;case 14:case"ADD_TIME_DESC":return l.ADD_TIME_DESC;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.NO_SORT:return"NO_SORT";case l.ALBUM_ARTIST_NAME_ASC:return"ALBUM_ARTIST_NAME_ASC";case l.ALBUM_ARTIST_NAME_DESC:return"ALBUM_ARTIST_NAME_DESC";case l.TRACK_NUMBER_ASC:return"TRACK_NUMBER_ASC";case l.TRACK_NUMBER_DESC:return"TRACK_NUMBER_DESC";case l.DISC_NUMBER_ASC:return"DISC_NUMBER_ASC";case l.DISC_NUMBER_DESC:return"DISC_NUMBER_DESC";case l.ALBUM_NAME_ASC:return"ALBUM_NAME_ASC";case l.ALBUM_NAME_DESC:return"ALBUM_NAME_DESC";case l.ARTIST_NAME_ASC:return"ARTIST_NAME_ASC";case l.ARTIST_NAME_DESC:return"ARTIST_NAME_DESC";case l.NAME_ASC:return"NAME_ASC";case l.NAME_DESC:return"NAME_DESC";case l.ADD_TIME_ASC:return"ADD_TIME_ASC";case l.ADD_TIME_DESC:return"ADD_TIME_DESC";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",function(e){e[e.NO_RESTRICTION=0]="NO_RESTRICTION",e[e.RESTRICT_SOURCE_TO_50=1]="RESTRICT_SOURCE_TO_50",e[e.RESTRICT_SOURCE_TO_500=2]="RESTRICT_SOURCE_TO_500",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlaylistSourceRestriction||(t.PlaylistSourceRestriction={})),t.playlistSourceRestrictionFromJSON=c,t.playlistSourceRestrictionToJSON=u,function(e){e[e.NO_FILTER=0]="NO_FILTER",e[e.AVAILABLE=1]="AVAILABLE",e[e.AVAILABLE_OFFLINE=2]="AVAILABLE_OFFLINE",e[e.ARTIST_NOT_BANNED=3]="ARTIST_NOT_BANNED",e[e.NOT_BANNED=4]="NOT_BANNED",e[e.NOT_EXPLICIT=5]="NOT_EXPLICIT",e[e.NOT_EPISODE=6]="NOT_EPISODE",e[e.NOT_RECOMMENDATION=7]="NOT_RECOMMENDATION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlaylistQuery_BoolPredicate||(t.PlaylistQuery_BoolPredicate={})),t.playlistQuery_BoolPredicateFromJSON=d,t.playlistQuery_BoolPredicateToJSON=p,function(e){e[e.NO_SORT=0]="NO_SORT",e[e.ALBUM_ARTIST_NAME_ASC=1]="ALBUM_ARTIST_NAME_ASC",e[e.ALBUM_ARTIST_NAME_DESC=2]="ALBUM_ARTIST_NAME_DESC",e[e.TRACK_NUMBER_ASC=3]="TRACK_NUMBER_ASC",e[e.TRACK_NUMBER_DESC=4]="TRACK_NUMBER_DESC",e[e.DISC_NUMBER_ASC=5]="DISC_NUMBER_ASC",e[e.DISC_NUMBER_DESC=6]="DISC_NUMBER_DESC",e[e.ALBUM_NAME_ASC=7]="ALBUM_NAME_ASC",e[e.ALBUM_NAME_DESC=8]="ALBUM_NAME_DESC",e[e.ARTIST_NAME_ASC=9]="ARTIST_NAME_ASC",e[e.ARTIST_NAME_DESC=10]="ARTIST_NAME_DESC",e[e.NAME_ASC=11]="NAME_ASC",e[e.NAME_DESC=12]="NAME_DESC",e[e.ADD_TIME_ASC=13]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=14]="ADD_TIME_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.PlaylistQuery_SortBy||(t.PlaylistQuery_SortBy={})),t.playlistQuery_SortByFromJSON=f,t.playlistQuery_SortByToJSON=h,t.PlaylistRange={encode:(e,t=i.default.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.start=n.int32();break;case 2:r.length=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({start:m(e.start)?Number(e.start):0,length:m(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}},t.PlaylistQuery={encode(e,n=i.default.Writer.create()){n.uint32(10).fork();for(const t of e.boolPredicates)n.int32(t);n.ldelim(),""!==e.textFilter&&n.uint32(18).string(e.textFilter),0!==e.sortBy&&n.uint32(24).int32(e.sortBy),void 0!==e.range&&t.PlaylistRange.encode(e.range,n.uint32(34).fork()).ldelim(),0!==e.updateThrottlingMs&&n.uint32(40).int32(e.updateThrottlingMs),!0===e.group&&n.uint32(48).bool(e.group),0!==e.sourceRestriction&&n.uint32(56).int32(e.sourceRestriction),!0===e.showUnavailable&&n.uint32(64).bool(e.showUnavailable),!0===e.alwaysShowWindowed&&n.uint32(72).bool(e.alwaysShowWindowed),!0===e.loadRecommendations&&n.uint32(80).bool(e.loadRecommendations),n.uint32(90).fork();for(const t of e.supportedPlaceholderTypes)n.int32(t);n.ldelim();for(const t of e.descriptorFilter)n.uint32(98).string(t);return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={boolPredicates:[],textFilter:"",sortBy:0,range:void 0,updateThrottlingMs:0,group:!1,sourceRestriction:0,showUnavailable:!1,alwaysShowWindowed:!1,loadRecommendations:!1,supportedPlaceholderTypes:[],descriptorFilter:[]};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)a.boolPredicates.push(o.int32())}else a.boolPredicates.push(o.int32());break;case 2:a.textFilter=o.string();break;case 3:a.sortBy=o.int32();break;case 4:a.range=t.PlaylistRange.decode(o,o.uint32());break;case 5:a.updateThrottlingMs=o.int32();break;case 6:a.group=o.bool();break;case 7:a.sourceRestriction=o.int32();break;case 8:a.showUnavailable=o.bool();break;case 9:a.alwaysShowWindowed=o.bool();break;case 10:a.loadRecommendations=o.bool();break;case 11:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)a.supportedPlaceholderTypes.push(o.int32())}else a.supportedPlaceholderTypes.push(o.int32());break;case 12:a.descriptorFilter.push(o.string());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({boolPredicates:Array.isArray(e?.boolPredicates)?e.boolPredicates.map((e=>d(e))):[],textFilter:m(e.textFilter)?String(e.textFilter):"",sortBy:m(e.sortBy)?f(e.sortBy):0,range:m(e.range)?t.PlaylistRange.fromJSON(e.range):void 0,updateThrottlingMs:m(e.updateThrottlingMs)?Number(e.updateThrottlingMs):0,group:!!m(e.group)&&Boolean(e.group),sourceRestriction:m(e.sourceRestriction)?c(e.sourceRestriction):0,showUnavailable:!!m(e.showUnavailable)&&Boolean(e.showUnavailable),alwaysShowWindowed:!!m(e.alwaysShowWindowed)&&Boolean(e.alwaysShowWindowed),loadRecommendations:!!m(e.loadRecommendations)&&Boolean(e.loadRecommendations),supportedPlaceholderTypes:Array.isArray(e?.supportedPlaceholderTypes)?e.supportedPlaceholderTypes.map((e=>(0,r.linkTypeFromJSON)(e))):[],descriptorFilter:Array.isArray(e?.descriptorFilter)?e.descriptorFilter.map((e=>String(e))):[]}),toJSON(e){const n={};return e.boolPredicates?n.boolPredicates=e.boolPredicates.map((e=>p(e))):n.boolPredicates=[],void 0!==e.textFilter&&(n.textFilter=e.textFilter),void 0!==e.sortBy&&(n.sortBy=h(e.sortBy)),void 0!==e.range&&(n.range=e.range?t.PlaylistRange.toJSON(e.range):void 0),void 0!==e.updateThrottlingMs&&(n.updateThrottlingMs=Math.round(e.updateThrottlingMs)),void 0!==e.group&&(n.group=e.group),void 0!==e.sourceRestriction&&(n.sourceRestriction=u(e.sourceRestriction)),void 0!==e.showUnavailable&&(n.showUnavailable=e.showUnavailable),void 0!==e.alwaysShowWindowed&&(n.alwaysShowWindowed=e.alwaysShowWindowed),void 0!==e.loadRecommendations&&(n.loadRecommendations=e.loadRecommendations),e.supportedPlaceholderTypes?n.supportedPlaceholderTypes=e.supportedPlaceholderTypes.map((e=>(0,r.linkTypeToJSON)(e))):n.supportedPlaceholderTypes=[],e.descriptorFilter?n.descriptorFilter=e.descriptorFilter.map((e=>e)):n.descriptorFilter=[],n},fromPartial(e){const n={boolPredicates:[],textFilter:"",sortBy:0,range:void 0,updateThrottlingMs:0,group:!1,sourceRestriction:0,showUnavailable:!1,alwaysShowWindowed:!1,loadRecommendations:!1,supportedPlaceholderTypes:[],descriptorFilter:[]};return n.boolPredicates=e.boolPredicates?.map((e=>e))||[],n.textFilter=e.textFilter??"",n.sortBy=e.sortBy??0,n.range=void 0!==e.range&&null!==e.range?t.PlaylistRange.fromPartial(e.range):void 0,n.updateThrottlingMs=e.updateThrottlingMs??0,n.group=e.group??!1,n.sourceRestriction=e.sourceRestriction??0,n.showUnavailable=e.showUnavailable??!1,n.alwaysShowWindowed=e.alwaysShowWindowed??!1,n.loadRecommendations=e.loadRecommendations??!1,n.supportedPlaceholderTypes=e.supportedPlaceholderTypes?.map((e=>e))||[],n.descriptorFilter=e.descriptorFilter?.map((e=>e))||[],n}}},64366:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.NumberOfItemsForLinkType=t.Collaborators=t.Collaborator=t.RecommendationItem=t.Playlist=t.LensState=t.Lens=t.Item=t.ItemOfflineState=t.ItemSignal=t.itemSignalStateToJSON=t.itemSignalStateFromJSON=t.ItemSignalState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(32781),s=n(38931),l=n(13741),c=n(46615),u=n(84622),d=n(81085),p=n(29940),f=n(12645),h=n(16056),m=n(57074),g=n(28848),v=n(39081),y=n(89473),_=n(12379);var b;function S(e){switch(e){case 0:case"READY":return b.READY;case 1:case"PENDING":return b.PENDING;default:return b.UNRECOGNIZED}}function E(e){switch(e){case b.READY:return"READY";case b.PENDING:return"PENDING";case b.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function A(e){return e.toString()}function T(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.playlist_request.proto",function(e){e[e.READY=0]="READY",e[e.PENDING=1]="PENDING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(b=t.ItemSignalState||(t.ItemSignalState={})),t.itemSignalStateFromJSON=S,t.itemSignalStateToJSON=E,t.ItemSignal={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={name:"",state:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.name=n.string();break;case 2:i.state=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({name:T(e.name)?String(e.name):"",state:T(e.state)?S(e.state):0}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.state&&(t.state=E(e.state)),t},fromPartial(e){const t={name:"",state:0};return t.name=e.name??"",t.state=e.state??0,t}},t.ItemOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.offline=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:T(e.offline)?String(e.offline):"",syncProgress:T(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}},t.Item={encode(e,n=r.default.Writer.create()){""!==e.headerField&&n.uint32(10).string(e.headerField),0!==e.addTime&&n.uint32(16).uint32(e.addTime),void 0!==e.addedBy&&v.User.encode(e.addedBy,n.uint32(26).fork()).ldelim(),void 0!==e.trackMetadata&&u.TrackMetadata.encode(e.trackMetadata,n.uint32(34).fork()).ldelim(),void 0!==e.trackCollectionState&&g.TrackCollectionState.encode(e.trackCollectionState,n.uint32(42).fork()).ldelim(),void 0!==e.trackOfflineState&&g.TrackOfflineState.encode(e.trackOfflineState,n.uint32(50).fork()).ldelim(),""!==e.rowId&&n.uint32(58).string(e.rowId),void 0!==e.trackPlayState&&f.TrackPlayState.encode(e.trackPlayState,n.uint32(66).fork()).ldelim();for(const t of e.formatListAttributes)m.FormatListAttribute.encode(t,n.uint32(74).fork()).ldelim();void 0!==e.episodeMetadata&&s.EpisodeMetadata.encode(e.episodeMetadata,n.uint32(82).fork()).ldelim(),void 0!==e.episodeOfflineState&&_.EpisodeSyncState.encode(e.episodeOfflineState,n.uint32(90).fork()).ldelim(),void 0!==e.episodeCollectionState&&a.EpisodeCollectionState.encode(e.episodeCollectionState,n.uint32(98).fork()).ldelim(),void 0!==e.episodePlayState&&p.EpisodePlayState.encode(e.episodePlayState,n.uint32(106).fork()).ldelim(),void 0!==e.displayCovers&&c.ImageGroup.encode(e.displayCovers,n.uint32(114).fork()).ldelim();for(const o of e.signals)t.ItemSignal.encode(o,n.uint32(122).fork()).ldelim();!0===e.isRecommendation&&n.uint32(128).bool(e.isRecommendation);for(const t of e.extension)l.Extension.encode(t,n.uint32(138).fork()).ldelim();return""!==e.uri&&n.uint32(146).string(e.uri),void 0!==e.offlineState&&t.ItemOfflineState.encode(e.offlineState,n.uint32(154).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const d={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,signals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:d.headerField=o.string();break;case 2:d.addTime=o.uint32();break;case 3:d.addedBy=v.User.decode(o,o.uint32());break;case 4:d.trackMetadata=u.TrackMetadata.decode(o,o.uint32());break;case 5:d.trackCollectionState=g.TrackCollectionState.decode(o,o.uint32());break;case 6:d.trackOfflineState=g.TrackOfflineState.decode(o,o.uint32());break;case 7:d.rowId=o.string();break;case 8:d.trackPlayState=f.TrackPlayState.decode(o,o.uint32());break;case 9:d.formatListAttributes.push(m.FormatListAttribute.decode(o,o.uint32()));break;case 10:d.episodeMetadata=s.EpisodeMetadata.decode(o,o.uint32());break;case 11:d.episodeOfflineState=_.EpisodeSyncState.decode(o,o.uint32());break;case 12:d.episodeCollectionState=a.EpisodeCollectionState.decode(o,o.uint32());break;case 13:d.episodePlayState=p.EpisodePlayState.decode(o,o.uint32());break;case 14:d.displayCovers=c.ImageGroup.decode(o,o.uint32());break;case 15:d.signals.push(t.ItemSignal.decode(o,o.uint32()));break;case 16:d.isRecommendation=o.bool();break;case 17:d.extension.push(l.Extension.decode(o,o.uint32()));break;case 18:d.uri=o.string();break;case 19:d.offlineState=t.ItemOfflineState.decode(o,o.uint32());break;default:o.skipType(7&e)}}return d},fromJSON:e=>({headerField:T(e.headerField)?String(e.headerField):"",addTime:T(e.addTime)?Number(e.addTime):0,addedBy:T(e.addedBy)?v.User.fromJSON(e.addedBy):void 0,trackMetadata:T(e.trackMetadata)?u.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:T(e.trackCollectionState)?g.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackOfflineState:T(e.trackOfflineState)?g.TrackOfflineState.fromJSON(e.trackOfflineState):void 0,rowId:T(e.rowId)?String(e.rowId):"",trackPlayState:T(e.trackPlayState)?f.TrackPlayState.fromJSON(e.trackPlayState):void 0,formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>m.FormatListAttribute.fromJSON(e))):[],episodeMetadata:T(e.episodeMetadata)?s.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeOfflineState:T(e.episodeOfflineState)?_.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodeCollectionState:T(e.episodeCollectionState)?a.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodePlayState:T(e.episodePlayState)?p.EpisodePlayState.fromJSON(e.episodePlayState):void 0,displayCovers:T(e.displayCovers)?c.ImageGroup.fromJSON(e.displayCovers):void 0,signals:Array.isArray(e?.signals)?e.signals.map((e=>t.ItemSignal.fromJSON(e))):[],isRecommendation:!!T(e.isRecommendation)&&Boolean(e.isRecommendation),extension:Array.isArray(e?.extension)?e.extension.map((e=>l.Extension.fromJSON(e))):[],uri:T(e.uri)?String(e.uri):"",offlineState:T(e.offlineState)?t.ItemOfflineState.fromJSON(e.offlineState):void 0}),toJSON(e){const n={};return void 0!==e.headerField&&(n.headerField=e.headerField),void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.addedBy&&(n.addedBy=e.addedBy?v.User.toJSON(e.addedBy):void 0),void 0!==e.trackMetadata&&(n.trackMetadata=e.trackMetadata?u.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(n.trackCollectionState=e.trackCollectionState?g.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(n.trackOfflineState=e.trackOfflineState?g.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.trackPlayState&&(n.trackPlayState=e.trackPlayState?f.TrackPlayState.toJSON(e.trackPlayState):void 0),e.formatListAttributes?n.formatListAttributes=e.formatListAttributes.map((e=>e?m.FormatListAttribute.toJSON(e):void 0)):n.formatListAttributes=[],void 0!==e.episodeMetadata&&(n.episodeMetadata=e.episodeMetadata?s.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeOfflineState&&(n.episodeOfflineState=e.episodeOfflineState?_.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodeCollectionState&&(n.episodeCollectionState=e.episodeCollectionState?a.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodePlayState&&(n.episodePlayState=e.episodePlayState?p.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.displayCovers&&(n.displayCovers=e.displayCovers?c.ImageGroup.toJSON(e.displayCovers):void 0),e.signals?n.signals=e.signals.map((e=>e?t.ItemSignal.toJSON(e):void 0)):n.signals=[],void 0!==e.isRecommendation&&(n.isRecommendation=e.isRecommendation),e.extension?n.extension=e.extension.map((e=>e?l.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.uri&&(n.uri=e.uri),void 0!==e.offlineState&&(n.offlineState=e.offlineState?t.ItemOfflineState.toJSON(e.offlineState):void 0),n},fromPartial(e){const n={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,signals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0};return n.headerField=e.headerField??"",n.addTime=e.addTime??0,n.addedBy=void 0!==e.addedBy&&null!==e.addedBy?v.User.fromPartial(e.addedBy):void 0,n.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?u.TrackMetadata.fromPartial(e.trackMetadata):void 0,n.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?g.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,n.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?g.TrackOfflineState.fromPartial(e.trackOfflineState):void 0,n.rowId=e.rowId??"",n.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?f.TrackPlayState.fromPartial(e.trackPlayState):void 0,n.formatListAttributes=e.formatListAttributes?.map((e=>m.FormatListAttribute.fromPartial(e)))||[],n.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?s.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,n.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?_.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,n.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?a.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,n.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?p.EpisodePlayState.fromPartial(e.episodePlayState):void 0,n.displayCovers=void 0!==e.displayCovers&&null!==e.displayCovers?c.ImageGroup.fromPartial(e.displayCovers):void 0,n.signals=e.signals?.map((e=>t.ItemSignal.fromPartial(e)))||[],n.isRecommendation=e.isRecommendation??!1,n.extension=e.extension?.map((e=>l.Extension.fromPartial(e)))||[],n.uri=e.uri??"",n.offlineState=void 0!==e.offlineState&&null!==e.offlineState?t.ItemOfflineState.fromPartial(e.offlineState):void 0,n}},t.Lens={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={name:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.name=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({name:T(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.LensState={encode(e,n=r.default.Writer.create()){for(const o of e.requestedLenses)t.Lens.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.appliedLenses)t.Lens.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={requestedLenses:[],appliedLenses:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.requestedLenses.push(t.Lens.decode(o,o.uint32()));break;case 2:a.appliedLenses.push(t.Lens.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({requestedLenses:Array.isArray(e?.requestedLenses)?e.requestedLenses.map((e=>t.Lens.fromJSON(e))):[],appliedLenses:Array.isArray(e?.appliedLenses)?e.appliedLenses.map((e=>t.Lens.fromJSON(e))):[]}),toJSON(e){const n={};return e.requestedLenses?n.requestedLenses=e.requestedLenses.map((e=>e?t.Lens.toJSON(e):void 0)):n.requestedLenses=[],e.appliedLenses?n.appliedLenses=e.appliedLenses.map((e=>e?t.Lens.toJSON(e):void 0)):n.appliedLenses=[],n},fromPartial(e){const n={requestedLenses:[],appliedLenses:[]};return n.requestedLenses=e.requestedLenses?.map((e=>t.Lens.fromPartial(e)))||[],n.appliedLenses=e.appliedLenses?.map((e=>t.Lens.fromPartial(e)))||[],n}},t.Playlist={encode:(e,n=r.default.Writer.create())=>(void 0!==e.playlistMetadata&&m.PlaylistMetadata.encode(e.playlistMetadata,n.uint32(10).fork()).ldelim(),void 0!==e.playlistOfflineState&&m.PlaylistOfflineState.encode(e.playlistOfflineState,n.uint32(18).fork()).ldelim(),void 0!==e.lenses&&t.LensState.encode(e.lenses,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.playlistMetadata=m.PlaylistMetadata.decode(o,o.uint32());break;case 2:a.playlistOfflineState=m.PlaylistOfflineState.decode(o,o.uint32());break;case 3:a.lenses=t.LensState.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({playlistMetadata:T(e.playlistMetadata)?m.PlaylistMetadata.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:T(e.playlistOfflineState)?m.PlaylistOfflineState.fromJSON(e.playlistOfflineState):void 0,lenses:T(e.lenses)?t.LensState.fromJSON(e.lenses):void 0}),toJSON(e){const n={};return void 0!==e.playlistMetadata&&(n.playlistMetadata=e.playlistMetadata?m.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(n.playlistOfflineState=e.playlistOfflineState?m.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),void 0!==e.lenses&&(n.lenses=e.lenses?t.LensState.toJSON(e.lenses):void 0),n},fromPartial(e){const n={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};return n.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?m.PlaylistMetadata.fromPartial(e.playlistMetadata):void 0,n.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?m.PlaylistOfflineState.fromPartial(e.playlistOfflineState):void 0,n.lenses=void 0!==e.lenses&&null!==e.lenses?t.LensState.fromPartial(e.lenses):void 0,n}},t.RecommendationItem={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackMetadata&&u.TrackMetadata.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&g.TrackCollectionState.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackOfflineState&&g.TrackOfflineState.encode(e.trackOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.trackPlayState&&f.TrackPlayState.encode(e.trackPlayState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.trackMetadata=u.TrackMetadata.decode(n,n.uint32());break;case 2:i.trackCollectionState=g.TrackCollectionState.decode(n,n.uint32());break;case 3:i.trackOfflineState=g.TrackOfflineState.decode(n,n.uint32());break;case 4:i.trackPlayState=f.TrackPlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({trackMetadata:T(e.trackMetadata)?u.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:T(e.trackCollectionState)?g.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackOfflineState:T(e.trackOfflineState)?g.TrackOfflineState.fromJSON(e.trackOfflineState):void 0,trackPlayState:T(e.trackPlayState)?f.TrackPlayState.fromJSON(e.trackPlayState):void 0}),toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?u.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?g.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?g.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?f.TrackPlayState.toJSON(e.trackPlayState):void 0),t},fromPartial(e){const t={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};return t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?u.TrackMetadata.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?g.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,t.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?g.TrackOfflineState.fromPartial(e.trackOfflineState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?f.TrackPlayState.fromPartial(e.trackPlayState):void 0,t}},t.Collaborator={encode:(e,t=r.default.Writer.create())=>(void 0!==e.user&&v.User.encode(e.user,t.uint32(10).fork()).ldelim(),0!==e.numberOfItems&&t.uint32(16).uint32(e.numberOfItems),0!==e.numberOfTracks&&t.uint32(24).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&t.uint32(32).uint32(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.user=v.User.decode(n,n.uint32());break;case 2:i.numberOfItems=n.uint32();break;case 3:i.numberOfTracks=n.uint32();break;case 4:i.numberOfEpisodes=n.uint32();break;case 5:i.isOwner=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({user:T(e.user)?v.User.fromJSON(e.user):void 0,numberOfItems:T(e.numberOfItems)?Number(e.numberOfItems):0,numberOfTracks:T(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:T(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,isOwner:!!T(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?v.User.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(t.numberOfItems=Math.round(e.numberOfItems)),void 0!==e.numberOfTracks&&(t.numberOfTracks=Math.round(e.numberOfTracks)),void 0!==e.numberOfEpisodes&&(t.numberOfEpisodes=Math.round(e.numberOfEpisodes)),void 0!==e.isOwner&&(t.isOwner=e.isOwner),t},fromPartial(e){const t={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};return t.user=void 0!==e.user&&null!==e.user?v.User.fromPartial(e.user):void 0,t.numberOfItems=e.numberOfItems??0,t.numberOfTracks=e.numberOfTracks??0,t.numberOfEpisodes=e.numberOfEpisodes??0,t.isOwner=e.isOwner??!1,t}},t.Collaborators={encode(e,n=r.default.Writer.create()){0!==e.count&&n.uint32(8).uint32(e.count);for(const o of e.collaborator)t.Collaborator.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={count:0,collaborator:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.count=o.uint32();break;case 2:a.collaborator.push(t.Collaborator.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({count:T(e.count)?Number(e.count):0,collaborator:Array.isArray(e?.collaborator)?e.collaborator.map((e=>t.Collaborator.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.count&&(n.count=Math.round(e.count)),e.collaborator?n.collaborator=e.collaborator.map((e=>e?t.Collaborator.toJSON(e):void 0)):n.collaborator=[],n},fromPartial(e){const n={count:0,collaborator:[]};return n.count=e.count??0,n.collaborator=e.collaborator?.map((e=>t.Collaborator.fromPartial(e)))||[],n}},t.NumberOfItemsForLinkType={encode:(e,t=r.default.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.numItems&&t.uint32(16).int32(e.numItems),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={linkType:0,numItems:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.linkType=n.int32();break;case 2:i.numItems=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({linkType:T(e.linkType)?(0,y.linkTypeFromJSON)(e.linkType):0,numItems:T(e.numItems)?Number(e.numItems):0}),toJSON(e){const t={};return void 0!==e.linkType&&(t.linkType=(0,y.linkTypeToJSON)(e.linkType)),void 0!==e.numItems&&(t.numItems=Math.round(e.numItems)),t},fromPartial(e){const t={linkType:0,numItems:0};return t.linkType=e.linkType??0,t.numItems=e.numItems??0,t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();void 0!==e.playlist&&t.Playlist.encode(e.playlist,n.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(32).uint32(e.unrangedLength),"0"!==e.duration&&n.uint32(40).uint64(e.duration),!0===e.loadingContents&&n.uint32(48).bool(e.loadingContents),"0"!==e.lastModification&&n.uint32(56).uint64(e.lastModification),0!==e.numFollowers&&n.uint32(64).uint32(e.numFollowers),!0===e.playable&&n.uint32(72).bool(e.playable);for(const o of e.recommendations)t.RecommendationItem.encode(o,n.uint32(82).fork()).ldelim();!0===e.hasExplicitContent&&n.uint32(88).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&n.uint32(96).bool(e.containsSpotifyTracks),!0===e.containsEpisodes&&n.uint32(104).bool(e.containsEpisodes),!0===e.onlyContainsExplicit&&n.uint32(112).bool(e.onlyContainsExplicit),!0===e.containsAudioEpisodes&&n.uint32(120).bool(e.containsAudioEpisodes),!0===e.containsTracks&&n.uint32(128).bool(e.containsTracks),!0===e.isOnDemandInFree&&n.uint32(136).bool(e.isOnDemandInFree),0!==e.numberOfTracks&&n.uint32(144).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&n.uint32(152).uint32(e.numberOfEpisodes),!0===e.preferLinearPlayback&&n.uint32(160).bool(e.preferLinearPlayback),0!==e.onDemandInFreeReason&&n.uint32(168).int32(e.onDemandInFreeReason),void 0!==e.collaborators&&t.Collaborators.encode(e.collaborators,n.uint32(178).fork()).ldelim(),void 0!==e.basePermission&&h.Permission.encode(e.basePermission,n.uint32(186).fork()).ldelim(),void 0!==e.userCapabilities&&h.Capabilities.encode(e.userCapabilities,n.uint32(194).fork()).ldelim();for(const o of e.numberOfItemsPerLinkType)t.NumberOfItemsForLinkType.encode(o,n.uint32(202).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],playlist:void 0,unfilteredLength:0,unrangedLength:0,duration:"0",loadingContents:!1,lastModification:"0",numFollowers:0,playable:!1,recommendations:[],hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0,collaborators:void 0,basePermission:void 0,userCapabilities:void 0,numberOfItemsPerLinkType:[]};for(;o.pos<i;){const e=o.uint32();switch(e>>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.playlist=t.Playlist.decode(o,o.uint32());break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.duration=A(o.uint64());break;case 6:a.loadingContents=o.bool();break;case 7:a.lastModification=A(o.uint64());break;case 8:a.numFollowers=o.uint32();break;case 9:a.playable=o.bool();break;case 10:a.recommendations.push(t.RecommendationItem.decode(o,o.uint32()));break;case 11:a.hasExplicitContent=o.bool();break;case 12:a.containsSpotifyTracks=o.bool();break;case 13:a.containsEpisodes=o.bool();break;case 14:a.onlyContainsExplicit=o.bool();break;case 15:a.containsAudioEpisodes=o.bool();break;case 16:a.containsTracks=o.bool();break;case 17:a.isOnDemandInFree=o.bool();break;case 18:a.numberOfTracks=o.uint32();break;case 19:a.numberOfEpisodes=o.uint32();break;case 20:a.preferLinearPlayback=o.bool();break;case 21:a.onDemandInFreeReason=o.int32();break;case 22:a.collaborators=t.Collaborators.decode(o,o.uint32());break;case 23:a.basePermission=h.Permission.decode(o,o.uint32());break;case 24:a.userCapabilities=h.Capabilities.decode(o,o.uint32());break;case 25:a.numberOfItemsPerLinkType.push(t.NumberOfItemsForLinkType.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[],playlist:T(e.playlist)?t.Playlist.fromJSON(e.playlist):void 0,unfilteredLength:T(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:T(e.unrangedLength)?Number(e.unrangedLength):0,duration:T(e.duration)?String(e.duration):"0",loadingContents:!!T(e.loadingContents)&&Boolean(e.loadingContents),lastModification:T(e.lastModification)?String(e.lastModification):"0",numFollowers:T(e.numFollowers)?Number(e.numFollowers):0,playable:!!T(e.playable)&&Boolean(e.playable),recommendations:Array.isArray(e?.recommendations)?e.recommendations.map((e=>t.RecommendationItem.fromJSON(e))):[],hasExplicitContent:!!T(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!T(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsEpisodes:!!T(e.containsEpisodes)&&Boolean(e.containsEpisodes),onlyContainsExplicit:!!T(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),containsAudioEpisodes:!!T(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),containsTracks:!!T(e.containsTracks)&&Boolean(e.containsTracks),isOnDemandInFree:!!T(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),numberOfTracks:T(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:T(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,preferLinearPlayback:!!T(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:T(e.onDemandInFreeReason)?(0,d.onDemandInFreeReasonFromJSON)(e.onDemandInFreeReason):0,collaborators:T(e.collaborators)?t.Collaborators.fromJSON(e.collaborators):void 0,basePermission:T(e.basePermission)?h.Permission.fromJSON(e.basePermission):void 0,userCapabilities:T(e.userCapabilities)?h.Capabilities.fromJSON(e.userCapabilities):void 0,numberOfItemsPerLinkType:Array.isArray(e?.numberOfItemsPerLinkType)?e.numberOfItemsPerLinkType.map((e=>t.NumberOfItemsForLinkType.fromJSON(e))):[]}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.playlist&&(n.playlist=e.playlist?t.Playlist.toJSON(e.playlist):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.numFollowers&&(n.numFollowers=Math.round(e.numFollowers)),void 0!==e.playable&&(n.playable=e.playable),e.recommendations?n.recommendations=e.recommendations.map((e=>e?t.RecommendationItem.toJSON(e):void 0)):n.recommendations=[],void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.numberOfTracks&&(n.numberOfTracks=Math.round(e.numberOfTracks)),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=Math.round(e.numberOfEpisodes)),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=(0,d.onDemandInFreeReasonToJSON)(e.onDemandInFreeReason)),void 0!==e.collaborators&&(n.collaborators=e.collaborators?t.Collaborators.toJSON(e.collaborators):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission?h.Permission.toJSON(e.basePermission):void 0),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities?h.Capabilities.toJSON(e.userCapabilities):void 0),e.numberOfItemsPerLinkType?n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType.map((e=>e?t.NumberOfItemsForLinkType.toJSON(e):void 0)):n.numberOfItemsPerLinkType=[],n},fromPartial(e){const n={item:[],playlist:void 0,unfilteredLength:0,unrangedLength:0,duration:"0",loadingContents:!1,lastModification:"0",numFollowers:0,playable:!1,recommendations:[],hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0,collaborators:void 0,basePermission:void 0,userCapabilities:void 0,numberOfItemsPerLinkType:[]};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.playlist=void 0!==e.playlist&&null!==e.playlist?t.Playlist.fromPartial(e.playlist):void 0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.duration=e.duration??"0",n.loadingContents=e.loadingContents??!1,n.lastModification=e.lastModification??"0",n.numFollowers=e.numFollowers??0,n.playable=e.playable??!1,n.recommendations=e.recommendations?.map((e=>t.RecommendationItem.fromPartial(e)))||[],n.hasExplicitContent=e.hasExplicitContent??!1,n.containsSpotifyTracks=e.containsSpotifyTracks??!1,n.containsEpisodes=e.containsEpisodes??!1,n.onlyContainsExplicit=e.onlyContainsExplicit??!1,n.containsAudioEpisodes=e.containsAudioEpisodes??!1,n.containsTracks=e.containsTracks??!1,n.isOnDemandInFree=e.isOnDemandInFree??!1,n.numberOfTracks=e.numberOfTracks??0,n.numberOfEpisodes=e.numberOfEpisodes??0,n.preferLinearPlayback=e.preferLinearPlayback??!1,n.onDemandInFreeReason=e.onDemandInFreeReason??0,n.collaborators=void 0!==e.collaborators&&null!==e.collaborators?t.Collaborators.fromPartial(e.collaborators):void 0,n.basePermission=void 0!==e.basePermission&&null!==e.basePermission?h.Permission.fromPartial(e.basePermission):void 0,n.userCapabilities=void 0!==e.userCapabilities&&null!==e.userCapabilities?h.Capabilities.fromPartial(e.userCapabilities):void 0,n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType?.map((e=>t.NumberOfItemsForLinkType.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82706:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistResyncResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistResyncResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?r.ResponseStatus.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},36912:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistSetBasePermissionResponse=t.PlaylistSetBasePermissionRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(64937),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistSetBasePermissionRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&r.SetBasePermissionRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.uri=n.string();break;case 2:a.request=r.SetBasePermissionRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",request:s(e.request)?r.SetBasePermissionRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=e.request?r.SetBasePermissionRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?r.SetBasePermissionRequest.fromPartial(e.request):void 0,t}},t.PlaylistSetBasePermissionResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.SetBasePermissionResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.SetBasePermissionResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.SetBasePermissionResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.SetBasePermissionResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.SetBasePermissionResponse.fromPartial(e.response):void 0,t}}},64270:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistSetMemberPermissionResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistSetMemberPermissionResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?r.ResponseStatus.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},64937:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetBasePermissionResponse=t.SetBasePermissionRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16056);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.SetBasePermissionRequest={encode:(e,t=i.default.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(16).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={permissionLevel:0,timeoutMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.permissionLevel=n.int32();break;case 2:r.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({permissionLevel:a(e.permissionLevel)?(0,r.permissionLevelFromJSON)(e.permissionLevel):0,timeoutMs:a(e.timeoutMs)?Number(e.timeoutMs):0}),toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=(0,r.permissionLevelToJSON)(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=Math.round(e.timeoutMs)),t},fromPartial(e){const t={permissionLevel:0,timeoutMs:0};return t.permissionLevel=e.permissionLevel??0,t.timeoutMs=e.timeoutMs??0,t}},t.SetBasePermissionResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.basePermission&&r.Permission.encode(e.basePermission,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={basePermission:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.basePermission=r.Permission.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({basePermission:a(e.basePermission)?r.Permission.fromJSON(e.basePermission):void 0}),toJSON(e){const t={};return void 0!==e.basePermission&&(t.basePermission=e.basePermission?r.Permission.toJSON(e.basePermission):void 0),t},fromPartial(e){const t={basePermission:void 0};return t.basePermission=void 0!==e.basePermission&&null!==e.basePermission?r.Permission.fromPartial(e.basePermission):void 0,t}}},58779:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistSetTokenResponse=t.PlaylistSetTokenRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistSetTokenRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.token&&t.uint32(18).string(e.token),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",token:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.uri=n.string();break;case 2:r.token=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",token:a(e.token)?String(e.token):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.token&&(t.token=e.token),t},fromPartial(e){const t={uri:"",token:""};return t.uri=e.uri??"",t.token=e.token??"",t}},t.PlaylistSetTokenResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},35708:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistItemSignalResponse=t.PlaylistItemSignalRequest=t.Signal=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.Signal={encode:(e,t=i.default.Writer.create())=>(""!==e.identifier&&t.uint32(10).string(e.identifier),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={identifier:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.identifier=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({identifier:a(e.identifier)?String(e.identifier):""}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),t},fromPartial(e){const t={identifier:""};return t.identifier=e.identifier??"",t}},t.PlaylistItemSignalRequest={encode:(e,n=i.default.Writer.create())=>(""!==e.itemId&&n.uint32(10).string(e.itemId),""!==e.itemUri&&n.uint32(18).string(e.itemUri),void 0!==e.signal&&t.Signal.encode(e.signal,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={itemId:"",itemUri:"",signal:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.itemId=o.string();break;case 2:a.itemUri=o.string();break;case 3:a.signal=t.Signal.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({itemId:a(e.itemId)?String(e.itemId):"",itemUri:a(e.itemUri)?String(e.itemUri):"",signal:a(e.signal)?t.Signal.fromJSON(e.signal):void 0}),toJSON(e){const n={};return void 0!==e.itemId&&(n.itemId=e.itemId),void 0!==e.itemUri&&(n.itemUri=e.itemUri),void 0!==e.signal&&(n.signal=e.signal?t.Signal.toJSON(e.signal):void 0),n},fromPartial(e){const n={itemId:"",itemUri:"",signal:void 0};return n.itemId=e.itemId??"",n.itemUri=e.itemUri??"",n.signal=void 0!==e.signal&&null!==e.signal?t.Signal.fromPartial(e.signal):void 0,n}},t.PlaylistItemSignalResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},28848:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackOfflineState=t.TrackCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.TrackCollectionState={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isInCollection:!!r(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!r(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackOfflineState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.offline=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):""}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){const t={offline:""};return t.offline=e.offline??"",t}}},39081:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.User={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.username&&t.uint32(18).string(e.username),""!==e.displayName&&t.uint32(26).string(e.displayName),""!==e.imageUri&&t.uint32(34).string(e.imageUri),""!==e.thumbnailUri&&t.uint32(42).string(e.thumbnailUri),0!==e.color&&t.uint32(48).int32(e.color),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.string();break;case 2:r.username=n.string();break;case 3:r.displayName=n.string();break;case 4:r.imageUri=n.string();break;case 5:r.thumbnailUri=n.string();break;case 6:r.color=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:r(e.link)?String(e.link):"",username:r(e.username)?String(e.username):"",displayName:r(e.displayName)?String(e.displayName):"",imageUri:r(e.imageUri)?String(e.imageUri):"",thumbnailUri:r(e.thumbnailUri)?String(e.thumbnailUri):"",color:r(e.color)?Number(e.color):0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.username&&(t.username=e.username),void 0!==e.displayName&&(t.displayName=e.displayName),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.thumbnailUri&&(t.thumbnailUri=e.thumbnailUri),void 0!==e.color&&(t.color=Math.round(e.color)),t},fromPartial(e){const t={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};return t.link=e.link??"",t.username=e.username??"",t.displayName=e.displayName??"",t.imageUri=e.imageUri??"",t.thumbnailUri=e.thumbnailUri??"",t.color=e.color??0,t}}},34992:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncDecorationPolicy=t.AlbumCollectionDecorationPolicy=t.AlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.copyrights=n.bool();break;case 4:r.covers=n.bool();break;case 5:r.year=n.bool();break;case 6:r.numDiscs=n.bool();break;case 7:r.numTracks=n.bool();break;case 8:r.playability=n.bool();break;case 9:r.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),copyrights:!!r(e.copyrights)&&Boolean(e.copyrights),covers:!!r(e.covers)&&Boolean(e.covers),year:!!r(e.year)&&Boolean(e.year),numDiscs:!!r(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!r(e.numTracks)&&Boolean(e.numTracks),playability:!!r(e.playability)&&Boolean(e.playability),isPremiumOnly:!!r(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.bool();break;case 2:r.numTracksInCollection=n.bool();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!r(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},42430:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncDecorationPolicy=t.ArtistCollectionDecorationPolicy=t.ArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.isVariousArtists=n.bool();break;case 4:r.portraits=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),isVariousArtists:!!r(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!r(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.collectionLink=n.bool();break;case 2:r.isFollowed=n.bool();break;case 3:r.numTracksInCollection=n.bool();break;case 4:r.numAlbumsInCollection=n.bool();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!r(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!r(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},73820:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 22:r.is19PlusOnly=n.bool();break;case 23:r.isBookChapter=n.bool();break;case 24:r.isPodcastShort=n.bool();break;case 25:r.isCurated=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},47421:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FolderDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.rowId&&t.uint32(8).bool(e.rowId),!0===e.id&&t.uint32(16).bool(e.id),!0===e.link&&t.uint32(24).bool(e.link),!0===e.name&&t.uint32(32).bool(e.name),!0===e.folders&&t.uint32(40).bool(e.folders),!0===e.playlists&&t.uint32(48).bool(e.playlists),!0===e.recursiveFolders&&t.uint32(56).bool(e.recursiveFolders),!0===e.recursivePlaylists&&t.uint32(64).bool(e.recursivePlaylists),!0===e.rows&&t.uint32(72).bool(e.rows),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.rowId=n.bool();break;case 2:r.id=n.bool();break;case 3:r.link=n.bool();break;case 4:r.name=n.bool();break;case 5:r.folders=n.bool();break;case 6:r.playlists=n.bool();break;case 7:r.recursiveFolders=n.bool();break;case 8:r.recursivePlaylists=n.bool();break;case 9:r.rows=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({rowId:!!r(e.rowId)&&Boolean(e.rowId),id:!!r(e.id)&&Boolean(e.id),link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),folders:!!r(e.folders)&&Boolean(e.folders),playlists:!!r(e.playlists)&&Boolean(e.playlists),recursiveFolders:!!r(e.recursiveFolders)&&Boolean(e.recursiveFolders),recursivePlaylists:!!r(e.recursivePlaylists)&&Boolean(e.recursivePlaylists),rows:!!r(e.rows)&&Boolean(e.rows)}),toJSON(e){const t={};return void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.id&&(t.id=e.id),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.folders&&(t.folders=e.folders),void 0!==e.playlists&&(t.playlists=e.playlists),void 0!==e.recursiveFolders&&(t.recursiveFolders=e.recursiveFolders),void 0!==e.recursivePlaylists&&(t.recursivePlaylists=e.recursivePlaylists),void 0!==e.rows&&(t.rows=e.rows),t},fromPartial(e){const t={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};return t.rowId=e.rowId??!1,t.id=e.id??!1,t.link=e.link??!1,t.name=e.name??!1,t.folders=e.folders??!1,t.playlists=e.playlists??!1,t.recursiveFolders=e.recursiveFolders??!1,t.recursivePlaylists=e.recursivePlaylists??!1,t.rows=e.rows??!1,t}}},33733:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistAlbumDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(34992),a=n(42430);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAlbumDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.album&&r.AlbumDecorationPolicy.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&a.ArtistDecorationPolicy.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={album:void 0,artist:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.album=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 2:s.artist=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?r.AlbumDecorationPolicy.fromJSON(e.album):void 0,artist:s(e.artist)?a.ArtistDecorationPolicy.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.album&&(t.album=e.album?r.AlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?a.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t={album:void 0,artist:void 0};return t.album=void 0!==e.album&&null!==e.album?r.AlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?a.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t}}},19801:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDecorationPolicy=t.PlaylistAllowsDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295),a=n(23630);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAllowsDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.insert&&t.uint32(8).bool(e.insert),!0===e.remove&&t.uint32(16).bool(e.remove),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={insert:!1,remove:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.insert=n.bool();break;case 2:r.remove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({insert:!!s(e.insert)&&Boolean(e.insert),remove:!!s(e.remove)&&Boolean(e.remove)}),toJSON(e){const t={};return void 0!==e.insert&&(t.insert=e.insert),void 0!==e.remove&&(t.remove=e.remove),t},fromPartial(e){const t={insert:!1,remove:!1};return t.insert=e.insert??!1,t.remove=e.remove??!1,t}},t.PlaylistDecorationPolicy={encode(e,n=i.default.Writer.create()){!0===e.rowId&&n.uint32(8).bool(e.rowId),!0===e.link&&n.uint32(16).bool(e.link),!0===e.name&&n.uint32(24).bool(e.name),!0===e.loadState&&n.uint32(32).bool(e.loadState),!0===e.loaded&&n.uint32(40).bool(e.loaded),!0===e.collaborative&&n.uint32(48).bool(e.collaborative),!0===e.length&&n.uint32(56).bool(e.length),!0===e.lastModification&&n.uint32(64).bool(e.lastModification),!0===e.totalLength&&n.uint32(72).bool(e.totalLength),!0===e.duration&&n.uint32(80).bool(e.duration),!0===e.description&&n.uint32(88).bool(e.description),!0===e.picture&&n.uint32(96).bool(e.picture),!0===e.playable&&n.uint32(104).bool(e.playable),!0===e.descriptionFromAnnotate&&n.uint32(112).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(120).bool(e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.followed&&n.uint32(136).bool(e.followed),!0===e.followers&&n.uint32(144).bool(e.followers),!0===e.ownedBySelf&&n.uint32(152).bool(e.ownedBySelf),!0===e.offline&&n.uint32(160).bool(e.offline),!0===e.syncProgress&&n.uint32(168).bool(e.syncProgress),!0===e.published&&n.uint32(176).bool(e.published),!0===e.browsableOffline&&n.uint32(184).bool(e.browsableOffline),!0===e.formatListType&&n.uint32(192).bool(e.formatListType),!0===e.formatListAttributes&&n.uint32(200).bool(e.formatListAttributes),!0===e.hasExplicitContent&&n.uint32(208).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&n.uint32(216).bool(e.containsSpotifyTracks),!0===e.containsTracks&&n.uint32(224).bool(e.containsTracks),!0===e.containsEpisodes&&n.uint32(232).bool(e.containsEpisodes),!0===e.containsAudioEpisodes&&n.uint32(240).bool(e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&n.uint32(248).bool(e.onlyContainsExplicit),!0===e.isOnDemandInFree&&n.uint32(256).bool(e.isOnDemandInFree),void 0!==e.owner&&a.UserDecorationPolicy.encode(e.owner,n.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&a.UserDecorationPolicy.encode(e.madeFor,n.uint32(274).fork()).ldelim(),void 0!==e.allows&&t.PlaylistAllowsDecorationPolicy.encode(e.allows,n.uint32(282).fork()).ldelim(),!0===e.numberOfEpisodes&&n.uint32(288).bool(e.numberOfEpisodes),!0===e.numberOfTracks&&n.uint32(296).bool(e.numberOfTracks),!0===e.preferLinearPlayback&&n.uint32(304).bool(e.preferLinearPlayback),!0===e.onDemandInFreeReason&&n.uint32(312).bool(e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&a.CollaboratingUsersDecorationPolicy.encode(e.collaboratingUsers,n.uint32(322).fork()).ldelim(),!0===e.basePermission&&n.uint32(328).bool(e.basePermission),!0===e.userCapabilities&&n.uint32(336).bool(e.userCapabilities),n.uint32(346).fork();for(const t of e.extension)n.int32(t);return n.ldelim(),!0===e.lenses&&n.uint32(352).bool(e.lenses),!0===e.lengthIgnoringTextFilter&&n.uint32(360).bool(e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&n.uint32(368).bool(e.numberOfItemsPerLinkType),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:s.rowId=o.bool();break;case 2:s.link=o.bool();break;case 3:s.name=o.bool();break;case 4:s.loadState=o.bool();break;case 5:s.loaded=o.bool();break;case 6:s.collaborative=o.bool();break;case 7:s.length=o.bool();break;case 8:s.lastModification=o.bool();break;case 9:s.totalLength=o.bool();break;case 10:s.duration=o.bool();break;case 11:s.description=o.bool();break;case 12:s.picture=o.bool();break;case 13:s.playable=o.bool();break;case 14:s.descriptionFromAnnotate=o.bool();break;case 15:s.pictureFromAnnotate=o.bool();break;case 16:s.canReportAnnotationAbuse=o.bool();break;case 17:s.followed=o.bool();break;case 18:s.followers=o.bool();break;case 19:s.ownedBySelf=o.bool();break;case 20:s.offline=o.bool();break;case 21:s.syncProgress=o.bool();break;case 22:s.published=o.bool();break;case 23:s.browsableOffline=o.bool();break;case 24:s.formatListType=o.bool();break;case 25:s.formatListAttributes=o.bool();break;case 26:s.hasExplicitContent=o.bool();break;case 27:s.containsSpotifyTracks=o.bool();break;case 28:s.containsTracks=o.bool();break;case 29:s.containsEpisodes=o.bool();break;case 30:s.containsAudioEpisodes=o.bool();break;case 31:s.onlyContainsExplicit=o.bool();break;case 32:s.isOnDemandInFree=o.bool();break;case 33:s.owner=a.UserDecorationPolicy.decode(o,o.uint32());break;case 34:s.madeFor=a.UserDecorationPolicy.decode(o,o.uint32());break;case 35:s.allows=t.PlaylistAllowsDecorationPolicy.decode(o,o.uint32());break;case 36:s.numberOfEpisodes=o.bool();break;case 37:s.numberOfTracks=o.bool();break;case 38:s.preferLinearPlayback=o.bool();break;case 39:s.onDemandInFreeReason=o.bool();break;case 40:s.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.decode(o,o.uint32());break;case 41:s.basePermission=o.bool();break;case 42:s.userCapabilities=o.bool();break;case 43:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)s.extension.push(o.int32())}else s.extension.push(o.int32());break;case 44:s.lenses=o.bool();break;case 45:s.lengthIgnoringTextFilter=o.bool();break;case 46:s.numberOfItemsPerLinkType=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({rowId:!!s(e.rowId)&&Boolean(e.rowId),link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),loadState:!!s(e.loadState)&&Boolean(e.loadState),loaded:!!s(e.loaded)&&Boolean(e.loaded),collaborative:!!s(e.collaborative)&&Boolean(e.collaborative),length:!!s(e.length)&&Boolean(e.length),lastModification:!!s(e.lastModification)&&Boolean(e.lastModification),totalLength:!!s(e.totalLength)&&Boolean(e.totalLength),duration:!!s(e.duration)&&Boolean(e.duration),description:!!s(e.description)&&Boolean(e.description),picture:!!s(e.picture)&&Boolean(e.picture),playable:!!s(e.playable)&&Boolean(e.playable),descriptionFromAnnotate:!!s(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!s(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),canReportAnnotationAbuse:!!s(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),followed:!!s(e.followed)&&Boolean(e.followed),followers:!!s(e.followers)&&Boolean(e.followers),ownedBySelf:!!s(e.ownedBySelf)&&Boolean(e.ownedBySelf),offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress),published:!!s(e.published)&&Boolean(e.published),browsableOffline:!!s(e.browsableOffline)&&Boolean(e.browsableOffline),formatListType:!!s(e.formatListType)&&Boolean(e.formatListType),formatListAttributes:!!s(e.formatListAttributes)&&Boolean(e.formatListAttributes),hasExplicitContent:!!s(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!s(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsTracks:!!s(e.containsTracks)&&Boolean(e.containsTracks),containsEpisodes:!!s(e.containsEpisodes)&&Boolean(e.containsEpisodes),containsAudioEpisodes:!!s(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),onlyContainsExplicit:!!s(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),isOnDemandInFree:!!s(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),owner:s(e.owner)?a.UserDecorationPolicy.fromJSON(e.owner):void 0,madeFor:s(e.madeFor)?a.UserDecorationPolicy.fromJSON(e.madeFor):void 0,allows:s(e.allows)?t.PlaylistAllowsDecorationPolicy.fromJSON(e.allows):void 0,numberOfEpisodes:!!s(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),numberOfTracks:!!s(e.numberOfTracks)&&Boolean(e.numberOfTracks),preferLinearPlayback:!!s(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:!!s(e.onDemandInFreeReason)&&Boolean(e.onDemandInFreeReason),collaboratingUsers:s(e.collaboratingUsers)?a.CollaboratingUsersDecorationPolicy.fromJSON(e.collaboratingUsers):void 0,basePermission:!!s(e.basePermission)&&Boolean(e.basePermission),userCapabilities:!!s(e.userCapabilities)&&Boolean(e.userCapabilities),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],lenses:!!s(e.lenses)&&Boolean(e.lenses),lengthIgnoringTextFilter:!!s(e.lengthIgnoringTextFilter)&&Boolean(e.lengthIgnoringTextFilter),numberOfItemsPerLinkType:!!s(e.numberOfItemsPerLinkType)&&Boolean(e.numberOfItemsPerLinkType)}),toJSON(e){const n={};return void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.length&&(n.length=e.length),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.totalLength&&(n.totalLength=e.totalLength),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.description&&(n.description=e.description),void 0!==e.picture&&(n.picture=e.picture),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.followers&&(n.followers=e.followers),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.offline&&(n.offline=e.offline),void 0!==e.syncProgress&&(n.syncProgress=e.syncProgress),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.formatListType&&(n.formatListType=e.formatListType),void 0!==e.formatListAttributes&&(n.formatListAttributes=e.formatListAttributes),void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(n.owner=e.owner?a.UserDecorationPolicy.toJSON(e.owner):void 0),void 0!==e.madeFor&&(n.madeFor=e.madeFor?a.UserDecorationPolicy.toJSON(e.madeFor):void 0),void 0!==e.allows&&(n.allows=e.allows?t.PlaylistAllowsDecorationPolicy.toJSON(e.allows):void 0),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(n.collaboratingUsers=e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.toJSON(e.collaboratingUsers):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities),e.extension?n.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):n.extension=[],void 0!==e.lenses&&(n.lenses=e.lenses),void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter),void 0!==e.numberOfItemsPerLinkType&&(n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType),n},fromPartial(e){const n={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1};return n.rowId=e.rowId??!1,n.link=e.link??!1,n.name=e.name??!1,n.loadState=e.loadState??!1,n.loaded=e.loaded??!1,n.collaborative=e.collaborative??!1,n.length=e.length??!1,n.lastModification=e.lastModification??!1,n.totalLength=e.totalLength??!1,n.duration=e.duration??!1,n.description=e.description??!1,n.picture=e.picture??!1,n.playable=e.playable??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.followed=e.followed??!1,n.followers=e.followers??!1,n.ownedBySelf=e.ownedBySelf??!1,n.offline=e.offline??!1,n.syncProgress=e.syncProgress??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.formatListType=e.formatListType??!1,n.formatListAttributes=e.formatListAttributes??!1,n.hasExplicitContent=e.hasExplicitContent??!1,n.containsSpotifyTracks=e.containsSpotifyTracks??!1,n.containsTracks=e.containsTracks??!1,n.containsEpisodes=e.containsEpisodes??!1,n.containsAudioEpisodes=e.containsAudioEpisodes??!1,n.onlyContainsExplicit=e.onlyContainsExplicit??!1,n.isOnDemandInFree=e.isOnDemandInFree??!1,n.owner=void 0!==e.owner&&null!==e.owner?a.UserDecorationPolicy.fromPartial(e.owner):void 0,n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?a.UserDecorationPolicy.fromPartial(e.madeFor):void 0,n.allows=void 0!==e.allows&&null!==e.allows?t.PlaylistAllowsDecorationPolicy.fromPartial(e.allows):void 0,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.numberOfTracks=e.numberOfTracks??!1,n.preferLinearPlayback=e.preferLinearPlayback??!1,n.onDemandInFreeReason=e.onDemandInFreeReason??!1,n.collaboratingUsers=void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.fromPartial(e.collaboratingUsers):void 0,n.basePermission=e.basePermission??!1,n.userCapabilities=e.userCapabilities??!1,n.extension=e.extension?.map((e=>e))||[],n.lenses=e.lenses??!1,n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??!1,n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType??!1,n}}},23557:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistEpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(73820),a=n(36393),s=n(23630);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistEpisodeDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episode&&r.EpisodeDecorationPolicy.encode(e.episode,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.formatListAttributes&&t.uint32(32).bool(e.formatListAttributes),void 0!==e.collection&&r.EpisodeCollectionDecorationPolicy.encode(e.collection,t.uint32(42).fork()).ldelim(),void 0!==e.sync&&r.EpisodeSyncDecorationPolicy.encode(e.sync,t.uint32(50).fork()).ldelim(),void 0!==e.playedState&&r.EpisodePlayedStateDecorationPolicy.encode(e.playedState,t.uint32(58).fork()).ldelim(),void 0!==e.addedBy&&s.UserDecorationPolicy.encode(e.addedBy,t.uint32(66).fork()).ldelim(),void 0!==e.show&&a.ShowDecorationPolicy.encode(e.show,t.uint32(74).fork()).ldelim(),!0===e.signals&&t.uint32(80).bool(e.signals),!0===e.isRecommendation&&t.uint32(88).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={episode:void 0,rowId:!1,addTime:!1,formatListAttributes:!1,collection:void 0,sync:void 0,playedState:void 0,addedBy:void 0,show:void 0,signals:!1,isRecommendation:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:l.episode=r.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:l.rowId=n.bool();break;case 3:l.addTime=n.bool();break;case 4:l.formatListAttributes=n.bool();break;case 5:l.collection=r.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 6:l.sync=r.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 7:l.playedState=r.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 8:l.addedBy=s.UserDecorationPolicy.decode(n,n.uint32());break;case 9:l.show=a.ShowDecorationPolicy.decode(n,n.uint32());break;case 10:l.signals=n.bool();break;case 11:l.isRecommendation=n.bool();break;default:n.skipType(7&e)}}return l},fromJSON:e=>({episode:l(e.episode)?r.EpisodeDecorationPolicy.fromJSON(e.episode):void 0,rowId:!!l(e.rowId)&&Boolean(e.rowId),addTime:!!l(e.addTime)&&Boolean(e.addTime),formatListAttributes:!!l(e.formatListAttributes)&&Boolean(e.formatListAttributes),collection:l(e.collection)?r.EpisodeCollectionDecorationPolicy.fromJSON(e.collection):void 0,sync:l(e.sync)?r.EpisodeSyncDecorationPolicy.fromJSON(e.sync):void 0,playedState:l(e.playedState)?r.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedState):void 0,addedBy:l(e.addedBy)?s.UserDecorationPolicy.fromJSON(e.addedBy):void 0,show:l(e.show)?a.ShowDecorationPolicy.fromJSON(e.show):void 0,signals:!!l(e.signals)&&Boolean(e.signals),isRecommendation:!!l(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.episode&&(t.episode=e.episode?r.EpisodeDecorationPolicy.toJSON(e.episode):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.collection&&(t.collection=e.collection?r.EpisodeCollectionDecorationPolicy.toJSON(e.collection):void 0),void 0!==e.sync&&(t.sync=e.sync?r.EpisodeSyncDecorationPolicy.toJSON(e.sync):void 0),void 0!==e.playedState&&(t.playedState=e.playedState?r.EpisodePlayedStateDecorationPolicy.toJSON(e.playedState):void 0),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.show&&(t.show=e.show?a.ShowDecorationPolicy.toJSON(e.show):void 0),void 0!==e.signals&&(t.signals=e.signals),void 0!==e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},fromPartial(e){const t={episode:void 0,rowId:!1,addTime:!1,formatListAttributes:!1,collection:void 0,sync:void 0,playedState:void 0,addedBy:void 0,show:void 0,signals:!1,isRecommendation:!1};return t.episode=void 0!==e.episode&&null!==e.episode?r.EpisodeDecorationPolicy.fromPartial(e.episode):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.formatListAttributes=e.formatListAttributes??!1,t.collection=void 0!==e.collection&&null!==e.collection?r.EpisodeCollectionDecorationPolicy.fromPartial(e.collection):void 0,t.sync=void 0!==e.sync&&null!==e.sync?r.EpisodeSyncDecorationPolicy.fromPartial(e.sync):void 0,t.playedState=void 0!==e.playedState&&null!==e.playedState?r.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedState):void 0,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?s.UserDecorationPolicy.fromPartial(e.addedBy):void 0,t.show=void 0!==e.show&&null!==e.show?a.ShowDecorationPolicy.fromPartial(e.show):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}}},90802:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistRequestDecorationPolicy=t.PlaylistItemDecorationPolicy=t.ItemOfflineStateDecorationPolicy=t.ItemExtensionPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295),a=n(19801),s=n(23557),l=n(66028),c=n(89473);function u(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.ItemExtensionPolicy={encode:(e,t=i.default.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.extension&&t.uint32(16).int32(e.extension),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={linkType:0,extension:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.linkType=n.int32();break;case 2:r.extension=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({linkType:u(e.linkType)?(0,c.linkTypeFromJSON)(e.linkType):0,extension:u(e.extension)?(0,r.extensionKindFromJSON)(e.extension):0}),toJSON(e){const t={};return void 0!==e.linkType&&(t.linkType=(0,c.linkTypeToJSON)(e.linkType)),void 0!==e.extension&&(t.extension=(0,r.extensionKindToJSON)(e.extension)),t},fromPartial(e){const t={linkType:0,extension:0};return t.linkType=e.linkType??0,t.extension=e.extension??0,t}},t.ItemOfflineStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:!!u(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!u(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},t.PlaylistItemDecorationPolicy={encode(e,n=i.default.Writer.create()){!0===e.uri&&n.uint32(8).bool(e.uri);for(const o of e.extensionPolicy)t.ItemExtensionPolicy.encode(o,n.uint32(18).fork()).ldelim();return void 0!==e.offlineState&&t.ItemOfflineStateDecorationPolicy.encode(e.offlineState,n.uint32(26).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:!1,extensionPolicy:[],offlineState:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.uri=o.bool();break;case 2:a.extensionPolicy.push(t.ItemExtensionPolicy.decode(o,o.uint32()));break;case 3:a.offlineState=t.ItemOfflineStateDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:!!u(e.uri)&&Boolean(e.uri),extensionPolicy:Array.isArray(e?.extensionPolicy)?e.extensionPolicy.map((e=>t.ItemExtensionPolicy.fromJSON(e))):[],offlineState:u(e.offlineState)?t.ItemOfflineStateDecorationPolicy.fromJSON(e.offlineState):void 0}),toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),e.extensionPolicy?n.extensionPolicy=e.extensionPolicy.map((e=>e?t.ItemExtensionPolicy.toJSON(e):void 0)):n.extensionPolicy=[],void 0!==e.offlineState&&(n.offlineState=e.offlineState?t.ItemOfflineStateDecorationPolicy.toJSON(e.offlineState):void 0),n},fromPartial(e){const n={uri:!1,extensionPolicy:[],offlineState:void 0};return n.uri=e.uri??!1,n.extensionPolicy=e.extensionPolicy?.map((e=>t.ItemExtensionPolicy.fromPartial(e)))||[],n.offlineState=void 0!==e.offlineState&&null!==e.offlineState?t.ItemOfflineStateDecorationPolicy.fromPartial(e.offlineState):void 0,n}},t.PlaylistRequestDecorationPolicy={encode:(e,n=i.default.Writer.create())=>(void 0!==e.playlist&&a.PlaylistDecorationPolicy.encode(e.playlist,n.uint32(10).fork()).ldelim(),void 0!==e.track&&l.PlaylistTrackDecorationPolicy.encode(e.track,n.uint32(18).fork()).ldelim(),void 0!==e.episode&&s.PlaylistEpisodeDecorationPolicy.encode(e.episode,n.uint32(26).fork()).ldelim(),void 0!==e.item&&t.PlaylistItemDecorationPolicy.encode(e.item,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const c={playlist:void 0,track:void 0,episode:void 0,item:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:c.playlist=a.PlaylistDecorationPolicy.decode(o,o.uint32());break;case 2:c.track=l.PlaylistTrackDecorationPolicy.decode(o,o.uint32());break;case 3:c.episode=s.PlaylistEpisodeDecorationPolicy.decode(o,o.uint32());break;case 4:c.item=t.PlaylistItemDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return c},fromJSON:e=>({playlist:u(e.playlist)?a.PlaylistDecorationPolicy.fromJSON(e.playlist):void 0,track:u(e.track)?l.PlaylistTrackDecorationPolicy.fromJSON(e.track):void 0,episode:u(e.episode)?s.PlaylistEpisodeDecorationPolicy.fromJSON(e.episode):void 0,item:u(e.item)?t.PlaylistItemDecorationPolicy.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.playlist&&(n.playlist=e.playlist?a.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.track&&(n.track=e.track?l.PlaylistTrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.episode&&(n.episode=e.episode?s.PlaylistEpisodeDecorationPolicy.toJSON(e.episode):void 0),void 0!==e.item&&(n.item=e.item?t.PlaylistItemDecorationPolicy.toJSON(e.item):void 0),n},fromPartial(e){const n={playlist:void 0,track:void 0,episode:void 0,item:void 0};return n.playlist=void 0!==e.playlist&&null!==e.playlist?a.PlaylistDecorationPolicy.fromPartial(e.playlist):void 0,n.track=void 0!==e.track&&null!==e.track?l.PlaylistTrackDecorationPolicy.fromPartial(e.track):void 0,n.episode=void 0!==e.episode&&null!==e.episode?s.PlaylistEpisodeDecorationPolicy.fromPartial(e.episode):void 0,n.item=void 0!==e.item&&null!==e.item?t.PlaylistItemDecorationPolicy.fromPartial(e.item):void 0,n}}},66028:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistTrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(42430),a=n(33733),s=n(52631),l=n(23630);function c(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistTrackDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.track&&s.TrackDecorationPolicy.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&l.UserDecorationPolicy.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&a.PlaylistAlbumDecorationPolicy.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&r.ArtistDecorationPolicy.encode(e.artist,t.uint32(114).fork()).ldelim(),!0===e.signals&&t.uint32(120).bool(e.signals),!0===e.isRecommendation&&t.uint32(128).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const c={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:c.track=s.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:c.rowId=n.bool();break;case 3:c.addTime=n.bool();break;case 4:c.inCollection=n.bool();break;case 5:c.canAddToCollection=n.bool();break;case 6:c.isBanned=n.bool();break;case 7:c.canBan=n.bool();break;case 8:c.localFile=n.bool();break;case 9:c.offline=n.bool();break;case 10:c.formatListAttributes=n.bool();break;case 11:c.displayCovers=n.bool();break;case 12:c.addedBy=l.UserDecorationPolicy.decode(n,n.uint32());break;case 13:c.album=a.PlaylistAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:c.artist=r.ArtistDecorationPolicy.decode(n,n.uint32());break;case 15:c.signals=n.bool();break;case 16:c.isRecommendation=n.bool();break;default:n.skipType(7&e)}}return c},fromJSON:e=>({track:c(e.track)?s.TrackDecorationPolicy.fromJSON(e.track):void 0,rowId:!!c(e.rowId)&&Boolean(e.rowId),addTime:!!c(e.addTime)&&Boolean(e.addTime),inCollection:!!c(e.inCollection)&&Boolean(e.inCollection),canAddToCollection:!!c(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!c(e.isBanned)&&Boolean(e.isBanned),canBan:!!c(e.canBan)&&Boolean(e.canBan),localFile:!!c(e.localFile)&&Boolean(e.localFile),offline:!!c(e.offline)&&Boolean(e.offline),formatListAttributes:!!c(e.formatListAttributes)&&Boolean(e.formatListAttributes),displayCovers:!!c(e.displayCovers)&&Boolean(e.displayCovers),addedBy:c(e.addedBy)?l.UserDecorationPolicy.fromJSON(e.addedBy):void 0,album:c(e.album)?a.PlaylistAlbumDecorationPolicy.fromJSON(e.album):void 0,artist:c(e.artist)?r.ArtistDecorationPolicy.fromJSON(e.artist):void 0,signals:!!c(e.signals)&&Boolean(e.signals),isRecommendation:!!c(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?s.TrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),void 0!==e.localFile&&(t.localFile=e.localFile),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=e.addedBy?l.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.album&&(t.album=e.album?a.PlaylistAlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?r.ArtistDecorationPolicy.toJSON(e.artist):void 0),void 0!==e.signals&&(t.signals=e.signals),void 0!==e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},fromPartial(e){const t={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0,signals:!1,isRecommendation:!1};return t.track=void 0!==e.track&&null!==e.track?s.TrackDecorationPolicy.fromPartial(e.track):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.inCollection=e.inCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.localFile=e.localFile??!1,t.offline=e.offline??!1,t.formatListAttributes=e.formatListAttributes??!1,t.displayCovers=e.displayCovers??!1,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?l.UserDecorationPolicy.fromPartial(e.addedBy):void 0,t.album=void 0!==e.album&&null!==e.album?a.PlaylistAlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?r.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}}},98270:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistFolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(47421);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.RootlistFolderDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.folder&&r.FolderDecorationPolicy.encode(e.folder,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={addTime:!1,folder:void 0,groupLabel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.addTime=n.bool();break;case 2:a.folder=r.FolderDecorationPolicy.decode(n,n.uint32());break;case 3:a.groupLabel=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({addTime:!!a(e.addTime)&&Boolean(e.addTime),folder:a(e.folder)?r.FolderDecorationPolicy.fromJSON(e.folder):void 0,groupLabel:!!a(e.groupLabel)&&Boolean(e.groupLabel)}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.folder&&(t.folder=e.folder?r.FolderDecorationPolicy.toJSON(e.folder):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={addTime:!1,folder:void 0,groupLabel:!1};return t.addTime=e.addTime??!1,t.folder=void 0!==e.folder&&null!==e.folder?r.FolderDecorationPolicy.fromPartial(e.folder):void 0,t.groupLabel=e.groupLabel??!1,t}}},85057:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistPlaylistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(19801);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.RootlistPlaylistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.playlist&&r.PlaylistDecorationPolicy.encode(e.playlist,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={addTime:!1,playlist:void 0,groupLabel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.addTime=n.bool();break;case 2:a.playlist=r.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 3:a.groupLabel=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({addTime:!!a(e.addTime)&&Boolean(e.addTime),playlist:a(e.playlist)?r.PlaylistDecorationPolicy.fromJSON(e.playlist):void 0,groupLabel:!!a(e.groupLabel)&&Boolean(e.groupLabel)}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.playlist&&(t.playlist=e.playlist?r.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={addTime:!1,playlist:void 0,groupLabel:!1};return t.addTime=e.addTime??!1,t.playlist=void 0!==e.playlist&&null!==e.playlist?r.PlaylistDecorationPolicy.fromPartial(e.playlist):void 0,t.groupLabel=e.groupLabel??!1,t}}},45859:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistRequestDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(98270),a=n(85057);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.RootlistRequestDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.unfilteredLength&&t.uint32(8).bool(e.unfilteredLength),!0===e.unrangedLength&&t.uint32(16).bool(e.unrangedLength),!0===e.isLoadingContents&&t.uint32(24).bool(e.isLoadingContents),void 0!==e.playlist&&a.RootlistPlaylistDecorationPolicy.encode(e.playlist,t.uint32(34).fork()).ldelim(),void 0!==e.folder&&r.RootlistFolderDecorationPolicy.encode(e.folder,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1,playlist:void 0,folder:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.unfilteredLength=n.bool();break;case 2:s.unrangedLength=n.bool();break;case 3:s.isLoadingContents=n.bool();break;case 4:s.playlist=a.RootlistPlaylistDecorationPolicy.decode(n,n.uint32());break;case 5:s.folder=r.RootlistFolderDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({unfilteredLength:!!s(e.unfilteredLength)&&Boolean(e.unfilteredLength),unrangedLength:!!s(e.unrangedLength)&&Boolean(e.unrangedLength),isLoadingContents:!!s(e.isLoadingContents)&&Boolean(e.isLoadingContents),playlist:s(e.playlist)?a.RootlistPlaylistDecorationPolicy.fromJSON(e.playlist):void 0,folder:s(e.folder)?r.RootlistFolderDecorationPolicy.fromJSON(e.folder):void 0}),toJSON(e){const t={};return void 0!==e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(t.unrangedLength=e.unrangedLength),void 0!==e.isLoadingContents&&(t.isLoadingContents=e.isLoadingContents),void 0!==e.playlist&&(t.playlist=e.playlist?a.RootlistPlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.folder&&(t.folder=e.folder?r.RootlistFolderDecorationPolicy.toJSON(e.folder):void 0),t},fromPartial(e){const t={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1,playlist:void 0,folder:void 0};return t.unfilteredLength=e.unfilteredLength??!1,t.unrangedLength=e.unrangedLength??!1,t.isLoadingContents=e.isLoadingContents??!1,t.playlist=void 0!==e.playlist&&null!==e.playlist?a.RootlistPlaylistDecorationPolicy.fromPartial(e.playlist):void 0,t.folder=void 0!==e.folder&&null!==e.folder?r.RootlistFolderDecorationPolicy.fromPartial(e.folder):void 0,t}}},36393:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 17:r.isBook=n.bool();break;case 18:r.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},89473:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.linkTypeToJSON=t.linkTypeFromJSON=t.LinkType=t.protobufPackage=void 0,t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.EMPTY=0]="EMPTY",e[e.ARTIST=1]="ARTIST",e[e.ALBUM=2]="ALBUM",e[e.TRACK=4]="TRACK",e[e.LOCAL_TRACK=9]="LOCAL_TRACK",e[e.SHOW=62]="SHOW",e[e.EPISODE=63]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.LinkType||(t.LinkType={})),t.linkTypeFromJSON=function(e){switch(e){case 0:case"EMPTY":return n.EMPTY;case 1:case"ARTIST":return n.ARTIST;case 2:case"ALBUM":return n.ALBUM;case 4:case"TRACK":return n.TRACK;case 9:case"LOCAL_TRACK":return n.LOCAL_TRACK;case 62:case"SHOW":return n.SHOW;case 63:case"EPISODE":return n.EPISODE;default:return n.UNRECOGNIZED}},t.linkTypeToJSON=function(e){switch(e){case n.EMPTY:return"EMPTY";case n.ARTIST:return"ARTIST";case n.ALBUM:return"ALBUM";case n.TRACK:return"TRACK";case n.LOCAL_TRACK:return"LOCAL_TRACK";case n.SHOW:return"SHOW";case n.EPISODE:return"EPISODE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},52631:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncDecorationPolicy=t.TrackCollectionDecorationPolicy=t.TrackPlayedStateDecorationPolicy=t.TrackDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.hasLyrics=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.length=n.bool();break;case 5:r.playable=n.bool();break;case 6:r.isAvailableInMetadataCatalogue=n.bool();break;case 7:r.locallyPlayable=n.bool();break;case 8:r.playableLocalTrack=n.bool();break;case 9:r.discNumber=n.bool();break;case 10:r.trackNumber=n.bool();break;case 11:r.isExplicit=n.bool();break;case 12:r.previewId=n.bool();break;case 13:r.isLocal=n.bool();break;case 14:r.isPremiumOnly=n.bool();break;case 15:r.playableTrackLink=n.bool();break;case 16:r.popularity=n.bool();break;case 17:r.is19PlusOnly=n.bool();break;case 18:r.trackDescriptors=n.bool();break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)r.extension.push(n.int32())}else r.extension.push(n.int32());break;case 20:r.isCurated=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({hasLyrics:!!a(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),length:!!a(e.length)&&Boolean(e.length),playable:!!a(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!a(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!a(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!a(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!a(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!a(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!a(e.previewId)&&Boolean(e.previewId),isLocal:!!a(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!a(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!a(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!a(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playable=n.bool();break;case 2:r.isCurrentlyPlayable=n.bool();break;case 3:r.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playable:!!a(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!a(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},23630:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollaboratingUsersDecorationPolicy=t.CollaboratorPolicy=t.UserDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.UserDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.username=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.image=n.bool();break;case 5:r.thumbnail=n.bool();break;case 6:r.color=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({username:!!r(e.username)&&Boolean(e.username),link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),image:!!r(e.image)&&Boolean(e.image),thumbnail:!!r(e.thumbnail)&&Boolean(e.thumbnail),color:!!r(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.image&&(t.image=e.image),void 0!==e.thumbnail&&(t.thumbnail=e.thumbnail),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}},t.CollaboratorPolicy={encode:(e,n=i.default.Writer.create())=>(void 0!==e.user&&t.UserDecorationPolicy.encode(e.user,n.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&n.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&n.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&n.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&n.uint32(40).bool(e.isOwner),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({user:r(e.user)?t.UserDecorationPolicy.fromJSON(e.user):void 0,numberOfItems:!!r(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!r(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!r(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!r(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const n={};return void 0!==e.user&&(n.user=e.user?t.UserDecorationPolicy.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(n.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(n.isOwner=e.isOwner),n},fromPartial(e){const n={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return n.user=void 0!==e.user&&null!==e.user?t.UserDecorationPolicy.fromPartial(e.user):void 0,n.numberOfItems=e.numberOfItems??!1,n.numberOfTracks=e.numberOfTracks??!1,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.isOwner=e.isOwner??!1,n}},t.CollaboratingUsersDecorationPolicy={encode:(e,n=i.default.Writer.create())=>(!0===e.count&&n.uint32(8).bool(e.count),0!==e.limit&&n.uint32(16).int32(e.limit),void 0!==e.collaborator&&t.CollaboratorPolicy.encode(e.collaborator,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={count:!1,limit:0,collaborator:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({count:!!r(e.count)&&Boolean(e.count),limit:r(e.limit)?Number(e.limit):0,collaborator:r(e.collaborator)?t.CollaboratorPolicy.fromJSON(e.collaborator):void 0}),toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),void 0!==e.limit&&(n.limit=Math.round(e.limit)),void 0!==e.collaborator&&(n.collaborator=e.collaborator?t.CollaboratorPolicy.toJSON(e.collaborator):void 0),n},fromPartial(e){const n={count:!1,limit:0,collaborator:void 0};return n.count=e.count??!1,n.limit=e.limit??0,n.collaborator=void 0!==e.collaborator&&null!==e.collaborator?t.CollaboratorPolicy.fromPartial(e.collaborator):void 0,n}}},11332:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delta=t.delta_TypeToJSON=t.delta_TypeFromJSON=t.Delta_Type=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"DELETE":return r.DELETE;case 1:case"INSERT":return r.INSERT;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.DELETE:return"DELETE";case r.INSERT:return"INSERT";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.protobuf_deltas.proto",function(e){e[e.DELETE=0]="DELETE",e[e.INSERT=1]="INSERT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.Delta_Type||(t.Delta_Type={})),t.delta_TypeFromJSON=a,t.delta_TypeToJSON=s,t.Delta={encode:(e,t=i.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.length&&t.uint32(24).uint32(e.length),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={type:0,index:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.type=n.int32();break;case 2:r.index=n.uint32();break;case 3:r.length=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({type:l(e.type)?a(e.type):0,index:l(e.index)?Number(e.index):0,length:l(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.type&&(t.type=s(e.type)),void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){const t={type:0,index:0,length:0};return t.type=e.type??0,t.index=e.index??0,t.length=e.length??0,t}}},87445:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseStatus=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.ResponseStatus={encode:(e,t=i.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.statusCode=n.int32();break;case 2:r.reason=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:r(e.statusCode)?Number(e.statusCode):0,reason:r(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}}},24766:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistContainsResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(4206),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.RootlistContainsResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.ContainsResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.ContainsResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.ContainsResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.ContainsResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.ContainsResponse.fromPartial(e.response):void 0,t}}},73706:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistGetResponse=t.RootlistGetRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45859),a=n(87445),s=n(84420),l=n(27567);function c(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.RootlistGetRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.query&&s.RootlistQuery.encode(e.query,t.uint32(10).fork()).ldelim(),void 0!==e.policy&&r.RootlistRequestDecorationPolicy.encode(e.policy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={query:void 0,policy:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.query=s.RootlistQuery.decode(n,n.uint32());break;case 2:a.policy=r.RootlistRequestDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({query:c(e.query)?s.RootlistQuery.fromJSON(e.query):void 0,policy:c(e.policy)?r.RootlistRequestDecorationPolicy.fromJSON(e.policy):void 0}),toJSON(e){const t={};return void 0!==e.query&&(t.query=e.query?s.RootlistQuery.toJSON(e.query):void 0),void 0!==e.policy&&(t.policy=e.policy?r.RootlistRequestDecorationPolicy.toJSON(e.policy):void 0),t},fromPartial(e){const t={query:void 0,policy:void 0};return t.query=void 0!==e.query&&null!==e.query?s.RootlistQuery.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?r.RootlistRequestDecorationPolicy.fromPartial(e.policy):void 0,t}},t.RootlistGetResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&l.Response.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.query&&s.RootlistQuery.encode(e.query,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0,data:void 0,query:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:r.data=l.Response.decode(n,n.uint32());break;case 3:r.query=s.RootlistQuery.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({status:c(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,data:c(e.data)?l.Response.fromJSON(e.data):void 0,query:c(e.query)?s.RootlistQuery.fromJSON(e.query):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.data&&(t.data=e.data?l.Response.toJSON(e.data):void 0),void 0!==e.query&&(t.query=e.query?s.RootlistQuery.toJSON(e.query):void 0),t},fromPartial(e){const t={status:void 0,data:void 0,query:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?l.Response.fromPartial(e.data):void 0,t.query=void 0!==e.query&&null!==e.query?s.RootlistQuery.fromPartial(e.query):void 0,t}}},64011:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistModificationResponse=t.RootlistModificationRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(33632),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.RootlistModificationRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.folderUri&&t.uint32(10).string(e.folderUri),void 0!==e.request&&r.ModificationRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={folderUri:"",request:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.folderUri=n.string();break;case 2:a.request=r.ModificationRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({folderUri:s(e.folderUri)?String(e.folderUri):"",request:s(e.request)?r.ModificationRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.folderUri&&(t.folderUri=e.folderUri),void 0!==e.request&&(t.request=e.request?r.ModificationRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={folderUri:"",request:void 0};return t.folderUri=e.folderUri??"",t.request=void 0!==e.request&&null!==e.request?r.ModificationRequest.fromPartial(e.request):void 0,t}},t.RootlistModificationResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.ModificationResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.ModificationResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.ModificationResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.ModificationResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.ModificationResponse.fromPartial(e.response):void 0,t}}},84420:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistQuery=t.SourceRestriction=t.RootlistRange=t.rootlistQuery_SortByToJSON=t.rootlistQuery_SortByFromJSON=t.RootlistQuery_SortBy=t.rootlistQuery_BoolPredicateToJSON=t.rootlistQuery_BoolPredicateFromJSON=t.RootlistQuery_BoolPredicate=t.rootlistItemTypeToJSON=t.rootlistItemTypeFromJSON=t.RootlistItemType=t.protobufPackage=void 0;const i=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"ALL_ROOTLIST_ITEMS":return r.ALL_ROOTLIST_ITEMS;case 1:case"PLAYLISTS_IN_ROOTLIST":return r.PLAYLISTS_IN_ROOTLIST;case 2:case"FOLDERS_IN_ROOTLIST":return r.FOLDERS_IN_ROOTLIST;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.ALL_ROOTLIST_ITEMS:return"ALL_ROOTLIST_ITEMS";case r.PLAYLISTS_IN_ROOTLIST:return"PLAYLISTS_IN_ROOTLIST";case r.FOLDERS_IN_ROOTLIST:return"FOLDERS_IN_ROOTLIST";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"ROOTLIST_ITEM_NO_FILTER":return a.ROOTLIST_ITEM_NO_FILTER;case 1:case"ROOTLIST_ITEM_AVAILABLE_OFFLINE":return a.ROOTLIST_ITEM_AVAILABLE_OFFLINE;case 2:case"ROOTLIST_ITEM_IS_WRITABLE":return a.ROOTLIST_ITEM_IS_WRITABLE;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.ROOTLIST_ITEM_NO_FILTER:return"ROOTLIST_ITEM_NO_FILTER";case a.ROOTLIST_ITEM_AVAILABLE_OFFLINE:return"ROOTLIST_ITEM_AVAILABLE_OFFLINE";case a.ROOTLIST_ITEM_IS_WRITABLE:return"ROOTLIST_ITEM_IS_WRITABLE";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"NO_SORT":return s.NO_SORT;case 1:case"NAME_ASC":return s.NAME_ASC;case 2:case"NAME_DESC":return s.NAME_DESC;case 3:case"ADD_TIME_ASC":return s.ADD_TIME_ASC;case 4:case"ADD_TIME_DESC":return s.ADD_TIME_DESC;case 5:case"RECENTLY_PLAYED_RANK_ASC":return s.RECENTLY_PLAYED_RANK_ASC;case 6:case"RECENTLY_PLAYED_RANK_DESC":return s.RECENTLY_PLAYED_RANK_DESC;case 7:case"FRECENCY_SCORE_ASC":return s.FRECENCY_SCORE_ASC;case 8:case"FRECENCY_SCORE_DESC":return s.FRECENCY_SCORE_DESC;case 9:case"OFFLINE_STATE_ASC":return s.OFFLINE_STATE_ASC;case 10:case"OFFLINE_STATE_DESC":return s.OFFLINE_STATE_DESC;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.NO_SORT:return"NO_SORT";case s.NAME_ASC:return"NAME_ASC";case s.NAME_DESC:return"NAME_DESC";case s.ADD_TIME_ASC:return"ADD_TIME_ASC";case s.ADD_TIME_DESC:return"ADD_TIME_DESC";case s.RECENTLY_PLAYED_RANK_ASC:return"RECENTLY_PLAYED_RANK_ASC";case s.RECENTLY_PLAYED_RANK_DESC:return"RECENTLY_PLAYED_RANK_DESC";case s.FRECENCY_SCORE_ASC:return"FRECENCY_SCORE_ASC";case s.FRECENCY_SCORE_DESC:return"FRECENCY_SCORE_DESC";case s.OFFLINE_STATE_ASC:return"OFFLINE_STATE_ASC";case s.OFFLINE_STATE_DESC:return"OFFLINE_STATE_DESC";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",function(e){e[e.ALL_ROOTLIST_ITEMS=0]="ALL_ROOTLIST_ITEMS",e[e.PLAYLISTS_IN_ROOTLIST=1]="PLAYLISTS_IN_ROOTLIST",e[e.FOLDERS_IN_ROOTLIST=2]="FOLDERS_IN_ROOTLIST",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.RootlistItemType||(t.RootlistItemType={})),t.rootlistItemTypeFromJSON=l,t.rootlistItemTypeToJSON=c,function(e){e[e.ROOTLIST_ITEM_NO_FILTER=0]="ROOTLIST_ITEM_NO_FILTER",e[e.ROOTLIST_ITEM_AVAILABLE_OFFLINE=1]="ROOTLIST_ITEM_AVAILABLE_OFFLINE",e[e.ROOTLIST_ITEM_IS_WRITABLE=2]="ROOTLIST_ITEM_IS_WRITABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.RootlistQuery_BoolPredicate||(t.RootlistQuery_BoolPredicate={})),t.rootlistQuery_BoolPredicateFromJSON=u,t.rootlistQuery_BoolPredicateToJSON=d,function(e){e[e.NO_SORT=0]="NO_SORT",e[e.NAME_ASC=1]="NAME_ASC",e[e.NAME_DESC=2]="NAME_DESC",e[e.ADD_TIME_ASC=3]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=4]="ADD_TIME_DESC",e[e.RECENTLY_PLAYED_RANK_ASC=5]="RECENTLY_PLAYED_RANK_ASC",e[e.RECENTLY_PLAYED_RANK_DESC=6]="RECENTLY_PLAYED_RANK_DESC",e[e.FRECENCY_SCORE_ASC=7]="FRECENCY_SCORE_ASC",e[e.FRECENCY_SCORE_DESC=8]="FRECENCY_SCORE_DESC",e[e.OFFLINE_STATE_ASC=9]="OFFLINE_STATE_ASC",e[e.OFFLINE_STATE_DESC=10]="OFFLINE_STATE_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.RootlistQuery_SortBy||(t.RootlistQuery_SortBy={})),t.rootlistQuery_SortByFromJSON=p,t.rootlistQuery_SortByToJSON=f,t.RootlistRange={encode:(e,t=i.default.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.start=n.int32();break;case 2:r.length=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({start:h(e.start)?Number(e.start):0,length:h(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}},t.SourceRestriction={encode:(e,t=i.default.Writer.create())=>(0!==e.maxFirstNItems&&t.uint32(8).int32(e.maxFirstNItems),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={maxFirstNItems:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.maxFirstNItems=n.int32();else n.skipType(7&e)}return r},fromJSON:e=>({maxFirstNItems:h(e.maxFirstNItems)?Number(e.maxFirstNItems):0}),toJSON(e){const t={};return void 0!==e.maxFirstNItems&&(t.maxFirstNItems=Math.round(e.maxFirstNItems)),t},fromPartial(e){const t={maxFirstNItems:0};return t.maxFirstNItems=e.maxFirstNItems??0,t}},t.RootlistQuery={encode(e,n=i.default.Writer.create()){""!==e.folderUri&&n.uint32(10).string(e.folderUri),n.uint32(18).fork();for(const t of e.boolPredicates)n.int32(t);return n.ldelim(),""!==e.textFilter&&n.uint32(26).string(e.textFilter),0!==e.sortBy&&n.uint32(32).int32(e.sortBy),void 0!==e.range&&t.RootlistRange.encode(e.range,n.uint32(42).fork()).ldelim(),void 0!==e.sourceRestriction&&t.SourceRestriction.encode(e.sourceRestriction,n.uint32(50).fork()).ldelim(),0!==e.itemType&&n.uint32(56).int32(e.itemType),!0===e.group&&n.uint32(64).bool(e.group),!0===e.deltaUpdates&&n.uint32(72).bool(e.deltaUpdates),!0===e.flattenTree&&n.uint32(80).bool(e.flattenTree),0!==e.updateThrottlingMs&&n.uint32(88).int32(e.updateThrottlingMs),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={folderUri:"",boolPredicates:[],textFilter:"",sortBy:0,range:void 0,sourceRestriction:void 0,itemType:0,group:!1,deltaUpdates:!1,flattenTree:!1,updateThrottlingMs:0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.folderUri=o.string();break;case 2:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos<e;)a.boolPredicates.push(o.int32())}else a.boolPredicates.push(o.int32());break;case 3:a.textFilter=o.string();break;case 4:a.sortBy=o.int32();break;case 5:a.range=t.RootlistRange.decode(o,o.uint32());break;case 6:a.sourceRestriction=t.SourceRestriction.decode(o,o.uint32());break;case 7:a.itemType=o.int32();break;case 8:a.group=o.bool();break;case 9:a.deltaUpdates=o.bool();break;case 10:a.flattenTree=o.bool();break;case 11:a.updateThrottlingMs=o.int32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({folderUri:h(e.folderUri)?String(e.folderUri):"",boolPredicates:Array.isArray(e?.boolPredicates)?e.boolPredicates.map((e=>u(e))):[],textFilter:h(e.textFilter)?String(e.textFilter):"",sortBy:h(e.sortBy)?p(e.sortBy):0,range:h(e.range)?t.RootlistRange.fromJSON(e.range):void 0,sourceRestriction:h(e.sourceRestriction)?t.SourceRestriction.fromJSON(e.sourceRestriction):void 0,itemType:h(e.itemType)?l(e.itemType):0,group:!!h(e.group)&&Boolean(e.group),deltaUpdates:!!h(e.deltaUpdates)&&Boolean(e.deltaUpdates),flattenTree:!!h(e.flattenTree)&&Boolean(e.flattenTree),updateThrottlingMs:h(e.updateThrottlingMs)?Number(e.updateThrottlingMs):0}),toJSON(e){const n={};return void 0!==e.folderUri&&(n.folderUri=e.folderUri),e.boolPredicates?n.boolPredicates=e.boolPredicates.map((e=>d(e))):n.boolPredicates=[],void 0!==e.textFilter&&(n.textFilter=e.textFilter),void 0!==e.sortBy&&(n.sortBy=f(e.sortBy)),void 0!==e.range&&(n.range=e.range?t.RootlistRange.toJSON(e.range):void 0),void 0!==e.sourceRestriction&&(n.sourceRestriction=e.sourceRestriction?t.SourceRestriction.toJSON(e.sourceRestriction):void 0),void 0!==e.itemType&&(n.itemType=c(e.itemType)),void 0!==e.group&&(n.group=e.group),void 0!==e.deltaUpdates&&(n.deltaUpdates=e.deltaUpdates),void 0!==e.flattenTree&&(n.flattenTree=e.flattenTree),void 0!==e.updateThrottlingMs&&(n.updateThrottlingMs=Math.round(e.updateThrottlingMs)),n},fromPartial(e){const n={folderUri:"",boolPredicates:[],textFilter:"",sortBy:0,range:void 0,sourceRestriction:void 0,itemType:0,group:!1,deltaUpdates:!1,flattenTree:!1,updateThrottlingMs:0};return n.folderUri=e.folderUri??"",n.boolPredicates=e.boolPredicates?.map((e=>e))||[],n.textFilter=e.textFilter??"",n.sortBy=e.sortBy??0,n.range=void 0!==e.range&&null!==e.range?t.RootlistRange.fromPartial(e.range):void 0,n.sourceRestriction=void 0!==e.sourceRestriction&&null!==e.sourceRestriction?t.SourceRestriction.fromPartial(e.sourceRestriction):void 0,n.itemType=e.itemType??0,n.group=e.group??!1,n.deltaUpdates=e.deltaUpdates??!1,n.flattenTree=e.flattenTree??!1,n.updateThrottlingMs=e.updateThrottlingMs??0,n}}},27567:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Folder=t.Item=t.Playlist=t.protobufPackage=void 0;const i=o(n(33892)),r=n(48670),a=n(16056),s=n(57074),l=n(11332);function c(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.rootlist_request.proto",t.Playlist={encode:(e,t=i.default.Writer.create())=>(""!==e.rowId&&t.uint32(10).string(e.rowId),void 0!==e.playlistMetadata&&s.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.playlistOfflineState&&s.PlaylistOfflineState.encode(e.playlistOfflineState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),!0===e.isOnDemandInFree&&t.uint32(40).bool(e.isOnDemandInFree),""!==e.groupLabel&&t.uint32(50).string(e.groupLabel),void 0!==e.capabilities&&a.Capabilities.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.rowId=n.string();break;case 2:r.playlistMetadata=s.PlaylistMetadata.decode(n,n.uint32());break;case 3:r.playlistOfflineState=s.PlaylistOfflineState.decode(n,n.uint32());break;case 4:r.addTime=n.uint32();break;case 5:r.isOnDemandInFree=n.bool();break;case 6:r.groupLabel=n.string();break;case 7:r.capabilities=a.Capabilities.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({rowId:c(e.rowId)?String(e.rowId):"",playlistMetadata:c(e.playlistMetadata)?s.PlaylistMetadata.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:c(e.playlistOfflineState)?s.PlaylistOfflineState.fromJSON(e.playlistOfflineState):void 0,addTime:c(e.addTime)?Number(e.addTime):0,isOnDemandInFree:!!c(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),groupLabel:c(e.groupLabel)?String(e.groupLabel):"",capabilities:c(e.capabilities)?a.Capabilities.fromJSON(e.capabilities):void 0}),toJSON(e){const t={};return void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?s.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?s.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.capabilities&&(t.capabilities=e.capabilities?a.Capabilities.toJSON(e.capabilities):void 0),t},fromPartial(e){const t={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};return t.rowId=e.rowId??"",t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?s.PlaylistMetadata.fromPartial(e.playlistMetadata):void 0,t.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?s.PlaylistOfflineState.fromPartial(e.playlistOfflineState):void 0,t.addTime=e.addTime??0,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.groupLabel=e.groupLabel??"",t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?a.Capabilities.fromPartial(e.capabilities):void 0,t}},t.Item={encode:(e,n=i.default.Writer.create())=>(""!==e.headerField&&n.uint32(10).string(e.headerField),void 0!==e.folder&&t.Folder.encode(e.folder,n.uint32(18).fork()).ldelim(),void 0!==e.playlist&&t.Playlist.encode(e.playlist,n.uint32(26).fork()).ldelim(),void 0!==e.delta&&l.Delta.encode(e.delta,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={headerField:"",folder:void 0,playlist:void 0,delta:void 0};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.headerField=o.string();break;case 2:a.folder=t.Folder.decode(o,o.uint32());break;case 3:a.playlist=t.Playlist.decode(o,o.uint32());break;case 4:a.delta=l.Delta.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({headerField:c(e.headerField)?String(e.headerField):"",folder:c(e.folder)?t.Folder.fromJSON(e.folder):void 0,playlist:c(e.playlist)?t.Playlist.fromJSON(e.playlist):void 0,delta:c(e.delta)?l.Delta.fromJSON(e.delta):void 0}),toJSON(e){const n={};return void 0!==e.headerField&&(n.headerField=e.headerField),void 0!==e.folder&&(n.folder=e.folder?t.Folder.toJSON(e.folder):void 0),void 0!==e.playlist&&(n.playlist=e.playlist?t.Playlist.toJSON(e.playlist):void 0),void 0!==e.delta&&(n.delta=e.delta?l.Delta.toJSON(e.delta):void 0),n},fromPartial(e){const n={headerField:"",folder:void 0,playlist:void 0,delta:void 0};return n.headerField=e.headerField??"",n.folder=void 0!==e.folder&&null!==e.folder?t.Folder.fromPartial(e.folder):void 0,n.playlist=void 0!==e.playlist&&null!==e.playlist?t.Playlist.fromPartial(e.playlist):void 0,n.delta=void 0!==e.delta&&null!==e.delta?l.Delta.fromPartial(e.delta):void 0,n}},t.Folder={encode(e,n=i.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.folderMetadata&&r.FolderMetadata.encode(e.folderMetadata,n.uint32(18).fork()).ldelim(),""!==e.rowId&&n.uint32(26).string(e.rowId),0!==e.addTime&&n.uint32(32).uint32(e.addTime),""!==e.groupLabel&&n.uint32(42).string(e.groupLabel),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};for(;o.pos<a;){const e=o.uint32();switch(e>>>3){case 1:s.item.push(t.Item.decode(o,o.uint32()));break;case 2:s.folderMetadata=r.FolderMetadata.decode(o,o.uint32());break;case 3:s.rowId=o.string();break;case 4:s.addTime=o.uint32();break;case 5:s.groupLabel=o.string();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[],folderMetadata:c(e.folderMetadata)?r.FolderMetadata.fromJSON(e.folderMetadata):void 0,rowId:c(e.rowId)?String(e.rowId):"",addTime:c(e.addTime)?Number(e.addTime):0,groupLabel:c(e.groupLabel)?String(e.groupLabel):""}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.folderMetadata&&(n.folderMetadata=e.folderMetadata?r.FolderMetadata.toJSON(e.folderMetadata):void 0),void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.groupLabel&&(n.groupLabel=e.groupLabel),n},fromPartial(e){const n={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.folderMetadata=void 0!==e.folderMetadata&&null!==e.folderMetadata?r.FolderMetadata.fromPartial(e.folderMetadata):void 0,n.rowId=e.rowId??"",n.addTime=e.addTime??0,n.groupLabel=e.groupLabel??"",n}},t.Response={encode:(e,n=i.default.Writer.create())=>(void 0!==e.root&&t.Folder.encode(e.root,n.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(16).int32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(24).int32(e.unrangedLength),!0===e.isLoadingContents&&n.uint32(32).bool(e.isLoadingContents),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:a.root=t.Folder.decode(o,o.uint32());break;case 2:a.unfilteredLength=o.int32();break;case 3:a.unrangedLength=o.int32();break;case 4:a.isLoadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({root:c(e.root)?t.Folder.fromJSON(e.root):void 0,unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,isLoadingContents:!!c(e.isLoadingContents)&&Boolean(e.isLoadingContents)}),toJSON(e){const n={};return void 0!==e.root&&(n.root=e.root?t.Folder.toJSON(e.root):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.isLoadingContents&&(n.isLoadingContents=e.isLoadingContents),n},fromPartial(e){const n={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};return n.root=void 0!==e.root&&null!==e.root?t.Folder.fromPartial(e.root):void 0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.isLoadingContents=e.isLoadingContents??!1,n}}},22660:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetMemberPermissionRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16056);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.SetMemberPermissionRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.playlistUri&&t.uint32(10).string(e.playlistUri),""!==e.username&&t.uint32(18).string(e.username),0!==e.permissionLevel&&t.uint32(24).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(32).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.playlistUri=n.string();break;case 2:r.username=n.string();break;case 3:r.permissionLevel=n.int32();break;case 4:r.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistUri:a(e.playlistUri)?String(e.playlistUri):"",username:a(e.username)?String(e.username):"",permissionLevel:a(e.permissionLevel)?(0,r.permissionLevelFromJSON)(e.permissionLevel):0,timeoutMs:a(e.timeoutMs)?Number(e.timeoutMs):0}),toJSON(e){const t={};return void 0!==e.playlistUri&&(t.playlistUri=e.playlistUri),void 0!==e.username&&(t.username=e.username),void 0!==e.permissionLevel&&(t.permissionLevel=(0,r.permissionLevelToJSON)(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=Math.round(e.timeoutMs)),t},fromPartial(e){const t={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};return t.playlistUri=e.playlistUri??"",t.username=e.username??"",t.permissionLevel=e.permissionLevel??0,t.timeoutMs=e.timeoutMs??0,t}}},12379:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.offlineState=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:r(e.offlineState)?String(e.offlineState):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}}},87731:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRequest=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto",t.SyncRequest={encode(e,t=i.default.Writer.create()){for(const n of e.playlistUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUris:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.playlistUris.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({playlistUris:Array.isArray(e?.playlistUris)?e.playlistUris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.playlistUris?t.playlistUris=e.playlistUris.map((e=>e)):t.playlistUris=[],t},fromPartial(e){const t={playlistUris:[]};return t.playlistUris=e.playlistUris?.map((e=>e))||[],t}}},12101:(e,t,n)=>{"use strict";n.d(t,{B3:()=>de,_c:()=>T,ow:()=>ae,Op:()=>Z,vY:()=>Q,Sh:()=>R,hA:()=>le,rf:()=>I});var o=n(3959),i=n(33892),r=n.n(i);const a={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={identifier:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.identifier=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({identifier:d(e.identifier)?String(e.identifier):""}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),t},fromPartial(e){const t={identifier:""};return t.identifier=e.identifier??"",t}};function s(){return{identifier:"",revision:new Uint8Array}}const l={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),void 0!==e.revision&&0!==e.revision.length&&t.uint32(18).bytes(e.revision),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.identifier=n.string();break;case 2:i.revision=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({identifier:d(e.identifier)?String(e.identifier):"",revision:d(e.revision)?u(e.revision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.revision&&(t.revision=function(e){if(c.Buffer)return c.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),c.btoa(t.join(""))}}(void 0!==e.revision?e.revision:new Uint8Array)),t},fromPartial(e){const t=s();return t.identifier=e.identifier??"",t.revision=e.revision??new Uint8Array,t}};var c=(()=>{if(void 0!==c)return c;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function u(e){if(c.Buffer)return Uint8Array.from(c.Buffer.from(e,"base64"));{const t=c.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function d(e){return null!=e}let p=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function f(e){switch(e){case 0:case"UNKNOWN":return p.UNKNOWN;case 1:case"BLOCKED":return p.BLOCKED;case 2:case"VIEWER":return p.VIEWER;case 3:case"CONTRIBUTOR":return p.CONTRIBUTOR;default:return p.UNRECOGNIZED}}function h(e){switch(e){case p.UNKNOWN:return 0;case p.BLOCKED:return 1;case p.VIEWER:return 2;case p.CONTRIBUTOR:return 3;case p.UNRECOGNIZED:default:return-1}}const m={encode(e,t=r().Writer.create()){if(!0===e.canView&&t.uint32(8).bool(e.canView),!0===e.canAdministratePermissions&&t.uint32(16).bool(e.canAdministratePermissions),void 0!==e.grantableLevel&&0!==e.grantableLevel.length){t.uint32(26).fork();for(const n of e.grantableLevel)t.int32(n);t.ldelim()}return!0===e.canEditMetadata&&t.uint32(32).bool(e.canEditMetadata),!0===e.canEditItems&&t.uint32(40).bool(e.canEditItems),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.canView=n.bool();break;case 2:i.canAdministratePermissions=n.bool();break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.grantableLevel.push(n.int32())}else i.grantableLevel.push(n.int32());break;case 4:i.canEditMetadata=n.bool();break;case 5:i.canEditItems=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({canView:!!v(e.canView)&&Boolean(e.canView),canAdministratePermissions:!!v(e.canAdministratePermissions)&&Boolean(e.canAdministratePermissions),grantableLevel:Array.isArray(e?.grantableLevel)?e.grantableLevel.map((e=>f(e))):[],canEditMetadata:!!v(e.canEditMetadata)&&Boolean(e.canEditMetadata),canEditItems:!!v(e.canEditItems)&&Boolean(e.canEditItems)}),toJSON(e){const t={};return void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?t.grantableLevel=e.grantableLevel.map((e=>h(e))):t.grantableLevel=[],void 0!==e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),void 0!==e.canEditItems&&(t.canEditItems=e.canEditItems),t},fromPartial(e){const t={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1};return t.canView=e.canView??!1,t.canAdministratePermissions=e.canAdministratePermissions??!1,t.grantableLevel=e.grantableLevel?.map((e=>e))||[],t.canEditMetadata=e.canEditMetadata??!1,t.canEditItems=e.canEditItems??!1,t}};var g=(()=>{if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function v(e){return null!=e}function y(){return{identifier:"",data:new Uint8Array}}const _={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),void 0!==e.data&&0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=y();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.identifier=n.string();break;case 2:i.data=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({identifier:A(e.identifier)?String(e.identifier):"",data:A(e.data)?S(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.data&&(t.data=E(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=y();return t.identifier=e.identifier??"",t.data=e.data??new Uint8Array,t}};var b=(()=>{if(void 0!==b)return b;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function S(e){if(b.Buffer)return Uint8Array.from(b.Buffer.from(e,"base64"));{const t=b.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function E(e){if(b.Buffer)return b.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),b.btoa(t.join(""))}}function A(e){return null!=e}let T=function(e){return e[e.LIST_UNKNOWN=0]="LIST_UNKNOWN",e[e.LIST_NAME=1]="LIST_NAME",e[e.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",e[e.LIST_PICTURE=3]="LIST_PICTURE",e[e.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",e[e.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",e[e.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",e[e.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",e[e.LIST_FORMAT=11]="LIST_FORMAT",e[e.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",e[e.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});let P=function(e){return e[e.ITEM_UNKNOWN=0]="ITEM_UNKNOWN",e[e.ITEM_ADDED_BY=1]="ITEM_ADDED_BY",e[e.ITEM_TIMESTAMP=2]="ITEM_TIMESTAMP",e[e.ITEM_SEEN_AT=9]="ITEM_SEEN_AT",e[e.ITEM_PUBLIC=10]="ITEM_PUBLIC",e[e.ITEM_FORMAT_ATTRIBUTES=11]="ITEM_FORMAT_ATTRIBUTES",e[e.ITEM_ID=12]="ITEM_ID",e[e.ITEM_SOURCE_LENS=13]="ITEM_SOURCE_LENS",e[e.ITEM_AVAILABLE_SIGNALS=14]="ITEM_AVAILABLE_SIGNALS",e[e.ITEM_RECOMMENDATION_INFO=15]="ITEM_RECOMMENDATION_INFO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});let O=function(e){return e[e.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED=0]="GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED",e[e.GEOBLOCK_BLOCKING_TYPE_TITLE=1]="GEOBLOCK_BLOCKING_TYPE_TITLE",e[e.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION=2]="GEOBLOCK_BLOCKING_TYPE_DESCRIPTION",e[e.GEOBLOCK_BLOCKING_TYPE_IMAGE=3]="GEOBLOCK_BLOCKING_TYPE_IMAGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function C(e){switch(e){case 0:case"GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED":return O.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED;case 1:case"GEOBLOCK_BLOCKING_TYPE_TITLE":return O.GEOBLOCK_BLOCKING_TYPE_TITLE;case 2:case"GEOBLOCK_BLOCKING_TYPE_DESCRIPTION":return O.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION;case 3:case"GEOBLOCK_BLOCKING_TYPE_IMAGE":return O.GEOBLOCK_BLOCKING_TYPE_IMAGE;default:return O.UNRECOGNIZED}}function k(e){switch(e){case O.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED:return 0;case O.GEOBLOCK_BLOCKING_TYPE_TITLE:return 1;case O.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION:return 2;case O.GEOBLOCK_BLOCKING_TYPE_IMAGE:return 3;case O.UNRECOGNIZED:default:return-1}}let R=function(e){return e[e.KIND_UNKNOWN=0]="KIND_UNKNOWN",e[e.ADD=2]="ADD",e[e.REM=3]="REM",e[e.MOV=4]="MOV",e[e.UPDATE_ITEM_ATTRIBUTES=5]="UPDATE_ITEM_ATTRIBUTES",e[e.UPDATE_LIST_ATTRIBUTES=6]="UPDATE_LIST_ATTRIBUTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function L(e){switch(e){case 0:case"KIND_UNKNOWN":return R.KIND_UNKNOWN;case 2:case"ADD":return R.ADD;case 3:case"REM":return R.REM;case 4:case"MOV":return R.MOV;case 5:case"UPDATE_ITEM_ATTRIBUTES":return R.UPDATE_ITEM_ATTRIBUTES;case 6:case"UPDATE_LIST_ATTRIBUTES":return R.UPDATE_LIST_ATTRIBUTES;default:return R.UNRECOGNIZED}}let I=function(e){return e[e.CLIENT_UNKNOWN=0]="CLIENT_UNKNOWN",e[e.NATIVE_HERMES=1]="NATIVE_HERMES",e[e.CLIENT=2]="CLIENT",e[e.PYTHON=3]="PYTHON",e[e.JAVA=4]="JAVA",e[e.WEBPLAYER=5]="WEBPLAYER",e[e.LIBSPOTIFY=6]="LIBSPOTIFY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function N(e){switch(e){case 0:case"CLIENT_UNKNOWN":return I.CLIENT_UNKNOWN;case 1:case"NATIVE_HERMES":return I.NATIVE_HERMES;case 2:case"CLIENT":return I.CLIENT;case 3:case"PYTHON":return I.PYTHON;case 4:case"JAVA":return I.JAVA;case 5:case"WEBPLAYER":return I.WEBPLAYER;case 6:case"LIBSPOTIFY":return I.LIBSPOTIFY;default:return I.UNRECOGNIZED}}const w={encode:(e,t=r().Writer.create())=>(void 0!==e.uri&&""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.attributes&&j.encode(e.attributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",attributes:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri=n.string();break;case 2:i.attributes=j.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:ge(e.uri)?String(e.uri):"",attributes:ge(e.attributes)?j.fromJSON(e.attributes):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.attributes&&(t.attributes=e.attributes?j.toJSON(e.attributes):void 0),t},fromPartial(e){const t={uri:"",attributes:void 0};return t.uri=e.uri??"",t.attributes=void 0!==e.attributes&&null!==e.attributes?j.fromPartial(e.attributes):void 0,t}};function D(){return{revision:new Uint8Array,attributes:void 0,length:0,timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1,capabilities:void 0,geoblock:[]}}const M={encode(e,t=r().Writer.create()){if(void 0!==e.revision&&0!==e.revision.length&&t.uint32(10).bytes(e.revision),void 0!==e.attributes&&G.encode(e.attributes,t.uint32(18).fork()).ldelim(),void 0!==e.length&&0!==e.length&&t.uint32(24).int32(e.length),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(32).int64(e.timestamp),void 0!==e.ownerUsername&&""!==e.ownerUsername&&t.uint32(42).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(48).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&m.encode(e.capabilities,t.uint32(58).fork()).ldelim(),void 0!==e.geoblock&&0!==e.geoblock.length){t.uint32(66).fork();for(const n of e.geoblock)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=D();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.revision=n.bytes();break;case 2:i.attributes=G.decode(n,n.uint32());break;case 3:i.length=n.int32();break;case 4:i.timestamp=me(n.int64());break;case 5:i.ownerUsername=n.string();break;case 6:i.abuseReportingEnabled=n.bool();break;case 7:i.capabilities=m.decode(n,n.uint32());break;case 8:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.geoblock.push(n.int32())}else i.geoblock.push(n.int32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({revision:ge(e.revision)?fe(e.revision):new Uint8Array,attributes:ge(e.attributes)?G.fromJSON(e.attributes):void 0,length:ge(e.length)?Number(e.length):0,timestamp:ge(e.timestamp)?String(e.timestamp):"0",ownerUsername:ge(e.ownerUsername)?String(e.ownerUsername):"",abuseReportingEnabled:!!ge(e.abuseReportingEnabled)&&Boolean(e.abuseReportingEnabled),capabilities:ge(e.capabilities)?m.fromJSON(e.capabilities):void 0,geoblock:Array.isArray(e?.geoblock)?e.geoblock.map((e=>C(e))):[]}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=he(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.attributes&&(t.attributes=e.attributes?G.toJSON(e.attributes):void 0),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.ownerUsername&&(t.ownerUsername=e.ownerUsername),void 0!==e.abuseReportingEnabled&&(t.abuseReportingEnabled=e.abuseReportingEnabled),void 0!==e.capabilities&&(t.capabilities=e.capabilities?m.toJSON(e.capabilities):void 0),e.geoblock?t.geoblock=e.geoblock.map((e=>k(e))):t.geoblock=[],t},fromPartial(e){const t=D();return t.revision=e.revision??new Uint8Array,t.attributes=void 0!==e.attributes&&null!==e.attributes?G.fromPartial(e.attributes):void 0,t.length=e.length??0,t.timestamp=e.timestamp??"0",t.ownerUsername=e.ownerUsername??"",t.abuseReportingEnabled=e.abuseReportingEnabled??!1,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?m.fromPartial(e.capabilities):void 0,t.geoblock=e.geoblock?.map((e=>e))||[],t}};const x={encode(e,t=r().Writer.create()){if(void 0!==e.pos&&0!==e.pos&&t.uint32(8).int32(e.pos),!0===e.truncated&&t.uint32(16).bool(e.truncated),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.encode(n,t.uint32(26).fork()).ldelim();if(void 0!==e.metaItems&&0!==e.metaItems.length)for(const n of e.metaItems)M.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={pos:0,truncated:!1,items:[],metaItems:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.pos=n.int32();break;case 2:i.truncated=n.bool();break;case 3:i.items.push(w.decode(n,n.uint32()));break;case 4:i.metaItems.push(M.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({pos:ge(e.pos)?Number(e.pos):0,truncated:!!ge(e.truncated)&&Boolean(e.truncated),items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],metaItems:Array.isArray(e?.metaItems)?e.metaItems.map((e=>M.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.pos&&(t.pos=Math.round(e.pos)),void 0!==e.truncated&&(t.truncated=e.truncated),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],e.metaItems?t.metaItems=e.metaItems.map((e=>e?M.toJSON(e):void 0)):t.metaItems=[],t},fromPartial(e){const t={pos:0,truncated:!1,items:[],metaItems:[]};return t.pos=e.pos??0,t.truncated=e.truncated??!1,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.metaItems=e.metaItems?.map((e=>M.fromPartial(e)))||[],t}};const F={encode:(e,t=r().Writer.create())=>(void 0!==e.key&&""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:ge(e.key)?String(e.key):"",value:ge(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const U={encode:(e,t=r().Writer.create())=>(void 0!==e.targetName&&""!==e.targetName&&t.uint32(10).string(e.targetName),void 0!==e.url&&""!==e.url&&t.uint32(18).string(e.url),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={targetName:"",url:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.targetName=n.string();break;case 2:i.url=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({targetName:ge(e.targetName)?String(e.targetName):"",url:ge(e.url)?String(e.url):""}),toJSON(e){const t={};return void 0!==e.targetName&&(t.targetName=e.targetName),void 0!==e.url&&(t.url=e.url),t},fromPartial(e){const t={targetName:"",url:""};return t.targetName=e.targetName??"",t.url=e.url??"",t}};const B={encode:(e,t=r().Writer.create())=>(!0===e.isRecommendation&&t.uint32(8).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={isRecommendation:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.isRecommendation=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isRecommendation:!!ge(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},fromPartial(e){const t={isRecommendation:!1};return t.isRecommendation=e.isRecommendation??!1,t}};function V(){return{name:"",description:"",picture:new Uint8Array,collaborative:!1,pl3Version:"",deletedByOwner:!1,clientId:"",format:"",formatAttributes:[],pictureSize:[]}}const G={encode(e,t=r().Writer.create()){if(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.description&&""!==e.description&&t.uint32(18).string(e.description),void 0!==e.picture&&0!==e.picture.length&&t.uint32(26).bytes(e.picture),!0===e.collaborative&&t.uint32(32).bool(e.collaborative),void 0!==e.pl3Version&&""!==e.pl3Version&&t.uint32(42).string(e.pl3Version),!0===e.deletedByOwner&&t.uint32(48).bool(e.deletedByOwner),void 0!==e.clientId&&""!==e.clientId&&t.uint32(82).string(e.clientId),void 0!==e.format&&""!==e.format&&t.uint32(90).string(e.format),void 0!==e.formatAttributes&&0!==e.formatAttributes.length)for(const n of e.formatAttributes)F.encode(n,t.uint32(98).fork()).ldelim();if(void 0!==e.pictureSize&&0!==e.pictureSize.length)for(const n of e.pictureSize)U.encode(n,t.uint32(106).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=V();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.name=n.string();break;case 2:i.description=n.string();break;case 3:i.picture=n.bytes();break;case 4:i.collaborative=n.bool();break;case 5:i.pl3Version=n.string();break;case 6:i.deletedByOwner=n.bool();break;case 10:i.clientId=n.string();break;case 11:i.format=n.string();break;case 12:i.formatAttributes.push(F.decode(n,n.uint32()));break;case 13:i.pictureSize.push(U.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({name:ge(e.name)?String(e.name):"",description:ge(e.description)?String(e.description):"",picture:ge(e.picture)?fe(e.picture):new Uint8Array,collaborative:!!ge(e.collaborative)&&Boolean(e.collaborative),pl3Version:ge(e.pl3Version)?String(e.pl3Version):"",deletedByOwner:!!ge(e.deletedByOwner)&&Boolean(e.deletedByOwner),clientId:ge(e.clientId)?String(e.clientId):"",format:ge(e.format)?String(e.format):"",formatAttributes:Array.isArray(e?.formatAttributes)?e.formatAttributes.map((e=>F.fromJSON(e))):[],pictureSize:Array.isArray(e?.pictureSize)?e.pictureSize.map((e=>U.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.picture&&(t.picture=he(void 0!==e.picture?e.picture:new Uint8Array)),void 0!==e.collaborative&&(t.collaborative=e.collaborative),void 0!==e.pl3Version&&(t.pl3Version=e.pl3Version),void 0!==e.deletedByOwner&&(t.deletedByOwner=e.deletedByOwner),void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.format&&(t.format=e.format),e.formatAttributes?t.formatAttributes=e.formatAttributes.map((e=>e?F.toJSON(e):void 0)):t.formatAttributes=[],e.pictureSize?t.pictureSize=e.pictureSize.map((e=>e?U.toJSON(e):void 0)):t.pictureSize=[],t},fromPartial(e){const t=V();return t.name=e.name??"",t.description=e.description??"",t.picture=e.picture??new Uint8Array,t.collaborative=e.collaborative??!1,t.pl3Version=e.pl3Version??"",t.deletedByOwner=e.deletedByOwner??!1,t.clientId=e.clientId??"",t.format=e.format??"",t.formatAttributes=e.formatAttributes?.map((e=>F.fromPartial(e)))||[],t.pictureSize=e.pictureSize?.map((e=>U.fromPartial(e)))||[],t}};function J(){return{addedBy:"",timestamp:"0",seenAt:"0",public:!1,formatAttributes:[],itemId:new Uint8Array,sourceLens:void 0,availableSignals:[],recommendationInfo:void 0}}const j={encode(e,t=r().Writer.create()){if(void 0!==e.addedBy&&""!==e.addedBy&&t.uint32(10).string(e.addedBy),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(16).int64(e.timestamp),void 0!==e.seenAt&&"0"!==e.seenAt&&t.uint32(72).int64(e.seenAt),!0===e.public&&t.uint32(80).bool(e.public),void 0!==e.formatAttributes&&0!==e.formatAttributes.length)for(const n of e.formatAttributes)F.encode(n,t.uint32(90).fork()).ldelim();if(void 0!==e.itemId&&0!==e.itemId.length&&t.uint32(98).bytes(e.itemId),void 0!==e.sourceLens&&a.encode(e.sourceLens,t.uint32(106).fork()).ldelim(),void 0!==e.availableSignals&&0!==e.availableSignals.length)for(const n of e.availableSignals)_.encode(n,t.uint32(114).fork()).ldelim();return void 0!==e.recommendationInfo&&B.encode(e.recommendationInfo,t.uint32(122).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=J();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.addedBy=n.string();break;case 2:i.timestamp=me(n.int64());break;case 9:i.seenAt=me(n.int64());break;case 10:i.public=n.bool();break;case 11:i.formatAttributes.push(F.decode(n,n.uint32()));break;case 12:i.itemId=n.bytes();break;case 13:i.sourceLens=a.decode(n,n.uint32());break;case 14:i.availableSignals.push(_.decode(n,n.uint32()));break;case 15:i.recommendationInfo=B.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({addedBy:ge(e.addedBy)?String(e.addedBy):"",timestamp:ge(e.timestamp)?String(e.timestamp):"0",seenAt:ge(e.seenAt)?String(e.seenAt):"0",public:!!ge(e.public)&&Boolean(e.public),formatAttributes:Array.isArray(e?.formatAttributes)?e.formatAttributes.map((e=>F.fromJSON(e))):[],itemId:ge(e.itemId)?fe(e.itemId):new Uint8Array,sourceLens:ge(e.sourceLens)?a.fromJSON(e.sourceLens):void 0,availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>_.fromJSON(e))):[],recommendationInfo:ge(e.recommendationInfo)?B.fromJSON(e.recommendationInfo):void 0}),toJSON(e){const t={};return void 0!==e.addedBy&&(t.addedBy=e.addedBy),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.seenAt&&(t.seenAt=e.seenAt),void 0!==e.public&&(t.public=e.public),e.formatAttributes?t.formatAttributes=e.formatAttributes.map((e=>e?F.toJSON(e):void 0)):t.formatAttributes=[],void 0!==e.itemId&&(t.itemId=he(void 0!==e.itemId?e.itemId:new Uint8Array)),void 0!==e.sourceLens&&(t.sourceLens=e.sourceLens?a.toJSON(e.sourceLens):void 0),e.availableSignals?t.availableSignals=e.availableSignals.map((e=>e?_.toJSON(e):void 0)):t.availableSignals=[],void 0!==e.recommendationInfo&&(t.recommendationInfo=e.recommendationInfo?B.toJSON(e.recommendationInfo):void 0),t},fromPartial(e){const t=J();return t.addedBy=e.addedBy??"",t.timestamp=e.timestamp??"0",t.seenAt=e.seenAt??"0",t.public=e.public??!1,t.formatAttributes=e.formatAttributes?.map((e=>F.fromPartial(e)))||[],t.itemId=e.itemId??new Uint8Array,t.sourceLens=void 0!==e.sourceLens&&null!==e.sourceLens?a.fromPartial(e.sourceLens):void 0,t.availableSignals=e.availableSignals?.map((e=>_.fromPartial(e)))||[],t.recommendationInfo=void 0!==e.recommendationInfo&&null!==e.recommendationInfo?B.fromPartial(e.recommendationInfo):void 0,t}};const H={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.encode(n,t.uint32(18).fork()).ldelim();return!0===e.addLast&&t.uint32(32).bool(e.addLast),!0===e.addFirst&&t.uint32(40).bool(e.addFirst),void 0!==e.addBeforeItem&&w.encode(e.addBeforeItem,t.uint32(50).fork()).ldelim(),void 0!==e.addAfterItem&&w.encode(e.addAfterItem,t.uint32(58).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.fromIndex=n.int32();break;case 2:i.items.push(w.decode(n,n.uint32()));break;case 4:i.addLast=n.bool();break;case 5:i.addFirst=n.bool();break;case 6:i.addBeforeItem=w.decode(n,n.uint32());break;case 7:i.addAfterItem=w.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromIndex:ge(e.fromIndex)?Number(e.fromIndex):0,items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],addLast:!!ge(e.addLast)&&Boolean(e.addLast),addFirst:!!ge(e.addFirst)&&Boolean(e.addFirst),addBeforeItem:ge(e.addBeforeItem)?w.fromJSON(e.addBeforeItem):void 0,addAfterItem:ge(e.addAfterItem)?w.fromJSON(e.addAfterItem):void 0}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],void 0!==e.addLast&&(t.addLast=e.addLast),void 0!==e.addFirst&&(t.addFirst=e.addFirst),void 0!==e.addBeforeItem&&(t.addBeforeItem=e.addBeforeItem?w.toJSON(e.addBeforeItem):void 0),void 0!==e.addAfterItem&&(t.addAfterItem=e.addAfterItem?w.toJSON(e.addAfterItem):void 0),t},fromPartial(e){const t={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};return t.fromIndex=e.fromIndex??0,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.addLast=e.addLast??!1,t.addFirst=e.addFirst??!1,t.addBeforeItem=void 0!==e.addBeforeItem&&null!==e.addBeforeItem?w.fromPartial(e.addBeforeItem):void 0,t.addAfterItem=void 0!==e.addAfterItem&&null!==e.addAfterItem?w.fromPartial(e.addAfterItem):void 0,t}};const K={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.encode(n,t.uint32(26).fork()).ldelim();return!0===e.itemsAsKey&&t.uint32(56).bool(e.itemsAsKey),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={fromIndex:0,length:0,items:[],itemsAsKey:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.fromIndex=n.int32();break;case 2:i.length=n.int32();break;case 3:i.items.push(w.decode(n,n.uint32()));break;case 7:i.itemsAsKey=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromIndex:ge(e.fromIndex)?Number(e.fromIndex):0,length:ge(e.length)?Number(e.length):0,items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],itemsAsKey:!!ge(e.itemsAsKey)&&Boolean(e.itemsAsKey)}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),void 0!==e.length&&(t.length=Math.round(e.length)),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],void 0!==e.itemsAsKey&&(t.itemsAsKey=e.itemsAsKey),t},fromPartial(e){const t={fromIndex:0,length:0,items:[],itemsAsKey:!1};return t.fromIndex=e.fromIndex??0,t.length=e.length??0,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.itemsAsKey=e.itemsAsKey??!1,t}};const Y={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.toIndex&&0!==e.toIndex&&t.uint32(24).int32(e.toIndex),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.encode(n,t.uint32(34).fork()).ldelim();return void 0!==e.addBeforeItem&&w.encode(e.addBeforeItem,t.uint32(42).fork()).ldelim(),void 0!==e.addAfterItem&&w.encode(e.addAfterItem,t.uint32(50).fork()).ldelim(),!0===e.addFirst&&t.uint32(56).bool(e.addFirst),!0===e.addLast&&t.uint32(64).bool(e.addLast),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.fromIndex=n.int32();break;case 2:i.length=n.int32();break;case 3:i.toIndex=n.int32();break;case 4:i.items.push(w.decode(n,n.uint32()));break;case 5:i.addBeforeItem=w.decode(n,n.uint32());break;case 6:i.addAfterItem=w.decode(n,n.uint32());break;case 7:i.addFirst=n.bool();break;case 8:i.addLast=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromIndex:ge(e.fromIndex)?Number(e.fromIndex):0,length:ge(e.length)?Number(e.length):0,toIndex:ge(e.toIndex)?Number(e.toIndex):0,items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],addBeforeItem:ge(e.addBeforeItem)?w.fromJSON(e.addBeforeItem):void 0,addAfterItem:ge(e.addAfterItem)?w.fromJSON(e.addAfterItem):void 0,addFirst:!!ge(e.addFirst)&&Boolean(e.addFirst),addLast:!!ge(e.addLast)&&Boolean(e.addLast)}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.toIndex&&(t.toIndex=Math.round(e.toIndex)),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],void 0!==e.addBeforeItem&&(t.addBeforeItem=e.addBeforeItem?w.toJSON(e.addBeforeItem):void 0),void 0!==e.addAfterItem&&(t.addAfterItem=e.addAfterItem?w.toJSON(e.addAfterItem):void 0),void 0!==e.addFirst&&(t.addFirst=e.addFirst),void 0!==e.addLast&&(t.addLast=e.addLast),t},fromPartial(e){const t={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};return t.fromIndex=e.fromIndex??0,t.length=e.length??0,t.toIndex=e.toIndex??0,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.addBeforeItem=void 0!==e.addBeforeItem&&null!==e.addBeforeItem?w.fromPartial(e.addBeforeItem):void 0,t.addAfterItem=void 0!==e.addAfterItem&&null!==e.addAfterItem?w.fromPartial(e.addAfterItem):void 0,t.addFirst=e.addFirst??!1,t.addLast=e.addLast??!1,t}};const W={encode(e,t=r().Writer.create()){if(void 0!==e.values&&j.encode(e.values,t.uint32(10).fork()).ldelim(),void 0!==e.noValue&&0!==e.noValue.length){t.uint32(18).fork();for(const n of e.noValue)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={values:void 0,noValue:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.values=j.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.noValue.push(n.int32())}else i.noValue.push(n.int32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({values:ge(e.values)?j.fromJSON(e.values):void 0,noValue:Array.isArray(e?.noValue)?e.noValue.map((e=>function(e){switch(e){case 0:case"ITEM_UNKNOWN":return P.ITEM_UNKNOWN;case 1:case"ITEM_ADDED_BY":return P.ITEM_ADDED_BY;case 2:case"ITEM_TIMESTAMP":return P.ITEM_TIMESTAMP;case 9:case"ITEM_SEEN_AT":return P.ITEM_SEEN_AT;case 10:case"ITEM_PUBLIC":return P.ITEM_PUBLIC;case 11:case"ITEM_FORMAT_ATTRIBUTES":return P.ITEM_FORMAT_ATTRIBUTES;case 12:case"ITEM_ID":return P.ITEM_ID;case 13:case"ITEM_SOURCE_LENS":return P.ITEM_SOURCE_LENS;case 14:case"ITEM_AVAILABLE_SIGNALS":return P.ITEM_AVAILABLE_SIGNALS;case 15:case"ITEM_RECOMMENDATION_INFO":return P.ITEM_RECOMMENDATION_INFO;default:return P.UNRECOGNIZED}}(e))):[]}),toJSON(e){const t={};return void 0!==e.values&&(t.values=e.values?j.toJSON(e.values):void 0),e.noValue?t.noValue=e.noValue.map((e=>function(e){switch(e){case P.ITEM_UNKNOWN:return 0;case P.ITEM_ADDED_BY:return 1;case P.ITEM_TIMESTAMP:return 2;case P.ITEM_SEEN_AT:return 9;case P.ITEM_PUBLIC:return 10;case P.ITEM_FORMAT_ATTRIBUTES:return 11;case P.ITEM_ID:return 12;case P.ITEM_SOURCE_LENS:return 13;case P.ITEM_AVAILABLE_SIGNALS:return 14;case P.ITEM_RECOMMENDATION_INFO:return 15;case P.UNRECOGNIZED:default:return-1}}(e))):t.noValue=[],t},fromPartial(e){const t={values:void 0,noValue:[]};return t.values=void 0!==e.values&&null!==e.values?j.fromPartial(e.values):void 0,t.noValue=e.noValue?.map((e=>e))||[],t}};const z={encode(e,t=r().Writer.create()){if(void 0!==e.values&&G.encode(e.values,t.uint32(10).fork()).ldelim(),void 0!==e.noValue&&0!==e.noValue.length){t.uint32(18).fork();for(const n of e.noValue)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={values:void 0,noValue:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.values=G.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.noValue.push(n.int32())}else i.noValue.push(n.int32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({values:ge(e.values)?G.fromJSON(e.values):void 0,noValue:Array.isArray(e?.noValue)?e.noValue.map((e=>function(e){switch(e){case 0:case"LIST_UNKNOWN":return T.LIST_UNKNOWN;case 1:case"LIST_NAME":return T.LIST_NAME;case 2:case"LIST_DESCRIPTION":return T.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return T.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return T.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return T.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return T.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return T.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return T.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return T.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return T.LIST_PICTURE_SIZE;default:return T.UNRECOGNIZED}}(e))):[]}),toJSON(e){const t={};return void 0!==e.values&&(t.values=e.values?G.toJSON(e.values):void 0),e.noValue?t.noValue=e.noValue.map((e=>function(e){switch(e){case T.LIST_UNKNOWN:return 0;case T.LIST_NAME:return 1;case T.LIST_DESCRIPTION:return 2;case T.LIST_PICTURE:return 3;case T.LIST_COLLABORATIVE:return 4;case T.LIST_PL3_VERSION:return 5;case T.LIST_DELETED_BY_OWNER:return 6;case T.LIST_CLIENT_ID:return 10;case T.LIST_FORMAT:return 11;case T.LIST_FORMAT_ATTRIBUTES:return 12;case T.LIST_PICTURE_SIZE:return 13;case T.UNRECOGNIZED:default:return-1}}(e))):t.noValue=[],t},fromPartial(e){const t={values:void 0,noValue:[]};return t.values=void 0!==e.values&&null!==e.values?G.fromPartial(e.values):void 0,t.noValue=e.noValue?.map((e=>e))||[],t}};const q={encode:(e,t=r().Writer.create())=>(void 0!==e.index&&0!==e.index&&t.uint32(8).int32(e.index),void 0!==e.newAttributes&&W.encode(e.newAttributes,t.uint32(18).fork()).ldelim(),void 0!==e.oldAttributes&&W.encode(e.oldAttributes,t.uint32(26).fork()).ldelim(),void 0!==e.item&&w.encode(e.item,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.index=n.int32();break;case 2:i.newAttributes=W.decode(n,n.uint32());break;case 3:i.oldAttributes=W.decode(n,n.uint32());break;case 4:i.item=w.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({index:ge(e.index)?Number(e.index):0,newAttributes:ge(e.newAttributes)?W.fromJSON(e.newAttributes):void 0,oldAttributes:ge(e.oldAttributes)?W.fromJSON(e.oldAttributes):void 0,item:ge(e.item)?w.fromJSON(e.item):void 0}),toJSON(e){const t={};return void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?W.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?W.toJSON(e.oldAttributes):void 0),void 0!==e.item&&(t.item=e.item?w.toJSON(e.item):void 0),t},fromPartial(e){const t={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};return t.index=e.index??0,t.newAttributes=void 0!==e.newAttributes&&null!==e.newAttributes?W.fromPartial(e.newAttributes):void 0,t.oldAttributes=void 0!==e.oldAttributes&&null!==e.oldAttributes?W.fromPartial(e.oldAttributes):void 0,t.item=void 0!==e.item&&null!==e.item?w.fromPartial(e.item):void 0,t}};const X={encode:(e,t=r().Writer.create())=>(void 0!==e.newAttributes&&z.encode(e.newAttributes,t.uint32(10).fork()).ldelim(),void 0!==e.oldAttributes&&z.encode(e.oldAttributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={newAttributes:void 0,oldAttributes:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.newAttributes=z.decode(n,n.uint32());break;case 2:i.oldAttributes=z.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({newAttributes:ge(e.newAttributes)?z.fromJSON(e.newAttributes):void 0,oldAttributes:ge(e.oldAttributes)?z.fromJSON(e.oldAttributes):void 0}),toJSON(e){const t={};return void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?z.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?z.toJSON(e.oldAttributes):void 0),t},fromPartial(e){const t={newAttributes:void 0,oldAttributes:void 0};return t.newAttributes=void 0!==e.newAttributes&&null!==e.newAttributes?z.fromPartial(e.newAttributes):void 0,t.oldAttributes=void 0!==e.oldAttributes&&null!==e.oldAttributes?z.fromPartial(e.oldAttributes):void 0,t}};const Z={encode:(e,t=r().Writer.create())=>(void 0!==e.kind&&0!==e.kind&&t.uint32(8).int32(e.kind),void 0!==e.add&&H.encode(e.add,t.uint32(18).fork()).ldelim(),void 0!==e.rem&&K.encode(e.rem,t.uint32(26).fork()).ldelim(),void 0!==e.mov&&Y.encode(e.mov,t.uint32(34).fork()).ldelim(),void 0!==e.updateItemAttributes&&q.encode(e.updateItemAttributes,t.uint32(42).fork()).ldelim(),void 0!==e.updateListAttributes&&X.encode(e.updateListAttributes,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={kind:0,add:void 0,rem:void 0,mov:void 0,updateItemAttributes:void 0,updateListAttributes:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.kind=n.int32();break;case 2:i.add=H.decode(n,n.uint32());break;case 3:i.rem=K.decode(n,n.uint32());break;case 4:i.mov=Y.decode(n,n.uint32());break;case 5:i.updateItemAttributes=q.decode(n,n.uint32());break;case 6:i.updateListAttributes=X.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({kind:ge(e.kind)?L(e.kind):0,add:ge(e.add)?H.fromJSON(e.add):void 0,rem:ge(e.rem)?K.fromJSON(e.rem):void 0,mov:ge(e.mov)?Y.fromJSON(e.mov):void 0,updateItemAttributes:ge(e.updateItemAttributes)?q.fromJSON(e.updateItemAttributes):void 0,updateListAttributes:ge(e.updateListAttributes)?X.fromJSON(e.updateListAttributes):void 0}),toJSON(e){const t={};return void 0!==e.kind&&(t.kind=function(e){switch(e){case R.KIND_UNKNOWN:return 0;case R.ADD:return 2;case R.REM:return 3;case R.MOV:return 4;case R.UPDATE_ITEM_ATTRIBUTES:return 5;case R.UPDATE_LIST_ATTRIBUTES:return 6;case R.UNRECOGNIZED:default:return-1}}(e.kind)),void 0!==e.add&&(t.add=e.add?H.toJSON(e.add):void 0),void 0!==e.rem&&(t.rem=e.rem?K.toJSON(e.rem):void 0),void 0!==e.mov&&(t.mov=e.mov?Y.toJSON(e.mov):void 0),void 0!==e.updateItemAttributes&&(t.updateItemAttributes=e.updateItemAttributes?q.toJSON(e.updateItemAttributes):void 0),void 0!==e.updateListAttributes&&(t.updateListAttributes=e.updateListAttributes?X.toJSON(e.updateListAttributes):void 0),t},fromPartial(e){const t={kind:0,add:void 0,rem:void 0,mov:void 0,updateItemAttributes:void 0,updateListAttributes:void 0};return t.kind=e.kind??0,t.add=void 0!==e.add&&null!==e.add?H.fromPartial(e.add):void 0,t.rem=void 0!==e.rem&&null!==e.rem?K.fromPartial(e.rem):void 0,t.mov=void 0!==e.mov&&null!==e.mov?Y.fromPartial(e.mov):void 0,t.updateItemAttributes=void 0!==e.updateItemAttributes&&null!==e.updateItemAttributes?q.fromPartial(e.updateItemAttributes):void 0,t.updateListAttributes=void 0!==e.updateListAttributes&&null!==e.updateListAttributes?X.fromPartial(e.updateListAttributes):void 0,t}};const Q={encode(e,t=r().Writer.create()){if(void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)Z.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={ops:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.ops.push(Z.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({ops:Array.isArray(e?.ops)?e.ops.map((e=>Z.fromJSON(e))):[]}),toJSON(e){const t={};return e.ops?t.ops=e.ops.map((e=>e?Z.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t={ops:[]};return t.ops=e.ops?.map((e=>Z.fromPartial(e)))||[],t}};const $={encode:(e,t=r().Writer.create())=>(void 0!==e.user&&""!==e.user&&t.uint32(10).string(e.user),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(16).int64(e.timestamp),!0===e.admin&&t.uint32(24).bool(e.admin),!0===e.undo&&t.uint32(32).bool(e.undo),!0===e.redo&&t.uint32(40).bool(e.redo),!0===e.merge&&t.uint32(48).bool(e.merge),!0===e.compressed&&t.uint32(56).bool(e.compressed),!0===e.migration&&t.uint32(64).bool(e.migration),void 0!==e.splitId&&0!==e.splitId&&t.uint32(72).int32(e.splitId),void 0!==e.source&&ee.encode(e.source,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={user:"",timestamp:"0",admin:!1,undo:!1,redo:!1,merge:!1,compressed:!1,migration:!1,splitId:0,source:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.user=n.string();break;case 2:i.timestamp=me(n.int64());break;case 3:i.admin=n.bool();break;case 4:i.undo=n.bool();break;case 5:i.redo=n.bool();break;case 6:i.merge=n.bool();break;case 7:i.compressed=n.bool();break;case 8:i.migration=n.bool();break;case 9:i.splitId=n.int32();break;case 10:i.source=ee.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({user:ge(e.user)?String(e.user):"",timestamp:ge(e.timestamp)?String(e.timestamp):"0",admin:!!ge(e.admin)&&Boolean(e.admin),undo:!!ge(e.undo)&&Boolean(e.undo),redo:!!ge(e.redo)&&Boolean(e.redo),merge:!!ge(e.merge)&&Boolean(e.merge),compressed:!!ge(e.compressed)&&Boolean(e.compressed),migration:!!ge(e.migration)&&Boolean(e.migration),splitId:ge(e.splitId)?Number(e.splitId):0,source:ge(e.source)?ee.fromJSON(e.source):void 0}),toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.undo&&(t.undo=e.undo),void 0!==e.redo&&(t.redo=e.redo),void 0!==e.merge&&(t.merge=e.merge),void 0!==e.compressed&&(t.compressed=e.compressed),void 0!==e.migration&&(t.migration=e.migration),void 0!==e.splitId&&(t.splitId=Math.round(e.splitId)),void 0!==e.source&&(t.source=e.source?ee.toJSON(e.source):void 0),t},fromPartial(e){const t={user:"",timestamp:"0",admin:!1,undo:!1,redo:!1,merge:!1,compressed:!1,migration:!1,splitId:0,source:void 0};return t.user=e.user??"",t.timestamp=e.timestamp??"0",t.admin=e.admin??!1,t.undo=e.undo??!1,t.redo=e.redo??!1,t.merge=e.merge??!1,t.compressed=e.compressed??!1,t.migration=e.migration??!1,t.splitId=e.splitId??0,t.source=void 0!==e.source&&null!==e.source?ee.fromPartial(e.source):void 0,t}};const ee={encode:(e,t=r().Writer.create())=>(void 0!==e.client&&0!==e.client&&t.uint32(8).int32(e.client),void 0!==e.app&&""!==e.app&&t.uint32(26).string(e.app),void 0!==e.source&&""!==e.source&&t.uint32(34).string(e.source),void 0!==e.version&&""!==e.version&&t.uint32(42).string(e.version),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={client:0,app:"",source:"",version:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.client=n.int32();break;case 3:i.app=n.string();break;case 4:i.source=n.string();break;case 5:i.version=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({client:ge(e.client)?N(e.client):0,app:ge(e.app)?String(e.app):"",source:ge(e.source)?String(e.source):"",version:ge(e.version)?String(e.version):""}),toJSON(e){const t={};return void 0!==e.client&&(t.client=function(e){switch(e){case I.CLIENT_UNKNOWN:return 0;case I.NATIVE_HERMES:return 1;case I.CLIENT:return 2;case I.PYTHON:return 3;case I.JAVA:return 4;case I.WEBPLAYER:return 5;case I.LIBSPOTIFY:return 6;case I.UNRECOGNIZED:default:return-1}}(e.client)),void 0!==e.app&&(t.app=e.app),void 0!==e.source&&(t.source=e.source),void 0!==e.version&&(t.version=e.version),t},fromPartial(e){const t={client:0,app:"",source:"",version:""};return t.client=e.client??0,t.app=e.app??"",t.source=e.source??"",t.version=e.version??"",t}};function te(){return{baseVersion:new Uint8Array,ops:[],info:void 0}}const ne={encode(e,t=r().Writer.create()){if(void 0!==e.baseVersion&&0!==e.baseVersion.length&&t.uint32(10).bytes(e.baseVersion),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)Z.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.info&&$.encode(e.info,t.uint32(34).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=te();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.baseVersion=n.bytes();break;case 2:i.ops.push(Z.decode(n,n.uint32()));break;case 4:i.info=$.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({baseVersion:ge(e.baseVersion)?fe(e.baseVersion):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>Z.fromJSON(e))):[],info:ge(e.info)?$.fromJSON(e.info):void 0}),toJSON(e){const t={};return void 0!==e.baseVersion&&(t.baseVersion=he(void 0!==e.baseVersion?e.baseVersion:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?Z.toJSON(e):void 0)):t.ops=[],void 0!==e.info&&(t.info=e.info?$.toJSON(e.info):void 0),t},fromPartial(e){const t=te();return t.baseVersion=e.baseVersion??new Uint8Array,t.ops=e.ops?.map((e=>Z.fromPartial(e)))||[],t.info=void 0!==e.info&&null!==e.info?$.fromPartial(e.info):void 0,t}};function oe(){return{fromRevision:new Uint8Array,ops:[],toRevision:new Uint8Array}}const ie={encode(e,t=r().Writer.create()){if(void 0!==e.fromRevision&&0!==e.fromRevision.length&&t.uint32(10).bytes(e.fromRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)Z.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.toRevision&&0!==e.toRevision.length&&t.uint32(26).bytes(e.toRevision),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=oe();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.fromRevision=n.bytes();break;case 2:i.ops.push(Z.decode(n,n.uint32()));break;case 3:i.toRevision=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromRevision:ge(e.fromRevision)?fe(e.fromRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>Z.fromJSON(e))):[],toRevision:ge(e.toRevision)?fe(e.toRevision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.fromRevision&&(t.fromRevision=he(void 0!==e.fromRevision?e.fromRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?Z.toJSON(e):void 0)):t.ops=[],void 0!==e.toRevision&&(t.toRevision=he(void 0!==e.toRevision?e.toRevision:new Uint8Array)),t},fromPartial(e){const t=oe();return t.fromRevision=e.fromRevision??new Uint8Array,t.ops=e.ops?.map((e=>Z.fromPartial(e)))||[],t.toRevision=e.toRevision??new Uint8Array,t}};function re(){return{baseRevision:new Uint8Array,deltas:[],wantResultingRevisions:!1,wantSyncResult:!1,nonces:[]}}const ae={encode(e,t=r().Writer.create()){if(void 0!==e.baseRevision&&0!==e.baseRevision.length&&t.uint32(10).bytes(e.baseRevision),void 0!==e.deltas&&0!==e.deltas.length)for(const n of e.deltas)ne.encode(n,t.uint32(18).fork()).ldelim();if(!0===e.wantResultingRevisions&&t.uint32(24).bool(e.wantResultingRevisions),!0===e.wantSyncResult&&t.uint32(32).bool(e.wantSyncResult),void 0!==e.nonces&&0!==e.nonces.length){t.uint32(50).fork();for(const n of e.nonces)t.int64(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=re();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.baseRevision=n.bytes();break;case 2:i.deltas.push(ne.decode(n,n.uint32()));break;case 3:i.wantResultingRevisions=n.bool();break;case 4:i.wantSyncResult=n.bool();break;case 6:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.nonces.push(me(n.int64()))}else i.nonces.push(me(n.int64()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({baseRevision:ge(e.baseRevision)?fe(e.baseRevision):new Uint8Array,deltas:Array.isArray(e?.deltas)?e.deltas.map((e=>ne.fromJSON(e))):[],wantResultingRevisions:!!ge(e.wantResultingRevisions)&&Boolean(e.wantResultingRevisions),wantSyncResult:!!ge(e.wantSyncResult)&&Boolean(e.wantSyncResult),nonces:Array.isArray(e?.nonces)?e.nonces.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.baseRevision&&(t.baseRevision=he(void 0!==e.baseRevision?e.baseRevision:new Uint8Array)),e.deltas?t.deltas=e.deltas.map((e=>e?ne.toJSON(e):void 0)):t.deltas=[],void 0!==e.wantResultingRevisions&&(t.wantResultingRevisions=e.wantResultingRevisions),void 0!==e.wantSyncResult&&(t.wantSyncResult=e.wantSyncResult),e.nonces?t.nonces=e.nonces.map((e=>e)):t.nonces=[],t},fromPartial(e){const t=re();return t.baseRevision=e.baseRevision??new Uint8Array,t.deltas=e.deltas?.map((e=>ne.fromPartial(e)))||[],t.wantResultingRevisions=e.wantResultingRevisions??!1,t.wantSyncResult=e.wantSyncResult??!1,t.nonces=e.nonces?.map((e=>e))||[],t}};function se(){return{revision:new Uint8Array,length:0,attributes:void 0,contents:void 0,diff:void 0,syncResult:void 0,resultingRevisions:[],multipleHeads:!1,upToDate:!1,nonces:[],timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1,capabilities:void 0,geoblock:[],changesRequireResync:!1,createdAt:"0",appliedLenses:void 0}}const le={encode(e,t=r().Writer.create()){if(void 0!==e.revision&&0!==e.revision.length&&t.uint32(10).bytes(e.revision),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.attributes&&G.encode(e.attributes,t.uint32(26).fork()).ldelim(),void 0!==e.contents&&x.encode(e.contents,t.uint32(42).fork()).ldelim(),void 0!==e.diff&&ie.encode(e.diff,t.uint32(50).fork()).ldelim(),void 0!==e.syncResult&&ie.encode(e.syncResult,t.uint32(58).fork()).ldelim(),void 0!==e.resultingRevisions&&0!==e.resultingRevisions.length)for(const n of e.resultingRevisions)t.uint32(66).bytes(n);if(!0===e.multipleHeads&&t.uint32(72).bool(e.multipleHeads),!0===e.upToDate&&t.uint32(80).bool(e.upToDate),void 0!==e.nonces&&0!==e.nonces.length){t.uint32(114).fork();for(const n of e.nonces)t.int64(n);t.ldelim()}if(void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(120).int64(e.timestamp),void 0!==e.ownerUsername&&""!==e.ownerUsername&&t.uint32(130).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(136).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&m.encode(e.capabilities,t.uint32(146).fork()).ldelim(),void 0!==e.geoblock&&0!==e.geoblock.length){t.uint32(154).fork();for(const n of e.geoblock)t.int32(n);t.ldelim()}return!0===e.changesRequireResync&&t.uint32(160).bool(e.changesRequireResync),void 0!==e.createdAt&&"0"!==e.createdAt&&t.uint32(168).int64(e.createdAt),void 0!==e.appliedLenses&&ce.encode(e.appliedLenses,t.uint32(178).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=se();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.revision=n.bytes();break;case 2:i.length=n.int32();break;case 3:i.attributes=G.decode(n,n.uint32());break;case 5:i.contents=x.decode(n,n.uint32());break;case 6:i.diff=ie.decode(n,n.uint32());break;case 7:i.syncResult=ie.decode(n,n.uint32());break;case 8:i.resultingRevisions.push(n.bytes());break;case 9:i.multipleHeads=n.bool();break;case 10:i.upToDate=n.bool();break;case 14:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.nonces.push(me(n.int64()))}else i.nonces.push(me(n.int64()));break;case 15:i.timestamp=me(n.int64());break;case 16:i.ownerUsername=n.string();break;case 17:i.abuseReportingEnabled=n.bool();break;case 18:i.capabilities=m.decode(n,n.uint32());break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos<e;)i.geoblock.push(n.int32())}else i.geoblock.push(n.int32());break;case 20:i.changesRequireResync=n.bool();break;case 21:i.createdAt=me(n.int64());break;case 22:i.appliedLenses=ce.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({revision:ge(e.revision)?fe(e.revision):new Uint8Array,length:ge(e.length)?Number(e.length):0,attributes:ge(e.attributes)?G.fromJSON(e.attributes):void 0,contents:ge(e.contents)?x.fromJSON(e.contents):void 0,diff:ge(e.diff)?ie.fromJSON(e.diff):void 0,syncResult:ge(e.syncResult)?ie.fromJSON(e.syncResult):void 0,resultingRevisions:Array.isArray(e?.resultingRevisions)?e.resultingRevisions.map((e=>fe(e))):[],multipleHeads:!!ge(e.multipleHeads)&&Boolean(e.multipleHeads),upToDate:!!ge(e.upToDate)&&Boolean(e.upToDate),nonces:Array.isArray(e?.nonces)?e.nonces.map((e=>String(e))):[],timestamp:ge(e.timestamp)?String(e.timestamp):"0",ownerUsername:ge(e.ownerUsername)?String(e.ownerUsername):"",abuseReportingEnabled:!!ge(e.abuseReportingEnabled)&&Boolean(e.abuseReportingEnabled),capabilities:ge(e.capabilities)?m.fromJSON(e.capabilities):void 0,geoblock:Array.isArray(e?.geoblock)?e.geoblock.map((e=>C(e))):[],changesRequireResync:!!ge(e.changesRequireResync)&&Boolean(e.changesRequireResync),createdAt:ge(e.createdAt)?String(e.createdAt):"0",appliedLenses:ge(e.appliedLenses)?ce.fromJSON(e.appliedLenses):void 0}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=he(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.attributes&&(t.attributes=e.attributes?G.toJSON(e.attributes):void 0),void 0!==e.contents&&(t.contents=e.contents?x.toJSON(e.contents):void 0),void 0!==e.diff&&(t.diff=e.diff?ie.toJSON(e.diff):void 0),void 0!==e.syncResult&&(t.syncResult=e.syncResult?ie.toJSON(e.syncResult):void 0),e.resultingRevisions?t.resultingRevisions=e.resultingRevisions.map((e=>he(void 0!==e?e:new Uint8Array))):t.resultingRevisions=[],void 0!==e.multipleHeads&&(t.multipleHeads=e.multipleHeads),void 0!==e.upToDate&&(t.upToDate=e.upToDate),e.nonces?t.nonces=e.nonces.map((e=>e)):t.nonces=[],void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.ownerUsername&&(t.ownerUsername=e.ownerUsername),void 0!==e.abuseReportingEnabled&&(t.abuseReportingEnabled=e.abuseReportingEnabled),void 0!==e.capabilities&&(t.capabilities=e.capabilities?m.toJSON(e.capabilities):void 0),e.geoblock?t.geoblock=e.geoblock.map((e=>k(e))):t.geoblock=[],void 0!==e.changesRequireResync&&(t.changesRequireResync=e.changesRequireResync),void 0!==e.createdAt&&(t.createdAt=e.createdAt),void 0!==e.appliedLenses&&(t.appliedLenses=e.appliedLenses?ce.toJSON(e.appliedLenses):void 0),t},fromPartial(e){const t=se();return t.revision=e.revision??new Uint8Array,t.length=e.length??0,t.attributes=void 0!==e.attributes&&null!==e.attributes?G.fromPartial(e.attributes):void 0,t.contents=void 0!==e.contents&&null!==e.contents?x.fromPartial(e.contents):void 0,t.diff=void 0!==e.diff&&null!==e.diff?ie.fromPartial(e.diff):void 0,t.syncResult=void 0!==e.syncResult&&null!==e.syncResult?ie.fromPartial(e.syncResult):void 0,t.resultingRevisions=e.resultingRevisions?.map((e=>e))||[],t.multipleHeads=e.multipleHeads??!1,t.upToDate=e.upToDate??!1,t.nonces=e.nonces?.map((e=>e))||[],t.timestamp=e.timestamp??"0",t.ownerUsername=e.ownerUsername??"",t.abuseReportingEnabled=e.abuseReportingEnabled??!1,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?m.fromPartial(e.capabilities):void 0,t.geoblock=e.geoblock?.map((e=>e))||[],t.changesRequireResync=e.changesRequireResync??!1,t.createdAt=e.createdAt??"0",t.appliedLenses=void 0!==e.appliedLenses&&null!==e.appliedLenses?ce.fromPartial(e.appliedLenses):void 0,t}};const ce={encode(e,t=r().Writer.create()){if(void 0!==e.states&&0!==e.states.length)for(const n of e.states)l.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={states:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.states.push(l.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({states:Array.isArray(e?.states)?e.states.map((e=>l.fromJSON(e))):[]}),toJSON(e){const t={};return e.states?t.states=e.states.map((e=>e?l.toJSON(e):void 0)):t.states=[],t},fromPartial(e){const t={states:[]};return t.states=e.states?.map((e=>l.fromPartial(e)))||[],t}};function ue(){return{uri:"",revision:new Uint8Array}}const de={encode:(e,t=r().Writer.create())=>(void 0!==e.uri&&""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.revision&&0!==e.revision.length&&t.uint32(18).bytes(e.revision),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=ue();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri=n.string();break;case 2:i.revision=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:ge(e.uri)?String(e.uri):"",revision:ge(e.revision)?fe(e.revision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.revision&&(t.revision=he(void 0!==e.revision?e.revision:new Uint8Array)),t},fromPartial(e){const t=ue();return t.uri=e.uri??"",t.revision=e.revision??new Uint8Array,t}};var pe=(()=>{if(void 0!==pe)return pe;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function fe(e){if(pe.Buffer)return Uint8Array.from(pe.Buffer.from(e,"base64"));{const t=pe.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function he(e){if(pe.Buffer)return pe.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),pe.btoa(t.join(""))}}function me(e){return e.toString()}function ge(e){return null!=e}r().util.Long!==o.Z&&(r().util.Long=o.Z,r().configure())},81595:(e,t,n)=>{"use strict";n.d(t,{bu:()=>u,mn:()=>l});var o=n(3959),i=n(33892),r=n.n(i),a=n(12101);function s(){return{uri:new Uint8Array,newRevision:new Uint8Array,parentRevision:new Uint8Array,ops:[]}}const l={encode(e,t=r().Writer.create()){if(void 0!==e.uri&&0!==e.uri.length&&t.uint32(10).bytes(e.uri),void 0!==e.newRevision&&0!==e.newRevision.length&&t.uint32(18).bytes(e.newRevision),void 0!==e.parentRevision&&0!==e.parentRevision.length&&t.uint32(26).bytes(e.parentRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)a.Op.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.uri=n.bytes();break;case 2:i.newRevision=n.bytes();break;case 3:i.parentRevision=n.bytes();break;case 4:i.ops.push(a.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:h(e.uri)?p(e.uri):new Uint8Array,newRevision:h(e.newRevision)?p(e.newRevision):new Uint8Array,parentRevision:h(e.parentRevision)?p(e.parentRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>a.Op.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=f(void 0!==e.uri?e.uri:new Uint8Array)),void 0!==e.newRevision&&(t.newRevision=f(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=f(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?a.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=s();return t.uri=e.uri??new Uint8Array,t.newRevision=e.newRevision??new Uint8Array,t.parentRevision=e.parentRevision??new Uint8Array,t.ops=e.ops?.map((e=>a.Op.fromPartial(e)))||[],t}};function c(){return{newRevision:new Uint8Array,parentRevision:new Uint8Array,ops:[]}}const u={encode(e,t=r().Writer.create()){if(void 0!==e.newRevision&&0!==e.newRevision.length&&t.uint32(10).bytes(e.newRevision),void 0!==e.parentRevision&&0!==e.parentRevision.length&&t.uint32(18).bytes(e.parentRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)a.Op.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=c();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.newRevision=n.bytes();break;case 2:i.parentRevision=n.bytes();break;case 3:i.ops.push(a.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({newRevision:h(e.newRevision)?p(e.newRevision):new Uint8Array,parentRevision:h(e.parentRevision)?p(e.parentRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>a.Op.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.newRevision&&(t.newRevision=f(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=f(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?a.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=c();return t.newRevision=e.newRevision??new Uint8Array,t.parentRevision=e.parentRevision??new Uint8Array,t.ops=e.ops?.map((e=>a.Op.fromPartial(e)))||[],t}};var d=(()=>{if(void 0!==d)return d;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function p(e){if(d.Buffer)return Uint8Array.from(d.Buffer.from(e,"base64"));{const t=d.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function f(e){if(d.Buffer)return d.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),d.btoa(t.join(""))}}function h(e){return null!=e}r().util.Long!==o.Z&&(r().util.Long=o.Z,r().configure())},89865:(e,t,n)=>{"use strict";n.d(t,{lb:()=>ee,jl:()=>b,pB:()=>Q,kI:()=>r,y8:()=>c,nK:()=>l,uS:()=>o});var o={};n.r(o),n.d(o,{Zc:()=>I,tI:()=>M,yV:()=>x});var i=n(51479);function r(e){let t=!0;const n=(0,i.h64)();return a((e=>{n.update(e),t=!1}),e),t?void 0:n.digest().toString(16)}function a(e,t){switch(typeof t){case"boolean":return void function(e,t){e(`boolean:${t}`)}(e,t);case"number":return void function(e,t){e(`number:${t}`)}(e,t);case"string":return void function(e,t){e(`string:${t.length}:${t}`)}(e,t);case"object":return null===t?void s(e):Array.isArray(t)?void function(e,t){e(`array:${t.length}:`);for(const n of t)void 0===n?s(e):a(e,n)}(e,t):"toJSON"in t&&"function"==typeof t.toJSON?void a(e,t.toJSON()):void function(e,t){const n=Object.keys(t).filter((e=>void 0!==t[e]));n.sort(),e(`object:${n.length}:`);for(const o of n)e(`${o}:`),a(e,t[o])}(e,t);default:return}}function s(e){e("null")}function l(e,t,n=new Error("Timeout")){return t===Number.POSITIVE_INFINITY?e:t<=0?Promise.reject(n):new Promise(((o,i)=>{setTimeout((()=>{i(n)}),t),e.then(o,i)}))}function c(e){return function(e){return null!==e&&"object"==typeof e}(e)&&"function"==typeof e.then}const u=["error","warn","info","debug"];const d="",p="[3",f=["0","1","2","3","4","5","6","7","8"],h="m";let m=e=>{console[e.level](function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return`${p}${f[Math.abs(t)%f.length]}${h}${e}${d}`}(e.name),e.msg,...e.args,e.data)};const g=()=>{};function v(e,t){const n=u.indexOf(t);return u.reduce(((t,o,i)=>(t[o]=i<=n?function(e,t){return(...n)=>{if("object"==typeof n[0]){const[o,i,...r]=n;return m({name:t,level:e,timestamp:Date.now(),data:Object.create(null,o),msg:i,args:r})}const[o,...i]=n;return m({name:t,level:e,timestamp:Date.now(),data:Object.create(null),msg:o,args:i})}}(o,e):g,t)),{})}const y=function(){let e;return e="undefined"!=typeof localStorage?localStorage.getItem("rcLogLevel"):{}.RC_LOG_LEVEL,e?"string"==typeof(t=e)&&u.includes(t)?e:"error":"error";var t}(),_=new Map;function b(e){const t=_.get(e);if(t)return t;const n=v(e,y);return _.set(e,n),n}var S=n(29168),E=n.n(S),A=n(92228),T=n.n(A);var P;!function(e){e[e.APP_PLATFORM_UNKNOWN=0]="APP_PLATFORM_UNKNOWN",e[e.APP_PLATFORM_ANDROID=1]="APP_PLATFORM_ANDROID",e[e.APP_PLATFORM_IOS=2]="APP_PLATFORM_IOS",e[e.APP_PLATFORM_WEB=3]="APP_PLATFORM_WEB",e[e.APP_PLATFORM_DESKTOP=4]="APP_PLATFORM_DESKTOP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(P||(P={}));const O={encode:(e,t=T().Writer.create())=>(""!==e.scope&&t.uint32(10).string(e.scope),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={scope:"",name:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.scope=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({scope:L(e.scope)?String(e.scope):"",name:L(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.scope&&(t.scope=e.scope),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){var t,n;const o={scope:"",name:""};return o.scope=null!==(t=e.scope)&&void 0!==t?t:"",o.name=null!==(n=e.name)&&void 0!==n?n:"",o}};const C={encode:(e,t=T().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),void 0!==e.staticContext&&k.encode(e.staticContext,t.uint32(26).fork()).ldelim(),void 0!==e.surfaceMetadata&&R.encode(e.surfaceMetadata,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.system=n.string();break;case 2:i.serviceName=n.string();break;case 3:i.staticContext=k.decode(n,n.uint32());break;case 10:i.surfaceMetadata=R.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({system:L(e.system)?String(e.system):"",serviceName:L(e.serviceName)?String(e.serviceName):"",staticContext:L(e.staticContext)?k.fromJSON(e.staticContext):void 0,surfaceMetadata:L(e.surfaceMetadata)?R.fromJSON(e.surfaceMetadata):void 0}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),void 0!==e.staticContext&&(t.staticContext=e.staticContext?k.toJSON(e.staticContext):void 0),void 0!==e.surfaceMetadata&&(t.surfaceMetadata=e.surfaceMetadata?R.toJSON(e.surfaceMetadata):void 0),t},fromPartial(e){var t,n;const o={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};return o.system=null!==(t=e.system)&&void 0!==t?t:"",o.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",o.staticContext=void 0!==e.staticContext&&null!==e.staticContext?k.fromPartial(e.staticContext):void 0,o.surfaceMetadata=void 0!==e.surfaceMetadata&&null!==e.surfaceMetadata?R.fromPartial(e.surfaceMetadata):void 0,o}};const k={encode:(e,t=T().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={system:"",serviceName:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.system=n.string();break;case 2:i.serviceName=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({system:L(e.system)?String(e.system):"",serviceName:L(e.serviceName)?String(e.serviceName):""}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),t},fromPartial(e){var t,n;const o={system:"",serviceName:""};return o.system=null!==(t=e.system)&&void 0!==t?t:"",o.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",o}};const R={encode:(e,t=T().Writer.create())=>(""!==e.backendSdkVersion&&t.uint32(10).string(e.backendSdkVersion),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={backendSdkVersion:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.backendSdkVersion=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({backendSdkVersion:L(e.backendSdkVersion)?String(e.backendSdkVersion):""}),toJSON(e){const t={};return void 0!==e.backendSdkVersion&&(t.backendSdkVersion=e.backendSdkVersion),t},fromPartial(e){var t;const n={backendSdkVersion:""};return n.backendSdkVersion=null!==(t=e.backendSdkVersion)&&void 0!==t?t:"",n}};function L(e){return null!=e}var I,N;function w(e){switch(e){case 0:case"BLOCKING":return I.BLOCKING;case 1:case"BACKGROUND_SYNC":return I.BACKGROUND_SYNC;case 2:case"ASYNC":return I.ASYNC;case 3:case"PUSH_INITIATED":return I.PUSH_INITIATED;case 4:case"RECONNECT":return I.RECONNECT;default:return I.UNRECOGNIZED}}function D(e){switch(e){case 0:case"KNOWN_CONTEXT_INVALID":return N.KNOWN_CONTEXT_INVALID;case 1:case"KNOWN_CONTEXT_USER_ID":return N.KNOWN_CONTEXT_USER_ID;case 2:case"KNOWN_CONTEXT_INSTALLATION_ID":return N.KNOWN_CONTEXT_INSTALLATION_ID;case 3:case"KNOWN_CONTEXT_VERSION":return N.KNOWN_CONTEXT_VERSION;default:return N.UNRECOGNIZED}}!function(e){e[e.BLOCKING=0]="BLOCKING",e[e.BACKGROUND_SYNC=1]="BACKGROUND_SYNC",e[e.ASYNC=2]="ASYNC",e[e.PUSH_INITIATED=3]="PUSH_INITIATED",e[e.RECONNECT=4]="RECONNECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(I||(I={})),function(e){e[e.KNOWN_CONTEXT_INVALID=0]="KNOWN_CONTEXT_INVALID",e[e.KNOWN_CONTEXT_USER_ID=1]="KNOWN_CONTEXT_USER_ID",e[e.KNOWN_CONTEXT_INSTALLATION_ID=2]="KNOWN_CONTEXT_INSTALLATION_ID",e[e.KNOWN_CONTEXT_VERSION=3]="KNOWN_CONTEXT_VERSION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(N||(N={}));const M={encode:(e,t=T().Writer.create())=>(""!==e.propertySetId&&t.uint32(10).string(e.propertySetId),void 0!==e.fetchType&&j.encode(e.fetchType,t.uint32(18).fork()).ldelim(),void 0!==e.context&&H.encode(e.context,t.uint32(90).fork()).ldelim(),void 0!==e.backendContext&&C.encode(e.backendContext,t.uint32(98).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.propertySetId=n.string();break;case 2:i.fetchType=j.decode(n,n.uint32());break;case 11:i.context=H.decode(n,n.uint32());break;case 12:i.backendContext=C.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({propertySetId:z(e.propertySetId)?String(e.propertySetId):"",fetchType:z(e.fetchType)?j.fromJSON(e.fetchType):void 0,context:z(e.context)?H.fromJSON(e.context):void 0,backendContext:z(e.backendContext)?C.fromJSON(e.backendContext):void 0}),toJSON(e){const t={};return void 0!==e.propertySetId&&(t.propertySetId=e.propertySetId),void 0!==e.fetchType&&(t.fetchType=e.fetchType?j.toJSON(e.fetchType):void 0),void 0!==e.context&&(t.context=e.context?H.toJSON(e.context):void 0),void 0!==e.backendContext&&(t.backendContext=e.backendContext?C.toJSON(e.backendContext):void 0),t},fromPartial(e){var t;const n={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};return n.propertySetId=null!==(t=e.propertySetId)&&void 0!==t?t:"",n.fetchType=void 0!==e.fetchType&&null!==e.fetchType?j.fromPartial(e.fetchType):void 0,n.context=void 0!==e.context&&null!==e.context?H.fromPartial(e.context):void 0,n.backendContext=void 0!==e.backendContext&&null!==e.backendContext?C.fromPartial(e.backendContext):void 0,n}};const x={encode:(e,t=T().Writer.create())=>(void 0!==e.configuration&&F.encode(e.configuration,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={configuration:void 0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.configuration=F.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({configuration:z(e.configuration)?F.fromJSON(e.configuration):void 0}),toJSON(e){const t={};return void 0!==e.configuration&&(t.configuration=e.configuration?F.toJSON(e.configuration):void 0),t},fromPartial(e){const t={configuration:void 0};return t.configuration=void 0!==e.configuration&&null!==e.configuration?F.fromPartial(e.configuration):void 0,t}};const F={encode(e,t=T().Writer.create()){""!==e.configurationAssignmentId&&t.uint32(10).string(e.configurationAssignmentId),0!==e.fetchTimeMillis&&t.uint32(16).int64(e.fetchTimeMillis);for(const n of e.assignedValues)U.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.configurationAssignmentId=n.string();break;case 2:i.fetchTimeMillis=W(n.int64());break;case 3:i.assignedValues.push(U.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({configurationAssignmentId:z(e.configurationAssignmentId)?String(e.configurationAssignmentId):"",fetchTimeMillis:z(e.fetchTimeMillis)?Number(e.fetchTimeMillis):0,assignedValues:Array.isArray(null==e?void 0:e.assignedValues)?e.assignedValues.map((e=>U.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.configurationAssignmentId&&(t.configurationAssignmentId=e.configurationAssignmentId),void 0!==e.fetchTimeMillis&&(t.fetchTimeMillis=Math.round(e.fetchTimeMillis)),e.assignedValues?t.assignedValues=e.assignedValues.map((e=>e?U.toJSON(e):void 0)):t.assignedValues=[],t},fromPartial(e){var t,n,o;const i={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};return i.configurationAssignmentId=null!==(t=e.configurationAssignmentId)&&void 0!==t?t:"",i.fetchTimeMillis=null!==(n=e.fetchTimeMillis)&&void 0!==n?n:0,i.assignedValues=(null===(o=e.assignedValues)||void 0===o?void 0:o.map((e=>U.fromPartial(e))))||[],i}};const U={encode:(e,t=T().Writer.create())=>(void 0!==e.propertyId&&O.encode(e.propertyId,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&B.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.boolValue&&V.encode(e.boolValue,t.uint32(26).fork()).ldelim(),void 0!==e.intValue&&G.encode(e.intValue,t.uint32(34).fork()).ldelim(),void 0!==e.enumValue&&J.encode(e.enumValue,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.propertyId=O.decode(n,n.uint32());break;case 2:i.metadata=B.decode(n,n.uint32());break;case 3:i.boolValue=V.decode(n,n.uint32());break;case 4:i.intValue=G.decode(n,n.uint32());break;case 5:i.enumValue=J.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({propertyId:z(e.propertyId)?O.fromJSON(e.propertyId):void 0,metadata:z(e.metadata)?B.fromJSON(e.metadata):void 0,boolValue:z(e.boolValue)?V.fromJSON(e.boolValue):void 0,intValue:z(e.intValue)?G.fromJSON(e.intValue):void 0,enumValue:z(e.enumValue)?J.fromJSON(e.enumValue):void 0}),toJSON(e){const t={};return void 0!==e.propertyId&&(t.propertyId=e.propertyId?O.toJSON(e.propertyId):void 0),void 0!==e.metadata&&(t.metadata=e.metadata?B.toJSON(e.metadata):void 0),void 0!==e.boolValue&&(t.boolValue=e.boolValue?V.toJSON(e.boolValue):void 0),void 0!==e.intValue&&(t.intValue=e.intValue?G.toJSON(e.intValue):void 0),void 0!==e.enumValue&&(t.enumValue=e.enumValue?J.toJSON(e.enumValue):void 0),t},fromPartial(e){const t={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};return t.propertyId=void 0!==e.propertyId&&null!==e.propertyId?O.fromPartial(e.propertyId):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?B.fromPartial(e.metadata):void 0,t.boolValue=void 0!==e.boolValue&&null!==e.boolValue?V.fromPartial(e.boolValue):void 0,t.intValue=void 0!==e.intValue&&null!==e.intValue?G.fromPartial(e.intValue):void 0,t.enumValue=void 0!==e.enumValue&&null!==e.enumValue?J.fromPartial(e.enumValue):void 0,t}};const B={encode:(e,t=T().Writer.create())=>(0!==e.policyId&&t.uint32(8).int64(e.policyId),""!==e.externalRealm&&t.uint32(18).string(e.externalRealm),0!==e.externalRealmId&&t.uint32(24).int64(e.externalRealmId),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={policyId:0,externalRealm:"",externalRealmId:0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.policyId=W(n.int64());break;case 2:i.externalRealm=n.string();break;case 3:i.externalRealmId=W(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({policyId:z(e.policyId)?Number(e.policyId):0,externalRealm:z(e.externalRealm)?String(e.externalRealm):"",externalRealmId:z(e.externalRealmId)?Number(e.externalRealmId):0}),toJSON(e){const t={};return void 0!==e.policyId&&(t.policyId=Math.round(e.policyId)),void 0!==e.externalRealm&&(t.externalRealm=e.externalRealm),void 0!==e.externalRealmId&&(t.externalRealmId=Math.round(e.externalRealmId)),t},fromPartial(e){var t,n,o;const i={policyId:0,externalRealm:"",externalRealmId:0};return i.policyId=null!==(t=e.policyId)&&void 0!==t?t:0,i.externalRealm=null!==(n=e.externalRealm)&&void 0!==n?n:"",i.externalRealmId=null!==(o=e.externalRealmId)&&void 0!==o?o:0,i}};const V={encode:(e,t=T().Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!z(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:!1};return n.value=null!==(t=e.value)&&void 0!==t&&t,n}};const G={encode:(e,t=T().Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({value:z(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=Math.round(e.value)),t},fromPartial(e){var t;const n={value:0};return n.value=null!==(t=e.value)&&void 0!==t?t:0,n}};const J={encode:(e,t=T().Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={value:""};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.value=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({value:z(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:""};return n.value=null!==(t=e.value)&&void 0!==t?t:"",n}};const j={encode:(e,t=T().Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={type:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.type=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({type:z(e.type)?w(e.type):0}),toJSON(e){const t={};return void 0!==e.type&&(t.type=function(e){switch(e){case I.BLOCKING:return"BLOCKING";case I.BACKGROUND_SYNC:return"BACKGROUND_SYNC";case I.ASYNC:return"ASYNC";case I.PUSH_INITIATED:return"PUSH_INITIATED";case I.RECONNECT:return"RECONNECT";case I.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),t},fromPartial(e){var t;const n={type:0};return n.type=null!==(t=e.type)&&void 0!==t?t:0,n}};const H={encode(e,t=T().Writer.create()){for(const n of e.context)K.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={context:[]};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.context.push(K.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({context:Array.isArray(null==e?void 0:e.context)?e.context.map((e=>K.fromJSON(e))):[]}),toJSON(e){const t={};return e.context?t.context=e.context.map((e=>e?K.toJSON(e):void 0)):t.context=[],t},fromPartial(e){var t;const n={context:[]};return n.context=(null===(t=e.context)||void 0===t?void 0:t.map((e=>K.fromPartial(e))))||[],n}};const K={encode:(e,t=T().Writer.create())=>(void 0!==e.knownContext&&t.uint32(8).int32(e.knownContext),void 0!==e.policyInputName&&t.uint32(18).string(e.policyInputName),""!==e.value&&t.uint32(82).string(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={knownContext:void 0,policyInputName:void 0,value:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.knownContext=n.int32();break;case 2:i.policyInputName=n.string();break;case 10:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({knownContext:z(e.knownContext)?D(e.knownContext):void 0,policyInputName:z(e.policyInputName)?String(e.policyInputName):void 0,value:z(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.knownContext&&(t.knownContext=void 0!==e.knownContext?function(e){switch(e){case N.KNOWN_CONTEXT_INVALID:return"KNOWN_CONTEXT_INVALID";case N.KNOWN_CONTEXT_USER_ID:return"KNOWN_CONTEXT_USER_ID";case N.KNOWN_CONTEXT_INSTALLATION_ID:return"KNOWN_CONTEXT_INSTALLATION_ID";case N.KNOWN_CONTEXT_VERSION:return"KNOWN_CONTEXT_VERSION";case N.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.knownContext):void 0),void 0!==e.policyInputName&&(t.policyInputName=e.policyInputName),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n,o;const i={knownContext:void 0,policyInputName:void 0,value:""};return i.knownContext=null!==(t=e.knownContext)&&void 0!==t?t:void 0,i.policyInputName=null!==(n=e.policyInputName)&&void 0!==n?n:void 0,i.value=null!==(o=e.value)&&void 0!==o?o:"",i}};var Y=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function W(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new Y.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function z(e){return null!=e}T().util.Long!==E()&&(T().util.Long=E(),T().configure());var q=(()=>{if(void 0!==q)return q;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();q.atob;q.btoa;T().util.Long!==E()&&(T().util.Long=E(),T().configure());var X=n(37705);const Z=b("common");function Q(){try{return(0,X.Z)()}catch(e){return Z.debug("creating uuid failed, trying with custom rng",e),(0,X.Z)({rng:()=>{const e=new Array(16);let t;for(let n=0;n<16;n++)0==(3&n)&&(t=4294967296*Math.random()),e[n]=t>>>((3&n)<<3)&255;return e}})}}const $="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();class ee{constructor(e){this.millisecondStart=e}duration(){return Math.round(1e6*($()-this.millisecondStart))}static start(){return new ee($())}}},74730:(e,t,n)=>{"use strict";n.d(t,{CK:()=>o,XH:()=>s,dM:()=>d,tI:()=>l,yV:()=>c,hh:()=>h});var o,i=n(89865),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};!function(e){e.BLOCKING="blocking",e.BACKGROUND_SYNC="background_sync",e.DELAYED="delayed"}(o||(o={}));const a={user_id:{policyInputName:"/spotify-user/user-id",encode:e=>e,isIdentifier:!0},user_catalogue:{policyInputName:"/spotify-user/catalogue",encode:e=>e,isIdentifier:!1},user_country:{policyInputName:"/spotify-user/country",encode:e=>e,isIdentifier:!1},geoip_country:{policyInputName:"/client/geo-ip-country",encode:e=>e,isIdentifier:!1},user_is_employee:{policyInputName:"/spotify-user/is-employee",encode:e=>e,isIdentifier:!1},installationId:{policyInputName:"/remote-config/installation-id",encode:e=>e,isIdentifier:!0},sp_t_cookie:{policyInputName:"/client/sp-t-cookie",encode:e=>e,isIdentifier:!0},version:{policyInputName:"/remote-config/rc-client-version",encode:e=>e,isIdentifier:!1},artist_id:{policyInputName:"/artist/artist-id",encode:e=>e,isIdentifier:!0},adstudio_advertiser_account_id:{policyInputName:"/adstudio-advertiser-account/account-id",encode:e=>e,isIdentifier:!0},oauth_client_id:{policyInputName:"/client/oauth-client-id",encode:e=>e,isIdentifier:!1}};var s,l;!function(e){function t(e){return Object.entries(e).filter((([e])=>e in a)).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{})}function n(e,t){return Object.entries(e).filter((([e])=>e in a)).forEach((([e,n])=>t(e,n,a[e])))}e.definitions=a,e.defaultIdentifiers=Object.freeze(["user_id","installationId"]),e.declarableIdentifiers=Object.freeze(Object.entries(e.definitions).filter((([t,{isIdentifier:n}])=>n&&!e.defaultIdentifiers.includes(t))).map((([e])=>e))),e.extract=t,e.forEach=n,e.map=function(e,t){return Object.entries(e).filter((([e])=>e in a)).map((([e,n])=>t(e,n,a[e])))},e.extractIdentifiersMap=function(e){const t={};return n(e,((e,n,o)=>{if(o.isIdentifier){const e=o.encode(n);"string"==typeof e&&""!==e&&(t[o.policyInputName]=e)}})),a.installationId.policyInputName in t&&!(a.sp_t_cookie.policyInputName in t)&&(t[a.sp_t_cookie.policyInputName]=t[a.installationId.policyInputName]),t},e.extractDeclaredIdentifiers=function(t){return Object.keys(t).filter((t=>e.declarableIdentifiers.includes(t)))},e.hash=function(e){return e.username?(0,i.kI)(Object.assign(Object.assign({},t(e)),{username:e.username})):(0,i.kI)(t(e))}}(s||(s={})),function(e){function t(e){var{propertySetId:t,fetchType:i=o.BLOCKING}=e;return{propertySetId:t,context:n(r(e,["propertySetId","fetchType"])),fetchType:a(i)}}function n(e){const t=[];return s.forEach(e,((e,n,{policyInputName:o,encode:i})=>{const r=i(n);"string"==typeof r&&""!==r&&t.push({knownContext:void 0,policyInputName:o,value:r})})),{context:t}}function a(e){switch(e){case o.BACKGROUND_SYNC:return{type:i.uS.Zc.BACKGROUND_SYNC};case o.BLOCKING:return{type:i.uS.Zc.BLOCKING};case o.DELAYED:return{type:i.uS.Zc.ASYNC};default:throw new Error(`Unknown FetchType (${e})`)}}e.toPayload=t,e.encode=function(e){return i.uS.tI.encode(t(e)).finish()}}(l||(l={}));var c,u=n(16320);!function(e){e.configurationAssignmentId=(0,u.Vo)({name:"#configurationAssignmentId",description:"Unique ID for the specific resolver call this configuration originates from.",default:""}),e.fetchTimeMillis=(0,u.Vo)({name:"#fetchTimeMillis",description:"Server reported time when this configuration was fetched.",default:0}),e.groupIds=(0,u.Vo)({name:"#groupIds",description:"An object mapping property name to group-id.",default:void 0}),e.getGroupId=(t,n)=>{var o;return null===(o=n.getValue(e.groupIds))||void 0===o?void 0:o[t]},e.toConfiguration=function(t){t instanceof Uint8Array&&(t=i.uS.yV.decode(t));const{configuration:n}=i.uS.yV.fromJSON(t);if(!n)throw new Error("Bad response payload");const o=u.VK.builder(),r={};for(const{propertyId:e,metadata:t,boolValue:i,intValue:a,enumValue:s}of n.assignedValues){const n=e.name,l=(0,u.jf)(n);l&&(t&&(r[n]=t.externalRealmId),i?o.setValue(l,i.value):a?o.setValue(l,a.value):s&&o.setValue(l,s.value))}return o.setValue(e.configurationAssignmentId,n.configurationAssignmentId),o.setValue(e.groupIds,r),o.setValue(e.fetchTimeMillis,n.fetchTimeMillis),o}}(c||(c={}));var d,p=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};!function(e){e.fromContextProvider=function(e){return t=>n=>{const o=function(e){if("object"==typeof e&&null!==e){const t=e;return e=>Object.assign(Object.assign({},e),t)}if("function"!=typeof e)throw new TypeError("Provider factory must return a function or an object");return t=>e(t)}(e(n));return e=>p(this,void 0,void 0,(function*(){return t(yield o(e))}))}},e.requireContext=function(e){return e=>()=>e},e.apply=function(e,t){return n=>e(t(n))(n)},e.compose=function(e,t){return n=>o=>{const i=t(n)(o);return e(i)(o)}}}(d||(d={}));const f=(0,i.jl)("core");function h(e){return m(e)}function m(e){return class{constructor(t){this.onDestroyListeners=new Set,this.logger=(0,i.jl)("core");const n={onDestroy:e=>{this.onDestroyListeners.add(e)}};this.delegate=e(Object.assign(Object.assign({},t),n))}resolve(e){return Promise.resolve().then((()=>this.delegate(e))).then((e=>e.build())).catch((e=>(this.logger.warn("Uncaught error in resolve chain:",e),u.VK.empty())))}destroy(){this.delegate=()=>{throw new Error("Resolver instance has been destroyed")};for(const e of this.onDestroyListeners)try{e()}catch(e){f.warn("uncaught error in onDestroy listener",e)}this.onDestroyListeners.clear()}static addMiddleware(t){return m(d.apply(t,e))}static withIdentifier(e){return this}}}},36844:(e,t,n)=>{"use strict";n.d(t,{jj:()=>l,W6:()=>c});var o=n(59496),i=n(16320);const r=(0,o.createContext)(new i.VK.Delegate((()=>{throw new Error("Please wrap your component in RemoteConfig Provider")})));var a=n(89865);class s extends i.VK.Delegate{constructor(){super((()=>{if(!this.delegate)throw this.suspendedPromise;return this.delegate})),this.suspendedPromise=new Promise((e=>{this.resolveSuspense=t=>{if(this.delegate)throw new Error("Already resolved");this.delegate=t,e()}}))}get isSuspended(){return!this.delegate}static isSuspended(e){return e instanceof s&&e.isSuspended}}const l=({children:e,configuration:t})=>{const[n,i]=(0,o.useState)(new s);return function(e,t){const n=(0,o.useRef)(null);if(!e||n.current===e)return;if(n.current=e,!(0,a.y8)(e))return void t(e);e.then(t)}(t,(e=>{s.isSuspended(n)&&n.resolveSuspense(e),i(e)})),o.createElement(r.Provider,{value:n},e)};function c(e,t){const n=function(e={}){const{Context:t=r}=e,n=(0,o.useContext)(t);if(!n)throw new Error("RemoteConfigContext is undefined");return n}(t);try{return n.getValue(e)}catch(e){if(t&&"loadingValue"in t&&(0,a.y8)(e))return t.loadingValue;throw e}}},86271:(e,t,n)=>{"use strict";n.d(t,{Q:()=>T});var o=n(74730),i=n(57920),r=n(41302),a=n(64342);var s=n(89865),l=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const c=new WeakMap;const u={debounceTimeout:400,exposeOnGc:!0};function d(e,t){return(...n)=>(t(...n),e(...n))}function p(e,t){let n=(...o)=>(n=e,t(...o),e(...o));return(...e)=>n(...e)}function f(e){return"number"==typeof e}const h=function(e,t=u){return n=>i=>{const{clientId:r,semanticMetrics:a,exposureStrategy:u="resolve"}=i,h=e(i);if("resolve"===u)return function(e,t,n,i){return r=>l(this,void 0,void 0,(function*(){const a=yield e(r);n&&n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"resolve"},value:1});const s=(l=Object.values(a.getValue(o.yV.groupIds)||{}),Array.from(new Set(l))).filter(f);var l;return i({clientId:t,configuration:a,policyGroupIds:s,context:r}),a}))}(n,r,a,h);if("access"===u)return function(e,t,n,i,r){return a=>l(this,void 0,void 0,(function*(){const l=yield e(a),u=s.lb.start();return l.withAccessListener(function(e,t){const{debounceTimeout:n,exposeOnGc:i=!1}=t,r=new Set;let a=[],s=t=>{a.length&&(e(a,t),a=[])},l=(e,t)=>{const n=o.yV.getGroupId(e,t);n&&!r.has(n)&&(r.add(n),a.push(n))};if(l=p(l,((e,t)=>{c.set(t,(()=>{s("manual")}))})),n>=0&&n<Number.POSITIVE_INFINITY){let e;l=d(l,(()=>{clearTimeout(e),e=setTimeout((()=>{s("timeout")}),n)})),s=d(s,(()=>{clearTimeout(e)}))}const u=function(){if("function"==typeof FinalizationRegistry)return new FinalizationRegistry((e=>{e()}))}();i&&u&&(l=p(l,((e,t)=>{u.register(t,(()=>{s("gc")}))})));return l}(((e,o)=>{n&&(n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"access"},value:1}),n.sendMetric({metric_type:"timer",what:"remote-config-time-to-exposure",tags:{signal:o},value:u.duration()})),i({clientId:t,configuration:l,policyGroupIds:e,context:a})}),r)),l}))}(n,r,a,h,t);throw new Error("exposure strategy not defined")}}((e=>{const t=e.eventSender;return({context:e,clientId:n,configuration:i,policyGroupIds:s})=>{const l=Boolean(e.username),c=function(e,t,n,i){const r=n.getValue(o.yV.fetchTimeMillis),a=n.getValue(o.yV.configurationAssignmentId);return{platform:"WEB",rc_client_id:e,configuration_assignment_id:a,fetch_type:t.fetchType,installation_id:t.installationId,last_rcs_fetch_time:r,policy_group_ids:i,identifiers:o.XH.extractIdentifiersMap(t)}}(n,e,i,s);return l?t.send((0,r.F)(c)):t.send((0,a.k)(c))}}));var m=n(72611),g=n(24769);const v=({context:e,clientId:t,reason:n})=>{const i=Boolean(e.username),r={installation_id:e.installationId,rc_client_id:t,platform:"WEB",fetch_type:e.fetchType,reason:n,identifiers:o.XH.extractIdentifiersMap(e)};return i?(0,m.T)(r):(0,g.$)(r)};var y=n(43319),_=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};let b;try{b=n(45658)}catch(e){}let S;try{S=n(45658)}catch(e){}const E=o.dM.compose(h,(function(e){return({clientId:t,eventSender:n})=>o=>e(o).catch((e=>{const i=(a="message",("object"==typeof(r=e)&&null!==r||"function"==typeof r)&&a in r?String(e.message):void 0);var r,a;throw n.send(v({context:o,reason:i,clientId:t})),e}))})),A=o.dM.compose((e=>({eventSender:t,onDestroy:n})=>{let i;const r=e=>{if(!i||!e)return;const n={spt_cookie:i,consent_groups:Object.entries(e.groups).map((([e,t])=>`${e}:${t?"1":"0"}`)).join(","),datetime:e.date.getTime()};t.send((0,y.C)(n))};return b.addConsentListener(r,!0),n((()=>{b.removeConsentListener(r)})),t=>_(void 0,void 0,void 0,(function*(){const n=yield e(t),a=o.XH.extractIdentifiersMap(t)["/client/sp-t-cookie"];if(a&&i!==a){i=a;const e=b.getConsentInfo();e&&r(e)}return n}))}),E);function T(e){let t;t=S?A:E;const n=t(e);return e=>{const{eventSender:t=P(e.transport)}=e,o=n(Object.assign(Object.assign({},e),{eventSender:t}));return e=>o(e)}}function P(e){if(!e)throw new Error('Either "transport" or "eventSender" must be provided.');return(0,i.mi)({transport:e})}},70065:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var o=n(74730),i=n(16320),r=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const a=(0,i.Vo)({name:"#contextHash",description:"Hash of the context when passing through initial-config-middleware",default:""});function s(e){return t=>n=>r(this,void 0,void 0,(function*(){const r=o.XH.hash(n);if(t.initialConfiguration&&r===t.initialConfiguration.getValue(a))return i.VK.builder(t.initialConfiguration);const s=yield e(n);return s.setValue(a,r),s}))}},61208:(e,t,n)=>{"use strict";function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}n.d(t,{Y:()=>f});var i=function e(t,n){function i(e,i,r){if("undefined"!=typeof document){"number"==typeof(r=o({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in r)r[s]&&(a+="; "+s,!0!==r[s]&&(a+="="+r[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},i=0;i<n.length;i++){var r=n[i].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(o[s]=t.read(a,s),e===s)break}catch(e){}}return e?o[e]:o}},remove:function(e,t){i(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const r=i;var a=n(74730),s=n(89865);const l="sp_t",c="com.spotify.rcs.installationId";function u(e){return"string"==typeof e&&e.length>5}const d=316224e5;function p(e){const t=r.get(l);let n=t;if(void 0===n&&e){const t=e.getItem(c);u(t)&&(n=t)}if(u(n)||(n=(0,s.pB)()),t!==n){!!!r.set(l,n,{expires:Date.now()+d,path:"/"})&&e&&e.setItem(c,n)}return n}const f=a.dM.fromContextProvider((({installationId:e,storage:t})=>u(e)?{installationId:e}:{installationId:p(t||localStorage)}))},44058:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var o=n(89865),i=n(74730),r=n(16320);const a=i.dM.fromContextProvider((({clientId:e,properties:t})=>{const n=(0,o.jl)("middleware:properties");let a;return o=>(null!=a||(a=(n=>r.Z9.getPropertySetId({clientId:e},t?t.map(r.OT):(0,r.y6)(),i.XH.extractDeclaredIdentifiers(n)))(o)),n.info("Property Set ID",a),Object.assign(Object.assign({},o),{propertySetId:a}))}))},87786:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});const o=n(74730).dM.fromContextProvider((({version:e})=>({version:e})))},16320:(e,t,n)=>{"use strict";n.d(t,{VK:()=>y,Z9:()=>o,JP:()=>h,VL:()=>g,z8:()=>m,Vo:()=>v,jf:()=>f,OT:()=>p,y6:()=>d});var o,i=n(89865),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};!function(e){function t(e,t){switch(e.type){case"bool":if("boolean"!=typeof t)throw new TypeError("Expected boolean value");break;case"enum":if("string"!=typeof t)throw new TypeError("Expected string value");if(e.values.indexOf(t)<0)throw new TypeError(`Expected value to be ${e.values.join("|")}`);break;case"int":if("number"!=typeof t||!Number.isInteger(t))throw new TypeError("Expected integer value");if(t<e.lower||t>e.upper)throw new TypeError(`Expected value in range [${e.lower},${e.upper}]`);break;case"internal":break;default:throw new TypeError(`Unknown property type "${e.type}"`)}}e.match=function(e){return t=>{var{type:n}=t,o=r(t,["type"]);return e[n](o)}},e.assertValue=t,e.validateValue=function(e,n){try{return t(e,n),!0}catch(e){return!1}},e.getPropertySetId=function(e,t,n=[]){const o=(0,i.jl)("properties"),a=[e,Array.from(t).reduce(((e,t)=>{var{name:n}=t,o=r(t,["name"]);return Object.assign(Object.assign({},e),{[n]:o})}),{})],s=new Set(n);return s.size&&a.push(Array.from(s).sort()),o.debug("property-set-id sources",...a),(0,i.kI)(a)}}(o||(o={}));var a=n(3341),s=n.n(a),l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const c=new Map;function u(e){const t=e.name;if("internal"===e.type){if("#"!==e.name[0])throw new TypeError('Internal property names must begin with "#"')}else if("#"===e.name[0])throw new TypeError('Property names must not begin with "#"');if(c.has(t)){if(!s()(c.get(t),e))throw new Error(`A different property was already defined for "${e.name}"`)}else c.set(t,e);return t}function*d(e={}){for(const t of c.values())(e.includeInternal||"internal"!==t.type)&&(yield t)}function p(e){const t=c.get(e);if(!t)throw new Error(`Unknown property "${e}"`);return t}function f(e){for(const[t,{name:n}]of c)if(n===e)return t}function h(e){return u(Object.assign(Object.assign({},e),{type:"bool"}))}function m(e){return u(Object.assign(Object.assign({},e),{type:"int"}))}function g(e){var{values:t}=e,n=l(e,["values"]);const o="string"==typeof t?t.split("|"):Object.values(t);return o.sort(),u(Object.assign(Object.assign({},n),{values:o,type:"enum"}))}function v(e){return u(Object.assign(Object.assign({},e),{type:"internal"}))}var y;v({name:"#v",description:"Schema version of JSON serialized configuration.",default:""}),function(e){class t{constructor(e=[],t=new Set){this.values=new Map(e),this.accessListeners=t}getValue(e){const t=p(e);if("#"!==e[0])for(const t of this.accessListeners)try{t(e,this)}catch(e){(0,i.jl)("properties").warn("Error invoking access listener.",e)}return this.values.has(e)?this.values.get(e):t.default}toJSON(e={}){const t={};e.omitInternal||(t["#v"]="1");for(const[n,o]of this.values){const i=p(n);e.omitDefaults&&o===i.default||(e.omitInternal&&"internal"===i.type||(t[i.name]=o))}return t}toBuilder(){return new o(this.values,this.accessListeners)}}function n(e){if("string"==typeof e&&(e=JSON.parse(e)),"object"!=typeof e||null===e)throw new TypeError("Expected object");!function(e){if(void 0===e["#v"]){if(e["#v"]="1","configurationAssignmentId"in e&&(e["#configurationAssignmentId"]=e.configurationAssignmentId,delete e.configurationAssignmentId),"rcsFetchTime"in e&&(e["#fetchTimeMillis"]=Number(e.rcsFetchTime),delete e.rcsFetchTime),"object"==typeof e.properties){const t={};e["#groupIds"]=t;for(const[n,{value:o,groupId:i}]of Object.entries(e.properties))e[n]=o,i&&(t[n]=Number(i));delete e.properties}delete e.clientFetchTime}delete e["#v"]}(e);const t=new Map;for(const[n,o]of Object.entries(e)){const e=f(n);e&&t.set(e,o)}return t}e.fromJSON=function(e){return new t(n(e))},e.builder=function(e){return(null==e?void 0:e.toBuilder())||new o},e.merge=function(...e){return e.map((e=>e.toBuilder())).reduce(((e,t)=>e.merge(t)),new o).build()},e.empty=function(){return new t};class o extends t{setValues(e){for(const[t,n]of e)this.setValue(t,n);return this}withAccessListener(e){return this.accessListeners.add(e),this}setValue(e,t){return p(e),this.values.set(e,t),this}merge(e){for(const[t,n]of e.values)this.values.set(t,n);for(const t of e.accessListeners)this.accessListeners.add(t);return this}getValue(e){const t=p(e);return this.values.has(e)?this.values.get(e):t.default}build(){return new t(this.values,this.accessListeners)}[Symbol.iterator](){return this.values.entries()}static fromJSON(e){return new o(n(e))}}e.Builder=o;e.Delegate=class{constructor(e){this.provider=e}getValue(e){return this.provider().getValue(e)}toJSON(e){return this.provider().toJSON(e)}toBuilder(){return this.provider().toBuilder()}}}(y||(y={}))},52408:(e,t,n)=>{"use strict";n.d(t,{H:()=>a});var o=n(74730),i=n(89865),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const a=({transport:e,timeout:t})=>n=>{var{timeout:a=t}=n,s=r(n,["timeout"]);const l=(0,i.jl)("provider:transport");0===a&&l.warn("Resolving with a timeout of zero, response will be discarded."),l.debug("resolve context",s);const c=o.tI.toPayload(s),u=Boolean(s.username);l.debug("User authentication state",u),l.debug("resolve request",c);const d=e.request(u?"@webgate/remote-config-resolver/v3/configuration":"@webgate/remote-config-resolver/v3/unauth/configuration",{method:"POST",headers:{"Content-Type":"application/json"},payload:JSON.stringify(c),responseType:"json",authorize:u,rejectNotOk:!0}).then((({body:e})=>(l.info("resolve response",e),o.yV.toConfiguration(e)))).catch((e=>{throw l.error("resolve error",e),e}));return(0,i.nK)(d,a)}},85845:(e,t,n)=>{"use strict";n.d(t,{L:()=>v});var o=n(74730),i=n(52408),r=n(44058),a=n(89865),s=n(16320),l=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const u=e=>"getConfig"in e;class d{constructor(e,t){this.storageKey=e,this.storage=t}getConfig(e){return l(this,void 0,void 0,(function*(){const t=this.storage.getItem(this.storageKey);if("string"==typeof t){const n=JSON.parse(t);if(n.key===e)return s.VK.fromJSON(n.value)}return null}))}setConfig(e,t){return l(this,void 0,void 0,(function*(){this.storage.setItem(this.storageKey,JSON.stringify({key:e,value:t.toJSON()}))}))}}const p=6e5;let f;var h=n(86271),m=n(61208),g=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const v=(0,o.hh)(i.H).addMiddleware(r.a).addMiddleware((e=>({clientId:t,storage:n=localStorage,cacheFactory:i,timeout:r})=>{const p=(0,a.jl)("middleware:caching");if(!n)return e;const f=function(e,t,n){if(u(e)&&n)throw new Error("[Remote-Configuration] Both storage as a cache and a cacheFactory supplied to Caching middleware, only one or the other is supported.");if(u(e))return e;if(n)return n(e,t);return new d(`com.spotify.single.item.cache:${t}`,e)}(n,t,i);return t=>l(void 0,void 0,void 0,(function*(){var{timeout:n=r}=t,i=c(t,["timeout"]);const u=o.XH.hash(i);let d=Number.POSITIVE_INFINITY;"number"==typeof n&&(d=n,n=Number.POSITIVE_INFINITY);const h=e(Object.assign({timeout:n},i));try{const e=yield f.getConfig(u);if(p.info("cache %s for key %s",e?"hit":"miss",u),e)return s.VK.builder(e)}catch(e){p.warn("Error reading from cache.",e)}finally{h.then((e=>l(void 0,void 0,void 0,(function*(){try{yield f.setConfig(u,e)}catch(e){p.error("Error writing to cache.",e)}}))))}return(0,a.nK)(h,d)}))})).addMiddleware((e=>({backgroundFetchInterval:t=36e5})=>{const n=(0,a.jl)("middleware:background-fetch");if(t<p)throw new Error(`backgroundFetchInterval of ${t} is less than the allowed minimum of 600000`);return i=>{return r=e(i),a=()=>{var r,a;r=()=>{e(Object.assign(Object.assign({},i),{fetchType:o.CK.BACKGROUND_SYNC})).catch((e=>{n.warn("Background fetch failed",e)}))},a=t,clearInterval(f),f=setInterval(r,a)},r.then((e=>(a(),e)),(e=>{throw a(),e}));var r,a}})).addMiddleware(h.Q).addMiddleware(m.Y).addMiddleware((function(e){return()=>{let t=null,n="";return i=>g(this,void 0,void 0,(function*(){const r=o.XH.hash(i);return n===r||(t=yield e(i),n=r),t}))}}))},59701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;const o=n(33892),i=n(49029);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="GetIncognitoMode",r=i.GetIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="PutIncognitoMode",r=i.PutIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subIncognitoMode(e,t){const n="spotify.scrobble.esperanto.proto.Scrobble",r="SubIncognitoMode",a=i.SubIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetIncognitoModeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.scrobble.esperanto.proto.Scrobble";static DECODERS={GetIncognitoMode:{request:i.GetIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},PutIncognitoMode:{request:i.PutIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},SubIncognitoMode:{request:i.SubIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode}}}t.ScrobbleClient=r},99810:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;var r=n(59701);Object.defineProperty(t,"ScrobbleClient",{enumerable:!0,get:function(){return r.ScrobbleClient}}),i(n(49029),t)},49029:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubIncognitoModeRequest=t.PutIncognitoModeRequest=t.GetIncognitoModeResponse=t.GetIncognitoModeRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.scrobble.esperanto.proto",t.GetIncognitoModeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetIncognitoModeResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={incognitoMode:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.incognitoMode=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({incognitoMode:!!a(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.PutIncognitoModeRequest={encode:(e,t=r.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={incognitoMode:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)i.incognitoMode=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({incognitoMode:!!a(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.SubIncognitoModeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},29023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;const o=n(33892),i=n(23774);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="GetIncognitoMode",r=i.GetIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="PutIncognitoMode",r=i.PutIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subIncognitoMode(e,t){const n="spotify.scrobble.esperanto.proto.Scrobble",r="SubIncognitoMode",a=i.SubIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetIncognitoModeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.scrobble.esperanto.proto.Scrobble";static DECODERS={GetIncognitoMode:{request:i.GetIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},PutIncognitoMode:{request:i.PutIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},SubIncognitoMode:{request:i.SubIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode}}}t.ScrobbleClient=r},83112:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;var r=n(29023);Object.defineProperty(t,"ScrobbleClient",{enumerable:!0,get:function(){return r.ScrobbleClient}}),i(n(23774),t)},23774:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubIncognitoModeRequest=t.PutIncognitoModeRequest=t.GetIncognitoModeResponse=t.GetIncognitoModeRequest=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.scrobble.esperanto.proto",t.GetIncognitoModeRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetIncognitoModeResponse={encode:(e,t=i.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={incognitoMode:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.incognitoMode=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({incognitoMode:!!r(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.PutIncognitoModeRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={incognitoMode:!1};for(;n.pos<o;){const e=n.uint32();if(e>>>3==1)r.incognitoMode=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({incognitoMode:!!r(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.SubIncognitoModeRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos<o;){const e=n.uint32();n.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})}},26514:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendMetric=t.reportMetrics=t.createSemanticMetrics=t.asNanoseconds=t.MetricTypes=void 0;const r=i(n(65467)),a=n(45269);t.MetricTypes={COUNTER:"counter",GAUGE:"gauge",TIMER:"timer"},t.asNanoseconds=function(e){return e};const s=(e,t)=>o(void 0,void 0,void 0,(function*(){if(Array.isArray(t.reporter)){const n=t.reporter.map((t=>t.send(e)));yield Promise.all(n)}else yield t.reporter.send(e)}));t.reportMetrics=s;const l=e=>{void 0!==e.dev&&e.dev&&(e.reporter=new a.NoopReporter);const t={queue:[],timeout:void 0,flush(){return o(this,void 0,void 0,(function*(){yield s(this.queue,e),this.queue=[],this.timeout=void 0}))}};let n=!1;void 0===e.batching&&(e.batching={delay:4e3}),e.batching&&"object"==typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",(()=>{n=!0,t.flush()}));return{sendMetric:i=>o(void 0,void 0,void 0,(function*(){var o,r;const a=Object.assign({},i);if(i.tags&&(a.tags=Object.assign({},i.tags)),a.key=a.key||e.key,!a.key)throw new Error(`metric.key is required. Got: "${a.key}". Set it in createSemanticMetrics(...) or pass it to sendMetric(...).`);a.tags=Object.assign({app:null!==(o=e.app)&&void 0!==o?o:a.key,application:null!==(r=e.app)&&void 0!==r?r:a.key},a.tags),e.component_id?a.component_id=a.component_id||e.component_id:a.component_id=e.key,e.batching&&!n?(t.queue.push(a),t.timeout||(t.timeout=setTimeout((()=>t.flush()),e.batching.delay))):yield s([a],e)})),config:e,isWindowUnloading:n,flush:()=>e.batching?t.flush():(r.default.warn("Manual flushing only supported in batch mode. Set config.batching: true"),Promise.resolve())}};t.createSemanticMetrics=l;class c{static init(e){c.config&&r.default.error("SemanticMetrics has already been initialized. This may lead to dangerous side effects such as your metrics disappearing from Grafana due to the `key` value being overwritten by something else"),r.default.warn("The singleton usage of SemanticMetrics will be deprecated. Please use createSemanticMetrics()"),c.config=e;const{sendMetric:t,isWindowUnloading:n}=l(e);c.sendMetric=t,c.isWindowUnloading=n}}t.default=c;t.sendMetric=e=>o(void 0,void 0,void 0,(function*(){if(!c.config)throw new Error("SemanticMetrics has not been initialized. Call SemanticMetrics.init()");return c.sendMetric(e)}))},46403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBAPI_URL=t.INTERNAL_WEBGATE_URL=void 0,t.INTERNAL_WEBGATE_URL="https://wgint.spotify.net",t.WEBAPI_URL="https://api.spotify.com"},48821:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(59417),t),i(n(55982),t),i(n(98318),t);var a=n(26514);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(a).default}})},59417:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Time=t.Timer=void 0,i(n(26514),t),i(n(85380),t),i(n(38833),t),i(n(93790),t);var r=n(87110);Object.defineProperty(t,"Timer",{enumerable:!0,get:function(){return r.Timer}});var a=n(65217);Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return a.Time}})},98318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMetrics=void 0;const o=n(26514),i=n(65217);function r(){const[e]=window.performance.getEntriesByType("navigation");return e}function a(e){return new Promise(((t,n)=>window.performance&&"function"==typeof performance.getEntriesByType?window.addEventListener("load",(()=>{const o=performance.getEntriesByType("paint"),i=o.find((({name:t})=>t===e));return void 0!==o&&i?t(i.startTime):n("Time to paint api is not supported on this browser")})):n("window.performance api is not supported in this browser")))}function s({name:e,label:t,value:n},o){let r;return r="cls"===e.toLowerCase()?{metric_type:"gauge",value:n}:{metric_type:"timer",value:i.Time.fromMillis(Math.round(n)).asNanos()},Object.assign(Object.assign({what:`web_vitals_${e.toLowerCase()}`},r),{tags:Object.assign({name:e,label:t},o)})}const l={getPageLoadTime:function(){return new Promise(((e,t)=>{if(!window.performance||"function"!=typeof performance.getEntriesByType)return t("window.performance api is not supported in this browser");if(void 0===r())return t("navigationTiming api is not supported in this browser");const{loadEventEnd:n}=r();return n>0?e(n):window.addEventListener("load",(()=>{setTimeout((()=>{const{loadEventEnd:t}=r();return e(t)}),0)}))}))},getResourceTiming:function(){return window.performance.getEntriesByType("resource")},getTimeToFirstPaint:function(){return a("first-paint")},getTimeToFirstContentfulPaint:function(){return a("first-contentful-paint")},sendWebVitalsMetric:function(e,t){return o.sendMetric(s(e,t))},getWebVitalsMetric:s};t.BrowserMetrics=l},93790:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleReporter=void 0;const r=i(n(65467));t.ConsoleReporter=class{constructor(e=2,t="info"){this.spacingLevel=e,this.logLevel=t}send(e){return o(this,void 0,void 0,(function*(){r.default.log(this.logLevel,`[semantic-metrics] ${JSON.stringify(e,null,this.spacingLevel)}`)}))}}},38833:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventSenderReporter=void 0;const r=n(52381),a=n(90093),s=n(69499),l=i(n(65467)),c=n(72755),u=n(46403);function d(e){return t=>e.isAuthenticated()?a.createSemanticMetricClient(t):s.createSemanticMetricClientNonAuth(t)}class p{constructor(e,t,n="browser",o){this.eventSender=e,this.createEvent=t,this.environment=n,this.transport=o}static create(e){const t="getToken"in e?e.getToken:null,n="ownerProvider"in e?e.ownerProvider:null,i=e.context?[...e.context]:void 0,a=e.environment,s=c.createBaseTransport({providers:{endpoints:(()=>{const t=c.createXResolveProvider();return n=>o(this,void 0,void 0,(function*(){const o=yield t(n);return Object.assign(Object.assign({},o),e.internal&&{webgate:u.INTERNAL_WEBGATE_URL})}))})(),token:()=>new Promise((e=>{t?t(((t,n)=>{e(void 0===n?t:[t,n])})):e("")}))}});t&&(s.on(c.TransportEvent.CONNECTED,(()=>{s.authenticate().catch((e=>{var t,n;l.default.debug("authentication fail.",null!==(n=null!==(t=null==e?void 0:e.message)&&void 0!==t?t:null==e?void 0:e.code)&&void 0!==n?n:"")}))})),s.on(c.TransportEvent.AUTHENTICATED,(()=>{l.default.debug("created authenticated browser transport")})),s.on(c.TransportEvent.TOKEN_PROVIDER_ERROR,(()=>{l.default.debug("the token provided isn't working.")}))),s.connect();const f=r.createEventSender(Object.assign({transport:s,context:i},n&&{ownerProvider:n})),h=d(s);return new p(f,h,a,s)}static createWithCustomTransport(e){const t="ownerProvider"in e?e.ownerProvider:null,n=e.context?[...e.context]:void 0,o=r.createEventSender(Object.assign({transport:e.transport,context:n},t&&{ownerProvider:t})),i=d(e.transport);return new p(o,i,e.environment,e.transport)}send(e){return o(this,void 0,void 0,(function*(){for(const t of e){const e=Object.assign({},t);e.tags=Object.assign({},e.tags),e.tags.environment&&l.default.error("`tags.environment` must not be set. It is a reserved tag and will be overwritten."),e.tags.environment=this.environment;const n=this.createEvent(Object.assign({},e));this.eventSender.send(n,{flush:!1})}return this.eventSender.flush(this.transport.isAuthenticated())}))}}t.EventSenderReporter=p},45269:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NoopReporter=void 0;t.NoopReporter=class{send(e){return n(this,void 0,void 0,(function*(){}))}}},85380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65217:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;class n{constructor(e=0){this.nanos=e}static fromNanos(e){return new n(e)}static fromMicros(e){return new n(1e3*e)}static fromMillis(e){return new n(1e6*e)}static fromSeconds(e){return new n(1e9*e)}static from(e){return new n(e.asNanos())}asSeconds(){return this.nanos/1e9}asMillis(){return this.nanos/1e6}asMicros(){return this.nanos/1e3}asNanos(){return Math.round(this.nanos)}}t.Time=n,n.ZERO=new n(0)},87110:(e,t,n)=>{"use strict";var o=n(14224);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=t.getHighResolutionTime=t.getLowResolutionTime=t.getTime=t.getBrowserTime=t.supportsHighResolutionTime=void 0;const i=n(65217),r=n(26514);t.supportsHighResolutionTime=()=>"undefined"==typeof window&&"function"==typeof o.hrtime;t.getBrowserTime=()=>"undefined"!=typeof performance?performance.now():Date.now();t.getTime=()=>t.supportsHighResolutionTime()?o.hrtime():t.getBrowserTime();t.getLowResolutionTime=e=>{const n=t.getTime()-e,o=i.Time.fromMillis(n);return{nanoseconds:r.asNanoseconds(o.asNanos()),milliseconds:o.asMillis(),seconds:o.asSeconds()}};t.getHighResolutionTime=e=>{const[t,n]=o.hrtime(e),i=1e9*t+n,a=i/1e6,s=i/1e9;return{nanoseconds:r.asNanoseconds(i),milliseconds:a,seconds:s}};class a{constructor(e){this.startTime=e}static start(){return new a(t.getTime())}end(){return t.supportsHighResolutionTime()?t.getHighResolutionTime(this.startTime):t.getLowResolutionTime(this.startTime)}}t.Timer=a},55982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUniversalReporter=void 0;const o=n(38833),i=n(35267);t.createUniversalReporter=function(e={}){const t=e.context?[i.createUserAgentContext(),...e.context]:[i.createUserAgentContext()];return o.EventSenderReporter.create(Object.assign(Object.assign({environment:"browser"},e),{context:t}))}},86626:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return a.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return a.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return a.CONTENT_WARNING;case 59:case"IMAGE_CUE":return a.IMAGE_CUE;case 60:case"STREAM_COUNT":return a.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case a.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case a.PLAY_TRAIT:return"PLAY_TRAIT";case a.CONTENT_WARNING:return"CONTENT_WARNING";case a.IMAGE_CUE:return"IMAGE_CUE";case a.STREAM_COUNT:return"STREAM_COUNT";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},14681:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(35426),s=n(36181);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";default:return"UNKNOWN"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?a.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?a.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),n},fromPartial(e){const n={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?a.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},36181:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(86626);t.protobufPackage="spotify.cosmos_util.proto",t.Extension={fromJSON:e=>({extensionKind:d(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,data:d(e.data)?c(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return u(t.join(""))}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t={extensionKind:0,data:new Uint8Array};return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if(void 0!==s)return s;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const l=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary"));function c(e){const t=l(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const u=s.btoa||(e=>s.Buffer.from(e,"binary").toString("base64"));function d(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},35426:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={fromJSON:e=>({standardLink:a(e.standardLink)?String(e.standardLink):"",smallLink:a(e.smallLink)?String(e.smallLink):"",largeLink:a(e.largeLink)?String(e.largeLink):"",xlargeLink:a(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},32162:(e,t,n)=>{"use strict";t.hb=t.wm=void 0;var o=n(29538);Object.defineProperty(t,"wm",{enumerable:!0,get:function(){return o.logPageActionForTestStep}}),Object.defineProperty(t,"hb",{enumerable:!0,get:function(){return o.setUpSpektrumLogging}})},29538:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testables=t.setUpSpektrumLogging=t.logPageActionForTestStep=void 0;const n=[];function o(){const e=globalThis.spektrumLoggingInternals;e&&(n.forEach((t=>{e.logPageActionForTestStep({title:t.title,timestamp:t.timestamp})})),n.length=0)}t.logPageActionForTestStep=function(e){const t={title:e,timestamp:Date.now()};n.push(t),o()},t.setUpSpektrumLogging=function(){globalThis.spektrumLoggingInternalsFromApp={reportPageActions(){o()}}},t.testables={resetForTesting(){n.length=0},getPageActionsToReport:()=>n}},85865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReportingServiceClient=void 0;const o=n(33892),i=n(36012),r=n(3064),a=n(8557),s=n(25092),l=n(97278),c=n(23962);class u{transport;options;constructor(e,t={}){this.transport=e,this.options=t}streamStart(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamStart",a=i.StreamStartRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.StreamStartResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamProgress(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamProgress",i=a.StreamProgressRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.StatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamSeek(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamSeek",i=l.StreamSeekRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.StatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamEnd(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamEnd",i=c.StreamEndRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.StatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.stream_reporting_esperanto.proto.StreamReportingService";static DECODERS={StreamStart:{request:i.StreamStartRequest.decode,response:r.StreamStartResponse.decode},StreamProgress:{request:a.StreamProgressRequest.decode,response:s.StatusResponse.decode},StreamSeek:{request:l.StreamSeekRequest.decode,response:s.StatusResponse.decode},StreamEnd:{request:c.StreamEndRequest.decode,response:s.StatusResponse.decode}}}t.StreamReportingServiceClient=u},85989:(e,t,n)=>{"use strict";t.lS=t.LI=t.Dx=t.Mk=t.Ce=t.OE=t.GL=t.dU=t.VL=t.DD=void 0;var o=n(87508);var i=n(34836);var r=n(32739);Object.defineProperty(t,"DD",{enumerable:!0,get:function(){return r.MediaType}});var a=n(85671);Object.defineProperty(t,"VL",{enumerable:!0,get:function(){return a.PlayReason}});var s=n(23433);Object.defineProperty(t,"dU",{enumerable:!0,get:function(){return s.PlaybackStack}});var l=n(89544);Object.defineProperty(t,"GL",{enumerable:!0,get:function(){return l.StatusCode}});var c=n(25092);var u=n(23962);Object.defineProperty(t,"OE",{enumerable:!0,get:function(){return u.StreamEndRequest}});var d=n(78307);var p=n(36012);Object.defineProperty(t,"Ce",{enumerable:!0,get:function(){return p.StreamStartRequest}});var f=n(3064);var h=n(8557);Object.defineProperty(t,"Mk",{enumerable:!0,get:function(){return h.StreamProgressRequest}});var m=n(85865);Object.defineProperty(t,"Dx",{enumerable:!0,get:function(){return m.StreamReportingServiceClient}});var g=n(97278);Object.defineProperty(t,"LI",{enumerable:!0,get:function(){return g.StreamSeekRequest}});var v=n(17498);Object.defineProperty(t,"lS",{enumerable:!0,get:function(){return v.StreamingRule}})},87508:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.audioFormatToJSON=t.audioFormatFromJSON=t.AudioFormat=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.FORMAT_UNKNOWN=0]="FORMAT_UNKNOWN",e[e.FORMAT_OGG_VORBIS_96=1]="FORMAT_OGG_VORBIS_96",e[e.FORMAT_OGG_VORBIS_160=2]="FORMAT_OGG_VORBIS_160",e[e.FORMAT_OGG_VORBIS_320=3]="FORMAT_OGG_VORBIS_320",e[e.FORMAT_MP3_256=4]="FORMAT_MP3_256",e[e.FORMAT_MP3_320=5]="FORMAT_MP3_320",e[e.FORMAT_MP3_160=6]="FORMAT_MP3_160",e[e.FORMAT_MP3_96=7]="FORMAT_MP3_96",e[e.FORMAT_MP3_160_ENCRYPTED=8]="FORMAT_MP3_160_ENCRYPTED",e[e.FORMAT_AAC_24=9]="FORMAT_AAC_24",e[e.FORMAT_AAC_48=10]="FORMAT_AAC_48",e[e.FORMAT_MP4_128=11]="FORMAT_MP4_128",e[e.FORMAT_MP4_128_DUAL=12]="FORMAT_MP4_128_DUAL",e[e.FORMAT_MP4_128_CBCS=13]="FORMAT_MP4_128_CBCS",e[e.FORMAT_MP4_256=14]="FORMAT_MP4_256",e[e.FORMAT_MP4_256_DUAL=15]="FORMAT_MP4_256_DUAL",e[e.FORMAT_MP4_256_CBCS=16]="FORMAT_MP4_256_CBCS",e[e.FORMAT_FLAC_FLAC=17]="FORMAT_FLAC_FLAC",e[e.FORMAT_MP4_FLAC=18]="FORMAT_MP4_FLAC",e[e.FORMAT_MP4_Unknown=19]="FORMAT_MP4_Unknown",e[e.FORMAT_MP3_Unknown=20]="FORMAT_MP3_Unknown",e[e.FORMAT_XHE_AAC_12=21]="FORMAT_XHE_AAC_12",e[e.FORMAT_XHE_AAC_16=22]="FORMAT_XHE_AAC_16",e[e.FORMAT_XHE_AAC_24=23]="FORMAT_XHE_AAC_24",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.AudioFormat||(t.AudioFormat={})),t.audioFormatFromJSON=function(e){switch(e){case 0:case"FORMAT_UNKNOWN":return n.FORMAT_UNKNOWN;case 1:case"FORMAT_OGG_VORBIS_96":return n.FORMAT_OGG_VORBIS_96;case 2:case"FORMAT_OGG_VORBIS_160":return n.FORMAT_OGG_VORBIS_160;case 3:case"FORMAT_OGG_VORBIS_320":return n.FORMAT_OGG_VORBIS_320;case 4:case"FORMAT_MP3_256":return n.FORMAT_MP3_256;case 5:case"FORMAT_MP3_320":return n.FORMAT_MP3_320;case 6:case"FORMAT_MP3_160":return n.FORMAT_MP3_160;case 7:case"FORMAT_MP3_96":return n.FORMAT_MP3_96;case 8:case"FORMAT_MP3_160_ENCRYPTED":return n.FORMAT_MP3_160_ENCRYPTED;case 9:case"FORMAT_AAC_24":return n.FORMAT_AAC_24;case 10:case"FORMAT_AAC_48":return n.FORMAT_AAC_48;case 11:case"FORMAT_MP4_128":return n.FORMAT_MP4_128;case 12:case"FORMAT_MP4_128_DUAL":return n.FORMAT_MP4_128_DUAL;case 13:case"FORMAT_MP4_128_CBCS":return n.FORMAT_MP4_128_CBCS;case 14:case"FORMAT_MP4_256":return n.FORMAT_MP4_256;case 15:case"FORMAT_MP4_256_DUAL":return n.FORMAT_MP4_256_DUAL;case 16:case"FORMAT_MP4_256_CBCS":return n.FORMAT_MP4_256_CBCS;case 17:case"FORMAT_FLAC_FLAC":return n.FORMAT_FLAC_FLAC;case 18:case"FORMAT_MP4_FLAC":return n.FORMAT_MP4_FLAC;case 19:case"FORMAT_MP4_Unknown":return n.FORMAT_MP4_Unknown;case 20:case"FORMAT_MP3_Unknown":return n.FORMAT_MP3_Unknown;case 21:case"FORMAT_XHE_AAC_12":return n.FORMAT_XHE_AAC_12;case 22:case"FORMAT_XHE_AAC_16":return n.FORMAT_XHE_AAC_16;case 23:case"FORMAT_XHE_AAC_24":return n.FORMAT_XHE_AAC_24;default:return n.UNRECOGNIZED}},t.audioFormatToJSON=function(e){switch(e){case n.FORMAT_UNKNOWN:return"FORMAT_UNKNOWN";case n.FORMAT_OGG_VORBIS_96:return"FORMAT_OGG_VORBIS_96";case n.FORMAT_OGG_VORBIS_160:return"FORMAT_OGG_VORBIS_160";case n.FORMAT_OGG_VORBIS_320:return"FORMAT_OGG_VORBIS_320";case n.FORMAT_MP3_256:return"FORMAT_MP3_256";case n.FORMAT_MP3_320:return"FORMAT_MP3_320";case n.FORMAT_MP3_160:return"FORMAT_MP3_160";case n.FORMAT_MP3_96:return"FORMAT_MP3_96";case n.FORMAT_MP3_160_ENCRYPTED:return"FORMAT_MP3_160_ENCRYPTED";case n.FORMAT_AAC_24:return"FORMAT_AAC_24";case n.FORMAT_AAC_48:return"FORMAT_AAC_48";case n.FORMAT_MP4_128:return"FORMAT_MP4_128";case n.FORMAT_MP4_128_DUAL:return"FORMAT_MP4_128_DUAL";case n.FORMAT_MP4_128_CBCS:return"FORMAT_MP4_128_CBCS";case n.FORMAT_MP4_256:return"FORMAT_MP4_256";case n.FORMAT_MP4_256_DUAL:return"FORMAT_MP4_256_DUAL";case n.FORMAT_MP4_256_CBCS:return"FORMAT_MP4_256_CBCS";case n.FORMAT_FLAC_FLAC:return"FORMAT_FLAC_FLAC";case n.FORMAT_MP4_FLAC:return"FORMAT_MP4_FLAC";case n.FORMAT_MP4_Unknown:return"FORMAT_MP4_Unknown";case n.FORMAT_MP3_Unknown:return"FORMAT_MP3_Unknown";case n.FORMAT_XHE_AAC_12:return"FORMAT_XHE_AAC_12";case n.FORMAT_XHE_AAC_16:return"FORMAT_XHE_AAC_16";case n.FORMAT_XHE_AAC_24:return"FORMAT_XHE_AAC_24";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},34836:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.debugTracePointToJSON=t.debugTracePointFromJSON=t.DebugTracePoint=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START=0]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK=1]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE=2]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE=3]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES=4]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR=5]="DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_END=6]="DEBUG_TRACE_POINT_SESSION_IMPL_END",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_START=7]="DEBUG_TRACE_POINT_STREAM_REPORTING_START",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED=8]="DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_START_END=9]="DEBUG_TRACE_POINT_STREAM_REPORTING_START_END",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_START=10]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_START",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT=11]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT=12]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_END=13]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_END",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED=14]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND=15]="DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY=16]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START=17]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME=18]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY=19]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE=20]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START=21]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END=22]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED=23]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION=24]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG=25]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION=26]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE=27]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE=28]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.DebugTracePoint||(t.DebugTracePoint={})),t.debugTracePointFromJSON=function(e){switch(e){case 0:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START;case 1:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK;case 2:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE;case 3:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE;case 4:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES;case 5:case"DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR":return n.DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR;case 6:case"DEBUG_TRACE_POINT_SESSION_IMPL_END":return n.DEBUG_TRACE_POINT_SESSION_IMPL_END;case 7:case"DEBUG_TRACE_POINT_STREAM_REPORTING_START":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_START;case 8:case"DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED;case 9:case"DEBUG_TRACE_POINT_STREAM_REPORTING_START_END":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_END;case 10:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_START":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_START;case 11:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT;case 12:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT;case 13:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_END":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_END;case 14:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED;case 15:case"DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND":return n.DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND;case 16:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY;case 17:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START;case 18:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME;case 19:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY;case 20:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE;case 21:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START;case 22:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END;case 23:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED;case 24:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION;case 25:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG;case 26:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION;case 27:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE;case 28:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE;default:return n.UNRECOGNIZED}},t.debugTracePointToJSON=function(e){switch(e){case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES";case n.DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR:return"DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR";case n.DEBUG_TRACE_POINT_SESSION_IMPL_END:return"DEBUG_TRACE_POINT_SESSION_IMPL_END";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_START:return"DEBUG_TRACE_POINT_STREAM_REPORTING_START";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED:return"DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_END:return"DEBUG_TRACE_POINT_STREAM_REPORTING_START_END";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_START:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_START";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_END:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_END";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED";case n.DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND:return"DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},32739:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.mediaTypeToJSON=t.mediaTypeFromJSON=t.MediaType=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.AUDIO=0]="AUDIO",e[e.VIDEO=1]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.MediaType||(t.MediaType={})),t.mediaTypeFromJSON=function(e){switch(e){case 0:case"AUDIO":return n.AUDIO;case 1:case"VIDEO":return n.VIDEO;default:return n.UNRECOGNIZED}},t.mediaTypeToJSON=function(e){switch(e){case n.AUDIO:return"AUDIO";case n.VIDEO:return"VIDEO";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},85671:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playReasonToJSON=t.playReasonFromJSON=t.PlayReason=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.PLAY_REASON_UNKNOWN=0]="PLAY_REASON_UNKNOWN",e[e.PLAY_REASON_APP_LOAD=1]="PLAY_REASON_APP_LOAD",e[e.PLAY_REASON_BACK_BTN=2]="PLAY_REASON_BACK_BTN",e[e.PLAY_REASON_CLICK_ROW=3]="PLAY_REASON_CLICK_ROW",e[e.PLAY_REASON_CLICK_SIDE=4]="PLAY_REASON_CLICK_SIDE",e[e.PLAY_REASON_END_PLAY=5]="PLAY_REASON_END_PLAY",e[e.PLAY_REASON_FWD_BTN=6]="PLAY_REASON_FWD_BTN",e[e.PLAY_REASON_INTERRUPTED=7]="PLAY_REASON_INTERRUPTED",e[e.PLAY_REASON_LOGOUT=8]="PLAY_REASON_LOGOUT",e[e.PLAY_REASON_PLAY_BTN=9]="PLAY_REASON_PLAY_BTN",e[e.PLAY_REASON_POPUP=10]="PLAY_REASON_POPUP",e[e.PLAY_REASON_REMOTE=11]="PLAY_REASON_REMOTE",e[e.PLAY_REASON_SONG_DONE=12]="PLAY_REASON_SONG_DONE",e[e.PLAY_REASON_TRACK_DONE=13]="PLAY_REASON_TRACK_DONE",e[e.PLAY_REASON_TRACK_ERROR=14]="PLAY_REASON_TRACK_ERROR",e[e.PLAY_REASON_PREVIEW=15]="PLAY_REASON_PREVIEW",e[e.PLAY_REASON_URI_OPEN=16]="PLAY_REASON_URI_OPEN",e[e.PLAY_REASON_BACKGROUNDED=17]="PLAY_REASON_BACKGROUNDED",e[e.PLAY_REASON_OFFLINE=18]="PLAY_REASON_OFFLINE",e[e.PLAY_REASON_UNEXPECTED_EXIT=19]="PLAY_REASON_UNEXPECTED_EXIT",e[e.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED=20]="PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.PlayReason||(t.PlayReason={})),t.playReasonFromJSON=function(e){switch(e){case 0:case"PLAY_REASON_UNKNOWN":return n.PLAY_REASON_UNKNOWN;case 1:case"PLAY_REASON_APP_LOAD":return n.PLAY_REASON_APP_LOAD;case 2:case"PLAY_REASON_BACK_BTN":return n.PLAY_REASON_BACK_BTN;case 3:case"PLAY_REASON_CLICK_ROW":return n.PLAY_REASON_CLICK_ROW;case 4:case"PLAY_REASON_CLICK_SIDE":return n.PLAY_REASON_CLICK_SIDE;case 5:case"PLAY_REASON_END_PLAY":return n.PLAY_REASON_END_PLAY;case 6:case"PLAY_REASON_FWD_BTN":return n.PLAY_REASON_FWD_BTN;case 7:case"PLAY_REASON_INTERRUPTED":return n.PLAY_REASON_INTERRUPTED;case 8:case"PLAY_REASON_LOGOUT":return n.PLAY_REASON_LOGOUT;case 9:case"PLAY_REASON_PLAY_BTN":return n.PLAY_REASON_PLAY_BTN;case 10:case"PLAY_REASON_POPUP":return n.PLAY_REASON_POPUP;case 11:case"PLAY_REASON_REMOTE":return n.PLAY_REASON_REMOTE;case 12:case"PLAY_REASON_SONG_DONE":return n.PLAY_REASON_SONG_DONE;case 13:case"PLAY_REASON_TRACK_DONE":return n.PLAY_REASON_TRACK_DONE;case 14:case"PLAY_REASON_TRACK_ERROR":return n.PLAY_REASON_TRACK_ERROR;case 15:case"PLAY_REASON_PREVIEW":return n.PLAY_REASON_PREVIEW;case 16:case"PLAY_REASON_URI_OPEN":return n.PLAY_REASON_URI_OPEN;case 17:case"PLAY_REASON_BACKGROUNDED":return n.PLAY_REASON_BACKGROUNDED;case 18:case"PLAY_REASON_OFFLINE":return n.PLAY_REASON_OFFLINE;case 19:case"PLAY_REASON_UNEXPECTED_EXIT":return n.PLAY_REASON_UNEXPECTED_EXIT;case 20:case"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED":return n.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED;default:return n.UNRECOGNIZED}},t.playReasonToJSON=function(e){switch(e){case n.PLAY_REASON_UNKNOWN:return"PLAY_REASON_UNKNOWN";case n.PLAY_REASON_APP_LOAD:return"PLAY_REASON_APP_LOAD";case n.PLAY_REASON_BACK_BTN:return"PLAY_REASON_BACK_BTN";case n.PLAY_REASON_CLICK_ROW:return"PLAY_REASON_CLICK_ROW";case n.PLAY_REASON_CLICK_SIDE:return"PLAY_REASON_CLICK_SIDE";case n.PLAY_REASON_END_PLAY:return"PLAY_REASON_END_PLAY";case n.PLAY_REASON_FWD_BTN:return"PLAY_REASON_FWD_BTN";case n.PLAY_REASON_INTERRUPTED:return"PLAY_REASON_INTERRUPTED";case n.PLAY_REASON_LOGOUT:return"PLAY_REASON_LOGOUT";case n.PLAY_REASON_PLAY_BTN:return"PLAY_REASON_PLAY_BTN";case n.PLAY_REASON_POPUP:return"PLAY_REASON_POPUP";case n.PLAY_REASON_REMOTE:return"PLAY_REASON_REMOTE";case n.PLAY_REASON_SONG_DONE:return"PLAY_REASON_SONG_DONE";case n.PLAY_REASON_TRACK_DONE:return"PLAY_REASON_TRACK_DONE";case n.PLAY_REASON_TRACK_ERROR:return"PLAY_REASON_TRACK_ERROR";case n.PLAY_REASON_PREVIEW:return"PLAY_REASON_PREVIEW";case n.PLAY_REASON_URI_OPEN:return"PLAY_REASON_URI_OPEN";case n.PLAY_REASON_BACKGROUNDED:return"PLAY_REASON_BACKGROUNDED";case n.PLAY_REASON_OFFLINE:return"PLAY_REASON_OFFLINE";case n.PLAY_REASON_UNEXPECTED_EXIT:return"PLAY_REASON_UNEXPECTED_EXIT";case n.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED:return"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},23433:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playbackStackToJSON=t.playbackStackFromJSON=t.PlaybackStack=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.BOOMBOX=0]="BOOMBOX",e[e.BETAMAX=1]="BETAMAX",e[e.UNKNOWN=2]="UNKNOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.PlaybackStack||(t.PlaybackStack={})),t.playbackStackFromJSON=function(e){switch(e){case 0:case"BOOMBOX":return n.BOOMBOX;case 1:case"BETAMAX":return n.BETAMAX;case 2:case"UNKNOWN":return n.UNKNOWN;default:return n.UNRECOGNIZED}},t.playbackStackToJSON=function(e){switch(e){case n.BOOMBOX:return"BOOMBOX";case n.BETAMAX:return"BETAMAX";case n.UNKNOWN:return"UNKNOWN";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},89544:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.statusCodeToJSON=t.statusCodeFromJSON=t.StatusCode=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.SUCCESS=0]="SUCCESS",e[e.EVENT_SENDER_ERROR=2]="EVENT_SENDER_ERROR",e[e.INVALID_STREAM_HANDLE=3]="INVALID_STREAM_HANDLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.StatusCode||(t.StatusCode={})),t.statusCodeFromJSON=function(e){switch(e){case 0:case"SUCCESS":return n.SUCCESS;case 2:case"EVENT_SENDER_ERROR":return n.EVENT_SENDER_ERROR;case 3:case"INVALID_STREAM_HANDLE":return n.INVALID_STREAM_HANDLE;default:return n.UNRECOGNIZED}},t.statusCodeToJSON=function(e){switch(e){case n.SUCCESS:return"SUCCESS";case n.EVENT_SENDER_ERROR:return"EVENT_SENDER_ERROR";case n.INVALID_STREAM_HANDLE:return"INVALID_STREAM_HANDLE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},25092:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatusResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(89544);function a(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StatusResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,reason:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.statusCode=n.int32();break;case 2:r.reason=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:a(e.statusCode)?(0,r.statusCodeFromJSON)(e.statusCode):0,reason:a(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=(0,r.statusCodeToJSON)(e.statusCode)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}}},23962:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamEndRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87508),a=n(85671),s=n(78307);function l(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamEndRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.streamHandle&&s.StreamHandle.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),""!==e.sourceEnd&&t.uint32(18).string(e.sourceEnd),0!==e.reasonEnd&&t.uint32(24).int32(e.reasonEnd),void 0!==e.format&&t.uint32(32).int32(e.format),""!==e.debugData&&t.uint32(42).string(e.debugData),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={streamHandle:void 0,sourceEnd:"",reasonEnd:0,format:void 0,debugData:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:r.streamHandle=s.StreamHandle.decode(n,n.uint32());break;case 2:r.sourceEnd=n.string();break;case 3:r.reasonEnd=n.int32();break;case 4:r.format=n.int32();break;case 5:r.debugData=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({streamHandle:l(e.streamHandle)?s.StreamHandle.fromJSON(e.streamHandle):void 0,sourceEnd:l(e.sourceEnd)?String(e.sourceEnd):"",reasonEnd:l(e.reasonEnd)?(0,a.playReasonFromJSON)(e.reasonEnd):0,format:l(e.format)?(0,r.audioFormatFromJSON)(e.format):void 0,debugData:l(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?s.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.sourceEnd&&(t.sourceEnd=e.sourceEnd),void 0!==e.reasonEnd&&(t.reasonEnd=(0,a.playReasonToJSON)(e.reasonEnd)),void 0!==e.format&&(t.format=void 0!==e.format?(0,r.audioFormatToJSON)(e.format):void 0),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t={streamHandle:void 0,sourceEnd:"",reasonEnd:0,format:void 0,debugData:""};return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?s.StreamHandle.fromPartial(e.streamHandle):void 0,t.sourceEnd=e.sourceEnd??"",t.reasonEnd=e.reasonEnd??0,t.format=e.format??void 0,t.debugData=e.debugData??"",t}}},78307:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamHandle=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamHandle={encode:(e,t=i.default.Writer.create())=>(0!==e.rawHandle&&t.uint32(16).uint32(e.rawHandle),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={rawHandle:0};for(;n.pos<o;){const e=n.uint32();if(e>>>3==2)r.rawHandle=n.uint32();else n.skipType(7&e)}return r},fromJSON(e){return{rawHandle:(t=e.rawHandle,null!=t?Number(e.rawHandle):0)};var t},toJSON(e){const t={};return void 0!==e.rawHandle&&(t.rawHandle=Math.round(e.rawHandle)),t},fromPartial(e){const t={rawHandle:0};return t.rawHandle=e.rawHandle??0,t}}},8557:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamProgressRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(87508),s=n(78307);function l(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamProgressRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.streamHandle&&s.StreamHandle.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),"0"!==e.currentPosition&&t.uint32(16).uint64(e.currentPosition),!0===e.isPaused&&t.uint32(24).bool(e.isPaused),!0===e.isPlayingVideo&&t.uint32(32).bool(e.isPlayingVideo),!0===e.isOverlapping&&t.uint32(40).bool(e.isOverlapping),!0===e.isBackground&&t.uint32(48).bool(e.isBackground),!0===e.isFullscreen&&t.uint32(56).bool(e.isFullscreen),!0===e.isExternal&&t.uint32(64).bool(e.isExternal),0!==e.playbackSpeed&&t.uint32(73).double(e.playbackSpeed),void 0!==e.mediaId&&t.uint32(82).string(e.mediaId),void 0!==e.contentIsDownloaded&&t.uint32(88).bool(e.contentIsDownloaded),void 0!==e.audioFormat&&t.uint32(96).int32(e.audioFormat),void 0!==e.contentUri&&t.uint32(106).string(e.contentUri),""!==e.debugData&&t.uint32(114).string(e.debugData),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={streamHandle:void 0,currentPosition:"0",isPaused:!1,isPlayingVideo:!1,isOverlapping:!1,isBackground:!1,isFullscreen:!1,isExternal:!1,playbackSpeed:0,mediaId:void 0,contentIsDownloaded:void 0,audioFormat:void 0,contentUri:void 0,debugData:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.streamHandle=s.StreamHandle.decode(n,n.uint32());break;case 2:i.currentPosition=n.uint64().toString();break;case 3:i.isPaused=n.bool();break;case 4:i.isPlayingVideo=n.bool();break;case 5:i.isOverlapping=n.bool();break;case 6:i.isBackground=n.bool();break;case 7:i.isFullscreen=n.bool();break;case 8:i.isExternal=n.bool();break;case 9:i.playbackSpeed=n.double();break;case 10:i.mediaId=n.string();break;case 11:i.contentIsDownloaded=n.bool();break;case 12:i.audioFormat=n.int32();break;case 13:i.contentUri=n.string();break;case 14:i.debugData=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({streamHandle:l(e.streamHandle)?s.StreamHandle.fromJSON(e.streamHandle):void 0,currentPosition:l(e.currentPosition)?String(e.currentPosition):"0",isPaused:!!l(e.isPaused)&&Boolean(e.isPaused),isPlayingVideo:!!l(e.isPlayingVideo)&&Boolean(e.isPlayingVideo),isOverlapping:!!l(e.isOverlapping)&&Boolean(e.isOverlapping),isBackground:!!l(e.isBackground)&&Boolean(e.isBackground),isFullscreen:!!l(e.isFullscreen)&&Boolean(e.isFullscreen),isExternal:!!l(e.isExternal)&&Boolean(e.isExternal),playbackSpeed:l(e.playbackSpeed)?Number(e.playbackSpeed):0,mediaId:l(e.mediaId)?String(e.mediaId):void 0,contentIsDownloaded:l(e.contentIsDownloaded)?Boolean(e.contentIsDownloaded):void 0,audioFormat:l(e.audioFormat)?(0,a.audioFormatFromJSON)(e.audioFormat):void 0,contentUri:l(e.contentUri)?String(e.contentUri):void 0,debugData:l(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?s.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.currentPosition&&(t.currentPosition=e.currentPosition),void 0!==e.isPaused&&(t.isPaused=e.isPaused),void 0!==e.isPlayingVideo&&(t.isPlayingVideo=e.isPlayingVideo),void 0!==e.isOverlapping&&(t.isOverlapping=e.isOverlapping),void 0!==e.isBackground&&(t.isBackground=e.isBackground),void 0!==e.isFullscreen&&(t.isFullscreen=e.isFullscreen),void 0!==e.isExternal&&(t.isExternal=e.isExternal),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),void 0!==e.mediaId&&(t.mediaId=e.mediaId),void 0!==e.contentIsDownloaded&&(t.contentIsDownloaded=e.contentIsDownloaded),void 0!==e.audioFormat&&(t.audioFormat=void 0!==e.audioFormat?(0,a.audioFormatToJSON)(e.audioFormat):void 0),void 0!==e.contentUri&&(t.contentUri=e.contentUri),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t={streamHandle:void 0,currentPosition:"0",isPaused:!1,isPlayingVideo:!1,isOverlapping:!1,isBackground:!1,isFullscreen:!1,isExternal:!1,playbackSpeed:0,mediaId:void 0,contentIsDownloaded:void 0,audioFormat:void 0,contentUri:void 0,debugData:""};return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?s.StreamHandle.fromPartial(e.streamHandle):void 0,t.currentPosition=e.currentPosition??"0",t.isPaused=e.isPaused??!1,t.isPlayingVideo=e.isPlayingVideo??!1,t.isOverlapping=e.isOverlapping??!1,t.isBackground=e.isBackground??!1,t.isFullscreen=e.isFullscreen??!1,t.isExternal=e.isExternal??!1,t.playbackSpeed=e.playbackSpeed??0,t.mediaId=e.mediaId??void 0,t.contentIsDownloaded=e.contentIsDownloaded??void 0,t.audioFormat=e.audioFormat??void 0,t.contentUri=e.contentUri??void 0,t.debugData=e.debugData??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},97278:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamSeekRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(78307);function s(e){return e.toString()}function l(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamSeekRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.streamHandle&&a.StreamHandle.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),"0"!==e.fromPosition&&t.uint32(24).uint64(e.fromPosition),"0"!==e.toPosition&&t.uint32(32).uint64(e.toPosition),""!==e.debugData&&t.uint32(42).string(e.debugData),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={streamHandle:void 0,fromPosition:"0",toPosition:"0",debugData:""};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.streamHandle=a.StreamHandle.decode(n,n.uint32());break;case 3:i.fromPosition=s(n.uint64());break;case 4:i.toPosition=s(n.uint64());break;case 5:i.debugData=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({streamHandle:l(e.streamHandle)?a.StreamHandle.fromJSON(e.streamHandle):void 0,fromPosition:l(e.fromPosition)?String(e.fromPosition):"0",toPosition:l(e.toPosition)?String(e.toPosition):"0",debugData:l(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?a.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.fromPosition&&(t.fromPosition=e.fromPosition),void 0!==e.toPosition&&(t.toPosition=e.toPosition),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t={streamHandle:void 0,fromPosition:"0",toPosition:"0",debugData:""};return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?a.StreamHandle.fromPartial(e.streamHandle):void 0,t.fromPosition=e.fromPosition??"0",t.toPosition=e.toPosition??"0",t.debugData=e.debugData??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},36012:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamStartRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(32739),s=n(85671),l=n(23433),c=n(17498);function u(){return{playbackId:new Uint8Array,parentPlaybackId:new Uint8Array,parentPlayTrack:"",videoSessionId:"",playContext:"",contentUri:"",displayedContentUri:"",playbackStack:0,provider:"",referrer:"",streamingRule:0,connectControllerDeviceId:"",pageInstanceId:"",interactionId:"",sourceStart:"",reasonStart:0,isShuffle:!1,isIncognito:!1,mediaId:"",mediaType:0,playbackStartTime:"0",startPosition:"0",isLive:!1,contentIsDownloaded:!1,clientOffline:!1,isSocialListeningActive:!1,debugData:""}}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamStartRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),0!==e.parentPlaybackId.length&&t.uint32(18).bytes(e.parentPlaybackId),""!==e.parentPlayTrack&&t.uint32(26).string(e.parentPlayTrack),""!==e.videoSessionId&&t.uint32(34).string(e.videoSessionId),""!==e.playContext&&t.uint32(42).string(e.playContext),""!==e.contentUri&&t.uint32(50).string(e.contentUri),""!==e.displayedContentUri&&t.uint32(58).string(e.displayedContentUri),0!==e.playbackStack&&t.uint32(64).int32(e.playbackStack),""!==e.provider&&t.uint32(90).string(e.provider),""!==e.referrer&&t.uint32(98).string(e.referrer),0!==e.streamingRule&&t.uint32(120).int32(e.streamingRule),""!==e.connectControllerDeviceId&&t.uint32(130).string(e.connectControllerDeviceId),""!==e.pageInstanceId&&t.uint32(138).string(e.pageInstanceId),""!==e.interactionId&&t.uint32(146).string(e.interactionId),""!==e.sourceStart&&t.uint32(154).string(e.sourceStart),0!==e.reasonStart&&t.uint32(160).int32(e.reasonStart),!0===e.isShuffle&&t.uint32(184).bool(e.isShuffle),!0===e.isIncognito&&t.uint32(200).bool(e.isIncognito),""!==e.mediaId&&t.uint32(226).string(e.mediaId),0!==e.mediaType&&t.uint32(232).int32(e.mediaType),"0"!==e.playbackStartTime&&t.uint32(240).uint64(e.playbackStartTime),"0"!==e.startPosition&&t.uint32(248).uint64(e.startPosition),!0===e.isLive&&t.uint32(256).bool(e.isLive),!0===e.contentIsDownloaded&&t.uint32(264).bool(e.contentIsDownloaded),!0===e.clientOffline&&t.uint32(272).bool(e.clientOffline),!0===e.isSocialListeningActive&&t.uint32(280).bool(e.isSocialListeningActive),""!==e.debugData&&t.uint32(290).string(e.debugData),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=u();for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.playbackId=n.bytes();break;case 2:i.parentPlaybackId=n.bytes();break;case 3:i.parentPlayTrack=n.string();break;case 4:i.videoSessionId=n.string();break;case 5:i.playContext=n.string();break;case 6:i.contentUri=n.string();break;case 7:i.displayedContentUri=n.string();break;case 8:i.playbackStack=n.int32();break;case 11:i.provider=n.string();break;case 12:i.referrer=n.string();break;case 15:i.streamingRule=n.int32();break;case 16:i.connectControllerDeviceId=n.string();break;case 17:i.pageInstanceId=n.string();break;case 18:i.interactionId=n.string();break;case 19:i.sourceStart=n.string();break;case 20:i.reasonStart=n.int32();break;case 23:i.isShuffle=n.bool();break;case 25:i.isIncognito=n.bool();break;case 28:i.mediaId=n.string();break;case 29:i.mediaType=n.int32();break;case 30:i.playbackStartTime=h(n.uint64());break;case 31:i.startPosition=h(n.uint64());break;case 32:i.isLive=n.bool();break;case 33:i.contentIsDownloaded=n.bool();break;case 34:i.clientOffline=n.bool();break;case 35:i.isSocialListeningActive=n.bool();break;case 36:i.debugData=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({playbackId:m(e.playbackId)?p(e.playbackId):new Uint8Array,parentPlaybackId:m(e.parentPlaybackId)?p(e.parentPlaybackId):new Uint8Array,parentPlayTrack:m(e.parentPlayTrack)?String(e.parentPlayTrack):"",videoSessionId:m(e.videoSessionId)?String(e.videoSessionId):"",playContext:m(e.playContext)?String(e.playContext):"",contentUri:m(e.contentUri)?String(e.contentUri):"",displayedContentUri:m(e.displayedContentUri)?String(e.displayedContentUri):"",playbackStack:m(e.playbackStack)?(0,l.playbackStackFromJSON)(e.playbackStack):0,provider:m(e.provider)?String(e.provider):"",referrer:m(e.referrer)?String(e.referrer):"",streamingRule:m(e.streamingRule)?(0,c.streamingRuleFromJSON)(e.streamingRule):0,connectControllerDeviceId:m(e.connectControllerDeviceId)?String(e.connectControllerDeviceId):"",pageInstanceId:m(e.pageInstanceId)?String(e.pageInstanceId):"",interactionId:m(e.interactionId)?String(e.interactionId):"",sourceStart:m(e.sourceStart)?String(e.sourceStart):"",reasonStart:m(e.reasonStart)?(0,s.playReasonFromJSON)(e.reasonStart):0,isShuffle:!!m(e.isShuffle)&&Boolean(e.isShuffle),isIncognito:!!m(e.isIncognito)&&Boolean(e.isIncognito),mediaId:m(e.mediaId)?String(e.mediaId):"",mediaType:m(e.mediaType)?(0,a.mediaTypeFromJSON)(e.mediaType):0,playbackStartTime:m(e.playbackStartTime)?String(e.playbackStartTime):"0",startPosition:m(e.startPosition)?String(e.startPosition):"0",isLive:!!m(e.isLive)&&Boolean(e.isLive),contentIsDownloaded:!!m(e.contentIsDownloaded)&&Boolean(e.contentIsDownloaded),clientOffline:!!m(e.clientOffline)&&Boolean(e.clientOffline),isSocialListeningActive:!!m(e.isSocialListeningActive)&&Boolean(e.isSocialListeningActive),debugData:m(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=f(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.parentPlaybackId&&(t.parentPlaybackId=f(void 0!==e.parentPlaybackId?e.parentPlaybackId:new Uint8Array)),void 0!==e.parentPlayTrack&&(t.parentPlayTrack=e.parentPlayTrack),void 0!==e.videoSessionId&&(t.videoSessionId=e.videoSessionId),void 0!==e.playContext&&(t.playContext=e.playContext),void 0!==e.contentUri&&(t.contentUri=e.contentUri),void 0!==e.displayedContentUri&&(t.displayedContentUri=e.displayedContentUri),void 0!==e.playbackStack&&(t.playbackStack=(0,l.playbackStackToJSON)(e.playbackStack)),void 0!==e.provider&&(t.provider=e.provider),void 0!==e.referrer&&(t.referrer=e.referrer),void 0!==e.streamingRule&&(t.streamingRule=(0,c.streamingRuleToJSON)(e.streamingRule)),void 0!==e.connectControllerDeviceId&&(t.connectControllerDeviceId=e.connectControllerDeviceId),void 0!==e.pageInstanceId&&(t.pageInstanceId=e.pageInstanceId),void 0!==e.interactionId&&(t.interactionId=e.interactionId),void 0!==e.sourceStart&&(t.sourceStart=e.sourceStart),void 0!==e.reasonStart&&(t.reasonStart=(0,s.playReasonToJSON)(e.reasonStart)),void 0!==e.isShuffle&&(t.isShuffle=e.isShuffle),void 0!==e.isIncognito&&(t.isIncognito=e.isIncognito),void 0!==e.mediaId&&(t.mediaId=e.mediaId),void 0!==e.mediaType&&(t.mediaType=(0,a.mediaTypeToJSON)(e.mediaType)),void 0!==e.playbackStartTime&&(t.playbackStartTime=e.playbackStartTime),void 0!==e.startPosition&&(t.startPosition=e.startPosition),void 0!==e.isLive&&(t.isLive=e.isLive),void 0!==e.contentIsDownloaded&&(t.contentIsDownloaded=e.contentIsDownloaded),void 0!==e.clientOffline&&(t.clientOffline=e.clientOffline),void 0!==e.isSocialListeningActive&&(t.isSocialListeningActive=e.isSocialListeningActive),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t=u();return t.playbackId=e.playbackId??new Uint8Array,t.parentPlaybackId=e.parentPlaybackId??new Uint8Array,t.parentPlayTrack=e.parentPlayTrack??"",t.videoSessionId=e.videoSessionId??"",t.playContext=e.playContext??"",t.contentUri=e.contentUri??"",t.displayedContentUri=e.displayedContentUri??"",t.playbackStack=e.playbackStack??0,t.provider=e.provider??"",t.referrer=e.referrer??"",t.streamingRule=e.streamingRule??0,t.connectControllerDeviceId=e.connectControllerDeviceId??"",t.pageInstanceId=e.pageInstanceId??"",t.interactionId=e.interactionId??"",t.sourceStart=e.sourceStart??"",t.reasonStart=e.reasonStart??0,t.isShuffle=e.isShuffle??!1,t.isIncognito=e.isIncognito??!1,t.mediaId=e.mediaId??"",t.mediaType=e.mediaType??0,t.playbackStartTime=e.playbackStartTime??"0",t.startPosition=e.startPosition??"0",t.isLive=e.isLive??!1,t.contentIsDownloaded=e.contentIsDownloaded??!1,t.clientOffline=e.clientOffline??!1,t.isSocialListeningActive=e.isSocialListeningActive??!1,t.debugData=e.debugData??"",t}};var d=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function p(e){if(d.Buffer)return Uint8Array.from(d.Buffer.from(e,"base64"));{const t=d.atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}}function f(e){if(d.Buffer)return d.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),d.btoa(t.join(""))}}function h(e){return e.toString()}function m(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},3064:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamStartResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(25092),a=n(78307);function s(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamStartResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.StatusResponse.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.streamHandle&&a.StreamHandle.encode(e.streamHandle,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,streamHandle:void 0};for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.status=r.StatusResponse.decode(n,n.uint32());break;case 2:s.streamHandle=a.StreamHandle.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?r.StatusResponse.fromJSON(e.status):void 0,streamHandle:s(e.streamHandle)?a.StreamHandle.fromJSON(e.streamHandle):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.StatusResponse.toJSON(e.status):void 0),void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?a.StreamHandle.toJSON(e.streamHandle):void 0),t},fromPartial(e){const t={status:void 0,streamHandle:void 0};return t.status=void 0!==e.status&&null!==e.status?r.StatusResponse.fromPartial(e.status):void 0,t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?a.StreamHandle.fromPartial(e.streamHandle):void 0,t}}},17498:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.streamingRuleToJSON=t.streamingRuleFromJSON=t.StreamingRule=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.STREAMING_RULE_NONE=0]="STREAMING_RULE_NONE",e[e.STREAMING_RULE_DMCA_RADIO=1]="STREAMING_RULE_DMCA_RADIO",e[e.STREAMING_RULE_PREVIEW=2]="STREAMING_RULE_PREVIEW",e[e.STREAMING_RULE_WIFI=3]="STREAMING_RULE_WIFI",e[e.STREAMING_RULE_SHUFFLE_MODE=4]="STREAMING_RULE_SHUFFLE_MODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.StreamingRule||(t.StreamingRule={})),t.streamingRuleFromJSON=function(e){switch(e){case 0:case"STREAMING_RULE_NONE":return n.STREAMING_RULE_NONE;case 1:case"STREAMING_RULE_DMCA_RADIO":return n.STREAMING_RULE_DMCA_RADIO;case 2:case"STREAMING_RULE_PREVIEW":return n.STREAMING_RULE_PREVIEW;case 3:case"STREAMING_RULE_WIFI":return n.STREAMING_RULE_WIFI;case 4:case"STREAMING_RULE_SHUFFLE_MODE":return n.STREAMING_RULE_SHUFFLE_MODE;default:return n.UNRECOGNIZED}},t.streamingRuleToJSON=function(e){switch(e){case n.STREAMING_RULE_NONE:return"STREAMING_RULE_NONE";case n.STREAMING_RULE_DMCA_RADIO:return"STREAMING_RULE_DMCA_RADIO";case n.STREAMING_RULE_PREVIEW:return"STREAMING_RULE_PREVIEW";case n.STREAMING_RULE_WIFI:return"STREAMING_RULE_WIFI";case n.STREAMING_RULE_SHUFFLE_MODE:return"STREAMING_RULE_SHUFFLE_MODE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},45658:(e,t,n)=>{"use strict";function o(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function i(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}function r({async:e,dataset:t,onError:n,onLoad:o,src:i,nonce:r}){const a=document.createElement("script");e&&(a.async=e),t&&Object.keys(t).map((e=>{a.dataset[e]=t[e]})),n&&a.addEventListener("error",n),o&&a.addEventListener("load",o),r&&a.setAttribute("nonce",r),a.src=i,document.head.appendChild(a)}function a({innerHTML:e,nonce:t}){const n=document.createElement("script");t&&n.setAttribute("nonce",t),n.innerHTML=e,document.head.appendChild(n)}n.r(t),n.d(t,{GTM_SHA_HASH:()=>s,OPTIMIZE_SHA_HASH:()=>T,addConsentListener:()=>S,getConsentInfo:()=>A,removeConsentListener:()=>E,track:()=>C});const s="'sha256-WfsTi7oVogdF9vq5d14s2birjvCglqWF842fyHhzoNw='";function l({id:e,additionalData:t,nonce:n}){window.__gtm_additional_data=t||"",window.__gtm_track_id=e,a({innerHTML:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+window.__gtm_additional_data;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer',window.__gtm_track_id);",nonce:n})}const c="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js";const u=e=>e.slice(e.indexOf("."));var d=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};const p="50da44be-0564-43df-b139-329aedcf267b",f=new Set,h=new Set;function m({timeout:e=5e3,oneTrustDomainScript:t}){return d(this,void 0,void 0,(function*(){let n;return window.OptanonWrapper=g,new Promise(((o,i)=>{r({dataset:{domainScript:t||p,documentLanguage:"true"},onError:i,onLoad:o,src:c}),n=setTimeout(i,e)})).then((()=>clearTimeout(n)))}))}function g(){var e,t;window.gtag||(window.gtag=i);const n=A();var r;n&&f.forEach((e=>{try{e(n)}catch(e){}})),null===(e=window.OneTrust)||void 0===e||e.OnConsentChanged(b),(window.__cmp||window.__tcfapi)&&window.OptanonActiveGroups&&(null===(t=n)||void 0===t?void 0:t.consentId)&&(r=n.consentId,window.__tcfapi?window.__tcfapi("getTCData",2,function(e){return function(t,n){if(!n)return;const i=JSON.stringify({id:e,iab:t.tcString,cate:window.OptanonActiveGroups});_(),o({consentData:i})}}(r)):window.__cmp("getVendorConsents",{},function(e){return function(t){const n=JSON.stringify({id:e,iab:t.metadata,cate:window.OptanonActiveGroups});_(),o({consentData:n})}}(r)))}const v="sp_consent",y=-1e3;function _(){const e=u(window.location.hostname);document.cookie=[`${v}=`,`max-age=${y}`,`domain=${e}`,"path=/"].join("; ")}function b(){const e=A();e&&f.forEach((t=>{try{t(e)}catch(e){}}))}function S(e,t){t&&f.add(e),h.add(e)}function E(e){f.delete(e),h.delete(e)}function A(){const e=function(e){const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let e=0;e<n.length;e++){let o=n[e];for(;" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return""}("OptanonConsent"),{groups:t,consentId:n,datestamp:o}=(null===(i=e)||void 0===i?void 0:i.split("&").reduce(((e,t)=>{const[n,o]=t.split("=");return n&&(e[n]=decodeURIComponent(o)),e}),{}))||{};var i;if(!n||!o||""===o)return;const r=function(e){if(!e)return{};return e.split(",").reduce(((e,t)=>{const[n,o]=t.split(":");return e[n]="1"===o,e}),{})}(t);return{groups:r,consentId:n,date:function(e){const t=e.replace(/\+/g," ");return new Date(t)}(o)}}const T="'sha256-KRzjHxCdT8icNaDOqPBdY0AlKiIh5F8r4bnbe1PQwss='";function P({id:e,timeout:t=4e3,nonce:n}){window.__optimize_timeout=t,window.__optimize_options={},window.__optimize_options[e]=!0,function({innerHTML:e}){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t)}({innerHTML:".async-hide { opacity: 0 !important}"}),a({innerHTML:'(function(a,s,y,n,c,h,i,d,e){d=true;s.className+=\' \'+y;h.start=1*new Date;h.end=i=function(t){s.className=s.className.replace(RegExp(" ?"+y),""),e=new Date-h.start,(e<c||d)&&a[n].push({event:"optimize",optimizeLoadedWithinTimeout:t?"false":"true"}),d=!1};(a[n]=a[n]||[]).hide=h;setTimeout(function(){i(true);h.end=null},c);h.timeout=c;})(window,document.documentElement,\'async-hide\',\'dataLayer\',window.__optimize_timeout,window.__optimize_options);',nonce:n}),r({async:!0,onError:()=>window.dataLayer&&window.dataLayer.hide&&window.dataLayer.hide.end&&window.dataLayer.hide.end(),src:`https://www.googleoptimize.com/optimize.js?id=${e}`,nonce:n})}var O=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};function C(e){return O(this,void 0,void 0,(function*(){if(!e)return Promise.resolve();const t=function(e){const{dataLayerPushInitial:t,googleOptimizeId:n,googleTagManagerId:o,language:i,market:r,oneTrust:a}=e;return{loadGoogleOptimize:!!n,loadGoogleTagManager:!!o,loadOneTrust:a&&r,pushInitialData:t&&i&&r}}(e);return function({language:e,loggedIn:t=!1,pushInitialData:n,market:i,userCountry:r=""}){n&&o({language:e,loggedIn:t,market:i,userCountry:r})}(Object.assign(Object.assign({},t),e)),yield function({loadGoogleOptimize:e,loadGoogleTagManager:t,loadOneTrust:n,googleOptimizeId:o,googleOptimizeTimeout:i,googleTagManagerId:r,googleTagManagerAdditionalData:a,oneTrustDomainScript:s,nonce:c}){return O(this,void 0,void 0,(function*(){const u=[];return e&&u.push(P({id:o,timeout:i})),t&&n?u.push(m({oneTrustDomainScript:s}).then((()=>l({id:r,additionalData:a,nonce:c})))):n?u.push(m({oneTrustDomainScript:s})):t&&u.push(l({id:r,additionalData:a,nonce:c})),Promise.all(u)}))}(Object.assign(Object.assign({},t),e))}))}},72226:(e,t,n)=>{"use strict";var o;n.d(t,{J:()=>o}),function(e){e.HTTP_REQUEST_ABORTED="HTTP_REQUEST_ABORTED",e.HTTP_REQUEST_FAILED="HTTP_REQUEST_FAILED",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED",e.TRANSPORT_ENDPOINTS_PROVIDER_ERROR="TRANSPORT_ENDPOINTS_PROVIDER_ERROR",e.TRANSPORT_INVALID_STATE="TRANSPORT_INVALID_STATE",e.TRANSPORT_INVALID_TOKEN="TRANSPORT_INVALID_TOKEN",e.TRANSPORT_STALE_TOKEN="TRANSPORT_STALE_TOKEN ",e.TRANSPORT_TOKEN_PROVIDER_ERROR="TRANSPORT_TOKEN_PROVIDER_ERROR",e.TRANSPORT_LIFECYCLE_DISABLED="TRANSPORT_LIFECYCLE_DISABLED",e.TRANSPORT_UNSUPPORTED_OPTION="TRANSPORT_UNSUPPORTED_OPTION",e.XRESOLVE_INCOMPLETE_RESPONSE="XRESOLVE_INCOMPLETE_RESPONSE",e.XRESOLVE_INVALID_RESPONSE="XRESOLVE_INVALID_RESPONSE",e.XRESOLVE_REQUEST_FAILED_WITH_STATUS="XRESOLVE_REQUEST_FAILED_WITH_STATUS"}(o||(o={}))},42450:(e,t,n)=>{"use strict";var o;n.d(t,{j:()=>o}),function(e){e.CONNECTION_ONLINE="online",e.CONNECTION_OFFLINE="offline",e.PRODUCT_STATE_CHANGED="product_state_changed",e.ACCESS_TOKEN="access_token",e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",e.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",e.CONNECTED="connected",e.CONNECTION_FAILED="connection_failed",e.CONNECTION_ID="connection_id",e.DISCONNECTED="disconnected",e.ENDPOINTS_RESOLVED="endpoints_resolved",e.LOGGED_OUT="logged_out",e.SHORT_SESSION_DISCONNECTED="short_session_disconnected",e.TOKEN_PROVIDER_ERROR="token_provider_error",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.WINDOW_BEFORE_UNLOAD="beforeunload"}(o||(o={}))},6967:(e,t,n)=>{"use strict";var o;n.d(t,{r:()=>o}),function(e){e[e.CLOSE=4e3]="CLOSE",e[e.TIMEOUT=4001]="TIMEOUT"}(o||(o={}))},16221:(e,t,n)=>{"use strict";var o;n.d(t,{n:()=>o}),function(e){e.DELETE="DELETE",e.GET="GET",e.OPTIONS="OPTIONS",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.TRACE="TRACE"}(o||(o={}))},34934:(e,t,n)=>{"use strict";var o;n.d(t,{t:()=>o}),function(e){e.TRANSPORT_AUTHENTICATE="transport_authenticate",e.TRANSPORT_AUTHENTICATE_FAILED="transport_authenticate_failed",e.TRANSPORT_CONNECT="transport_connect",e.TRANSPORT_DISCONNECT="transport_disconnect",e.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",e.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",e.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",e.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",e.TRANSPORT_REQUEST="transport_request",e.PLUGIN_CONNECTION_INFO="plugin_connection_info",e.PLUGIN_DISCONNECTED="plugin_disconnected",e.PLUGIN_MESSAGE="plugin_message",e.PLUGIN_REQUEST="plugin_request",e.PLUGIN_ERROR="plugin_error"}(o||(o={}))},30212:(e,t,n)=>{"use strict";var o;n.d(t,{G:()=>o}),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.TIMED_OUT=408]="TIMED_OUT",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_ENTITY_TOO_LARGE=413]="REQUEST_ENTITY_TOO_LARGE",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(o||(o={}))},72755:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConnectionObserver:()=>d,DEALER_PLUGIN_NAME:()=>v.hI,DisconnectionReason:()=>r,Method:()=>l.n,PluginEvent:()=>c.t,TransportErrors:()=>a.J,TransportEvent:()=>s.j,createAbortControllerLike:()=>g,createBaseTransport:()=>de,createTransport:()=>pe,createXResolveProvider:()=>ue.Q});var o={};n.r(o),n.d(o,{isSupported:()=>C,request:()=>k});var i={};n.r(i),n.d(i,{request:()=>ce});var r,a=n(72226),s=n(42450),l=n(16221),c=n(34934);!function(e){e.RECONNECTION_FAILED="reconnection_failed",e.EXPLICIT="explicit",e.LOG_OUT="log_out",e.WINDOW_BEFORE_UNLOAD="window_before_unload"}(r||(r={}));var u=n(53016);class d extends u.vp{}class p extends d{constructor(e){super();const t="undefined"!=typeof window,n=e&&e.notifyBeforeUnload;this._navigator=t&&window.navigator||null,t&&"function"==typeof window.addEventListener&&(window.addEventListener("online",this.emitSync.bind(this,s.j.CONNECTION_ONLINE,null)),window.addEventListener("offline",this.emitSync.bind(this,s.j.CONNECTION_OFFLINE,null)),n&&window.addEventListener(s.j.WINDOW_BEFORE_UNLOAD,this.emitSync.bind(this,s.j.WINDOW_BEFORE_UNLOAD,null)))}static create(e){return new p(e)}isOnline(){const e=this._navigator;return!e||!("onLine"in e)||e.onLine}}class f extends u.vp{constructor(){super(),this._aborted=!1,this.onabort=null,this.on("abort",(()=>{var e;return null===(e=this.onabort)||void 0===e?void 0:e.call(this)}))}static abort(){const e=new f;return e._aborted=!0,e}static signalAbort(e){"_aborted"in e&&!e._aborted&&(e._aborted=!0,e.emit("abort",null))}get aborted(){return this._aborted}set aborted(e){}addEventListener(e,t){this.addListener(e,t)}removeEventListener(e,t){this.removeListener(e,t)}dispatchEvent(){}}class h{constructor(){this.signal=new f}abort(){const e=this.signal;f.signalAbort(e)}}function m(){return"undefined"!=typeof window&&"function"==typeof window.AbortController}const g=m()?()=>new AbortController:()=>new h;var v=n(30500),y=n(77321);const _={POST:!0,PUT:!0,DELETE:!0};var b=n(30212);class S extends Error{constructor(e,t,n){super(e),this.name="RequestError",this.message=e,this.code=t,this.status=n||0}}class E extends S{constructor(){super("Request aborted by signal.",a.J.HTTP_REQUEST_ABORTED,0),this.name="RequestAbortedError",this.message="Request aborted by signal."}}class A{constructor(e){this.get=e.get.bind(e),this.has=e.has.bind(e)}get(e){return null}has(e){return!1}}class T{constructor(e,t=0){this.url="",this.status=0,this.headers=null,this.body=null,this.offline=!1,this.timing=null,this.metadata=null,this.retries={count:0},this.url=e,this.status=t,this.ok=t>=200&&t<=299}getStatusFamily(){return 0|this.status/100}}const P=y.P.forTag("transport.http.fetch"),O={json:!0,text:!0,arraybuffer:!0,blob:!0};function C(){return"function"==typeof fetch}function k(e){if(!C())return Promise.reject(new TypeError("Fetch is not supported"));const t=e.options.signal;if(null==t?void 0:t.aborted)return Promise.reject(new E);if(!e.url)return Promise.reject(new TypeError("Request URL cannot be blank."));const n=e.method||"GET";let o=e.url,i=null;if(n in _&&e.payload?i=e.payload:e.payload&&(o+=`?${e.payload}`),e.options.responseType&&!(e.options.responseType in O))return Promise.reject(new TypeError("Cannot set responseType: not supported in browser."));const r={mode:e.options.mode||"cors",credentials:e.options.credentials||"same-origin",redirect:e.options.redirect||"follow",signal:t,method:n};e.headers.count()&&(r.headers=e.headers.toJSON()),i&&(r.body=i);const a=Date.now();return fetch(o,r).then((function(t){let n;n=e.options.ignoreResponseBody||t.status===b.G.NO_CONTENT?null:"json"===e.options.responseType?t.json().catch((function(e){return P.warn("Could not parse response as JSON:",e),null})):"arraybuffer"===e.options.responseType?t.arrayBuffer():"blob"===e.options.responseType?t.blob():t.text();const o=e.options.parseResponseHeaders||t.status>299?new A(t.headers):null;return Promise.all([t.url,t.status,o,n])})).then((function([t,n,o,i]){const r=new T(t,n);if(r.body=i,r.headers=o,e.options.timing){const e=Date.now()-a;r.timing={completed:e}}return r})).catch((function(t){if("AbortError"===(null==t?void 0:t.name))throw new E;const n=new T(o);if(e.options.timing){const e=Date.now()-a;n.timing={completed:e}}return n})).then((function(t){return e.options.connectionObserver&&(t.offline=!e.options.connectionObserver.isOnline()),t}))}var R=n(96583),L=n(60220);const I=200,N=0,w="linear",D=!0;class M{constructor(e={}){this._curve=e.curve||w,this._baseTime=e.baseTime||I,this._ceiling=e.ceiling||N,this._jitter="jitter"in e?!!e.jitter:D}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;default:t=e+1}let n=Math.min(4294967296,Math.floor(t*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(e){const t=e/5;return Math.floor(e-t/2+Math.random()*t)}(n):n}}const x={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class F{constructor(e,t){this._resolver=(0,L.$)(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},x),t),{backoffInitial:o,maxDuration:i,maxRetries:r,maxTime:a,retryPredicate:s}=n,l=(0,R.__rest)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=o,this._maxDuration=i,this._maxRetries=r,this._maxTime=a,this._retryPredicate=s,this._backoffInitial=o,this._counter=new M(l),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new F(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)if(e&&"retryAfter"in e)this._retryAfter(e);else{const t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e.retryAfter)}_success(...e){this._isDestroyed||(this._resolver.resolve(...e),this._destroy())}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCount<this._maxRetries&&e<this._maxTime&&n<this._maxDuration&&this._retryPredicate(t)}_tick(){this._fn().then(((...e)=>this._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise)}stop(){clearTimeout(this._tickInterval),this._destroy()}getRetryCount(){return this._callCount}}var U,B,V=n(6967);!function(e){e[e.CONNECTION_ERROR=0]="CONNECTION_ERROR",e[e.INFORMATIONAL=1]="INFORMATIONAL",e[e.SUCCESS=2]="SUCCESS",e[e.REDIRECTION=3]="REDIRECTION",e[e.CLIENT_ERROR=4]="CLIENT_ERROR",e[e.SERVER_ERROR=5]="SERVER_ERROR"}(U||(U={}));class G extends Error{constructor(e,t,n=null){super(t),this.name="TransportError",this.message=t,this.code=e,this.origin=n}}class J{constructor(e){this._headers={},this._count=0,this._setAll(e)}_setAll(e){let t=0;for(const n in e)e.hasOwnProperty(n)&&e[n]&&(this._headers[n.toLowerCase()]=e[n],t++);this._count=t}get(e){return this._headers[e.toLowerCase()]||null}has(e){return!!this._headers[e.toLowerCase()]}set(e,t){this._headers[e.toLowerCase()]=t,this._count++}delete(e){const t=e.toLowerCase();this._headers[t]&&this._count--,delete this._headers[e.toLowerCase()]}count(){return this._count}toJSON(){return Object.assign({},this._headers)}}class j{constructor(e,t){this.url=e,this.method=(null==t?void 0:t.method)||"GET",this.headers=new J(null==t?void 0:t.headers),this.options=(null==t?void 0:t.options)||{},this.payload=null==t?void 0:t.payload,this.urlExpanded=(null==t?void 0:t.urlExpanded)||!1,this.retryOptions=(null==t?void 0:t.retryOptions)||{}}static create(e,t){return new j(e,t)}clone(){const e=new j(this.url);return e.method=this.method,e.headers=new J(this.headers.toJSON()),e.options=this.options,e.payload=this.payload,e.urlExpanded=this.urlExpanded,e.retryOptions=this.retryOptions,e}}!function(e){e.EVENT_ACCESS_TOKEN="access_token",e.EVENT_CONNECTION_ID="connection_id",e.EVENT_CONNECTION_OFFLINE="connection_offline",e.EVENT_CONNECTION_ONLINE="connection_online",e.EVENT_ENDPOINTS_RESOLVED="endpoints_resolved"}(B||(B={}));class H extends u.vp{constructor(e,t){super(),this.EVENT_ACCESS_TOKEN=B.EVENT_ACCESS_TOKEN,this.EVENT_CONNECTION_ID=B.EVENT_CONNECTION_ID,this.EVENT_CONNECTION_OFFLINE=B.EVENT_CONNECTION_OFFLINE,this.EVENT_CONNECTION_ONLINE=B.EVENT_CONNECTION_ONLINE,this.EVENT_ENDPOINTS_RESOLVED=B.EVENT_ENDPOINTS_RESOLVED,this.StatusCode=b.G,this.StatusFamily=U,this.getConnectionId=e.getConnectionId.bind(e),this.getEndpoints=e.getEndpoints.bind(e),this.getInitTime=e.getInitTime.bind(e),this.getLastToken=e.getLastToken.bind(e),this.matchMessages=e.matchMessages.bind(e),this.unmatchMessages=e.unmatchMessages.bind(e),this.handlePushRequests=e.handlePushRequests.bind(e),this.unhandlePushRequests=e.unhandlePushRequests.bind(e),this.hasPlugin=e.hasPlugin.bind(e),this.getPluginAPI=e.getPluginAPI.bind(e);const n=e.request.bind(e);(null==t?void 0:t.requestOptions)?this.request=(e,o)=>n(e,o?Object.assign(Object.assign(Object.assign({},null==t?void 0:t.requestOptions),o),{metadata:Object.assign(Object.assign({},t.requestOptions.metadata),null==o?void 0:o.metadata),retry:Object.assign(Object.assign({},t.requestOptions.retry),null==o?void 0:o.retry)}):t.requestOptions):this.request=n,this.proxyEmit(e,s.j.ACCESS_TOKEN,B.EVENT_ACCESS_TOKEN),this.proxyEmit(e,s.j.CONNECTION_OFFLINE,B.EVENT_CONNECTION_OFFLINE),this.proxyEmit(e,s.j.CONNECTION_ONLINE,B.EVENT_CONNECTION_ONLINE),this.proxyEmit(e,s.j.ENDPOINTS_RESOLVED,B.EVENT_ENDPOINTS_RESOLVED),this.onAddListener(B.EVENT_CONNECTION_ID,this._onAddConnectionIdListener.bind(this,e.on.bind(e))),this.onRemoveListener(B.EVENT_CONNECTION_ID,this._onRemoveConnectionIdListener.bind(this,e.removeListener.bind(e)))}_onAddConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener,o=e=>{const t=this.createEvent(B.EVENT_CONNECTION_ID,e.data);n.call(this,t)};n.$proxy_wrapper=o,e(s.j.CONNECTION_ID,o,t.data.options)}_onRemoveConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener;n.$proxy_wrapper&&e(s.j.CONNECTION_ID,n.$proxy_wrapper,t.data.options)}removeAllListeners(){return this}}class K{constructor(){this._startTime=null,this._endTime=null}static create(){return new K}start(){if(null!==this._startTime)throw new Error("Measurement is already in progress.");this._startTime=Date.now()}end(){if(null===this._startTime||null!==this._endTime)throw new Error("Measurement is not in progress.");this._endTime=Date.now()}getMetrics(){if(null===this._startTime||null===this._endTime)throw new Error("Measurement is not done.");return{start_time:this._startTime,end_time:this._endTime}}}const Y=y.P.forTag("transport.transport"),W=/^(?:https?:\/\/)?@([^\/]+)\//,z=/^(ws|http)s?:\/\/.*[^\/]$/,q=/^([a-zA-Z]{3},\ \d{1,2}\ [a-zA-Z]{3}\ (\d{1,2}.){3})/,X={xhr:!0,fetch:!0},Z=1,Q=4;function $(e,t){const n=`access_token=${encodeURIComponent(t)}`,[o,i]=e.split("?");if(!i)return`${o}?${n}`;const r=i.replace(/access_token=[^&]*(&|$)/,`${n}$1`);return r!==i?`${o}?${r}`:`${o}?${n}&${i}`}class ee extends u.vp{constructor(e){if(super(),this._plugins={},this._pluginMediator=new u.vp,this._connectCalled=!1,this._authenticateCalled=!1,this._endpoints=null,this._lastToken=null,this._lastTokenExpiry=0,this._refreshTokenPromise=null,this._authenticationPromise=null,this._reconnectTimeout=0,this._isReconnecting=!1,this._initTime=0,this._lastDisconnect=0,this._stateMask=0,this._quickDisconnectCount=0,this._counter=new M({curve:"exponential",baseTime:5e3,ceiling:15e3}),this._stateAwareListeners={connected:[],authenticated:[],connection_id:[],transport_connect:[],transport_authenticate:[]},this._stateAwareOperationMetrics={authenticated:null},this._stateAwareRunners={connected:null,authenticated:null,connection_id:null,transport_connect:null,transport_authenticate:null},!e)throw new TypeError("Argument `options` for Transport cannot be null.");if(!e.providers)throw new TypeError("Argument `options.providers` for Transport cannot be null.");this._ownerRef="ownerRef"in e?Object(e.ownerRef):{},this._tokenProvider=e.providers.token,this._endpointsProvider=e.providers.endpoints,this._XHR=e.XHR,this._Fetch=e.Fetch,this._reconnectionRetries=e.reconnectionRetries>=0?e.reconnectionRetries:3,this._requestMode=e.requestMode in X?e.requestMode:"xhr",this._forcePolyfillTypes=e.forcePolyfillTypes||{},this._disableAutoLogout="disableAutoLogout"in e&&!!e.disableAutoLogout,this._disconnectBeforeUnload=e.disconnectBeforeUnload||!1;const t=e.createConnectionObserver||p.create;this._connectionObserver=t({notifyBeforeUnload:this._disconnectBeforeUnload}),this.authenticate=this.authenticate.bind(this),this._authenticateWithToken=this._authenticateWithToken.bind(this),this._connectToEndpoints=this._connectToEndpoints.bind(this),this._parseProvidedToken=this._parseProvidedToken.bind(this),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onAuthenticationFailed=this._onAuthenticationFailed.bind(this),this._init()}static create(e){return new ee(e)}_init(){this.onAddListener(s.j.CONNECTED,this._onAddListener.bind(this,"connected")),this.onAddListener(s.j.AUTHENTICATED,this._onAddListener.bind(this,"authenticated")),this.onAddListener(s.j.CONNECTION_ID,this._onAddListener.bind(this,"connection_id")),this.onRemoveListener(s.j.CONNECTED,this._onRemoveListener.bind(this,"connected")),this.onRemoveListener(s.j.AUTHENTICATED,this._onRemoveListener.bind(this,"authenticated")),this.onRemoveListener(s.j.CONNECTION_ID,this._onRemoveListener.bind(this,"connection_id")),this._pluginMediator.onAddListener(c.t.TRANSPORT_CONNECT,this._onAddListener.bind(this,"transport_connect")),this._pluginMediator.onAddListener(c.t.TRANSPORT_AUTHENTICATE,this._onAddListener.bind(this,"transport_authenticate")),this._pluginMediator.onRemoveListener(c.t.TRANSPORT_CONNECT,this._onRemoveListener.bind(this,"transport_connect")),this._pluginMediator.onRemoveListener(c.t.TRANSPORT_AUTHENTICATE,this._onRemoveListener.bind(this,"transport_authenticate")),"fetch"!==this._requestMode||this._Fetch&&this._Fetch.isSupported()||(Y.warn('Default "fetch" request mode unavailable; Fallback to "xhr"'),this._requestMode="xhr");const e=this._pluginMediator;e.addListeners({[c.t.PLUGIN_DISCONNECTED]:this._onPluginDisconnected.bind(this)}),this.proxyEmit(e,c.t.PLUGIN_CONNECTION_INFO,s.j.CONNECTION_ID),this._disableAutoLogout||this.matchMessages("client:logout",(()=>this._onLogout())),this._connectionObserver.on(s.j.CONNECTION_ONLINE,(()=>this._onOnline())),this._connectionObserver.on(s.j.CONNECTION_OFFLINE,(()=>this._onOffline())),this._connectionObserver.on(s.j.WINDOW_BEFORE_UNLOAD,(()=>this._disconnect(r.WINDOW_BEFORE_UNLOAD)))}_runStateAwareQueues(e,t){const n=this._stateAwareListeners[e].splice(0);for(const e of n)e.call(this,t);this._stateAwareRunners[e]=null}_connect(){return this._stateMask&Z?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise(((e,t)=>{Y.info("Waiting to go online before connecting"),this._connectionObserver.once(s.j.CONNECTION_ONLINE,(()=>{this._performConnect().then(e,t)}))}))}_performConnect(){return new Promise((e=>{Y.info("Resolving endpoints"),e(this._endpointsProvider(this.toPublic()))})).catch((e=>{const t=(null==e?void 0:e.code)?e:new G(a.J.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,(null==e?void 0:e.message)||"Endpoints provider error",null!=e?e:null);return Y.error("Endpoints resolution failed",t),Promise.reject(t)})).then(this._connectToEndpoints).then(this._onConnected).catch((e=>{const t=e&&e.error?e.error:e;return this.emit(s.j.CONNECTION_FAILED,{error:t}),Y.error("Connection failed",t),Promise.reject(t)}))}_connectToEndpoints(e){const t={webgate:"",webapi:""};for(const n in e){if(!e.hasOwnProperty(n))continue;let o=e[n];o&&(z.test(o)&&(o+="/"),t[n]=o)}this._endpoints=t,this.emit(s.j.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},t)}),Y.info("Endpoints resolved");const n=[],o=e=>{n.push(e)};return Y.info("Waiting for plugins to connect"),new Promise(((e,i)=>{this._pluginMediator.emitAndWait(c.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},t),awaitPromise:o},(()=>{Promise.all(n).then((()=>e(!0)),i)}))}))}_refreshToken(e=!1){if(this._refreshTokenPromise)return this._refreshTokenPromise;if(!e&&this._lastToken&&this._lastTokenExpiry>Date.now())return Promise.resolve(this._lastToken);this._refreshTokenPromise=new Promise((e=>{Y.info("Requesting token from provider"),e(this._tokenProvider())})).then(this._parseProvidedToken);const t=()=>{this._refreshTokenPromise=null};return this._refreshTokenPromise.then(t,t),this._refreshTokenPromise.catch((e=>{const t=(null==e?void 0:e.code)?e:new G(a.J.TRANSPORT_TOKEN_PROVIDER_ERROR,(null==e?void 0:e.message)||"Token provider error",e);return this.emit(s.j.TOKEN_PROVIDER_ERROR,{error:t}),Y.error("Token provider error",t),Promise.reject(t)}))}_parseProvidedToken(e){let t,n;if(Array.isArray(e)?(t=e[0],n=parseInt(e[1],10),isNaN(n)&&(n=3540)):(t=e,n=3540),!t)throw this._lastToken=null,this._lastTokenExpiry=0,Y.error("No token was provided"),new G(a.J.TRANSPORT_INVALID_TOKEN,`Token provider returned an invalid token, "${t}"`);if(this._lastToken===t){Y.error("TokenProvider returned same token twice.");const e=new G(a.J.TRANSPORT_STALE_TOKEN,"Token provider returned the same token twice.");throw this._lastToken=null,this._lastTokenExpiry=0,e}return this._lastToken=t,this._lastTokenExpiry=Date.now()+1e3*n,this.emit(s.j.ACCESS_TOKEN,{token:t}),Y.info("Access token set"),t}_authenticateWithToken(e){if(!this._endpoints)return Promise.resolve(!0);const t=[],n=e=>{t.push(e)};return Y.info("Waiting for plugins to authenticate"),new Promise(((o,i)=>{this._pluginMediator.emitAndWait(c.t.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:n},(()=>{Promise.all(t).then((()=>o(!0)),i)}))}))}_authenticate(e){if(!(this._stateMask&Z))return Promise.reject(new G(a.J.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."));if(this._authenticationPromise)return this._authenticationPromise;const t=K.create();return t.start(),this._authenticationPromise=F.init((()=>(Y.info("Authenticating"),this._refreshToken(e).then(this._authenticateWithToken))),{curve:"exponential",maxRetries:2,baseTime:500,retryPredicate:e=>(Y.warn("Retrying authentication due to failure",e),!0)}).then((()=>this._onAuthenticated(t))).catch((e=>this._onAuthenticationFailed(e,t))),this._authenticationPromise}_performDisconnect(e){this._stateMask=0;const t=!e;return e&&(this.emit(s.j.DISCONNECTED,{reason:e}),Y.info("Disconnected")),Y.info("Waiting for plugins to disconnect."),this._pluginMediator.emitSync(c.t.TRANSPORT_DISCONNECT,{supressed:t}),!0}_createReconnector(){let e=!1;return()=>(this._isReconnecting=!0,this.emit(s.j.RECONNECTING,null),Y.info("Reconnecting"),this._performDisconnect(),this._connect().then((()=>!!this._authenticateCalled&&this._authenticate(e).then((t=>(e=!1,t)),(t=>(e=!0,Promise.reject(t)))))).then((()=>(this._isReconnecting=!1,this.emit(s.j.RECONNECTED,null),Y.info("Reconnected"),!0))))}_tryToReconnect(){this._isReconnecting?Y.warn("Reconnection triggered while already reconnecting"):(this._stateMask=0,F.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries,retryPredicate:e=>(Y.warn("Retrying reconnection due to failure",e),!0)}).catch((()=>{this._stateMask=0,this._isReconnecting=!1,this.emit(s.j.DISCONNECTED,{reason:r.RECONNECTION_FAILED}),Y.info("Disconnected: reconnection failed")})))}_sendRequest(e,t={},n={}){const o=t.signal;return(null==o?void 0:o.aborted)?Promise.reject(new E):this._processRequestArgs(e,t).then((e=>(null==o?void 0:o.aborted)?Promise.reject(new E):e.options.forget?this._sendFireAndForgetRequest(e):this._sendRetriedRequest(e,n)))}_processRequestArgs(e,t={}){var n,o;if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return Promise.reject(new E);let i=e,r=!1;const a=Object.assign(Object.assign({},t),{forcePolyfill:!(!t.responseType||!(t.responseType in this._forcePolyfillTypes)),requestMode:null!==(o=null==t?void 0:t.requestMode)&&void 0!==o?o:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==t?void 0:t.metadata)||null});if((null==t?void 0:t.signal)&&!m()&&("fetch"===t.requestMode?Y.warn("Request with `{requestMode: fetch}` but no native AbortController."):a.requestMode="xhr"),W.test(i)){r=!0;try{i=this._tryExpandSpecialURL(i)}catch(e){return Promise.reject(e)}"authorize"in a||(a.authorize=!0,a.autoAuthorized=!0)}const s=Object.assign(Object.assign({maxRetries:2,curve:"exponential"},t.retry),{retryPredicate:e=>!(e instanceof E)});return Promise.resolve(j.create(i,{method:t.method,headers:t.headers,payload:t.payload,options:a,urlExpanded:r,retryOptions:s}))}_tryExpandSpecialURL(e){const t=this._endpoints;return e.replace(W,((e,n)=>{if(!t.hasOwnProperty(n))throw new TypeError(`Cannot replace endpoint @${n}: endpoint not defined.`);return t[n]}))}_sendFireAndForgetRequest(e){var t;const{url:n,method:o,options:i}=e;if(null===(t=i.signal)||void 0===t?void 0:t.aborted)return Promise.reject(new E);if("GET"!==o&&"POST"!==o)return Promise.reject(new G(a.J.TRANSPORT_UNSUPPORTED_OPTION,`Option 'forget' cannot be used for ${o} request.`));if(!i.autoAuthorized&&i.authorize)return Promise.reject(new G(a.J.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request."));if(i.requestMode="xhr",i.authorize=!1,i.ignoreResponseBody=!0,"GET"===o)if("function"==typeof fetch){const e={mode:"no-cors"};i.signal&&m()&&(e.signal=i.signal),fetch(n,e).catch((()=>{}))}else"function"==typeof Image?(new Image).src=n:this._sendRetriedRequest(e,{}).catch((()=>{}));else if("POST"===o)if("undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.sendBeacon)){const t=e.headers.get("content-type");navigator.sendBeacon(e.url,"string"==typeof e.payload&&t?new Blob([e.payload],{type:t}):e.payload)}else if("function"==typeof fetch){const t=e.headers.get("content-type"),o={method:"POST",body:e.payload,headers:t?{"content-type":t}:void 0};i.signal&&m()&&(o.signal=i.signal),fetch(n,o).catch((()=>{}))}else this._sendRetriedRequest(e,{}).catch((()=>{}));return Promise.resolve(new T(n,0))}_sendRetriedRequest(e,t){const n=e.retryOptions,o=e.options.signal;let i=!1;const r=()=>(null==o?void 0:o.aborted)?Promise.reject(new E):this._setAuthHeader(e,i),a=this._connectionObserver,l=new F((()=>{let l;return l=a.isOnline()||e.options.allowOffline?r():new Promise(((e,t)=>{a.once(s.j.CONNECTION_ONLINE,(()=>{r().then(e,t)}))})),l.then((()=>{if(null==o?void 0:o.aborted)return Promise.reject(new E);let n;if(this._pluginMediator.emitSync(c.t.TRANSPORT_BEFORE_SEND_REQUEST,{request:e,context:t}),"fetch"===e.options.requestMode&&this._Fetch&&this._Fetch.isSupported())n=this._Fetch.request(e);else{if(!this._XHR)throw new Error("No available request mechanisms.");n=this._XHR.request(e)}return n})).then((t=>{if(null==o?void 0:o.aborted)return Promise.reject(new E);let r=null;if(t.headers&&(r=t.headers.get("Retry-After")),t.status===b.G.UNAUTHORIZED&&!e.options.ignoreUnauthorized)return i=!0,Promise.reject(t);if("function"==typeof(null==n?void 0:n.condition)&&(n.condition(t,U)||r)){if(null!==r)if(q.test(r))t.retryAfter=new Date(r).getTime()-Date.now();else{const e=parseInt(r,10);e>0&&(t.retryAfter=1e3*e)}return Promise.reject(t)}return Promise.resolve(t)}))}),n);return l.start().catch(this._handleRetriedRequestError).then((n=>(null==o?void 0:o.aborted)?Promise.reject(new E):(n.metadata=e.options.metadata,n.retries=n.retries||{count:0},n.retries.count=l.getRetryCount(),this._pluginMediator.emitSync(c.t.TRANSPORT_BEFORE_RETURN_RESPONSE,{context:t,response:n}),e.options.rejectNotOk&&!n.ok?Promise.reject(n):n)))}_setAuthHeader(e,t){if(!e.options.authorize)return Promise.resolve(e);const n=()=>this._refreshToken(t).then((t=>(e.headers.set("Authorization",`Bearer ${t}`),e)));return this._stateMask&Q?n():new Promise(((e,t)=>{Y.info("Auth header setting awaiting authentication."),this.once(s.j.AUTHENTICATED,(()=>{Y.info("Auth header set after authentication."),n().then(e,t)}))}))}_handleRetriedRequestError(e){return e instanceof T?Promise.resolve(e):Promise.reject(e)}_onAddListener(e,t){const n=t.data.options;if(n.ignoreCurrentState)return;let o;switch(e){case"connected":if(!this.isConnected())return;o=Promise.resolve(this.createEvent(s.j.CONNECTED,null));break;case"authenticated":{if(!this.isAuthenticated())return;const e=this._stateAwareOperationMetrics.authenticated;o=Promise.resolve(this.createEvent(s.j.AUTHENTICATED,{timing:e}));break}case"connection_id":{const e=this.getPluginAPI("dealer");if(!e||!e.hasConnectionInfo())return;o=e.getConnectionInfo().then((e=>this.createEvent(s.j.CONNECTION_ID,e)));break}case"transport_connect":if(!this.isConnected()||!this._endpoints)return;o=Promise.resolve(this._pluginMediator.createEvent(c.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:e=>{}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;o=this._refreshToken().then((e=>this._pluginMediator.createEvent(c.t.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:e=>{}})));break;default:return}const i=t.data.listener;this._stateAwareListeners[e].push(i);const r=this._stateAwareRunners;r[e]||(r[e]=o.then(this._runStateAwareQueues.bind(this,e)),n.once&&t.preventDefault())}_onRemoveListener(e,t){const n=t.data.options;if(n.ignoreCurrentState||n.once)return;const o=t.data.listener,i=this._stateAwareListeners[e].indexOf(o);-1!==i&&this._stateAwareListeners[e].splice(i,1)}_getQuickDisconnectTimeout(){return this._counter.getTime(this._quickDisconnectCount)}_onPluginDisconnected(e){const t=Date.now(),n=t-this._lastDisconnect;if(this._performDisconnect(),e.data.code===V.r.CLOSE)return Y.info(`Plugin "${e.data.plugin}" explicitly disconnected`),void(this._quickDisconnectCount=0);this._connectionObserver.isOnline()&&(Y.info(`Plugin "${e.data.plugin}" unexpectedly disconnect; trying to reconnect`),n<5e3?(this._reconnectTimeout&&clearTimeout(this._reconnectTimeout),this._quickDisconnectCount++,this.emit(s.j.SHORT_SESSION_DISCONNECTED,{disconnectCount:this._quickDisconnectCount,sessionLength:n}),this._reconnectTimeout=setTimeout(this._tryToReconnect.bind(this),this._getQuickDisconnectTimeout())):(this._quickDisconnectCount=0,this._lastDisconnect=t,this._tryToReconnect()))}_onOnline(){this.emit(s.j.CONNECTION_ONLINE,null),Y.info("ConnectionObserver online"),this._connectCalled&&this._tryToReconnect()}_onOffline(){this.emit(s.j.CONNECTION_OFFLINE,null),Y.info("ConnectioObserver offline"),this._performDisconnect()}_onConnected(){return this._stateMask|=Z,this.emit(s.j.CONNECTED,null),Y.info("Connected"),Promise.resolve(!0)}_onAuthenticated(e){e.end(),clearTimeout(this._reconnectTimeout),this._authenticationPromise=null,this._stateMask|=Q,this._initTime=Date.now();const t=e.getMetrics();return this.emit(s.j.AUTHENTICATED,{timing:t}),this._stateAwareOperationMetrics.authenticated=t,Y.info("Authenticated"),Promise.resolve(!0)}_onAuthenticationFailed(e,t){t.end();const n=e&&e.error?e.error:e;this._authenticationPromise=null,this._stateMask&=~Q;const o={error:n,timing:t.getMetrics()};return this.emit(s.j.AUTHENTICATION_FAILED,o),this._pluginMediator.emit(c.t.TRANSPORT_AUTHENTICATE_FAILED,o),Y.info("Authentication failed",n),Promise.reject(n)}_onLogout(){const e=()=>{this._lastToken=null,this._lastTokenExpiry=0,this.emit(s.j.LOGGED_OUT,null)};this._disconnect(r.LOG_OUT).then(e,e)}_disconnect(e){if(!this._connectCalled)return Promise.resolve(!1);this._connectCalled=!1,this._authenticateCalled=!1;const t=this.isConnected()?s.j.BEFORE_ONLINE_DISCONNECT:s.j.BEFORE_OFFLINE_DISCONNECT,n=[];return this.emitSync(t,{awaitPromise:e=>{n.push(e.catch((()=>{})))}}),Promise.all(n).then((()=>this._performDisconnect(e)))}isConnected(){return!!(this._stateMask&Z)}isAuthenticated(){return!!(this._stateMask&Q)}isReconnecting(){return this._isReconnecting}isOnline(){return this._connectionObserver.isOnline()}connect(){return this._connectCalled=!0,this._connect()}authenticate(){return this._authenticateCalled=!0,this._authenticate(!0)}disconnect(){return this._disconnect(r.EXPLICIT)}forceDisconnect(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._performDisconnect(r.EXPLICIT),Promise.resolve(!0)):Promise.resolve(!1)}forceTokenRefresh(){return this._refreshToken(!0).then((()=>!0))}getInitTime(){return this._initTime}getEndpoints(){return this._endpoints?Object.assign({},this._endpoints):null}getLastToken(){return this._lastToken}toPublic(e){return new H(this,e)}hasOwnerRef(e){return this._ownerRef===e}appendTokenQuery(e){return this._refreshToken().then((t=>$(e,t)))}appendLastTokenQuery(e){return this._lastToken?$(e,this._lastToken):e}matchMessages(e,t,n){if(!e)throw new TypeError('Message "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const o=o=>{const i=o.data.message;!i.uri||!i.uri.match(e)||n&&n!==o.data.plugin||t(i)};o.__matchMessagesExp=e,o.__matchMessagesPlugin=n,t.__matchMessagesWrapper=o,this._pluginMediator.on(c.t.PLUGIN_MESSAGE,o)}unmatchMessages(e,t,n){if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const o=t.__matchMessagesWrapper;return!(!o||o.__matchMessagesExp!==e||o.__matchMessagesPlugin!==n)&&(this._pluginMediator.removeListener(c.t.PLUGIN_MESSAGE,o),!0)}handlePushRequests(e,t,n){if(!e)throw new TypeError('Push request "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const o=o=>{const i=o.data.request;!i.message_ident||!i.message_ident.match(e)||n&&n!==o.data.plugin||Promise.resolve(t(i)).then(o.data.reply)};o.__matchRequestExp=e,o.__matchRequestPlugin=n,t.__matchRequestWrapper=o,this._pluginMediator.on(c.t.PLUGIN_REQUEST,o)}unhandlePushRequests(e,t,n){if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const o=t.__matchRequestWrapper;return!(!o||o.__matchRequestExp!==e||o.__matchRequestPlugin!==n)&&(this._pluginMediator.removeListener(c.t.PLUGIN_REQUEST,o),!0)}request(e,t){var n;const o={uri:e,options:t,context:{}};this._pluginMediator.emitSync(c.t.TRANSPORT_BEFORE_PROCESS_REQUEST,o);const i=this._sendRequest.bind(this,o.uri,o.options,o.context);if(!this._endpoints&&W.test(o.uri))return Y.info("Request queued until endpoints resolved",o.uri),new Promise(((e,t)=>{this.once(s.j.ENDPOINTS_RESOLVED,(()=>{Y.info("Sending endpoints-queued request",o.uri),i().then(e,t)}))}));return!this._connectionObserver.isOnline()&&!(null===(n=o.options)||void 0===n?void 0:n.allowOffline)?(Y.info("Request queued until online",o.uri),new Promise(((e,t)=>{this.once(s.j.CONNECTION_ONLINE,(()=>{Y.info("Sending offline-queued request",o.uri),i().then(e,t)}))}))):i()}addPlugin(e,t){const n=e(this,t),o=n.name;if(this._plugins[o])throw new TypeError("Plugin is already added.");return n.attach(this,this._pluginMediator),this._plugins[o]=n,o}removePlugin(e){const t=this._plugins[e];return!!t&&(t.detach(this,this._pluginMediator),this._plugins[e]=void 0,!0)}hasPlugin(e){return!!this._plugins[e]}getPluginAPI(e){const t=this._plugins[e];return t&&t.api?t.api:null}getConnectionId(e="dealer"){const t=this._plugins[e];return t?t.api&&function(e){return"getConnectionInfo"in e.api}(t)?t.api.getConnectionInfo().then((e=>e.id)):Promise.reject(new TypeError(`Plugin ${t} is not a socket plugin.`)):Promise.reject(new TypeError(`Cannot retrieve connection id for plugin ${t}.`))}removeAllListeners(){return this}}class te{constructor(e){this._headers={},this._init(e)}_init(e){if(e){const t=e.split("\r\n");for(const e of t){const t=e.indexOf(": ");if(t>0){const n=e.substring(0,t).toLowerCase(),o=e.substring(t+2);this._headers[n]=o}}}}get(e){return this._headers[e.toLowerCase()]||null}has(e){return this._headers.hasOwnProperty(e.toLowerCase())}}const ne=y.P.forTag("transport.http.xhr"),oe=function(){},ie={json:!0,text:!0,document:!0};function re(){this.onabort=oe,this.onerror=oe,this.onload=oe,this.onloadend=oe}function ae(e,t,n){var o,i;if(null===(o=e.options.signal)||void 0===o?void 0:o.aborted)return;const r=Date.now(),a=this.status,s=new T(this.responseURL||e.url,a);s.body=null;const l=e.options;if(l.timing&&(s.timing={completed:r-t}),(null===(i=l.connectionObserver)||void 0===i?void 0:i.isOnline)&&(s.offline=!l.connectionObserver.isOnline()),(l.parseResponseHeaders||a>299)&&(s.headers=new te(this.getAllResponseHeaders())),!l.ignoreResponseBody&&a!==b.G.NO_CONTENT){const e=l.responseType||"";if(!l.forcePolyfill&&"response"in this&&e===this.responseType)s.body=this.response;else if("document"===e)s.body=this.responseXML;else if("json"===e)try{s.body=JSON.parse(this.responseText)}catch(e){ne.warn("Could not parse response as JSON:",e),s.body=null}else"text"!==e&&""!==e||(s.body=this.responseText)}n(s)}function se(e,t,n){4===this.readyState?t(new T(this.responseURL||e,this.status)):n(new S(a.J.HTTP_REQUEST_FAILED,"Request cannot be completed.",this.status))}function le(e){const t=e.options.signal;return new Promise(((n,o)=>{if(null==t?void 0:t.aborted)return void o(new E);const i=new XMLHttpRequest;let r=e.url;if(!r)return void o(new TypeError("Request URL cannot be blank."));let a=null;const s=e.method||"GET",l=e.payload||"";s in _&&l?a=l:l&&(r+=`?${l}`),i.open(s,r,!0),i.onerror=se.bind(i,r,n,o),i.onabort=re,i.onloadend=re,i.onprogress=oe;const c=e.options;"include"===c.credentials&&(i.withCredentials=!0);const u=c.responseType;if(u)if(c.forcePolyfill){if(!(u in ie))return void o(new TypeError(`Cannot polyfill responseType "${u}"`))}else{if(!("responseType"in i)&&!(u in ie))return void o(new TypeError("Cannot set responseType: not supported in browser."));try{i.responseType=u}catch(e){return void o(new TypeError(`Unknown responseType "${u}".`))}if(i&&u!==i.responseType&&!(u in ie))return void o(new TypeError(`Unknown responseType "${u}".`))}const d=e.headers.count()?e.headers.toJSON():null;if(d)for(const e in d)if(d.hasOwnProperty(e)&&d[e])try{i.setRequestHeader(e,d[e])}catch(e){return void o(e)}t&&t.addEventListener("abort",(function e(){t.removeEventListener("abort",e),i.abort(),o(new E)})),i.onload=ae.bind(i,e,Date.now(),n);try{i.send(a)}catch(e){return void o(e)}}))}function ce(e){return le(e)}var ue=n(61207);function de(e){const t=Object.assign({},e);return t.XHR||(t.XHR=i),t.Fetch=o,ee.create(t)}function pe(e){const t=de(e);return t.addPlugin(v.dv,{WebSocket}),t}},67349:(e,t,n)=>{"use strict";n.d(t,{Mb:()=>l});var o=n(77321),i=n(34934);const r=o.P.forTag("transport.client_token");function a(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}class s{constructor(e){this._inFlightPromise=null,this.name="client-token",this._clientInfo=e.clientInfo,this._onBeforeSendRequest=this._onBeforeSendRequest.bind(this),this._onAuthenticate=this._onAuthenticate.bind(this)}_fetchClientToken(e){if(null!==this._inFlightPromise)return this._inFlightPromise;const{clientVersion:t,clientID:n,deviceBrand:o,deviceModel:i,os:s,osVersion:l,containerVersion:c,deviceID:u,deviceType:d,platformIdentifier:p}=this._clientInfo,f={client_data:{client_version:t,client_id:n,js_sdk_data:{device_brand:o,device_model:i,os:s,os_version:l,container_version:c,device_id:u,device_type:d,platform_identifier:p}}};return this._inFlightPromise=e.request("https://clienttoken.spotify.com/v1/clienttoken",{method:"POST",responseType:"json",payload:JSON.stringify(f),headers:{"content-type":"application/json",accept:"application/json"},retry:{maxRetries:2,condition:a},authorize:!1,metadata:{skipClientToken:!0}}).then((e=>{var t;const n=(new Date).getTime()/1e3,o=null===(t=e.body)||void 0===t?void 0:t.granted_token;o&&(this._clientToken=o.token,this._refresh=n+o.refresh_after_seconds,this._domains=o.domains.map((e=>e.domain))),this._inFlightPromise=null})).catch((e=>{r.warn(`could not fetch client token for ${JSON.stringify(this._clientInfo)}`),r.warn(e),this._inFlightPromise=null})),this._inFlightPromise}_onAuthenticate(e){this._transport&&e.data.awaitPromise(this._fetchClientToken(this._transport))}_onBeforeSendRequest(e){var t,n;const o=e.data.request;if(null===(n=null===(t=o.options)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.skipClientToken)return;const i=(new Date).getTime()/1e3;(!this._refresh||this._refresh<i)&&this._transport&&this._fetchClientToken(this._transport);const r=function(e){const t=e.match(/(?:https?:\/\/)?([^\/]+)/);return(null==t?void 0:t[1])?t[1]:e}(o.url);this._clientToken&&this._domains&&this._domains.some((e=>{return n=e,(t=r).length>=n.length&&t.lastIndexOf(n)===t.length-n.length;var t,n}))&&o.headers.set("client-token",this._clientToken)}getClientToken(){return this._clientToken}getTokenRefresh(){return this._refresh}getTokenDomains(){return this._domains}attach(e,t){t.on(i.t.TRANSPORT_AUTHENTICATE,this._onAuthenticate),t.on(i.t.TRANSPORT_BEFORE_SEND_REQUEST,this._onBeforeSendRequest),this._transport=e}detach(e,t){t.removeListener(i.t.TRANSPORT_AUTHENTICATE,this._onAuthenticate),t.removeListener(i.t.TRANSPORT_BEFORE_SEND_REQUEST,this._onBeforeSendRequest),this._clientToken=void 0,this._refresh=void 0,this._transport=void 0,this._domains=void 0}}function l(e,t){return new s(t)}},30500:(e,t,n)=>{"use strict";var o;n.d(t,{hI:()=>m,dv:()=>v}),function(e){e.DEALER_CONNECTION_ERROR="DEALER_CONNECTION_ERROR",e.DEALER_AUTHENTICATION_FAILED="DEALER_AUTHENTICATION_FAILED",e.DEALER_ERROR="DEALER_ERROR",e.ENDPOINT_NOT_DEFINED="ENDPOINT_NOT_DEFINED",e.INVALID_ENDPOINT="INVALID_ENDPOINT"}(o||(o={}));var i,r=n(34934);class a extends Error{constructor(e=o.DEALER_ERROR,t,n={}){super(t),this.name="DealerError",this.message=t,this.code=e,this.raw=n,this.wsCode=n.code||null,this.wsReason=n.reason||null}}!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.CONNECTED="connected",e.CONNECTION_ID="connection_id",e.ERROR="error",e.DISCONNECTED="disconnected",e.MESSAGE="message",e.REQUEST="request"}(i||(i={}));var s=n(53016),l=n(60220),c=n(6967),u=n(55872).lW;const d=function(){},p=/hm:\/\/pusher\/(?:[^]+)?\/connections\/([^]+)/,f="undefined"!=typeof window;class h extends s.vp{constructor(e){super(),this._socket=null,this._lastPingDeferred=null,this._waitingForConnectionId=!0,this._connectionId=null,this._connectionURI=null,this._heartbeatToken=0,this._heartbeatTimeoutToken=0,this._connected=!1,this._endpoint=null,this._WebSocket=e.WebSocket||WebSocket,this._heartbeatTimeout=e.heartbeatTimeout||1e4}static create(e){return new h(e)}_startHeartbeat(e){const t=()=>{this.ping().then((()=>this._onHeartbeatSuccess()),(()=>this._onHeartbeatError())),this._heartbeatTimeoutToken=setTimeout((()=>this._onHeartbeatError()),this._heartbeatTimeout)};e?t():this._heartbeatToken=setTimeout((()=>t()),3e4)}_onHeartbeatError(){this._stopHeartbeat(),this._socket&&this._socket.close(c.r.TIMEOUT,"internal-timeout")}_onHeartbeatSuccess(){this._stopHeartbeat(),this._startHeartbeat()}_stopHeartbeat(){null!==this._heartbeatToken&&clearTimeout(this._heartbeatToken),null!==this._heartbeatTimeoutToken&&clearTimeout(this._heartbeatTimeoutToken)}_prepareConnectionId(e){var t;if(!e.uri)return!1;const[,n]=null!==(t=e.uri.match(p))&&void 0!==t?t:[];if(!n)return!1;let o;return o=e.headers&&e.headers["Spotify-Connection-Id"]?e.headers["Spotify-Connection-Id"]:decodeURIComponent(n),this._connectionId=o,this._connectionURI=e.uri,this.emit(i.CONNECTION_ID,{id:o,uri:e.uri}),!0}_reply(e,t){if(!e)throw new TypeError("Invalid key.");const n=this._socket;if(!n||1!==n.readyState)return;const o={type:"reply",key:e,payload:t};n.send(JSON.stringify(o))}_parseMessage(e){let t;try{t=JSON.parse(e)}catch(e){return}if("message"===t.type)this._waitingForConnectionId&&this._prepareConnectionId(t)?(this._waitingForConnectionId=!1,this._startHeartbeat(!0)):this.emit(i.MESSAGE,{message:t});else if("pong"===t.type&&this._lastPingDeferred)this._lastPingDeferred.resolve(!0),this._lastPingDeferred=null;else if("request"===t.type){const e=t.key;e&&this.emit(i.REQUEST,{request:t,reply:this._reply.bind(this,e)})}}_handleOpen(e){e.resolve(!0),this._connected=!0,this.emit(i.AUTHENTICATED,null)}_handleMessage(e){const t=this,n=e.data;if(f&&window.Blob&&n instanceof window.Blob){const e=new FileReader;e.onloadend=function(){if(!this.result)return;let e;if(this.result instanceof ArrayBuffer){e="";const t=new Uint8Array(this.result);for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n])}else e=this.result;t._parseMessage(e)},e.readAsText(n)}else void 0!==u&&"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?this._parseMessage(new u(n).toString("ascii")):this._parseMessage(n)}_handleClose(e){const t=this._connected;if(this._connected=!1,t)this.emitSync(i.DISCONNECTED,{wsCode:e.code,reason:e.reason});else{const t=new a(o.DEALER_AUTHENTICATION_FAILED,"Dealer connection error",e);this.emit(i.AUTHENTICATION_FAILED,{error:t})}}_handleError(e){const t=new a(o.DEALER_CONNECTION_ERROR,"Cannot connect to dealer");e.reject(t),this._connected=!1,this.emit(i.ERROR,{error:t})}connect(e){return this._endpoint=e,this._waitingForConnectionId=!0,this.emit(i.CONNECTED,null),Promise.resolve(!0)}authenticate(e){const t=(0,l.$)(),n=`${this._endpoint}?access_token=${e}`,o=this._socket=new this._WebSocket(n);return o.onopen=this._handleOpen.bind(this,t),o.onclose=this._handleClose.bind(this),o.onerror=this._handleError.bind(this,t),o.onmessage=this._handleMessage.bind(this),t.promise}disconnect(){this._socket&&(this._stopHeartbeat(),this._waitingForConnectionId=!0,this._connected=!1,this._socket.close(c.r.CLOSE,"internal-close"),this._socket.onopen=d,this._socket.onerror=d,this._socket.onmessage=d,this._socket.onclose=d,this._socket=null,this.emitSync(i.DISCONNECTED,{wsCode:c.r.CLOSE,reason:"internal-close"}))}ping(){return this._socket&&1===this._socket.readyState?(this._lastPingDeferred=(0,l.$)(),this._socket.send('{"type":"ping"}'),this._lastPingDeferred.promise):Promise.reject(new a(o.DEALER_CONNECTION_ERROR,"Dealer connection error"))}getConnectionId(){return this._waitingForConnectionId?new Promise((e=>{this.once(i.CONNECTION_ID,(t=>{e(t.data.id)}))})):Promise.resolve(this._connectionId)}getConnectionInfo(){return this._waitingForConnectionId?new Promise((e=>{this.once(i.CONNECTION_ID,(t=>{e({id:t.data.id,uri:t.data.uri})}))})):Promise.resolve({id:this._connectionId,uri:this._connectionURI})}hasConnectionId(){return!this._waitingForConnectionId&&!!this._connectionId}}const m="dealer";class g{constructor(e){this.name=m,this._dealer=new h(e),this.api={hasConnectionInfo:()=>this._dealer.hasConnectionId(),getConnectionInfo:()=>this._dealer.getConnectionInfo().then((e=>Object.assign({plugin:this.name},e)))},this._onDealerConnectionId=this._onDealerConnectionId.bind(this),this._onDealerDisconnected=this._onDealerDisconnected.bind(this),this._onDealerMessage=this._onDealerMessage.bind(this),this._onDealerRequest=this._onDealerRequest.bind(this),this._onTransportConnect=this._onTransportConnect.bind(this),this._onTransportAuthenticate=this._onTransportAuthenticate.bind(this),this._onTransportDisconnect=this._onTransportDisconnect.bind(this)}_onDealerConnectionId(e){this._mediator&&this._mediator.emit(r.t.PLUGIN_CONNECTION_INFO,Object.assign({plugin:this.name},e.data))}_onDealerDisconnected(e){if(!this._mediator)return;const t=e.data;this._mediator.emit(r.t.PLUGIN_DISCONNECTED,{plugin:this.name,code:t.wsCode,reason:t.reason})}_onDealerMessage(e){this._mediator&&this._mediator.emit(r.t.PLUGIN_MESSAGE,Object.assign({plugin:this.name},e.data))}_onDealerRequest(e){this._mediator&&this._mediator.emit(r.t.PLUGIN_REQUEST,Object.assign({plugin:this.name},e.data))}_onTransportConnect(e){const t=e.data.endpoints,n=e.data.awaitPromise;t.dealer?/^wss:/.test(t.dealer)?n(this._dealer.connect(t.dealer)):n(Promise.reject(new a(o.INVALID_ENDPOINT,"Dealer endpoint needs to be wss://"))):n(Promise.reject(new a(o.ENDPOINT_NOT_DEFINED,'No "dealer" endpoint defined.')))}_onTransportAuthenticate(e){const t=e.data;t.awaitPromise(this._dealer.authenticate(t.token))}_onTransportDisconnect(){this._dealer.disconnect()}_onDealerError(e){var t;null===(t=this._mediator)||void 0===t||t.emit(r.t.PLUGIN_ERROR,{plugin:this.name,error:e.data.error})}attach(e,t){this._mediator=t,t.addListeners({[r.t.TRANSPORT_CONNECT]:this._onTransportConnect,[r.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[r.t.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.addListeners({[i.DISCONNECTED]:this._onDealerDisconnected,[i.CONNECTION_ID]:this._onDealerConnectionId,[i.MESSAGE]:this._onDealerMessage,[i.REQUEST]:this._onDealerRequest,[i.ERROR]:this._onDealerError})}detach(e,t){this._mediator=void 0,t.removeListeners({[r.t.TRANSPORT_CONNECT]:this._onTransportConnect,[r.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[r.t.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.removeListeners({[i.DISCONNECTED]:this._onDealerDisconnected,[i.CONNECTION_ID]:this._onDealerConnectionId,[i.MESSAGE]:this._onDealerMessage,[i.REQUEST]:this._onDealerRequest,[i.ERROR]:this._onDealerError})}}function v(e,t){return new g(t)}},33024:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});const o="https://spclient.wg.spotify.com/",i="https://api.spotify.com/",r="wss://dealer.spotify.com:443/";function a(e){return void 0===e||!!e}function s(e){const t={};return a(e.dealer)&&(t.dealer=r),a(e.webgate)&&(t.webgate=o),a(e.webapi)&&(t.webapi=i),function(){return Promise.resolve(t)}}},61207:(e,t,n)=>{"use strict";n.d(t,{Q:()=>u});var o=n(72226);class i extends Error{constructor(e,t,n=-1){super(t),this.name="XResolveError",this.message=t,this.code=e,this.status=n}}const r="https://apresolve.spotify.com/",a={DEALER:"dealer",WEBGATE:"spclient"},s="dealer.spotify.com",l="https://api.spotify.com/",c={spclient:"spclient.wg.spotify.com",exp:"exp.wg.spotify.com",partners:"partners.wg.spotify.com"};function u(e={}){const t=e.dealer||a.DEALER,n=e.webgate||a.WEBGATE,u=`${r}?type=${t}&type=${n}`;return function(e){return e.request(u,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:3,curve:"exponential",condition:function(e,t){return e.getStatusFamily()!==t.SUCCESS}},metadata:{noRequestTransform:!0}}).then((e=>{var r,a,u,d,p;const f=e.body,h={dealer:null!==(a=null===(r=null==f?void 0:f[t])||void 0===r?void 0:r[0])&&void 0!==a?a:s,webgate:null!==(p=null!==(d=null===(u=null==f?void 0:f[n])||void 0===u?void 0:u[0])&&void 0!==d?d:c[n])&&void 0!==p?p:c.spclient,webapi:l};if(!h.dealer||!h.webgate)throw new i(o.J.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",e.status);return h})).then((e=>(e.dealer=`wss://${e.dealer.replace(/:443$/,"")}`,e.webgate=`https://${e.webgate.replace(/:443$/,"")}`,e)))}}},28336:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const o={threshold:.5};class i{constructor(e,t){this.isIOSupported=!0,this.ubiLogger=e,this.isIOSupported="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,this.isIOSupported&&(this.observer=new IntersectionObserver((e=>{e.forEach((e=>{var t;const n=null===(t=this._observableEntities)||void 0===t?void 0:t.get(e.target);n&&e.intersectionRatio>=.5&&(this.ubiLogger.logImpression(n.impression()),this.removeFromObservableEntities(n.element))}))}),o),this._observableEntities=null!=t?t:new Map)}removeFromObservableEntities(e){var t,n;this.isIOSupported&&(null===(t=this.observer)||void 0===t||t.unobserve(e),null===(n=this._observableEntities)||void 0===n||n.delete(e))}addToObservableEntities(e){var t,n;if(!this.isIOSupported)return null;const o=e.element;return null===(t=this._observableEntities)||void 0===t||t.set(o,e),null===(n=this.observer)||void 0===n||n.observe(o),()=>{this.removeFromObservableEntities(o)}}}},83477:(e,t,n)=>{"use strict";n.d(t,{R:()=>w});var o=n(2584),i=n(87699);const r="",a="UBI|";function s(e){return e.reduce(((e,t)=>e.concat(t)),[])}function l(e){var t;const n={element_path_names:[],element_path_pos:[],element_path_ids:[],element_path_uris:[],element_path_reasons:[]};for(const o of e)n.element_path_names.push(o.name),n.element_path_pos.push((null===(t=o.position)||void 0===t?void 0:t.toString())||r),n.element_path_ids.push(o.identifier||r),n.element_path_uris.push(o.uri||r),n.element_path_reasons.push(o.reason||r);return n}function c(e){return e?s(e.locations.map((e=>e.pathNodes))):[]}function u(e){return e?s(e.locations.map((e=>e.specVersion))):[]}function d(e){return e?s(e.locations.map((e=>e.specMode))):[]}const p={createGabitoEvent:function(e,t,n,a){const s=l(e.location.pathNodes),p=l(c(e.parentAbsoluteLocation)),f=u(e.parentAbsoluteLocation),h=d(e.parentAbsoluteLocation),m={annotator_configuration_version:r,annotator_version:r,app:e.app,element_path_ids:s.element_path_ids,element_path_names:s.element_path_names,element_path_pos:s.element_path_pos,element_path_reasons:s.element_path_reasons,element_path_uris:s.element_path_uris,generator_version:e.generatorVersion,impression_id:t,parent_modes:h,parent_path_ids:p.element_path_ids,parent_path_names:p.element_path_names,parent_path_pos:p.element_path_pos,parent_path_reasons:p.element_path_reasons,parent_path_uris:p.element_path_uris,parent_specification_versions:f,specification_version:e.specificationVersion,specification_mode:e.specificationMode,page_instance_id:a.pageInstanceId,playback_id:a.playbackId};if(n){const e=Object.assign(Object.assign({},m),{play_context_uri:a.playContextUri,page_uri:a.pageUri});return(0,o.S)(e)}return(0,i.z)(m)}};var f=n(77393),h=n(69274);const m={createGabitoEvent:function(e,t,n,o){const i=l(e.location.pathNodes),a=l(c(e.parentAbsoluteLocation)),s=u(e.parentAbsoluteLocation),p=d(e.parentAbsoluteLocation),m={action_parameter_names:e.actionParameterNames,action_parameter_values:e.actionParameterValues,action_name:e.actionName,action_version:e.actionVersion,annotator_configuration_version:r,annotator_version:r,app:e.app,element_path_ids:i.element_path_ids,element_path_names:i.element_path_names,element_path_pos:i.element_path_pos,element_path_reasons:i.element_path_reasons,element_path_uris:i.element_path_uris,generator_version:e.generatorVersion,interaction_id:t,interaction_type:e.interactionType,parent_modes:p,parent_path_ids:a.element_path_ids,parent_path_names:a.element_path_names,parent_path_pos:a.element_path_pos,parent_path_reasons:a.element_path_reasons,parent_path_uris:a.element_path_uris,parent_specification_versions:s,specification_version:e.specificationVersion,specification_mode:e.specificationMode,page_instance_id:o.pageInstanceId,playback_id:o.playbackId};if(n){const e=Object.assign(Object.assign({},m),{play_context_uri:o.playContextUri,page_uri:o.pageUri});return(0,f.E)(e)}return(0,h.Y)(m)}};var g=n(92674);const v="CURRENT_PAGE_INSTANCE_ID";class y{constructor(e){this.storageManager=e.storageManager}getPageInstanceId(){return this.storageManager.getItem(v)}setPageInstanceId(e){this.storageManager.setItem(v,e)}}var _,b,S=n(4842),E=n(47792);!function(e){e.NAVIGATION_IDLE="navigation_idle",e.NAVIGATION_STARTED="navigation_started",e.NAVIGATION_COMPLETED="navigation_completed"}(_||(_={})),function(e){e.CURRENT_PAGE_ID="CURRENT_PAGE_ID",e.CURRENT_PAGE_INSTANCE_ID="CURRENT_PAGE_INSTANCE_ID",e.CURRENT_ENTITY_URI="CURRENT_ENTITY_URI",e.CURRENT_NAV_ROOT="CURRENT_NAV_ROOT",e.PENDING_NAV_ROOT="PENDING_NAV_ROOT",e.PENDING_INTERACTION_ID="PENDING_INTERACTION_ID",e.PENDING_NAV_REASON="PENDING_NAV_REASON",e.NAVIGATION_STATUS="NAV_STATUS"}(b||(b={}));class A{constructor(e){this.eventSender=e.eventSender,this.pageInstanceIdProvider=e.pageInstanceIdProvider,this.pageUriProvider=e.pageUriProvider,this.disableAutoBackgroundMonitoring=e.disableAutoBackgroundMonitoring,this.storageManager=e.storageManager,this.handleBackgroundStates=this.handleBackgroundStates.bind(this),this.setNavigationStatus(_.NAVIGATION_IDLE)}getCurrentPageId(){return this.storageManager.getItem(b.CURRENT_PAGE_ID)}setCurrentPageId(e){this.storageManager.setItem(b.CURRENT_PAGE_ID,e)}getCurrentPageInstanceId(){return this.pageInstanceIdProvider.getPageInstanceId()}setCurrentPageInstanceId(e){this.pageInstanceIdProvider.setPageInstanceId(e)}getCurrentEntityUri(){return this.pageUriProvider.getPageUri()}setCurrentEntityUri(e){this.pageUriProvider.setPageUri(e)}getCurrentNavigationalRoot(){return this.storageManager.getItem(b.CURRENT_NAV_ROOT)}setCurrentNavigationalRoot(e){this.storageManager.setItem(b.CURRENT_NAV_ROOT,e)}getNavigationStatus(){return this.storageManager.getItem(b.NAVIGATION_STATUS)}setNavigationStatus(e){this.storageManager.setItem(b.NAVIGATION_STATUS,e)}getPendingNavigationalRoot(){return this.storageManager.getItem(b.PENDING_NAV_ROOT)}setPendingNavigationalRoot(e){this.storageManager.setItem(b.PENDING_NAV_ROOT,e)}getPendingInteractionId(){return this.storageManager.getItem(b.PENDING_INTERACTION_ID)}setPendingInteractionId(e){this.storageManager.setItem(b.PENDING_INTERACTION_ID,e)}getPendingNavigationReason(){return this.storageManager.getItem(b.PENDING_NAV_REASON)}setPendingNavigationReason(e){this.storageManager.setItem(b.PENDING_NAV_REASON,e)}resetNavStartInfo(){this.setPendingInteractionId(null),this.setPendingNavigationReason(null),this.setPendingNavigationalRoot(null)}populateNavigationReason(){const e=this.getPendingInteractionId();if(e){const t=`user_interaction(${e})`;return this.setPendingInteractionId(null),t}return this.getPendingNavigationReason()}generatePageInstanceId(){return(0,g.v4)()}setCurrent(e,t,n,o){this.setCurrentPageId(e),this.setCurrentPageInstanceId(t),this.setCurrentEntityUri(n),this.setCurrentNavigationalRoot(o)}handleBackgroundStates(){document.hidden?this.logClientLostFocus():this.logClientGainedFocus()}startNavigation(e){const{navigationalRoot:t}=e;if((0,E.Oq)(e)){const{interactionId:t}=e;this.setPendingInteractionId(t)}if((0,E.AG)(e)){const{navigationReason:t}=e;this.setPendingNavigationReason(t)}this.setPendingNavigationalRoot(t),this.setNavigationStatus(_.NAVIGATION_STARTED)}completeNavigation(e){const{pageId:t,entityUri:n}=e;if(this.getCurrentEntityUri()!==n&&this.getNavigationStatus()===_.NAVIGATION_STARTED){const e=this.generatePageInstanceId(),o={page_instance_id:e,page_id:t,entity_uri:n,navigational_root:this.getPendingNavigationalRoot(),from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:this.getCurrentPageId(),from_entity_uri:this.getCurrentEntityUri(),from_navigational_root:this.getCurrentNavigationalRoot(),navigation_reason:this.populateNavigationReason()},i=(0,S.U)(o);this.eventSender.send(i),this.setCurrent(t,e,n,this.getPendingNavigationalRoot())}else this.resetNavStartInfo();this.setNavigationStatus(_.NAVIGATION_IDLE)}logClientLostFocus(){const e=this.generatePageInstanceId(),t={page_instance_id:e,page_id:null,entity_uri:null,navigational_root:null,from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:this.getCurrentPageId(),from_entity_uri:this.getCurrentEntityUri(),from_navigational_root:this.getCurrentNavigationalRoot(),navigation_reason:E.hw.CLIENT_LOST_FOCUS},n=(0,S.U)(t);this.eventSender.send(n),this.setCurrent(this.getCurrentPageId(),e,this.getCurrentEntityUri(),this.getCurrentNavigationalRoot())}logClientGainedFocus(){const e=this.generatePageInstanceId(),t={page_instance_id:e,page_id:this.getCurrentPageId(),entity_uri:this.getCurrentEntityUri(),navigational_root:this.getCurrentNavigationalRoot(),from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:null,from_entity_uri:null,from_navigational_root:null,navigation_reason:E.hw.CLIENT_GAINED_FOCUS},n=(0,S.U)(t);this.eventSender.send(n),this.setCurrent(this.getCurrentPageId(),e,this.getCurrentEntityUri(),this.getCurrentNavigationalRoot())}addEventListeners(){this.disableAutoBackgroundMonitoring||null===document||void 0===document||document.addEventListener("visibilitychange",this.handleBackgroundStates)}removeEventListeners(){this.disableAutoBackgroundMonitoring||null===document||void 0===document||document.removeEventListener("visibilitychange",this.handleBackgroundStates)}}class T{constructor(){this.items=new Map([])}setItem(e,t){try{return this.items.set(e,t),!0}catch(e){return!1}}getItem(e){const t=this.items.get(e);return null!=t?t:null}removeItem(e){this.items.delete(e)}clear(){this.items.clear()}}class P{setItem(e,t){try{return window.sessionStorage.setItem(e,t),!0}catch(e){return!1}}getItem(e){return window.sessionStorage.getItem(e)}removeItem(e){window.sessionStorage.removeItem(e)}clear(){window.sessionStorage.clear()}}function O(e){let t=e.length,n=t;for(;n--;){const o=e.charCodeAt(n);o>127&&o<=2047?t++:o>2047&&o<=65535&&(t+=2),o>=56320&&o<=57343&&n--}return t}const C={requiresPersistingState:!1};var k;!function(e){e.IN_MEMORY="in-memory",e.SESSION_STORAGE="session-storage",e.CUSTOM_STORAGE="custom-storage"}(k||(k={}));class R{constructor(e=C){this.storageAdapter=new T,e.requiresPersistingState&&(e.storageAdapter?this.storageAdapter=e.storageAdapter:function(){const e={"UBI|CURRENT_PAGE_ID":"playlist","UBI|CURRENT_PAGE_INSTANCE_ID":"bc33087f-b95a-4b15-bd48-0277666f303c","UBI|CURRENT_ENTITY_URI":"spotify:playlist:37i9dQZF1DX5trt9i14X7j","UBI|CURRENT_NAV_ROOT":"playlists-sidebar","UBI|PENDING_NAV_ROOT":"playlists-sidebar","UBI|PENDING_INTERACTION_ID":"8dbc8e4d-b4f7-4870-ab9e-a3238307ea6d","UBI|PENDING_NAV_REASON":"user_interaction(8dbc8e4d-b4f7-4870-ab9e-a3238307ea6d)","UBI|NAVIGATION_STATUS":_.NAVIGATION_COMPLETED,"UBI|PROVIDER_CURRENT_PAGE_INSTANCE_ID":"bc33087f-b95a-4b15-bd48-0277666f303c"},t=4*Object.keys(e).map((t=>O(t)+O(e[t]))).reduce(((e,t)=>e+t));try{const e="__UBI_STORAGE_TEST__",n="x".repeat(t);return window.sessionStorage.setItem(e,n),window.sessionStorage.removeItem(e),!0}catch(e){return!1}}()&&(this.storageAdapter=new P))}getItem(e){return this.storageAdapter.getItem(`${a}${e}`)}setItem(e,t){const n=t||"";this.storageAdapter.setItem(`${a}${e}`,n)}removeItem(e){this.storageAdapter.removeItem(`${a}${e}`)}clear(){this.storageAdapter.clear()}getStorageType(){return this.storageAdapter instanceof T?k.IN_MEMORY:this.storageAdapter instanceof P?k.SESSION_STORAGE:k.CUSTOM_STORAGE}}const L="CURRENT_PAGE_URI";class I{constructor(e){this.storageManager=e.storageManager}getPageUri(){return this.storageManager.getItem(L)}setPageUri(e){this.storageManager.setItem(L,e)}}class N{constructor(e){var t,n,o;this.eventSender=e.eventSender,this.disableAutoBackgroundMonitoring=null===(t=e.disableAutoBackgroundMonitoring)||void 0===t||t,this.storageManager=new R({storageAdapter:e.storageAdapter,requiresPersistingState:e.requiresPersistingState}),this.pageInstanceIdProvider=new y({storageManager:this.storageManager}),this.pageUriProvider=new I({storageManager:this.storageManager}),this.playContextUriProvider=null!==(n=e.playContextUriProvider)&&void 0!==n?n:null,this.playbackIdProvider=null!==(o=e.playbackIdProvider)&&void 0!==o?o:null,this.pageViewLogger=new A({eventSender:e.eventSender,pageInstanceIdProvider:this.pageInstanceIdProvider,pageUriProvider:this.pageUriProvider,disableAutoBackgroundMonitoring:this.disableAutoBackgroundMonitoring,storageManager:this.storageManager})}registerEventListeners(){this.pageViewLogger.addEventListeners()}unregisterEventListeners(){this.pageViewLogger.removeEventListeners()}logInteraction(e){var t,n,o,i;const r=(0,g.v4)(),a=this.pageInstanceIdProvider.getPageInstanceId(),s=this.pageUriProvider.getPageUri(),l=m.createGabitoEvent(e,r,!0,{pageInstanceId:a,pageUri:s,playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(l),r}logNonAuthInteraction(e){var t,n,o,i;const r=(0,g.v4)(),a=m.createGabitoEvent(e,r,!1,{pageInstanceId:this.pageInstanceIdProvider.getPageInstanceId(),pageUri:this.pageUriProvider.getPageUri(),playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(a),r}logImpression(e){var t,n,o,i;const r=(0,g.v4)(),a=p.createGabitoEvent(e,r,!0,{pageInstanceId:this.pageInstanceIdProvider.getPageInstanceId(),pageUri:this.pageUriProvider.getPageUri(),playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(a),r}logNonAuthImpression(e){var t,n,o,i;const r=(0,g.v4)(),a=p.createGabitoEvent(e,r,!1,{pageInstanceId:this.pageInstanceIdProvider.getPageInstanceId(),pageUri:this.pageUriProvider.getPageUri(),playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(a),r}logNavigationStart(e){this.pageViewLogger.startNavigation(e)}logNavigationEnd(e){this.pageViewLogger.completeNavigation(e)}logNavigation(e,t){this.logNavigationStart(e),this.logNavigationEnd(t)}logClientLostFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientLostFocus()}logClientGainedFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientGainedFocus()}getPageInstanceId(){return this.pageInstanceIdProvider.getPageInstanceId()}}const w=function(){let e;return{getUBILogger:function(t){return function(t){return e&&e.unregisterEventListeners(),e=new N(t),e.registerEventListeners(),e}(t)}}}()},80546:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopAlbumEventFactory=t.createDesktopAlbumEventFactory=void 0;var i="music",r="3.0.0",a="default",s="9.4.13";t.createDesktopAlbumEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-album"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.trackListFactory=function(){return new e.TrackListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.moreByArtistShelfFactory=function(){return new e.MoreByArtistShelfEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopAlbumEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.coverArtFactory=function(){return new e.HeaderEventFactory.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.titleFactory=function(){return new e.HeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.artistNameFactory=function(){return new e.HeaderEventFactory.ArtistNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.HeaderEventFactory=t}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.saveButtonFactory=function(){return new e.ActionBarEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.downloadButtonFactory=function(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextMenuButtonFactory=function(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"track_list"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.TrackListEventFactory=t}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"more_by_artist_shelf"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.MoreByArtistShelfEventFactory=t}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"cover_art"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.CoverArtEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"title"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.TitleEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"artist_name"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ArtistNameEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"save_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitDislike=function(e){return{actionParameterNames:["item_to_be_disliked"],actionParameterValues:[e.itemToBeDisliked.toString()],actionName:"dislike",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SaveButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitStopDownload=function(e){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.itemToStopDownload.toString()],actionName:"stop_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_menu_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAlbumEventFactory||(t.DesktopAlbumEventFactory={})),t.DesktopAlbumEventFactory=l},20432:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopAudiobookEventFactory=t.createDesktopAudiobookEventFactory=void 0;var i="music",r="2.1.0",a="default",s="10.0.5";t.createDesktopAudiobookEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-audiobook"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.aboutSectionFactory=function(){return new e.AboutSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.chapterListFactory=function(){return new e.ChapterListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopAudiobookEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.saveToLibraryButtonFactory=function(){return new e.ActionBarEventFactory.SaveToLibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.downloadButtonFactory=function(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextButtonFactory=function(){return new e.ActionBarEventFactory.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.buyButtonFactory=function(t){return new e.ActionBarEventFactory.BuyButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.getButtonFactory=function(t){return new e.ActionBarEventFactory.GetButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"about_section"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.seeMoreButtonFactory=function(){return new e.AboutSectionEventFactory.SeeMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.ratingButtonFactory=function(){return new e.AboutSectionEventFactory.RatingButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.topicLinkFactory=function(){return new e.AboutSectionEventFactory.TopicLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.AboutSectionEventFactory=t}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"chapter_list"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.chapterBlockFactory=function(t){return new e.ChapterListEventFactory.ChapterBlockEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ChapterListEventFactory=t}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"save_to_library_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitFollow=function(e){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.itemToBeFollowed.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUnfollow=function(e){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.itemToBeUnfollowed.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SaveToLibraryButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"buy_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.BuyButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"get_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GetButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_more_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeMoreButtonEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"rating_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.RatingButtonEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"topic_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TopicLinkEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(t){var l=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"chapter_block"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.contextMenuFactory=function(){return new e.ChapterListEventFactory.ChapterBlockEventFactory.ContextMenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.playButtonFactory=function(){return new e.ChapterListEventFactory.ChapterBlockEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.downloadButtonFactory=function(){return new e.ChapterListEventFactory.ChapterBlockEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.secondaryHitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"secondary_hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.ChapterBlockEventFactory=l}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_menu"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuEventFactory=t}(e.ChapterBlockEventFactory||(e.ChapterBlockEventFactory={}))}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ChapterBlockEventFactory||(e.ChapterBlockEventFactory={}))}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(e.ChapterBlockEventFactory||(e.ChapterBlockEventFactory={}))}(e.ChapterListEventFactory||(e.ChapterListEventFactory={}))}(l=t.DesktopAudiobookEventFactory||(t.DesktopAudiobookEventFactory={})),t.DesktopAudiobookEventFactory=l},43171:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopCategoryCardEventFactory=t.createDesktopCategoryCardEventFactory=void 0;var i="music",r="1.1.1",a="default",s="9.4.4";t.createDesktopCategoryCardEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-category-card"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopCategoryCardEventFactory=l},70927:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopConcertsArtistConcertsEventFactory=t.createDesktopConcertsArtistConcertsEventFactory=void 0;var i="music",r="0.2.0",a="default",s="10.0.7";t.createDesktopConcertsArtistConcertsEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-concerts-artist-concerts"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.locationEventsFactory=function(t){return new e.LocationEventsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.promoRowFactory=function(){return new e.PromoRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.otherEventsFactory=function(){return new e.OtherEventsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopConcertsArtistConcertsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.changeLocationButtonFactory=function(){return new e.HeaderEventFactory.ChangeLocationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.changeLocationUiFactory=function(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.HeaderEventFactory=t}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"location_events"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.eventRowFactory=function(t){return new e.LocationEventsEventFactory.EventRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.LocationEventsEventFactory=t}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"promo_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PromoRowEventFactory=t}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"other_events"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.eventRowFactory=function(t){return new e.OtherEventsEventFactory.EventRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.OtherEventsEventFactory=t}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"change_location_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ChangeLocationButtonEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(t){var i=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"change_location_ui"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.changeLocationFormFactory=function(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.locationsResponseFactory=function(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();t.ChangeLocationUiEventFactory=i}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"event_row"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.EventRowEventFactory=t}(e.LocationEventsEventFactory||(e.LocationEventsEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"event_row"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.EventRowEventFactory=t}(e.OtherEventsEventFactory||(e.OtherEventsEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(t){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"change_location_form"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.changeLocationInputFactory=function(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationInputEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.changeLocationClearFactory=function(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationClearEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();t.ChangeLocationFormEventFactory=n}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(t){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"locations_response"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.locationResultFactory=function(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory.LocationResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();t.LocationsResponseEventFactory=n}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"change_location_input"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.keyStrokeTextEdit=function(e){return{actionParameterNames:["field_to_be_changed"],actionParameterValues:[e.fieldToBeChanged.toString()],actionName:"text_edit",actionVersion:1,app:i,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.keyStrokeUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ChangeLocationInputEventFactory=t}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"change_location_clear"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitTextClear=function(){return{actionName:"text_clear",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ChangeLocationClearEventFactory=t}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"location_result"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LocationResultEventFactory=t}(e.LocationsResponseEventFactory||(e.LocationsResponseEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopConcertsArtistConcertsEventFactory||(t.DesktopConcertsArtistConcertsEventFactory={})),t.DesktopConcertsArtistConcertsEventFactory=l},70745:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopConnectContextMenuEventFactory=t.createDesktopConnectContextMenuEventFactory=void 0;var o="music",i="1.1.0",r="default",a="10.0.7";t.createDesktopConnectContextMenuEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-connect-context-menu"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.forgetDeviceButtonFactory=function(){return new e.ForgetDeviceButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.deviceIncarnationContainerFactory=function(){return new e.DeviceIncarnationContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopConnectContextMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"forget_device_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitLogoutFromRemoteDevice=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"logout_from_remote_device",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ForgetDeviceButtonEventFactory=t}(s=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=s,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"device_incarnation_container"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.googleCastButtonFactory=function(){return new e.DeviceIncarnationContainerEventFactory.GoogleCastButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.spotifyConnectButtonFactory=function(){return new e.DeviceIncarnationContainerEventFactory.SpotifyConnectButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.DeviceIncarnationContainerEventFactory=t}(s=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=s,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"google_cast_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitChangeRemoteDeviceIncarnation=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"change_remote_device_incarnation",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitNoAction=function(){return{actionName:"no_action",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoogleCastButtonEventFactory=t}(e.DeviceIncarnationContainerEventFactory||(e.DeviceIncarnationContainerEventFactory={}))}(s=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=s,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"spotify_connect_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitChangeRemoteDeviceIncarnation=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"change_remote_device_incarnation",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitNoAction=function(){return{actionName:"no_action",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SpotifyConnectButtonEventFactory=t}(e.DeviceIncarnationContainerEventFactory||(e.DeviceIncarnationContainerEventFactory={}))}(s=t.DesktopConnectContextMenuEventFactory||(t.DesktopConnectContextMenuEventFactory={})),t.DesktopConnectContextMenuEventFactory=s},65577:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopConnectDevicePickerBtnEventFactory=t.createDesktopConnectDevicePickerBtnEventFactory=void 0;var o="music",i="3.0.0",r="default",a="10.0.4";t.createDesktopConnectDevicePickerBtnEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-connect-device-picker-btn"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.notConnectedButtonFactory=function(){return new e.NotConnectedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.connectingButtonFactory=function(){return new e.ConnectingButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.connectedButtonFactory=function(){return new e.ConnectedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopConnectDevicePickerBtnEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"not_connected_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.NotConnectedButtonEventFactory=t}(s=t.DesktopConnectDevicePickerBtnEventFactory||(t.DesktopConnectDevicePickerBtnEventFactory={})),t.DesktopConnectDevicePickerBtnEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"connecting_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ConnectingButtonEventFactory=t}(s=t.DesktopConnectDevicePickerBtnEventFactory||(t.DesktopConnectDevicePickerBtnEventFactory={})),t.DesktopConnectDevicePickerBtnEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"connected_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ConnectedButtonEventFactory=t}(s=t.DesktopConnectDevicePickerBtnEventFactory||(t.DesktopConnectDevicePickerBtnEventFactory={})),t.DesktopConnectDevicePickerBtnEventFactory=s},65725:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopConnectDevicePickerEventFactory=t.createDesktopConnectDevicePickerEventFactory=void 0;var i="music",r="7.0.0",a="default",s="10.0.7";t.createDesktopConnectDevicePickerEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[{name:"desktop-connect-device-picker"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.containerViewFactory=function(){return new e.ContainerViewEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopConnectDevicePickerEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"container_view"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.headerFactory=function(){return new e.ContainerViewEventFactory.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.noDevicesViewFactory=function(){return new e.ContainerViewEventFactory.NoDevicesViewEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.deviceListFactory=function(){return new e.ContainerViewEventFactory.DeviceListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.onNetworkDeviceListFactory=function(){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.offNetworkDeviceListFactory=function(){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.externalHelpLinkFactory=function(){return new e.ContainerViewEventFactory.ExternalHelpLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ContainerViewEventFactory=t}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.activeDeviceFactory=function(){return new e.ContainerViewEventFactory.HeaderEventFactory.ActiveDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();t.HeaderEventFactory=n}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"no_devices_view"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.NoDevicesViewEventFactory=t}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"device_list"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.localDeviceFactory=function(){return new e.ContainerViewEventFactory.DeviceListEventFactory.LocalDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.remoteDeviceFactory=function(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.RemoteDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.disabledDeviceFactory=function(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.DisabledDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.castPlaceholderFactory=function(){return new e.ContainerViewEventFactory.DeviceListEventFactory.CastPlaceholderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.DeviceListEventFactory=n}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"on_network_device_list"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.remoteDeviceFactory=function(t){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.RemoteDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.disabledDeviceFactory=function(t){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.DisabledDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.localDeviceFactory=function(){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.LocalDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.OnNetworkDeviceListEventFactory=n}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"off_network_device_list"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.remoteDeviceFactory=function(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.RemoteDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.disabledDeviceFactory=function(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.DisabledDeviceEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.OffNetworkDeviceListEventFactory=n}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"external_help_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ExternalHelpLinkEventFactory=t}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"active_device"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.contextMenuButtonFactory=function(t){return new e.ContainerViewEventFactory.HeaderEventFactory.ActiveDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();t.ActiveDeviceEventFactory=n}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"local_device"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPullPlaybackToLocalDevice=function(){return{actionName:"pull_playback_to_local_device",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LocalDeviceEventFactory=t}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){!function(t){var l=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"remote_device"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.contextMenuButtonFactory=function(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.RemoteDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.hitConnectToRemoteDevice=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"connect_to_remote_device",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.RemoteDeviceEventFactory=l}(t.DeviceListEventFactory||(t.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){!function(t){var l=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"disabled_device"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.contextMenuButtonFactory=function(t){return new e.ContainerViewEventFactory.DeviceListEventFactory.DisabledDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.DisabledDeviceEventFactory=l}(t.DeviceListEventFactory||(t.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"cast_placeholder"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CastPlaceholderEventFactory=t}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){!function(t){var l=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"remote_device"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.contextMenuButtonFactory=function(t){return new e.ContainerViewEventFactory.OnNetworkDeviceListEventFactory.RemoteDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.hitConnectToRemoteDevice=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"connect_to_remote_device",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.RemoteDeviceEventFactory=l}(t.OnNetworkDeviceListEventFactory||(t.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"disabled_device"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DisabledDeviceEventFactory=t}(e.OnNetworkDeviceListEventFactory||(e.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"local_device"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPullPlaybackToLocalDevice=function(){return{actionName:"pull_playback_to_local_device",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LocalDeviceEventFactory=t}(e.OnNetworkDeviceListEventFactory||(e.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){!function(t){var l=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"remote_device"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.contextMenuButtonFactory=function(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.RemoteDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.hitConnectToRemoteDevice=function(e){return{actionParameterNames:["remote_device_id"],actionParameterValues:[e.remoteDeviceId.toString()],actionName:"connect_to_remote_device",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.RemoteDeviceEventFactory=l}(t.OffNetworkDeviceListEventFactory||(t.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(t){!function(t){var l=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"disabled_device"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.contextMenuButtonFactory=function(t){return new e.ContainerViewEventFactory.OffNetworkDeviceListEventFactory.DisabledDeviceEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.DisabledDeviceEventFactory=l}(t.OffNetworkDeviceListEventFactory||(t.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"context_menu_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.ActiveDeviceEventFactory||(e.ActiveDeviceEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"context_menu_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.RemoteDeviceEventFactory||(e.RemoteDeviceEventFactory={}))}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"context_menu_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.DisabledDeviceEventFactory||(e.DisabledDeviceEventFactory={}))}(e.DeviceListEventFactory||(e.DeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"context_menu_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.RemoteDeviceEventFactory||(e.RemoteDeviceEventFactory={}))}(e.OnNetworkDeviceListEventFactory||(e.OnNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"context_menu_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.RemoteDeviceEventFactory||(e.RemoteDeviceEventFactory={}))}(e.OffNetworkDeviceListEventFactory||(e.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l,function(e){!function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"context_menu_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.DisabledDeviceEventFactory||(e.DisabledDeviceEventFactory={}))}(e.OffNetworkDeviceListEventFactory||(e.OffNetworkDeviceListEventFactory={}))}(e.ContainerViewEventFactory||(e.ContainerViewEventFactory={}))}(l=t.DesktopConnectDevicePickerEventFactory||(t.DesktopConnectDevicePickerEventFactory={})),t.DesktopConnectDevicePickerEventFactory=l},42583:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopConnectNudgeEventFactory=t.createDesktopConnectNudgeEventFactory=void 0;var o="music",i="1.0.0",r="default",a="10.0.5";t.createDesktopConnectNudgeEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-connect-nudge"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.connectFromDevicePickerNudgeFactory=function(){return new e.ConnectFromDevicePickerNudgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopConnectNudgeEventFactory=s,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"connect_from_device_picker_nudge"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.closeButtonFactory=function(){return new e.ConnectFromDevicePickerNudgeEventFactory.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},t.prototype.hitNoAction=function(){return{actionName:"no_action",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.ConnectFromDevicePickerNudgeEventFactory=t}(s=t.DesktopConnectNudgeEventFactory||(t.DesktopConnectNudgeEventFactory={})),t.DesktopConnectNudgeEventFactory=s,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"close_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CloseButtonEventFactory=t}(e.ConnectFromDevicePickerNudgeEventFactory||(e.ConnectFromDevicePickerNudgeEventFactory={}))}(s=t.DesktopConnectNudgeEventFactory||(t.DesktopConnectNudgeEventFactory={})),t.DesktopConnectNudgeEventFactory=s},30074:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopEnhanceButtonEventFactory=t.createDesktopEnhanceButtonEventFactory=void 0;var i="music",r="2.0.0",a="default",s="9.4.13";t.createDesktopEnhanceButtonEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-enhance-button"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitEnhanceContext=function(e){return{actionParameterNames:["context_to_be_enhanced"],actionParameterValues:[e.contextToBeEnhanced.toString()],actionName:"enhance_context",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUnenhanceContext=function(e){return{actionParameterNames:["context_to_be_unenhanced"],actionParameterValues:[e.contextToBeUnenhanced.toString()],actionName:"unenhance_context",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopEnhanceButtonEventFactory=l},42065:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopEnhancedEventFactory=t.createDesktopEnhancedEventFactory=void 0;var i="music",r="2.0.0",a="default",s="9.4.13";t.createDesktopEnhancedEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-enhanced"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.playButtonFactory=function(){return new e.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopEnhancedEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.HeaderEventFactory=t}(l=t.DesktopEnhancedEventFactory||(t.DesktopEnhancedEventFactory={})),t.DesktopEnhancedEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(l=t.DesktopEnhancedEventFactory||(t.DesktopEnhancedEventFactory={})),t.DesktopEnhancedEventFactory=l},37840:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopEpisodeBlockEventFactory=t.createDesktopEpisodeBlockEventFactory=void 0;var i="music",r="1.1.0",a="default",s="9.4.6";t.createDesktopEpisodeBlockEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-episode-block"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.playButtonFactory=function(){return new e.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.moreButtonFactory=function(){return new e.MoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.copyLinkFactory=function(){return new e.CopyLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.downloadButtonFactory=function(){return new e.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.saveToLibraryButtonFactory=function(){return new e.SaveToLibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.secondaryHitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"secondary_hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"more_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.MoreButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"copy_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitShare=function(e){var t=e.entityToBeShared,n=e.shareId;return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[t.toString(),n.toString()],actionName:"share",actionVersion:2,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CopyLinkEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"save_to_library_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SaveToLibraryButtonEventFactory=t}(l=t.DesktopEpisodeBlockEventFactory||(t.DesktopEpisodeBlockEventFactory={})),t.DesktopEpisodeBlockEventFactory=l},81326:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopErrorPageEventFactory=t.createDesktopErrorPageEventFactory=void 0;var i="music",r="1.0.0",a="default",s="11.1.0";t.createDesktopErrorPageEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-error-page"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.reloadPageButtonFactory=function(){return new e.ReloadPageButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopErrorPageEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"reload_page_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitRefreshContent=function(){return{actionName:"refresh_content",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ReloadPageButtonEventFactory=t}(l=t.DesktopErrorPageEventFactory||(t.DesktopErrorPageEventFactory={})),t.DesktopErrorPageEventFactory=l},5866:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopFeatureActivationShelfEventFactory=t.createDesktopFeatureActivationShelfEventFactory=void 0;var o="music",i="2.1.0",r="default",a="10.0.7";t.createDesktopFeatureActivationShelfEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-feature-activation-shelf"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.shelfTitleFactory=function(){return new e.ShelfTitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.seeAllFeaturesFactory=function(){return new e.SeeAllFeaturesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.shelfContainerFactory=function(){return new e.ShelfContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.groupSessionsModalFactory=function(){return new e.GroupSessionsModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.hideShelfImpressionElementFactory=function(){return new e.HideShelfImpressionElementEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopFeatureActivationShelfEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_title"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShelfTitleEventFactory=t}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_all_features"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeAllFeaturesEventFactory=t}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_container"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.enchanceCardFactory=function(){return new e.ShelfContainerEventFactory.EnchanceCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.groupSessionsCardFactory=function(){return new e.ShelfContainerEventFactory.GroupSessionsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.audioQualityCardFactory=function(){return new e.ShelfContainerEventFactory.AudioQualityCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.ShelfContainerEventFactory=t}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"group_sessions_modal"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GroupSessionsModalEventFactory=t}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"hide_shelf_impression_element"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.HideShelfImpressionElementEventFactory=t}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"enchance_card"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitEnhancePlaylist=function(e){return{actionParameterNames:["playlist"],actionParameterValues:[e.playlist.toString()],actionName:"enhance_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.EnchanceCardEventFactory=t}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"group_sessions_card"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GroupSessionsCardEventFactory=t}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"audio_quality_card"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitSetSettingField=function(){return{actionName:"set_setting_field",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.AudioQualityCardEventFactory=t}(e.ShelfContainerEventFactory||(e.ShelfContainerEventFactory={}))}(s=t.DesktopFeatureActivationShelfEventFactory||(t.DesktopFeatureActivationShelfEventFactory={})),t.DesktopFeatureActivationShelfEventFactory=s},62361:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopFindEventFactory=t.createDesktopFindEventFactory=void 0;var i="2.0.2",r="default";t.createDesktopFindEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[n({name:"desktop-find"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.recentSearchesFactory=function(){return new e.RecentSearchesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.topGenresFactory=function(){return new e.TopGenresEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.browseAllFactory=function(){return new e.BrowseAllEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopFindEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"recent_searches"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.RecentSearchesEventFactory=t}(a=t.DesktopFindEventFactory||(t.DesktopFindEventFactory={})),t.DesktopFindEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"top_genres"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.TopGenresEventFactory=t}(a=t.DesktopFindEventFactory||(t.DesktopFindEventFactory={})),t.DesktopFindEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"browse_all"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.BrowseAllEventFactory=t}(a=t.DesktopFindEventFactory||(t.DesktopFindEventFactory={})),t.DesktopFindEventFactory=a},69042:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopFriendActivityEventFactory=t.createDesktopFriendActivityEventFactory=void 0;var i="music",r="1.0.0",a="default",s="10.0.4";t.createDesktopFriendActivityEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[{name:"desktop-friend-activity"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.addFriendButtonFactory=function(){return new e.AddFriendButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.closeButtonFactory=function(){return new e.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.friendRowFactory=function(){return new e.FriendRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopFriendActivityEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"add_friend_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.AddFriendButtonEventFactory=t}(l=t.DesktopFriendActivityEventFactory||(t.DesktopFriendActivityEventFactory={})),t.DesktopFriendActivityEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"close_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CloseButtonEventFactory=t}(l=t.DesktopFriendActivityEventFactory||(t.DesktopFriendActivityEventFactory={})),t.DesktopFriendActivityEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"friend_row"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.FriendRowEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.friendRowLinkFactory=function(t){return new e.FriendRowEventFactory.FriendRowLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.FriendRowEventFactory=t}(l=t.DesktopFriendActivityEventFactory||(t.DesktopFriendActivityEventFactory={})),t.DesktopFriendActivityEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.FriendRowEventFactory||(e.FriendRowEventFactory={}))}(l=t.DesktopFriendActivityEventFactory||(t.DesktopFriendActivityEventFactory={})),t.DesktopFriendActivityEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"friend_row_link"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FriendRowLinkEventFactory=t}(e.FriendRowEventFactory||(e.FriendRowEventFactory={}))}(l=t.DesktopFriendActivityEventFactory||(t.DesktopFriendActivityEventFactory={})),t.DesktopFriendActivityEventFactory=l},60161:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopGenreEventFactory=t.createDesktopGenreEventFactory=void 0;var i="0.1.0",r="default";t.createDesktopGenreEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[n({name:"desktop-genre"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.shelvesFactory=function(){return new e.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopGenreEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelves"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.ShelvesEventFactory=t}(a=t.DesktopGenreEventFactory||(t.DesktopGenreEventFactory={})),t.DesktopGenreEventFactory=a},98389:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopHomeFeatureActivationShelfEventFactory=t.createDesktopHomeFeatureActivationShelfEventFactory=void 0;var o="1.0.0",i="default";t.createDesktopHomeFeatureActivationShelfEventFactory=function(e){return new r(e)};var r=function(){function e(e){this._path=[{name:"desktop-home-feature-activation-shelf"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.impressionElementFactory=function(){return new e.ImpressionElementEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([i],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([o],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopHomeFeatureActivationShelfEventFactory=r,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"impression_element"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([i],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([o],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:"music",generatorVersion:"10.0.5",specificationVersion:o,specificationMode:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ImpressionElementEventFactory=t}(r=t.DesktopHomeFeatureActivationShelfEventFactory||(t.DesktopHomeFeatureActivationShelfEventFactory={})),t.DesktopHomeFeatureActivationShelfEventFactory=r},22385:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopHomeEventFactory=t.createDesktopHomeEventFactory=void 0;var i="music",r="8.0.1",a="default",s="9.4.4";t.createDesktopHomeEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-home"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.announcementsFactory=function(t){return new e.AnnouncementsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.shortcutsFactory=function(){return new e.ShortcutsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.shelvesFactory=function(){return new e.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopHomeEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"announcements"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.AnnouncementsEventFactory=t}(l=t.DesktopHomeEventFactory||(t.DesktopHomeEventFactory={})),t.DesktopHomeEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shortcuts"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.ShortcutsEventFactory=t}(l=t.DesktopHomeEventFactory||(t.DesktopHomeEventFactory={})),t.DesktopHomeEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelves"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.ShelvesEventFactory=t}(l=t.DesktopHomeEventFactory||(t.DesktopHomeEventFactory={})),t.DesktopHomeEventFactory=l},55122:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopLibraryTopbarEventFactory=t.createDesktopLibraryTopbarEventFactory=void 0;var i="1.0.1",r="default";t.createDesktopLibraryTopbarEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[{name:"desktop-library-topbar"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.linkFactory=function(t){return new e.LinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopLibraryTopbarEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"link"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:"music",generatorVersion:"9.4.4",interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LinkEventFactory=t}(a=t.DesktopLibraryTopbarEventFactory||(t.DesktopLibraryTopbarEventFactory={})),t.DesktopLibraryTopbarEventFactory=a},72568:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopLibraryEventFactory=t.createDesktopLibraryEventFactory=void 0;var i="1.0.0",r="default";t.createDesktopLibraryEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[n({name:"desktop-library"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopLibraryEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.HeaderEventFactory=t}(a=t.DesktopLibraryEventFactory||(t.DesktopLibraryEventFactory={})),t.DesktopLibraryEventFactory=a},28680:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopLikedSongsEventFactory=t.createDesktopLikedSongsEventFactory=void 0;var i="music",r="1.0.0",a="default",s="10.0.4";t.createDesktopLikedSongsEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-liked-songs"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.tracklistFactory=function(){return new e.TracklistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopLikedSongsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.ownerFactory=function(){return new e.HeaderEventFactory.OwnerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.HeaderEventFactory=t}(l=t.DesktopLikedSongsEventFactory||(t.DesktopLikedSongsEventFactory={})),t.DesktopLikedSongsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.downloadButtonFactory=function(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopLikedSongsEventFactory||(t.DesktopLikedSongsEventFactory={})),t.DesktopLikedSongsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"tracklist"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.columnHeaderFactory=function(t){return new e.TracklistEventFactory.ColumnHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.TracklistEventFactory=t}(l=t.DesktopLikedSongsEventFactory||(t.DesktopLikedSongsEventFactory={})),t.DesktopLikedSongsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"owner"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.OwnerEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopLikedSongsEventFactory||(t.DesktopLikedSongsEventFactory={})),t.DesktopLikedSongsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopLikedSongsEventFactory||(t.DesktopLikedSongsEventFactory={})),t.DesktopLikedSongsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopLikedSongsEventFactory||(t.DesktopLikedSongsEventFactory={})),t.DesktopLikedSongsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"column_header"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitSort=function(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ColumnHeaderEventFactory=t}(e.TracklistEventFactory||(e.TracklistEventFactory={}))}(l=t.DesktopLikedSongsEventFactory||(t.DesktopLikedSongsEventFactory={})),t.DesktopLikedSongsEventFactory=l},10650:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopLockedAudiobookEventFactory=t.createDesktopLockedAudiobookEventFactory=void 0;var i="1.0.0",r="default";t.createDesktopLockedAudiobookEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[n({name:"desktop-locked-audiobook"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:"music",generatorVersion:"10.0.5",specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopLockedAudiobookEventFactory=a},10620:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopLyricsEventFactory=t.createDesktopLyricsEventFactory=void 0;var i="1.0.0",r="default";t.createDesktopLyricsEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[n({name:"desktop-lyrics"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.lyricsLineFactory=function(){return new e.LyricsLineEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopLyricsEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"lyrics_line"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitSeekToTime=function(e){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.msToSeekTo.toString()],actionName:"seek_to_time",actionVersion:1,app:"music",generatorVersion:"10.0.1",interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LyricsLineEventFactory=t}(a=t.DesktopLyricsEventFactory||(t.DesktopLyricsEventFactory={})),t.DesktopLyricsEventFactory=a},91318:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopMerchShelfEventFactory=t.createDesktopMerchShelfEventFactory=void 0;var i="music",r="1.0.0",a="default",s="9.4.13";t.createDesktopMerchShelfEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-merch-shelf"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.merchCardFactory=function(t){return new e.MerchCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopMerchShelfEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"merch_card"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.MerchCardEventFactory=t}(l=t.DesktopMerchShelfEventFactory||(t.DesktopMerchShelfEventFactory={})),t.DesktopMerchShelfEventFactory=l},26636:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopNowPlayingQueueEventFactory=t.createDesktopNowPlayingQueueEventFactory=void 0;var i="music",r="4.0.0",a="default",s="11.0.1";t.createDesktopNowPlayingQueueEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-now-playing-queue"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.nowPlayingSectionFactory=function(){return new e.NowPlayingSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.nextInQueueSectionFactory=function(){return new e.NextInQueueSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.nextFromSectionFactory=function(){return new e.NextFromSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopNowPlayingQueueEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"now_playing_section"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.dragAddItemToQueue=function(e){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.itemToAddToQueue.toString()],actionName:"add_item_to_queue",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.NowPlayingSectionEventFactory=t}(l=t.DesktopNowPlayingQueueEventFactory||(t.DesktopNowPlayingQueueEventFactory={})),t.DesktopNowPlayingQueueEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"next_in_queue_section"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.clearQueueButtonFactory=function(){return new e.NextInQueueSectionEventFactory.ClearQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.dragAddItemToQueue=function(e){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.itemToAddToQueue.toString()],actionName:"add_item_to_queue",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.dragSort=function(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.NextInQueueSectionEventFactory=t}(l=t.DesktopNowPlayingQueueEventFactory||(t.DesktopNowPlayingQueueEventFactory={})),t.DesktopNowPlayingQueueEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"next_from_section"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.queueContextLinkFactory=function(){return new e.NextFromSectionEventFactory.QueueContextLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.dragAddItemToQueue=function(e){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.itemToAddToQueue.toString()],actionName:"add_item_to_queue",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.dragSort=function(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.NextFromSectionEventFactory=t}(l=t.DesktopNowPlayingQueueEventFactory||(t.DesktopNowPlayingQueueEventFactory={})),t.DesktopNowPlayingQueueEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"clear_queue_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitRemoveItemsFromQueue=function(e){return{actionParameterNames:["number_of_items_to_remove_from_queue"],actionParameterValues:[e.numberOfItemsToRemoveFromQueue.toString()],actionName:"remove_items_from_queue",actionVersion:2,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ClearQueueButtonEventFactory=t}(e.NextInQueueSectionEventFactory||(e.NextInQueueSectionEventFactory={}))}(l=t.DesktopNowPlayingQueueEventFactory||(t.DesktopNowPlayingQueueEventFactory={})),t.DesktopNowPlayingQueueEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"queue_context_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.QueueContextLinkEventFactory=t}(e.NextFromSectionEventFactory||(e.NextFromSectionEventFactory={}))}(l=t.DesktopNowPlayingQueueEventFactory||(t.DesktopNowPlayingQueueEventFactory={})),t.DesktopNowPlayingQueueEventFactory=l},28321:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopNpbExtraEventFactory=t.createDesktopNpbExtraEventFactory=void 0;var o="music",i="4.1.0",r="default",a="11.1.0";t.createDesktopNpbExtraEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-npb-extra"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.hifiBadgeFactory=function(){return new e.HifiBadgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.npvButtonFactory=function(){return new e.NpvButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.lyricsButtonFactory=function(){return new e.LyricsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.queueButtonFactory=function(){return new e.QueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.volumeMuteButtonFactory=function(){return new e.VolumeMuteButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.volumeBarFactory=function(){return new e.VolumeBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.fullscreenButtonFactory=function(){return new e.FullscreenButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopNpbExtraEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"hifi_badge"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.HifiBadgeEventFactory=t}(s=t.DesktopNpbExtraEventFactory||(t.DesktopNpbExtraEventFactory={})),t.DesktopNpbExtraEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"npv_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.NpvButtonEventFactory=t}(s=t.DesktopNpbExtraEventFactory||(t.DesktopNpbExtraEventFactory={})),t.DesktopNpbExtraEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"lyrics_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiNavigateBack=function(){return{actionName:"ui_navigate_back",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LyricsButtonEventFactory=t}(s=t.DesktopNpbExtraEventFactory||(t.DesktopNpbExtraEventFactory={})),t.DesktopNpbExtraEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"queue_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiNavigateBack=function(){return{actionName:"ui_navigate_back",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.QueueButtonEventFactory=t}(s=t.DesktopNpbExtraEventFactory||(t.DesktopNpbExtraEventFactory={})),t.DesktopNpbExtraEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"volume_mute_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitMutePlayback=function(){return{actionName:"mute_playback",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUnmutePlayback=function(){return{actionName:"unmute_playback",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.VolumeMuteButtonEventFactory=t}(s=t.DesktopNpbExtraEventFactory||(t.DesktopNpbExtraEventFactory={})),t.DesktopNpbExtraEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"volume_bar"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSetVolume=function(e){return{actionParameterNames:["new_volume_percentage"],actionParameterValues:[e.newVolumePercentage.toString()],actionName:"set_volume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.dragSetVolume=function(e){return{actionParameterNames:["new_volume_percentage"],actionParameterValues:[e.newVolumePercentage.toString()],actionName:"set_volume",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.VolumeBarEventFactory=t}(s=t.DesktopNpbExtraEventFactory||(t.DesktopNpbExtraEventFactory={})),t.DesktopNpbExtraEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"fullscreen_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FullscreenButtonEventFactory=t}(s=t.DesktopNpbExtraEventFactory||(t.DesktopNpbExtraEventFactory={})),t.DesktopNpbExtraEventFactory=s},649:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopNpbNowPlayingWidgetEventFactory=t.createDesktopNpbNowPlayingWidgetEventFactory=void 0;var i="music",r="2.1.0",a="default",s="9.4.18";t.createDesktopNpbNowPlayingWidgetEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[{name:"desktop-npb-now-playing-widget"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.coverartFactory=function(t){return new e.CoverartEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.titleFactory=function(t){return new e.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.subtitleFactory=function(t){return new e.SubtitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.likeButtonFactory=function(t){return new e.LikeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.pipButtonFactory=function(t){return new e.PipButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.videoToggleFactory=function(t){return new e.VideoToggleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.hideButtonFactory=function(){return new e.HideButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"coverart"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.coverartArrowFactory=function(){return new e.CoverartEventFactory.CoverartArrowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.CoverartEventFactory=t}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"title"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TitleEventFactory=t}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"subtitle"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SubtitleEventFactory=t}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"like_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LikeButtonEventFactory=t}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"pip_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PipButtonEventFactory=t}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"video_toggle"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.VideoToggleEventFactory=t}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"hide_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitRemoveRecommendation=function(e){var t=e.recommendedItemUri,n=e.contextUri;return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[t.toString(),n.toString()],actionName:"remove_recommendation",actionVersion:2,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.HideButtonEventFactory=t}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"coverart_arrow"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CoverartArrowEventFactory=t}(e.CoverartEventFactory||(e.CoverartEventFactory={}))}(l=t.DesktopNpbNowPlayingWidgetEventFactory||(t.DesktopNpbNowPlayingWidgetEventFactory={})),t.DesktopNpbNowPlayingWidgetEventFactory=l},29329:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopNpbPlayerControlsEventFactory=t.createDesktopNpbPlayerControlsEventFactory=void 0;var o="music",i="2.0.0",r="default",a="9.4.13";t.createDesktopNpbPlayerControlsEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-npb-player-controls"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.speedControlButtonFactory=function(){return new e.SpeedControlButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.seekBackButtonFactory=function(){return new e.SeekBackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.shuffleButtonFactory=function(){return new e.ShuffleButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.previousButtonFactory=function(){return new e.PreviousButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.playPauseButtonFactory=function(){return new e.PlayPauseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.nextButtonFactory=function(){return new e.NextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.seekForwardButtonFactory=function(){return new e.SeekForwardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.repeatButtonFactory=function(){return new e.RepeatButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.progressBarFactory=function(){return new e.ProgressBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.progressTimeRemainingFactory=function(){return new e.ProgressTimeRemainingEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"speed_control_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSetPlaybackSpeed=function(e){var t=e.currentlyPlayedItem,n=e.playbackSpeed;return{actionParameterNames:["currently_played_item","playback_speed"],actionParameterValues:[t.toString(),n.toString()],actionName:"set_playback_speed",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SpeedControlButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"seek_back_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSeekByTime=function(e){return{actionParameterNames:["ms_seeked_offset"],actionParameterValues:[e.msSeekedOffset.toString()],actionName:"seek_by_time",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeekBackButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shuffle_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitShuffleEnable=function(){return{actionName:"shuffle_enable",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitShuffleDisable=function(){return{actionName:"shuffle_disable",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShuffleButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"previous_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSkipToPrevious=function(e){var t=e.itemToBeSkipped,n=e.positionMs,s=e.totalContentMs;return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[t.toString(),n.toString(),s.toString()],actionName:"skip_to_previous",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PreviousButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_pause_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayPauseButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"next_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSkipToNext=function(e){var t=e.itemToBeSkipped,n=e.positionMs,s=e.totalContentMs;return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[t.toString(),n.toString(),s.toString()],actionName:"skip_to_next",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.NextButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"seek_forward_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSeekByTime=function(e){return{actionParameterNames:["ms_seeked_offset"],actionParameterValues:[e.msSeekedOffset.toString()],actionName:"seek_by_time",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeekForwardButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"repeat_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitRepeatEnable=function(){return{actionName:"repeat_enable",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRepeatDisable=function(){return{actionName:"repeat_disable",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRepeatOneEnable=function(){return{actionName:"repeat_one_enable",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.RepeatButtonEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"progress_bar"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSeekToTime=function(e){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.msToSeekTo.toString()],actionName:"seek_to_time",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.dragSeekToTime=function(e){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.msToSeekTo.toString()],actionName:"seek_to_time",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ProgressBarEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"progress_time_remaining"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ProgressTimeRemainingEventFactory=t}(s=t.DesktopNpbPlayerControlsEventFactory||(t.DesktopNpbPlayerControlsEventFactory={})),t.DesktopNpbPlayerControlsEventFactory=s},66336:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopNpvHeaderSectionEventFactory=t.createDesktopNpvHeaderSectionEventFactory=void 0;var i="music",r="3.1.0",a="default",s="11.0.0";t.createDesktopNpvHeaderSectionEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[{name:"desktop-npv-header-section"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.contextLinkFactory=function(){return new e.ContextLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.closeButtonFactory=function(){return new e.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.coverArtFactory=function(t){return new e.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.titleFactory=function(t){return new e.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.artistFactory=function(t){return new e.ArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.heartButtonFactory=function(){return new e.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.contextMenuButtonFactory=function(){return new e.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopNpvHeaderSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextLinkEventFactory=t}(l=t.DesktopNpvHeaderSectionEventFactory||(t.DesktopNpvHeaderSectionEventFactory={})),t.DesktopNpvHeaderSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"close_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CloseButtonEventFactory=t}(l=t.DesktopNpvHeaderSectionEventFactory||(t.DesktopNpvHeaderSectionEventFactory={})),t.DesktopNpvHeaderSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"cover_art"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.dragAddToPlaylist=function(e){var t=e.playlist,n=e.itemToBeAdded;return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[t.toString(),n.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CoverArtEventFactory=t}(l=t.DesktopNpvHeaderSectionEventFactory||(t.DesktopNpvHeaderSectionEventFactory={})),t.DesktopNpvHeaderSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"title"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TitleEventFactory=t}(l=t.DesktopNpvHeaderSectionEventFactory||(t.DesktopNpvHeaderSectionEventFactory={})),t.DesktopNpvHeaderSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"artist"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ArtistEventFactory=t}(l=t.DesktopNpvHeaderSectionEventFactory||(t.DesktopNpvHeaderSectionEventFactory={})),t.DesktopNpvHeaderSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"heart_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.HeartButtonEventFactory=t}(l=t.DesktopNpvHeaderSectionEventFactory||(t.DesktopNpvHeaderSectionEventFactory={})),t.DesktopNpvHeaderSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_menu_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(l=t.DesktopNpvHeaderSectionEventFactory||(t.DesktopNpvHeaderSectionEventFactory={})),t.DesktopNpvHeaderSectionEventFactory=l},7184:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopOnTourSectionEventFactory=t.createDesktopOnTourSectionEventFactory=void 0;var i="music",r="2.0.0",a="default",s="10.0.5";t.createDesktopOnTourSectionEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-on-tour-section"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.tourEntryFactory=function(t){return new e.TourEntryEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.seeAllButtonFactory=function(t){return new e.SeeAllButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopOnTourSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"tour_entry"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TourEntryEventFactory=t}(l=t.DesktopOnTourSectionEventFactory||(t.DesktopOnTourSectionEventFactory={})),t.DesktopOnTourSectionEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"see_all_button"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeAllButtonEventFactory=t}(l=t.DesktopOnTourSectionEventFactory||(t.DesktopOnTourSectionEventFactory={})),t.DesktopOnTourSectionEventFactory=l},47183:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPlayandnavcardEventFactory=t.createDesktopPlayandnavcardEventFactory=void 0;var i="music",r="5.0.1",a="default",s="9.4.4";t.createDesktopPlayandnavcardEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-playandnavcard"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.cardLinkFactory=function(t){return new e.CardLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.cardPlayButtonFactory=function(){return new e.CardPlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopPlayandnavcardEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"card_link"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CardLinkEventFactory=t}(l=t.DesktopPlayandnavcardEventFactory||(t.DesktopPlayandnavcardEventFactory={})),t.DesktopPlayandnavcardEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"card_play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CardPlayButtonEventFactory=t}(l=t.DesktopPlayandnavcardEventFactory||(t.DesktopPlayandnavcardEventFactory={})),t.DesktopPlayandnavcardEventFactory=l},58394:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPodcastRatingEventFactory=t.createDesktopPodcastRatingEventFactory=void 0;var i="music",r="0.1.0",a="default",s="10.0.5";t.createDesktopPodcastRatingEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-podcast-rating"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.closeButtonFactory=function(){return new e.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.okButtonFactory=function(){return new e.OkButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopPodcastRatingEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"close_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigateBack=function(){return{actionName:"ui_navigate_back",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CloseButtonEventFactory=t}(l=t.DesktopPodcastRatingEventFactory||(t.DesktopPodcastRatingEventFactory={})),t.DesktopPodcastRatingEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"ok_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigateBack=function(){return{actionName:"ui_navigate_back",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.OkButtonEventFactory=t}(l=t.DesktopPodcastRatingEventFactory||(t.DesktopPodcastRatingEventFactory={})),t.DesktopPodcastRatingEventFactory=l},11707:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPodcastEventFactory=t.createDesktopPodcastEventFactory=void 0;var i="music",r="1.0.0",a="default",s="9.4.18";t.createDesktopPodcastEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-podcast"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.episodeListFactory=function(){return new e.EpisodeListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.aboutSectionFactory=function(){return new e.AboutSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopPodcastEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.followButtonFactory=function(){return new e.ActionBarEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextButtonFactory=function(){return new e.ActionBarEventFactory.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"episode_list"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.filterButtonFactory=function(){return new e.EpisodeListEventFactory.FilterButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.sortButtonFactory=function(){return new e.EpisodeListEventFactory.SortButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.EpisodeListEventFactory=t}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"about_section"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.seeMoreButtonFactory=function(){return new e.AboutSectionEventFactory.SeeMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.topicFactory=function(t){return new e.AboutSectionEventFactory.TopicEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.AboutSectionEventFactory=t}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"follow_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitFollow=function(e){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.itemToBeFollowed.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUnfollow=function(e){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.itemToBeUnfollowed.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FollowButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"filter_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitFilter=function(){return{actionName:"filter",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FilterButtonEventFactory=t}(e.EpisodeListEventFactory||(e.EpisodeListEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"sort_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitSort=function(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SortButtonEventFactory=t}(e.EpisodeListEventFactory||(e.EpisodeListEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_more_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeMoreButtonEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"topic"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TopicEventFactory=t}(e.AboutSectionEventFactory||(e.AboutSectionEventFactory={}))}(l=t.DesktopPodcastEventFactory||(t.DesktopPodcastEventFactory={})),t.DesktopPodcastEventFactory=l},10204:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopProfileEventFactory=t.createDesktopProfileEventFactory=void 0;var i="music",r="1.0.0",a="default",s="10.0.4";t.createDesktopProfileEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-profile"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.sectionTopTracksFactory=function(){return new e.SectionTopTracksEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopProfileEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.profileImageFactory=function(){return new e.HeaderEventFactory.ProfileImageEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.usernameFactory=function(){return new e.HeaderEventFactory.UsernameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.followersLinkFactory=function(){return new e.HeaderEventFactory.FollowersLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.followingLinkFactory=function(){return new e.HeaderEventFactory.FollowingLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.HeaderEventFactory=t}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.followButtonFactory=function(){return new e.ActionBarEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextMenuButtonFactory=function(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"section_top_tracks"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.titleLinkFactory=function(){return new e.SectionTopTracksEventFactory.TitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.seeMoreLinkFactory=function(){return new e.SectionTopTracksEventFactory.SeeMoreLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.SectionTopTracksEventFactory=t}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"profile_image"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ProfileImageEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"username"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.UsernameEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"followers_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FollowersLinkEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"following_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FollowingLinkEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"follow_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitFollow=function(e){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.itemToBeFollowed.toString()],actionName:"follow",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUnfollow=function(e){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.itemToBeUnfollowed.toString()],actionName:"unfollow",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FollowButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_menu_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextMenuButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"title_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TitleLinkEventFactory=t}(e.SectionTopTracksEventFactory||(e.SectionTopTracksEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_more_link"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeMoreLinkEventFactory=t}(e.SectionTopTracksEventFactory||(e.SectionTopTracksEventFactory={}))}(l=t.DesktopProfileEventFactory||(t.DesktopProfileEventFactory={})),t.DesktopProfileEventFactory=l},15522:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopQuickSearchEventFactory=t.createDesktopQuickSearchEventFactory=void 0;var i="music",r="1.0.1",a="default",s="9.4.4";t.createDesktopQuickSearchEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[{name:"desktop-quick-search"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.inputFactory=function(){return new e.InputEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.searchResultFactory=function(t){return new e.SearchResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopQuickSearchEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"input"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.keyStrokeChangeSearchQuery=function(e){return{actionParameterNames:["search_query_string"],actionParameterValues:[e.searchQueryString.toString()],actionName:"change_search_query",actionVersion:1,app:i,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.InputEventFactory=t}(l=t.DesktopQuickSearchEventFactory||(t.DesktopQuickSearchEventFactory={})),t.DesktopQuickSearchEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"search_result"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SearchResultEventFactory=t}(l=t.DesktopQuickSearchEventFactory||(t.DesktopQuickSearchEventFactory={})),t.DesktopQuickSearchEventFactory=l},48247:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopRadioStationEventFactory=t.createDesktopRadioStationEventFactory=void 0;var i="music",r="1.0.0",a="default",s="10.0.1";t.createDesktopRadioStationEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-radio-station"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopRadioStationEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.topBarFactory=function(){return new e.HeaderEventFactory.TopBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.HeaderEventFactory=t}(l=t.DesktopRadioStationEventFactory||(t.DesktopRadioStationEventFactory={})),t.DesktopRadioStationEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopRadioStationEventFactory||(t.DesktopRadioStationEventFactory={})),t.DesktopRadioStationEventFactory=l,function(e){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"top_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.HeaderEventFactory.TopBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();t.TopBarEventFactory=n}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopRadioStationEventFactory||(t.DesktopRadioStationEventFactory={})),t.DesktopRadioStationEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopRadioStationEventFactory||(t.DesktopRadioStationEventFactory={})),t.DesktopRadioStationEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.TopBarEventFactory||(e.TopBarEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopRadioStationEventFactory||(t.DesktopRadioStationEventFactory={})),t.DesktopRadioStationEventFactory=l},38260:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopRecentSearchesEventFactory=t.createDesktopRecentSearchesEventFactory=void 0;var i="1.0.1",r="default";t.createDesktopRecentSearchesEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[n({name:"desktop-recent-searches"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.clearButtonFactory=function(){return new e.ClearButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.recentSearchesCardsFactory=function(){return new e.RecentSearchesCardsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopRecentSearchesEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"clear_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitClearRecentSearches=function(){return{actionName:"clear_recent_searches",actionVersion:1,app:"music",generatorVersion:"9.4.4",interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ClearButtonEventFactory=t}(a=t.DesktopRecentSearchesEventFactory||(t.DesktopRecentSearchesEventFactory={})),t.DesktopRecentSearchesEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"recent_searches_cards"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.RecentSearchesCardsEventFactory=t}(a=t.DesktopRecentSearchesEventFactory||(t.DesktopRecentSearchesEventFactory={})),t.DesktopRecentSearchesEventFactory=a},67641:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopRootNavigationEventFactory=t.createDesktopRootNavigationEventFactory=void 0;var o="music",i="2.1.0",r="default",a="10.0.2";t.createDesktopRootNavigationEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-root-navigation"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.homeButtonFactory=function(){return new e.HomeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.searchButtonFactory=function(){return new e.SearchButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.libraryButtonFactory=function(){return new e.LibraryButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.premiumButtonFactory=function(){return new e.PremiumButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.createPlaylistButtonFactory=function(){return new e.CreatePlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.likedSongsButtonFactory=function(){return new e.LikedSongsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.yourEpisodesButtonFactory=function(){return new e.YourEpisodesButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopRootNavigationEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"home_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.HomeButtonEventFactory=t}(s=t.DesktopRootNavigationEventFactory||(t.DesktopRootNavigationEventFactory={})),t.DesktopRootNavigationEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"search_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SearchButtonEventFactory=t}(s=t.DesktopRootNavigationEventFactory||(t.DesktopRootNavigationEventFactory={})),t.DesktopRootNavigationEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"library_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.dragLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LibraryButtonEventFactory=t}(s=t.DesktopRootNavigationEventFactory||(t.DesktopRootNavigationEventFactory={})),t.DesktopRootNavigationEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"premium_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PremiumButtonEventFactory=t}(s=t.DesktopRootNavigationEventFactory||(t.DesktopRootNavigationEventFactory={})),t.DesktopRootNavigationEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"create_playlist_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitCreatePlaylist=function(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.dragCreatePlaylist=function(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.CreatePlaylistButtonEventFactory=t}(s=t.DesktopRootNavigationEventFactory||(t.DesktopRootNavigationEventFactory={})),t.DesktopRootNavigationEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"liked_songs_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.doubleHitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.doubleHitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.doubleHitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.dragLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LikedSongsButtonEventFactory=t}(s=t.DesktopRootNavigationEventFactory||(t.DesktopRootNavigationEventFactory={})),t.DesktopRootNavigationEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"your_episodes_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.dragLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.doubleHitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.doubleHitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.doubleHitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.YourEpisodesButtonEventFactory=t}(s=t.DesktopRootNavigationEventFactory||(t.DesktopRootNavigationEventFactory={})),t.DesktopRootNavigationEventFactory=s},88443:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopRootlistEventFactory=t.createDesktopRootlistEventFactory=void 0;var i="music",r="1.0.0",a="default",s="10.0.2";t.createDesktopRootlistEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[{name:"desktop-rootlist"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.rootlistItemFactory=function(t){return new e.RootlistItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.dragSort=function(){return{actionName:"sort",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.dragLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopRootlistEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"rootlist_item"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.toggleFolderButtonFactory=function(){return new e.RootlistItemEventFactory.ToggleFolderButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.pauseButtonFactory=function(){return new e.RootlistItemEventFactory.PauseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.doubleHitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"double_hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.doubleHitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"double_hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.doubleHitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"double_hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.secondaryHitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"secondary_hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.dragAddToPlaylist=function(e){var t=e.playlist,n=e.itemToBeAdded;return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[t.toString(),n.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.dragUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.dragCreatePlaylist=function(){return{actionName:"create_playlist",actionVersion:1,app:i,generatorVersion:s,interactionType:"drag",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t.prototype.keyStrokeDeletePlaylist=function(e){return{actionParameterNames:["playlist_to_be_deleted"],actionParameterValues:[e.playlistToBeDeleted.toString()],actionName:"delete_playlist",actionVersion:1,app:i,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},t}();e.RootlistItemEventFactory=t}(l=t.DesktopRootlistEventFactory||(t.DesktopRootlistEventFactory={})),t.DesktopRootlistEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"toggle_folder_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ToggleFolderButtonEventFactory=t}(e.RootlistItemEventFactory||(e.RootlistItemEventFactory={}))}(l=t.DesktopRootlistEventFactory||(t.DesktopRootlistEventFactory={})),t.DesktopRootlistEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"pause_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PauseButtonEventFactory=t}(e.RootlistItemEventFactory||(e.RootlistItemEventFactory={}))}(l=t.DesktopRootlistEventFactory||(t.DesktopRootlistEventFactory={})),t.DesktopRootlistEventFactory=l},8930:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchBarEventFactory=t.createDesktopSearchBarEventFactory=void 0;var o="music",i="1.0.1",r="default",a="9.4.4";t.createDesktopSearchBarEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-search-bar"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.filterFieldFactory=function(){return new e.FilterFieldEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.sortButtonFactory=function(){return new e.SortButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.DesktopSearchBarEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"filter_field"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.keyStrokeFilter=function(){return{actionName:"filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitClearFilter=function(){return{actionName:"clear_filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.FilterFieldEventFactory=t}(s=t.DesktopSearchBarEventFactory||(t.DesktopSearchBarEventFactory={})),t.DesktopSearchBarEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"sort_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSort=function(){return{actionName:"sort",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SortButtonEventFactory=t}(s=t.DesktopSearchBarEventFactory||(t.DesktopSearchBarEventFactory={})),t.DesktopSearchBarEventFactory=s},77153:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchChipsEventFactory=t.createDesktopSearchChipsEventFactory=void 0;var i="2.0.1",r="default";t.createDesktopSearchChipsEventFactory=function(e){return new a(e)};var a=function(){function e(e){this._path=[{name:"desktop-search-chips"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.chipFactory=function(t){return new e.ChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopSearchChipsEventFactory=a,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"chip"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([r],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([i],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:"music",generatorVersion:"9.4.4",interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ChipEventFactory=t}(a=t.DesktopSearchChipsEventFactory||(t.DesktopSearchChipsEventFactory={})),t.DesktopSearchChipsEventFactory=a},70333:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchEmptyResultsEventFactory=t.createDesktopSearchEmptyResultsEventFactory=void 0;var i="music",r="1.0.0",a="default",s="11.1.0";t.createDesktopSearchEmptyResultsEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-search-empty-results"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.seeAllButtonFactory=function(){return new e.SeeAllButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopSearchEmptyResultsEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"see_all_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SeeAllButtonEventFactory=t}(l=t.DesktopSearchEmptyResultsEventFactory||(t.DesktopSearchEmptyResultsEventFactory={})),t.DesktopSearchEmptyResultsEventFactory=l},7681:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchInputEventFactory=t.createDesktopSearchInputEventFactory=void 0;var o="music",i="1.0.1",r="default",a="9.4.4";t.createDesktopSearchInputEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-search-input"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.keyStrokeChangeSearchQuery=function(e){return{actionParameterNames:["search_query_string"],actionParameterValues:[e.searchQueryString.toString()],actionName:"change_search_query",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.keyStrokeSearch=function(){return{actionName:"search",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitTextClear=function(){return{actionName:"text_clear",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopSearchInputEventFactory=s},58230:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopSearchRowEventFactory=t.createDesktopSearchRowEventFactory=void 0;var i="music",r="1.0.0",a="default",s="10.0.5";t.createDesktopSearchRowEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-search-row"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.playbackButtonFactory=function(){return new e.PlaybackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.titleLinkFactory=function(t){return new e.TitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.subtitleLinkFactory=function(t){return new e.SubtitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype.downloadButtonFactory=function(){return new e.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.heartButtonFactory=function(){return new e.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.contextButtonFactory=function(){return new e.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.secondaryHitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"secondary_hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"playback_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitShowPaywall=function(e){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.paywalledItem.toString()],actionName:"show_paywall",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlaybackButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"title_link"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TitleLinkEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"subtitle_link"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SubtitleLinkEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitDownload=function(e){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.itemToDownload.toString()],actionName:"download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitStopDownload=function(e){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.itemToStopDownload.toString()],actionName:"stop_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveDownload=function(e){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.itemToRemoveFromDownloads.toString()],actionName:"remove_download",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"heart_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.HeartButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(l=t.DesktopSearchRowEventFactory||(t.DesktopSearchRowEventFactory={})),t.DesktopSearchRowEventFactory=l},79139:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopShelfEventFactory=t.createDesktopShelfEventFactory=void 0;var i="music",r="4.1.0",a="default",s="10.0.5";t.createDesktopShelfEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-shelf"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.shelfHeaderFactory=function(){return new e.ShelfHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.swipeUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"swipe",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopShelfEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.shelfHeaderTitleFactory=function(){return new e.ShelfHeaderEventFactory.ShelfHeaderTitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.shelfHeaderSeeAllFactory=function(){return new e.ShelfHeaderEventFactory.ShelfHeaderSeeAllEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.shelfCarouselControlsFactory=function(){return new e.ShelfHeaderEventFactory.ShelfCarouselControlsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ShelfHeaderEventFactory=t}(l=t.DesktopShelfEventFactory||(t.DesktopShelfEventFactory={})),t.DesktopShelfEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_header_title"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShelfHeaderTitleEventFactory=t}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(l=t.DesktopShelfEventFactory||(t.DesktopShelfEventFactory={})),t.DesktopShelfEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_header_see_all"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShelfHeaderSeeAllEventFactory=t}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(l=t.DesktopShelfEventFactory||(t.DesktopShelfEventFactory={})),t.DesktopShelfEventFactory=l,function(e){!function(t){var n=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_carousel_controls"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.shelfCarouselControlsPreviousFactory=function(){return new e.ShelfHeaderEventFactory.ShelfCarouselControlsEventFactory.ShelfCarouselControlsPreviousEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.shelfCarouselControlsNextFactory=function(){return new e.ShelfHeaderEventFactory.ShelfCarouselControlsEventFactory.ShelfCarouselControlsNextEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();t.ShelfCarouselControlsEventFactory=n}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(l=t.DesktopShelfEventFactory||(t.DesktopShelfEventFactory={})),t.DesktopShelfEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_carousel_controls_previous"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShelfCarouselControlsPreviousEventFactory=t}(e.ShelfCarouselControlsEventFactory||(e.ShelfCarouselControlsEventFactory={}))}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(l=t.DesktopShelfEventFactory||(t.DesktopShelfEventFactory={})),t.DesktopShelfEventFactory=l,function(e){!function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"shelf_carousel_controls_next"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShelfCarouselControlsNextEventFactory=t}(e.ShelfCarouselControlsEventFactory||(e.ShelfCarouselControlsEventFactory={}))}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(l=t.DesktopShelfEventFactory||(t.DesktopShelfEventFactory={})),t.DesktopShelfEventFactory=l},94722:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopShortcutsPlayNavCardEventFactory=t.createDesktopShortcutsPlayNavCardEventFactory=void 0;var i="music",r="1.0.1",a="default",s="9.4.4";t.createDesktopShortcutsPlayNavCardEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-shortcuts-play-nav-card"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.playButtonFactory=function(){return new e.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopShortcutsPlayNavCardEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(l=t.DesktopShortcutsPlayNavCardEventFactory||(t.DesktopShortcutsPlayNavCardEventFactory={})),t.DesktopShortcutsPlayNavCardEventFactory=l},74095:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTrackContextMenuEventFactory=t.createDesktopTrackContextMenuEventFactory=void 0;var i="music",r="1.1.0",a="default",s="9.4.9";t.createDesktopTrackContextMenuEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-track-context-menu"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.goToSongRadioFactory=function(){return new e.GoToSongRadioEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToArtistFactory=function(){return new e.GoToArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToAlbumFactory=function(){return new e.GoToAlbumEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.showCreditsFactory=function(){return new e.ShowCreditsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.addRecommendationFactory=function(){return new e.AddRecommendationEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.removeRecommendationFactory=function(){return new e.RemoveRecommendationEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_song_radio"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToSongRadioEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_artist"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToArtistEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_album"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToAlbumEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"show_credits"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ShowCreditsEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"add_recommendation"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitAddToPlaylist=function(e){var t=e.playlist,n=e.itemToBeAdded;return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[t.toString(),n.toString()],actionName:"add_to_playlist",actionVersion:2,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.AddRecommendationEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"remove_recommendation"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitRemoveRecommendation=function(e){var t=e.recommendedItemUri,n=e.contextUri;return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[t.toString(),n.toString()],actionName:"remove_recommendation",actionVersion:2,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.RemoveRecommendationEventFactory=t}(l=t.DesktopTrackContextMenuEventFactory||(t.DesktopTrackContextMenuEventFactory={})),t.DesktopTrackContextMenuEventFactory=l},55847:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTrackListEventFactory=t.createDesktopTrackListEventFactory=void 0;var i="music",r="0.1.0",a="default",s="9.4.13";t.createDesktopTrackListEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-track-list"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.removeItemsButtonFactory=function(){return new e.RemoveItemsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopTrackListEventFactory=l,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"remove_items_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitRemoveItemsFromPlaylist=function(e){return{actionParameterNames:["number_of_items_to_remove_from_playlist"],actionParameterValues:[e.numberOfItemsToRemoveFromPlaylist.toString()],actionName:"remove_items_from_playlist",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveRecommendations=function(e){var t=e.numberOfRecommendationsToRemove,n=e.contextUri;return{actionParameterNames:["number_of_recommendations_to_remove","context_uri"],actionParameterValues:[t.toString(),n.toString()],actionName:"remove_recommendations",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.keyStrokeRemoveItemsFromPlaylist=function(e){return{actionParameterNames:["number_of_items_to_remove_from_playlist"],actionParameterValues:[e.numberOfItemsToRemoveFromPlaylist.toString()],actionName:"remove_items_from_playlist",actionVersion:1,app:i,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.keyStrokeRemoveRecommendations=function(e){var t=e.numberOfRecommendationsToRemove,n=e.contextUri;return{actionParameterNames:["number_of_recommendations_to_remove","context_uri"],actionParameterValues:[t.toString(),n.toString()],actionName:"remove_recommendations",actionVersion:1,app:i,generatorVersion:s,interactionType:"key_stroke",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.RemoveItemsButtonEventFactory=t}(l=t.DesktopTrackListEventFactory||(t.DesktopTrackListEventFactory={})),t.DesktopTrackListEventFactory=l},96435:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTrackEventFactory=t.createDesktopTrackEventFactory=void 0;var i="music",r="1.0.0",a="default",s="9.4.19";t.createDesktopTrackEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"desktop-track"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.headerFactory=function(){return new e.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.actionBarFactory=function(){return new e.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();t.DesktopTrackEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"header"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.artistLinkFactory=function(t){return new e.HeaderEventFactory.ArtistLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.HeaderEventFactory=t}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"action_bar"}),n&&(this._parentAbsoluteLocation=n)}return t.prototype.playButtonFactory=function(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.saveButtonFactory=function(){return new e.ActionBarEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype.contextButtonFactory=function(){return new e.ActionBarEventFactory.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.ActionBarEventFactory=t}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"artist_link"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ArtistLinkEventFactory=t}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"play_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitPlay=function(e){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.itemToBePlayed.toString()],actionName:"play",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitResume=function(e){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.itemToBeResumed.toString()],actionName:"resume",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitPause=function(e){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.itemToBePaused.toString()],actionName:"pause",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.PlayButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"save_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitLike=function(e){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.itemToBeLiked.toString()],actionName:"like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e.prototype.hitRemoveLike=function(e){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.itemNoLongerLiked.toString()],actionName:"remove_like",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.SaveButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"context_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ContextButtonEventFactory=t}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l=t.DesktopTrackEventFactory||(t.DesktopTrackEventFactory={})),t.DesktopTrackEventFactory=l},46420:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopUserWidgetMenuEventFactory=t.createDesktopUserWidgetMenuEventFactory=void 0;var o="music",i="2.1.0",r="default",a="9.4.13";t.createDesktopUserWidgetMenuEventFactory=function(e){return new s(e)};var s=function(){function e(e){this._path=[{name:"desktop-user-widget-menu"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.goToAccountPageRowFactory=function(){return new e.GoToAccountPageRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToUserProfileRowFactory=function(){return new e.GoToUserProfileRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.openEmployeePodcastModalRowFactory=function(){return new e.OpenEmployeePodcastModalRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToUpgradePlanPageRowFactory=function(){return new e.GoToUpgradePlanPageRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.togglePrivateSessionRowFactory=function(){return new e.TogglePrivateSessionRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToSettingsRowFactory=function(){return new e.GoToSettingsRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToInAppMessagingRowFactory=function(){return new e.GoToInAppMessagingRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.updateClientRowFactory=function(){return new e.UpdateClientRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.logOutRowFactory=function(){return new e.LogOutRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype.goToPlanManagementFactory=function(){return new e.GoToPlanManagementEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_account_page_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToAccountPageRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_user_profile_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToUserProfileRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"open_employee_podcast_modal_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiReveal=function(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.OpenEmployeePodcastModalRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_upgrade_plan_page_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToUpgradePlanPageRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"toggle_private_session_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitSetSettingField=function(){return{actionName:"set_setting_field",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.TogglePrivateSessionRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_settings_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToSettingsRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_in_app_messaging_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiNavigate=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToInAppMessagingRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"update_client_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitUiHide=function(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.UpdateClientRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"log_out_row"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitLogout=function(){return{actionName:"logout",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.LogOutRowEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"go_to_plan_management"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([r],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([i],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.GoToPlanManagementEventFactory=t}(s=t.DesktopUserWidgetMenuEventFactory||(t.DesktopUserWidgetMenuEventFactory={})),t.DesktopUserWidgetMenuEventFactory=s},45991:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackCreditsEventFactory=t.createTrackCreditsEventFactory=void 0;var i="music",r="1.1.0",a="default",s="9.2.0";t.createTrackCreditsEventFactory=function(e){return new l(e)};var l=function(){function e(e){this._path=[n({name:"track-credits"},e.data)],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.creditSectionFactory=function(t){return new e.CreditSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.impression=function(){return{app:i,generatorVersion:s,specificationVersion:r,specificationMode:a,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();t.TrackCreditsEventFactory=l,function(e){var t=function(){function t(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"credit_section"})),o&&(this._parentAbsoluteLocation=o)}return t.prototype.titleFactory=function(t){return new e.CreditSectionEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype.artistNameFactory=function(t){return new e.CreditSectionEventFactory.ArtistNameEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})},t.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},t.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},t}();e.CreditSectionEventFactory=t}(l=t.TrackCreditsEventFactory||(t.TrackCreditsEventFactory={})),t.TrackCreditsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"title"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e}();e.TitleEventFactory=t}(e.CreditSectionEventFactory||(e.CreditSectionEventFactory={}))}(l=t.TrackCreditsEventFactory||(t.TrackCreditsEventFactory={})),t.TrackCreditsEventFactory=l,function(e){!function(e){var t=function(){function e(e){var t=e.path,o=e.parentAbsoluteLocation,i=e.data;this._path=t.concat(n(n({},i),{name:"artist_name"})),o&&(this._parentAbsoluteLocation=o)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:o([a],o(Array(this._path.length-1)).map((function(){return""}))),specVersion:o([r],o(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:o(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:i,generatorVersion:s,interactionType:"hit",specificationMode:a,specificationVersion:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.ArtistNameEventFactory=t}(e.CreditSectionEventFactory||(e.CreditSectionEventFactory={}))}(l=t.TrackCreditsEventFactory||(t.TrackCreditsEventFactory={})),t.TrackCreditsEventFactory=l},90594:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.WebPlayerDownloadPageEventFactory=t.createWebPlayerDownloadPageEventFactory=void 0;var o="1.0.0",i="default";t.createWebPlayerDownloadPageEventFactory=function(e){return new r(e)};var r=function(){function e(e){this._path=[{name:"web-player-download-page"}],(null==e?void 0:e.parentAbsoluteLocation)&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}return e.prototype.downloadButtonFactory=function(){return new e.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})},e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([i],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([o],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e}();t.WebPlayerDownloadPageEventFactory=r,function(e){var t=function(){function e(e){var t=e.path,n=e.parentAbsoluteLocation;e.data;this._path=t.concat({name:"download_button"}),n&&(this._parentAbsoluteLocation=n)}return e.prototype._getCurrentLocation=function(){return{pathNodes:this._path,specMode:n([i],n(Array(this._path.length-1)).map((function(){return""}))),specVersion:n([o],n(Array(this._path.length-1)).map((function(){return""})))}},e.prototype.getAbsoluteLocation=function(){var e,t=null===(e=this._parentAbsoluteLocation)||void 0===e?void 0:e.locations;return{locations:n(t||[],[this._getCurrentLocation()])}},e.prototype.hitNavigateToExternalUri=function(e){return{actionParameterNames:["destination"],actionParameterValues:[e.destination.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:"music",generatorVersion:"10.0.1",interactionType:"hit",specificationMode:i,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}},e}();e.DownloadButtonEventFactory=t}(r=t.WebPlayerDownloadPageEventFactory||(t.WebPlayerDownloadPageEventFactory={})),t.WebPlayerDownloadPageEventFactory=r},47792:(e,t,n)=>{"use strict";var o,i;function r(e){return"interactionId"in e}function a(e){return"navigationReason"in e}n.d(t,{hw:()=>o,Wg:()=>i,Oq:()=>r,AG:()=>a}),function(e){e.CLIENT_LOST_FOCUS="client_lost_focus",e.CLIENT_GAINED_FOCUS="client_gained_focus",e.CLIENT_STARTED="client_started",e.DEEP_LINK="deep_link",e.BACK="back",e.FORWARD="forward",e.UNKNOWN="unknown"}(o||(o={})),function(e){e.AD_BASED_ON_DEMAND="ad-based-on-demand",e.ADAPTIVEAUTHENTICATION_START="adaptiveauthentication/start",e.AGE_VERIFICATION="age-verification",e.ALBUM="album",e.ANCHORFUNNEL="anchorfunnel",e.APPRATER="apprater",e.AUDIOBOOK_DIRECTSALES_SUCCESS="audiobook/directsales/success",e.AUDIOBOOK_DIRECTSALES_INAPPWEBCHECKOUTOVERLAY="audiobook/directsales/inappwebcheckoutoverlay",e.AUDIOBOOK_CONSUMPTION="audiobook/consumption",e.AUDIOBOOK_CONSUMPTION_TOPUPS="audiobook/consumption/topups",e.ACTIVATION_AUTO_TRIAL="activation/auto-trial",e.ALLBOARDING_CONTENTPICKER="allboarding/contentpicker",e.ALLBOARDING_SEARCH="allboarding/search",e.ALLBOARDING_SEND="allboarding/send",e.ALLBOARDING_PLACEHOLDER="allboarding/placeholder",e.ARTIST="artist",e.ARTIST_ABOUT="artist/about",e.ARTIST_APPEARS_ON="artist/appears-on",e.ARTIST_ABOUT_WEBVIEW="artist/about/webview",e.ARTIST_ALBUMS="artist/albums",e.ARTIST_CONCERTS="artist/concerts",e.ARTIST_DISCOVERED_ON="artist/discovered-on",e.ARTIST_FEATURING="artist/featuring",e.ARTIST_GALLERY="artist/gallery",e.ARTIST_PLAYLISTS="artist/playlists",e.ARTIST_RELATED="artist/related",e.ARTIST_RELEASES="artist/releases",e.ARTIST_SAVED_TRACKS="artist/saved-tracks",e.CREATORFOLLOW_SLATE="creatorfollow/slate",e.ARTIST_PATRON="artist/patron",e.ARTIST_STORE="artist/store",e.ARTIST_FAN_COMMUNITY="artist/fan-community",e.ARTIST_FAN_COMMUNITY_POST="artist/fan-community/post",e.ARSENAL="arsenal",e.ASSISTED_CURATION="assisted-curation",e.ASSISTED_CURATION_NAMING="assisted-curation/naming",e.ASSISTED_CURATION_SEARCH="assisted-curation/search",e.ASSISTED_CURATION_SEARCH_SONGS="assisted-curation/search/songs",e.ASSISTED_CURATION_SEARCH_ALBUMS="assisted-curation/search/albums",e.ASSISTED_CURATION_SEARCH_ARTISTS="assisted-curation/search/artists",e.ASSISTED_CURATION_SEARCH_EPISODES="assisted-curation/search/episodes",e.ASSISTED_CURATION_SEARCH_SHOWS="assisted-curation/search/shows",e.ASSISTED_CURATION_SEARCH_ALBUM_ENTITY="assisted-curation/search/album-entity",e.ASSISTED_CURATION_SEARCH_ARTIST_ENTITY="assisted-curation/search/artist-entity",e.ASSISTED_CURATION_SEARCH_SHOW_ENTITY="assisted-curation/search/show-entity",e.ADS="ads",e.ADSDISPLAY_CTAWIDGETNPV_SEEALL="adsdisplay/ctawidgetnpv/seeall",e.BLEND_ENTITY="blend/entity",e.BLEND_ENTITY_EDITNAME="blend/entity/editname",e.BLEND_ENTITY_MEMBERS="blend/entity/members",e.BLEND_ENTITY_TRACKAFFILIATION="blend/entity/trackaffiliation",e.BLEND_INVITATION="blend/invitation",e.BLEND_INVITATION_GROUPBLENDSJOIN="blend/invitation/groupblendsjoin",e.BLEND_TASTE_MATCH="blend/taste-match",e.BLEND_DATA_STORY="blend/data-story",e.BLEND_PARTY="blend/party",e.JAM_STORIES="jam/stories",e.BOOTCAMP_CHORDS="bootcamp/chords",e.BOOTCAMP_EASTEREGGS="bootcamp/eastereggs",e.BOOTCAMP_MASHUP="bootcamp/mashup",e.BOOTCAMP_TOPTRACKS="bootcamp/toptracks",e.BOOTCAMP_TFB_TOPTRACKS="bootcamp/tfb/toptracks",e.BOOTCAMP_TOP50PLAYLIST="bootcamp/top50playlist",e.BROWSE="browse",e.BROWSE_DISCOVER="browse/discover",e.BROWSE_GENRES="browse/genres",e.BROWSE_NEWRELEASES="browse/newreleases",e.BROWSE_PODCASTS="browse/podcasts",e.BROWSE_TOPPODCAST="browse/toppodcast",e.BUNDLING="bundling",e.BUNDLING_WEBVIEW="bundling/webview",e.BUNDLING_SURVEY_WEBVIEW="bundling/survey/webview",e.BUNDLING_OFFER="bundling/offer",e.BUNDLING_OFFER_WEBVIEW="bundling/offer/webview",e.BUNDLING_PLACEBO="bundling/placebo",e.BUNDLING_PLACEBO_WEBVIEW="bundling/placebo/webview",e.CACHED_FILES="cached-files",e.CACHED_FILES_SEARCH="cached-files/search",e.CALLING_CODE_PICKER="calling-code-picker",e.CALIFORNIA="california",e.CALIFORNIA_NOARGS="california/noargs",e.CANVAS_NOWPLAYING="canvas/nowplaying",e.CAPPED_OFFLINE_DIALOG="capped-offline/dialog",e.CAPPED_ONDEMAND_DIALOG="capped-ondemand/dialog",e.CAR_MODE_ENTITY="car-mode/entity",e.CAR_MODE_HOME="car-mode/home",e.CAR_MODE_YOURLIBRARY="car-mode/yourLibrary",e.DRIVING_DRIVINGMODE="driving/drivingMode",e.CARS_MEDIASERVICE="cars/mediaservice",e.CARS_ANDROIDAUTO="cars/androidauto",e.CARS_APPPROTOCOL="cars/appprotocol",e.CARS_BMW="cars/bmw",e.CARS_LOCKSCREEN="cars/lockscreen",e.CARS_MYSPIN="cars/myspin",e.CARS_WAZE="cars/waze",e.CARTHING="carthing",e.CARTHING_SETTINGS="carthing/settings",e.CARTHING_PRESETS="carthing/presets",e.CARTHING_PRESETS_HOWTO="carthing/presets/howto",e.CARTHING_PRESETS_SAVE="carthing/presets/save",e.CELEBRITYBLEND_ENTITY="celebrityblend/entity",e.CHALLENGE_DUMMY="challenge/dummy",e.CHALLENGE_TOTP="challenge/totp",e.CHALLENGE_EMAIL_VERIFICATION="challenge/email-verification",e.CHARTS="charts",e.CHARTS_CHART="charts/chart",e.CHARTS_REGIONAL="charts/regional",e.CHARTS_UNKNOWN="charts/unknown",e.CHARTS_VIRAL="charts/viral",e.CHARTS_WEEKLY="charts/weekly",e.CHARTS_ALBUMS="charts/albums",e.CHARTS_ALBUM="charts/album",e.CHARTS_MERCH="charts/merch",e.CHARTS_MERCHCOLLECTION="charts/merchcollection",e.CHECKOUT="checkout",e.CHECKOUT_CODEREDEMPTION="checkout/coderedemption",e.CHURNLOCK="churnlock",e.COLLECTION="collection",e.COLLECTION_ALBUMS="collection/albums",e.COLLECTION_ALBUMS_ALBUM="collection/albums/album",e.COLLECTION_ARTISTS="collection/artists",e.COLLECTION_ARTISTS_ARTIST="collection/artists/artist",e.COLLECTION_EPISODES_REMOVEALL="collection/episodes/removeall",e.COLLECTION_FILEPICKER="collection/filepicker",e.COLLECTION_FOLDER="collection/folder",e.COLLECTION_OFFLINELIBRARY="collection/offlinelibrary",e.COLLECTION_PLAYLISTS="collection/playlists",e.COLLECTION_PODCASTS="collection/podcasts",e.COLLECTION_PODCASTSONLY="collection/podcastsonly",e.COLLECTION_PODCASTS_FOLLOWING="collection/podcasts/following",e.COLLECTION_PODCASTS_EPISODES_UNPLAYED="collection/podcasts/episodes/unplayed",e.COLLECTION_PODCASTS_EPISODES_OFFLINE="collection/podcasts/episodes/offline",e.COLLECTION_PODCASTS_EPISODES_UNFINISHED="collection/podcasts/episodes/unfinished",e.COLLECTION_PODCASTS_EPISODES_LISTENLATER="collection/podcasts/episodes/listenlater",e.COLLECTION_PODCASTS_EPISODES="collection/podcasts/episodes",e.COLLECTION_RADIO="collection/radio",e.COLLECTION_RECENTLYPLAYED="collection/recentlyplayed",e.COLLECTION_SONGS="collection/songs",e.COLLECTION_VIDEO="collection/video",e.COLLECTION_YOUREPISODES="collection/yourepisodes",e.COLLECTION_YOUREPISODES_SETTINGS="collection/yourepisodes/settings",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEPLAYED="collection/yourepisodes/settings/removeplayed",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEUNPLAYED="collection/yourepisodes/settings/removeunplayed",e.COLLECTION_YOUREPISODES_SETTINGS_AUTODOWNLOAD="collection/yourepisodes/settings/autodownload",e.COLLECTION_YOUREPISODES_SETTINGS_AUTODOWNLOADLIMIT="collection/yourepisodes/settings/autodownloadlimit",e.COLLECTION_SAVEDEPISODES="collection/savedepisodes",e.COMMENTS="comments",e.COMMENTS_SECTION="comments/section",e.COMMENTS_SETTINGS="comments/settings",e.COMMUNITY_LISTENING_ACTIVITY="community/listening-activity",e.CONTENT_FEED="content-feed",e.CULTURALMOMENTSHUB="culturalmomentshub",e.YOURLIBRARY="yourlibrary",e.YOURLIBRARY_ALBUMS="yourlibrary/albums",e.YOURLIBRARY_ARTISTS="yourlibrary/artists",e.YOURLIBRARY_AUDIOBOOKS="yourlibrary/audiobooks",e.YOURLIBRARY_PLAYLISTS="yourlibrary/playlists",e.YOURLIBRARY_EPISODES="yourlibrary/episodes",e.YOURLIBRARY_DOWNLOADS="yourlibrary/downloads",e.YOURLIBRARY_SHOWS="yourlibrary/shows",e.YOURLIBRARY_HIDDEN_CONTENT="yourlibrary/hidden-content",e.YOURLIBRARY_SEARCH="yourlibrary/search",e.YOURLIBRARY_TAG="yourlibrary/tag",e.YOURLIBRARYTAGS_YOURTAGSPAGE="yourlibrarytags/yourtagspage",e.CONCERTS="concerts",e.CONCERTS_CITYSEARCH="concerts/citysearch",e.CONCERTS_CONCERT="concerts/concert",e.CONCERTS_CONCERT_WEBVIEW="concerts/concert/webview",e.CONCERTS_GROUP="concerts/group",e.CONCERTS_ARTIST="concerts/artist",e.CONNECT_CONTEXTMENU="connect/contextmenu",e.CONNECT_DEVICEPICKER="connect/devicepicker",e.CONNECT_OVERLAY_NEWDEVICE="connect/overlay/newdevice",e.CONNECT_OVERLAY_SWITCHDEVICE="connect/overlay/switchdevice",e.CONNECT_OVERLAY_VOLUME="connect/overlay/volume",e.CONNECT_TUTORIALDESKTOP="connect/tutorialdesktop",e.CONNECT_TUTORIALSPEAKER="connect/tutorialspeaker",e.CONNECT_TUTORIALTV="connect/tutorialtv",e.CONNECT_TUTORIALGAMECONSOLE="connect/tutorialgameconsole",e.CONNECT_TUTORIALCHROMECAST="connect/tutorialchromecast",e.CONNECT_TUTORIALBLUETOOTH="connect/tutorialbluetooth",e.CONNECT_EDUCATIONPAGE="connect/educationpage",e.CONTEXTDISPATCH_ERROR="contextdispatch/error",e.CONTEXTDISPATCH_OFFLINE="contextdispatch/offline",e.CONTEXTMENU="contextmenu",e.CONTEXTMENU_TRACK="contextmenu/track",e.CONTEXTMENU_ALBUM="contextmenu/album",e.CONTEXTMENU_ARTIST="contextmenu/artist",e.CONTEXTMENU_PLAYLIST="contextmenu/playlist",e.CONTEXTMENU_EPISODE="contextmenu/episode",e.CONTEXTMENU_LIVEROOM="contextmenu/liveroom",e.CONTEXTMENU_EXPRESSIONVIDEO="contextMenu/expressionvideo",e.CONTEXTMENU_SHOWSCANNABLECODE="contextmenu/showscannablecode",e.CONTEXTMENU_VIEWARTISTS="contextmenu/viewartists",e.CONTEXTMENU_EPISODE_SLEEPTIMER="contextmenu/episode/sleeptimer",e.CONTEXTMENU_EPISODE_SPEEDCONTROL="contextmenu/episode/speedcontrol",e.CONTEXTMENU_SHOW="contextmenu/show",e.CONTEXTMENU_SHARE="contextmenu/share",e.CONTEXTMENU_POSTTO="contextmenu/postto",e.CONTEXTMENU_SENDTO="contextmenu/sendto",e.COVERIMAGE="coverimage",e.DAILYMIXHUB="dailymixhub",e.DATASAVERMODE="datasavermode",e.DATASAVERMODE_SETTINGS="datasavermode/settings",e.DEBUG="debug",e.DIALOG_COLLECTION_INSUFFICIENTSTORAGE="dialog/collection/insufficientstorage",e.DIALOG_CONNECT_NOMUSIC="dialog/connect/nomusic",e.DIALOG_DISKALMOSTFULL="dialog/diskalmostfull",e.DIALOG_FINDFRIENDS_CONFIRMALL="dialog/findfriends/confirmall",e.DIALOG_LOCALFILESIMPORT_OK="dialog/localfilesimport/ok",e.DIALOG_LOCALFILESIMPORT_DISCARD="dialog/localfilesimport/discard",e.DIALOG_LOCALFILESIMPORT_SONGS="dialog/localfilesimport/songs",e.DIALOG_CONNECTFACEBOOK="dialog/connectfacebook",e.DIALOG_CONNECTXAUTH="dialog/connectxauth",e.DIALOG_CONNECTOAUTH="dialog/connectoauth",e.DIALOG_SHOW_VIDEOUNAVAILABLE="dialog/show/videounavailable",e.DIALOG_REQUESTPERMISSIONS_SHOWRATIONALE="dialog/requestpermissions/showrationale",e.DIALOG_PROFILE_ACTIVITY_ONDEMANDUNAVAILABLE="dialog/profile/activity/ondemandunavailable",e.DIALOG_TERMS_TERMSCHANGED="dialog/terms/termschanged",e.DIALOG_TERMS_TERMSPOSTPONED="dialog/terms/termspostponed",e.DIALOG_CONNECT_PLAYBACK_ERROR="dialog/connect/playback/error",e.DIALOG_SEARCH_FEEDBACK="dialog/search/feedback",e.DIALOG_MARKETOPPORTUNITIES_SHOWCASE="dialog/marketopportunities/showcase",e.DIALOG_AGELIMITDIALOG="dialog/agelimitdialog",e.DIALOG_PAYWALL="dialog/paywall",e.DISCOVERWEEKLY="discoverweekly",e.DISCOVERWEEKLY_SWIPE="discoverweekly/swipe",e.DISCOVERNOW="discovernow",e.DISCOVERNOWMUSIC="discovernowmusic",e.DOWNLOAD_DESKTOP="download/desktop",e.DRIVINGMODE="drivingmode",e.ENHANCED_SESSION="enhanced-session",e.DYNAMIC_SESSION_ENTITY="dynamic-session/entity",e.EMAIL_EDIT="email/edit",e.EMAIL_EDIT_SSO="email/edit/sso",e.EMAIL_EDIT_RESETPASSWORD="email/edit/resetpassword",e.EMAIL_VERIFY_BLOCKING="email/verify/blocking",e.ENTERPRISEPODCASTS="enterprisepodcasts",e.EPISODE="episode",e.EVENTSENDER_DEBUG="eventsender/debug",e.EVENTSENDER_ITGC_DEBUG="eventsender/itgc/debug",e.EXPERIMENTAL="experimental",e.EXPERIMENTAL_DEBUGJSONRENDERING="experimental/debugjsonrendering",e.EXPERIMENTAL_AUDIOPLAYBACK="experimental/audioplayback",e.EXPERIMENTAL_COUNTRYTOPTEN="experimental/countrytopten",e.EXPERIMENTAL_LISTENINGHISTORY="experimental/listeninghistory",e.FACEBOOK_CONNECT="facebook/connect",e.FACEBOOK_PERMISSIONS="facebook/permissions",e.FACEBOOK_WEBVIEWPERMISSIONS="facebook/webviewpermissions",e.FINDFRIENDS="findfriends",e.FANDOM_TOPARTISTS="fandom/topartists",e.FIND="find",e.FOLLOWFEED="followfeed",e.FORMATLISTPLATFORM="formatlistplatform",e.FORMATLISTPLATFORM_OFFLINE="formatlistplatform/offline",e.FRIENDSACTIVITY="friendsactivity",e.FRIENDSACTIVITY_FRIENDSLIST="friendsactivity/friendslist",e.FRIENDSACTIVITY_STORY="friendsactivity/story",e.FRIENDSHOME="friendshome",e.FRIENDSHOME_ENTITY="friendshome/entity",e.FRIENDSHOME_LISTENERS="friendshome/listeners",e.FRIENDSHOME_FINDFRIENDS="friendshome/findfriends",e.FRIENDSHOME_SEARCHFRIENDS="friendshome/searchfriends",e.FRIENDRECOMMENDATIONS="friendrecommendations",e.KID_ACCOUNT_CREATION_LEGAL_CONSENT="kid-account-creation/legal-consent",e.KID_ACCOUNT_CREATION_PIN="kid-account-creation/pin",e.KID_ACCOUNT_CREATION_NAME="kid-account-creation/name",e.KID_ACCOUNT_CREATION_BIRTHDAY="kid-account-creation/birthday",e.FULLSCREEN_STORY="fullscreen-story",e.FULLSCREEN_STORY_SHARE="fullscreen-story-share",e.FULLSCREEN_VIDEOPLAYER="fullscreen/videoplayer",e.HOLIDAYCAMPAIGN="holidaycampaign",e.INBOX="inbox",e.INVITE_HAVEINVITE="invite/haveinvite",e.GOOGLEASSISTANT="googleassistant",e.GUEST_LIBRARYTABWALL="guest/librarytabwall",e.GUEST_LOGINTABWALL="guest/logintabwall",e.HOMEMIX_ENTITY="homemix/entity",e.HOMEMIX_TASTEONBOARDING="homemix/tasteonboarding",e.HOMEMIX_GENRESPAGE="homemix/genrespage",e.HOMEMIX_GENREDETAIL="homemix/genredetail",e.HOMEMIX_ABOUT="homemix/about",e.HOMEMIX_ABOUTVIDEO="homemix/aboutvideo",e.HOMEMIX_USERTOGGLE="homemix/usertoggle",e.HOMEMIX_FACEPILEDETAIL="homemix/facepiledetail",e.HOMETHING="homething",e.HOMETHING_ACTIVATION_WELCOME="homething/activation/welcome",e.HOMETHING_ACTIVATION_SCANDEVICES="homething/activation/scandevices",e.HOMETHING_ACTIVATION_CONNECTING="homething/activation/connecting",e.HOMETHING_ACTIVATION_WIFI="homething/activation/wifi",e.HOMETHING_ACTIVATION_ERROR="homething/activation/error",e.HOMETHING_ACTIVATION_CONNECTED="homething/activation/connected",e.HOMETHING_SETTINGS="homething/settings",e.INSPIRECREATION="inspirecreation",e.IMAGERECS="imagerecs",e.LANGUAGEPICKER="languagepicker",e.LANGUAGEPICKER_NOSKIPDIALOG="languagepicker/noskipdialog",e.LINGO_HOME="lingo/home",e.LISTENINGHISTORY="listeninghistory",e.LISTENINGHISTORY_PLAYSFROMCONTEXT="listeninghistory/playsfromcontext",e.LISTENINGSTATS="listeningstats",e.LOCALFILESIMPORT="localfilesimport",e.LOCALFILES="localfiles",e.LOGIN="login",e.LOGIN_WELCOME="login/welcome",e.LOGIN_SETTINGS="login/settings",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAIL="login/accountrecovery/requestemail",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAILCONFIRMATION="login/accountrecovery/requestemailconfirmation",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORD="login/accountrecovery/resetpassword",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORDCONFIRMATION="login/accountrecovery/resetpasswordconfirmation",e.LOGIN_ACCOUNTRECOVERY_COLLECTEMAIL="login/accountrecovery/collectemail",e.LOGIN_CONTINUEWITH="login/continuewith",e.LOGIN_CONTINUEWITH_EMAIL="login/continuewith/email",e.LOGIN_CONNECT="login/connect",e.LOGIN_PIN="login/pin",e.LOGIN_MULTIUSER="login/multiuser",e.PHONENUMBERSIGNUP="phonenumbersignup",e.PHONENUMBERSIGNUP_CALLINGCODEPICKER="phonenumbersignup/callingcodepicker",e.PHONENUMBERSIGNUP_PHONENUMBERENTRY="phonenumbersignup/phonenumberentry",e.PHONENUMBERSIGNUP_VALIDATEOTP="phonenumbersignup/validateotp",e.LYRICS="lyrics",e.LYRICS_FULLSCREEN="lyrics/fullscreen",e.LYRICS_SHARE="lyrics/share",e.MADE_FOR_YOU="made-for-you",e.MARKETOPPORTUNITIES_PRECACHING="marketopportunities/precaching",e.MERCH_DETAILS="merch-details",e.MISSEDCONNECTIONS="missedconnections",e.MOMENTS="moments",e.MOMENTS_CATEGORY="moments/category",e.MUSIC="music",e.MUSIC_CATEGORY="music/category",e.NOTIFICATIONS="notifications",e.NOTIFICATIONS_ACTIVITY="notifications/activity",e.NOW="now",e.HOME="home",e.HOME_DRILLDOWN="home/drilldown",e.NEWRELEASESFEED="newreleasesfeed",e.NOTIFICATIONS_CENTER="notifications-center",e.NOWPLAYING="nowplaying",e.NOWPLAYINGV2="nowplayingv2",e.NOWPLAYING_GENIUSCARDS="nowplaying/geniuscards",e.NOWPLAYING_NOWPLAYINGBAR="nowplaying/nowplayingbar",e.NOWPLAYING_LIVEROOMNOWPLAYINGBAR="nowplaying/liveroomnowplayingbar",e.NOWPLAYING_NOWPLAYINGSIDEBAR="nowplaying/nowplayingsidebar",e.NOWPLAYING_QUEUE="nowplaying/queue",e.NOWPLAYING_HISTORY="nowplaying/history",e.NOWPLAYING_UPNEXT="nowplaying/upnext",e.NFT_MIX="nft-mix",e.OFFLINE="offline",e.OFFLINE_SYNC_ERROR="offline-sync/error",e.OFFLINE_MIX_ENTITY="offline-mix/entity",e.OFFLINE_USER_MIX_ENTITY="offline-user-mix/entity",e.OVERLAY_SHUFFLEPLAYLIST="overlay/shuffleplaylist",e.OVERLAY_DATASAVERPLAYLIST="overlay/datasaverplaylist",e.ONBOARDING_OVERLAY="onboarding/overlay",e.ONETAPBROWSE="onetapbrowse",e.ONLYYOU_DATASTORIES="onlyyou/datastories",e.OPEN_ACCESS_PREVIEW="open-access-preview",e.OURDJ="ourdj",e.PAYMENTFAILURE_RESUBSCRIPTIONMODAL="paymentfailure/resubscriptionmodal",e.PERSONALISED_SET="personalised-set",e.PICTUREDETAIL="picturedetail",e.PLAN_MEMBER_INVITATION="plan-member-invitation",e.PLAYLIST="playlist",e.PLAYLIST_NOTLOADED="playlist/notloaded",e.PLAYLIST_ONDEMAND="playlist/ondemand",e.PLAYLIST_DATA_SAVER="playlist/data-saver",e.PLAYLIST_ADDTOPLAYLIST="playlist/addtoplaylist",e.PLAYLIST_ADDTOPLAYLIST_ADDONTOPDIALOG="playlist/addtoplaylist/addontopdialog",e.PLAYLIST_ADDTOPLAYLIST_ADDTOBOTTOMDIALOG="playlist/addtoplaylist/addtobottomdialog",e.PLAYLIST_ADDTOPLAYLIST_DUPLICATEDIALOG="playlist/addtoplaylist/duplicatedialog",e.PLAYLIST_ADDTOPLAYLISTBOTTOMSHEET="playlist/addtoplaylistbottomsheet",e.PLAYLIST_ANNOTATE="playlist/annotate",e.PLAYLIST_CONFIRMDELETE="playlist/confirmdelete",e.PLAYLIST_CREATE="playlist/create",e.PLAYLIST_FOLDER="playlist/folder",e.PLAYLIST_FOLDER_TRACKS="playlist/folder/tracks",e.PLAYLIST_RENAME="playlist/rename",e.PLAYLIST_EDIT="playlist/edit",e.PLAYLIST_EDIT_DISCARD="playlist/edit/discard",e.PLAYLIST_EDIT_CROP="playlist/edit/crop",e.PLAYLIST_ALLSONGS="playlist/allsongs",e.PLAYLIST_PARTICIPANTS="playlist/participants",e.PLAYLIST_PERMISSIONS="playlist/permissions",e.PLAYLIST_PERMISSIONS_CLAIMDIALOG="playlist/permissions/claimdialog",e.PLAYLIST_PERMISSIONS_INVITESTORY="playlist/permissions/invitestory",e.PLAYLIST_STORY="playlist/story",e.PLAYLIST_WRAPPEDLIVE="playlist/wrappedlive",e.PLAYLIST_WEBVIEW="playlist/webview",e.PLAYLIST_FILTER="playlist/filter",e.PLAYLISTPRO="playlistpro",e.PLAYLISTPRO_PREVIEW="playlistpro/preview",e.PODCAST="podcast",e.PODCAST_LOADING="podcast/loading",e.PODCAST_EPISODE="podcast/episode",e.PODCAST_EPISODE_AUDIOBOOK="podcast/episode/audiobook",e.PODCAST_EPISODE_DESCRIPTION="podcast/episode/description",e.PODCAST_EPISODE_LOADING="podcast/episode/loading",e.PODCAST_EPISODE_TIMELINE="podcast/episode/timeline",e.PODCAST_EPISODE_TRANSCRIPT="podcast/episode/transcript",e.PODCAST_EPISODE_COMMENTS="podcast/episode/comments",e.PODCAST_SHOW_AUDIOBOOK="podcast/show/audiobook",e.PODCAST_SHOW_LOADING="podcast/show/loading",e.PODCAST_SHOW_AUDIOBOOK_GATEDACCESSEDUCATION="podcast/show/audiobook/gatedaccesseducation",e.PODCAST_SHOW_COMMUNITY="podcast/show/community",e.PODCAST_SHOW_GATEDACCESSEDUCATION="podcast/show/gatedaccesseducation",e.PODCAST_SHOW_INTERACTIVEAUDIOBOOK="podcast/show/interactiveaudiobook",e.PODCAST_SHOW_RECOMMENDATIONS="podcast/show/recommendations",e.PODCAST_SHOW_SEARCH="podcast/show/search",e.PODCAST_STORYLINE="podcast/storyline",e.PODCAST_SHOW_SETTINGS="podcast/show/settings",e.PODCAST_SHOW_SETTINGS_MARKASPLAYED="podcast/show/settings/markasplayed",e.PODCAST_SPEED="podcast/speed",e.PODCAST_SPONSORS="podcast/sponsors",e.PODCAST_PEPAREPISODE="podcast/peparepisode",e.PODCAST_IMPORT="podcast/import",e.PODCAST_PREVIEW="podcast/preview",e.PODCAST_CREATOR="podcast/creator",e.PODCAST_CREATOR_SHOWS="podcast/creator/shows",e.PODCASTCHARTS="podcastcharts",e.PODCASTCHARTS_CATEGORIES="podcastcharts/categories",e.PODCASTCHARTS_REGIONS="podcastcharts/regions",e.PODCASTCHARTS_CHART="podcastcharts/chart",e.PODCASTCLIPS="podcastclips",e.PODCASTINTERACTIVITY_POLL="podcastinteractivity/poll",e.PODCASTONBOARDING_TOPICPICKER="podcastonboarding/topicpicker",e.PODCASTONBOARDING_SENDTOPICS="podcastonboarding/sendtopics",e.PODCAST_NEW_EPISODE_NOTIFICATIONS_SETTINGS="podcast-new-episode-notifications/settings",e.RATINGS_AND_REVIEWS_RATINGS="ratings-and-reviews/ratings",e.RATINGS_AND_REVIEWS_RATINGS_AUDIOBOOK="ratings-and-reviews/ratings/audiobook",e.PREMIUM="premium",e.PREMIUM_ACCOUNT_MANAGEMENT="premium-account-management",e.PREMIUM_ACCOUNT_MANAGEMENT_ALL_PLANS="premium-account-management/all-plans",e.PREMIUM_ACCOUNT_MANAGEMENT_BILLING="premium-account-management/billing",e.PREMIUM_ACCOUNT_MANAGEMENT_PLAN_DETAILS="premium-account-management/plan-details",e.PREMIUM_DESTINATION="premium-destination",e.PREMIUM_DESTINATION_PREMIUM_PLANS="premium-destination/premium-plans",e.PREMIUMHUB="premiumhub",e.PREMIUM_MINI_DOWNLOADED_ENTITY="premium-mini/downloaded-entity",e.PREMIUM_MINI_REWARDS="premium-mini/rewards",e.PREMIUM_MESSAGING="premium-messaging",e.PREMIUM_SIGNUP="premium-signup",e.PRERELEASE="prerelease",e.PROACTIVE_PLATFORMS_RECOMMENDATIONS_WIDGET="proactive-platforms/recommendations-widget",e.PROACTIVE_PLATFORMS_NPV_WIDGET="proactive-platforms/npv-widget",e.PROFILE="profile",e.PROFILE_ACTIVITY="profile/activity",e.PROFILE_ACTIVITY_REPLAYS="profile/activity/replays",e.PROFILE_ARTISTS="profile/artists",e.PROFILE_BLOCKED_LIST="profile/blocked-list",e.PROFILE_FOLLOWERS="profile/followers",e.PROFILE_FOLLOWING="profile/following",e.PROFILE_PLAYLISTS="profile/playlists",e.PROFILE_EPISODES="profile/episodes",e.PROFILE_EDIT="profile/edit",e.PROFILE_FOLLOW_SUGGESTIONS="profile/follow-suggestions",e.PROFILE_IMAGEPREVIEW="profile/imagepreview",e.PROFILE_RECENTLY_PLAYED_ARTISTS="profile/recently-played-artists",e.PROFILE_TOP_TRACKS="profile/top-tracks",e.PROFILE_TOP_ARTISTS="profile/top-artists",e.REFRESHEDPROFILE_FOLLOW_SUGGESTIONS="refreshedprofile/follow-suggestions",e.PICKINSIGHTS="pickinsights",e.PROMODISCLOSURE="promodisclosure",e.PUSHOPTIN="pushoptin",e.RADIO="radio",e.RADIO_DAILY_MIX_SURVEY="radio/daily-mix-survey",e.RADIO_DAILY_MIXES="radio/daily-mixes",e.RADIO_DASHBOARD_MIXES="radio/dashboard/mixes",e.RADIO_STATION="radio/station",e.RADIO_STATION_CREATE="radio/station/create",e.RADIO_STATION_CREATE_ALBUMS="radio/station/create/albums",e.RADIO_STATION_CREATE_ARTISTS="radio/station/create/artists",e.RADIO_STATION_CREATE_PLAYLISTS="radio/station/create/playlists",e.RADIO_STATION_CREATE_SHOWS="radio/station/create/shows",e.RADIO_STATION_CREATE_TRACKS="radio/station/create/tracks",e.RECENTLYPLAYED="recentlyplayed",e.REMOTECONFIGURATION_DEBUG="remoteconfiguration/debug",e.REQUESTPERMISSIONS="requestpermissions",e.RESETPASSWORD="resetpassword",e.RESETPASSWORD_EMAILSENT="resetpassword/emailsent",e.RESETPASSWORD_EMAILLANDING="resetpassword/emaillanding",e.RESETPASSWORD_CHANGEPASSWORD="resetpassword/changepassword",e.RESETPASSWORD_SUCCESS="resetpassword/success",e.RUNNING="running",e.RUNNING_CATEGORY="running/category",e.RUNNING_SETUP="running/setup",e.RUNNING_SETUP_MANUAL="running/setup/manual",e.SAYIT="sayit",e.SCANNABLES_SCANNER="scannables/scanner",e.SCANNABLES_IMAGEPICKERCONTROLLER="scannables/imagepickercontroller",e.SEARCH="search",e.SEARCH_ALBUMS="search/albums",e.SEARCH_ARTISTS="search/artists",e.SEARCH_AUDIOBOOKS="search/audiobooks",e.SEARCH_AUDIOS="search/audios",e.SEARCH_AUTOCOMPLETE="search/autocomplete",e.SEARCH_EPISODES="search/episodes",e.SEARCH_GENRES="search/genres",e.SEARCH_PLAYLISTS="search/playlists",e.SEARCH_PODCASTS_AND_EPISODES="search/podcasts_and_episodes",e.SEARCH_PROFILES="search/profiles",e.SEARCH_SHOWS="search/shows",e.SEARCH_SONGS="search/songs",e.SEARCH_VIDEOS="search/videos",e.SEARCH_RECENT="search/recent",e.SETTINGS="settings",e.SETTINGS_ABOUT="settings/about",e.SETTINGS_ACCOUNT="settings/account",e.SETTINGS_ACCOUNT_UPSELL="settings/account/upsell",e.SETTINGS_ADS="settings/ads",e.SETTINGS_CONTENT_LANGUAGES="settings/content-languages",e.SETTINGS_LANGUAGE_SETTINGS_ROOT="settings/language-settings-root",e.SETTINGS_LANGUAGES_ROOT="settings/languages/root",e.SETTINGS_LANGUAGES_MUSIC="settings/languages/music",e.SETTINGS_LANGUAGES_CONTENT="settings/languages/content",e.SETTINGS_LANGUAGES_CONTENT_SEEALL="settings/languages/content/seeAll",e.SETTINGS_EQUALIZER="settings/equalizer",e.SETTINGS_FEATURES="settings/features",e.SETTINGS_IMPORT="settings/import",e.SETTINGS_LOCAL_FILES="settings/local-files",e.SETTINGS_NEARBY="settings/nearby",e.SETTINGS_NOTIFICATIONS="settings/notifications",e.SETTINGS_NOTIFICATIONS_CHANNELS="settings/notifications/channels",e.SETTINGS_NOTIFICATIONS_CHANNEL_DETAILS="settings/notifications/channel-details",e.SETTINGS_NOTIFICATIONS_CATEGORIES="settings/notifications/categories",e.SETTINGS_NOTIFICATIONS_CATEGORY_DETAILS="settings/notifications/category-details",e.SETTINGS_PLAYBACK="settings/playback",e.SETTINGS_QUALITY="settings/quality",e.SETTINGS_VIDEOQUALITY="settings/videoquality",e.SETTINGS_SOCIAL="settings/social",e.SETTINGS_APPS="settings/apps",e.SETTINGS_STORAGE="settings/storage",e.SETTINGS_THIRD_PARTY_LIBRARIES="settings/third-party-libraries",e.SETTINGS_DEVICES="settings/devices",e.SETTINGS_SIRIINTENTS="settings/siriintents",e.SETTINGS_UPDATE_EMAIL_ADDRESS="settings/update-email-address",e.SETTINGS_VOICE_ASSISTANTS="settings/voice-assistants",e.SETTINGS_IGNORED_IN_RECOMMENDATIONS="settings/ignored-in-recommendations",e.SARABANDA="sarabanda",e.SHARE="share",e.LEGACYSHARE="legacyshare",e.INTERIMSHARE="interimshare",e.LEGACYSHARE_POSTTO="legacyshare/postto",e.LEGACYSHARE_SENDTO="legacyshare/sendto",e.SHARE_FACEBOOK="share/facebook",e.SHARE_FACEBOOKFEED="share/facebookfeed",e.SHARE_INSTAGRAM="share/instagram",e.SHARE_SNAPCHAT="share/snapchat",e.SHARE_MESSENGER="share/messenger",e.SHARE_MESSENGER_COMPOSE="share/messenger/compose",e.SHARE_MISSINGUSER="share/missinguser",e.SHARE_MENU="share-menu",e.SHARE_MENU_COMPOSER="share-menu/composer",e.SHOWCASE="showcase",e.SHOWS="shows",e.SHOWS_FORMAT_LIST="shows/format/list",e.SHOWS_FORMAT_NOWPLAYING="shows/format/nowplaying",e.SHOWS_FORMAT_ITEM="shows/format/item",e.SHOWS_FORMAT_SHARE="shows/format/share",e.SHOWS_AUDIO="shows/audio",e.SHOWS_RESOLVER="shows/resolver",e.SHUFFLE_TOGGLE_UPSELL="shuffle-toggle-upsell",e.REINVENTFREE_TIME_CAP_UPSELL="reinventfree-time-cap-upsell",e.REINVENTFREE_SKIP_LIMIT_UPSELL="reinventfree-skip-limit-upsell",e.REINVENTFREE_UPNEXT="reinventfree-upnext",e.SKIP_LIMIT_PIVOT="skip-limit-pivot",e.SKIP_LIMIT_PIVOT_TRACKS="skip-limit-pivot-tracks",e.SPONSORED_RECOMMENDATION="sponsored-recommendation",e.SPOTIT="spotit",e.SPOTIT_STRONGRESULT="spotit/strongresult",e.SPOTIT_WEAKRESULT="spotit/weakresult",e.SPOTIT_ERROR="spotit/error",e.SUPPORT_HOME="support/home",e.SUPPORT_CATEGORY="support/category",e.SUPPORT_ARTICLE="support/article",e.SUPPORT_SITE_HOME="support-site/home",e.SUPPORT_SITE_CATEGORY="support-site/category",e.SUPPORT_SITE_ARTICLE="support-site/article",e.SUPPORT_SITE_CONTACT="support-site/contact",e.SUPPORT_SITE_OLD_HOME="support-site/old/home",e.SUPPORT_SITE_OLD_ARTICLE="support-site/old/article",e.SUPPORT_SITE_OLD_CHILDCATEGORY="support-site/old/childcategory",e.SUPPORT_SITE_OLD_CONTACT="support-site/old/contact",e.SHOWS_CATEGORY="shows/category",e.SHOWS_MIXED="shows/mixed",e.SHOWS_NETWORK="shows/network",e.SHOWS_VIDEO="shows/video",e.SIDEDRAWER="sidedrawer",e.SOCIAL_LISTENING_IPLONBOARDINGDIALOG="social-listening/iplonboardingdialog",e.SOCIAL_LISTENING_ENDSESSIONDIALOG="social-listening/endsessiondialog",e.SOCIAL_LISTENING_JOINCONFIRMATIONDIALOG="social-listening/joinconfirmationdialog",e.SOCIAL_LISTENING_NOTIFICATIONDIALOG="social-listening/notificationdialog",e.SOCIAL_LISTENING_PARTICIPANTLIST="social-listening/participantlist",e.SOCIAL_LISTENING_EDUCATION="social-listening/education",e.SOCIAL_LISTENING_TAPTOQUEUE="social-listening/taptoqueue",e.SOCIAL_LISTENING_SETTINGS="social-listening/settings",e.SOCIAL_LISTENING_IPLSESSIONSHARING="social-listening/iplsessionsharing",e.SIGNUP="signup",e.SSO="sso",e.SSO_PARTNERACCOUNTLINKING="sso/partneraccountlinking",e.PARTNERACCOUNTLINKING="partneraccountlinking",e.PARTNERSCOPESCONSENT="partnerscopesconsent",e.TASTE_ONBOARDING="taste-onboarding",e.TERMS="terms",e.TERMS_TERMSOFSERVICE="terms/termsofservice",e.TERMS_TERMSOFSERVICE_REACCEPT="terms/termsofservice/reaccept",e.TERMS_TERMSINFO="terms/termsinfo",e.TERMS_PRIVACYPOLICY="terms/privacypolicy",e.TRACK_CREDITS_CREDITS="track-credits/credits",e.TRAVEL_WITH_MUSIC="travel-with-music",e.TRACK="track",e.UNKNOWN="unknown",e.UNKNOWN_LEGACYHUB="unknown/legacyhub",e.UNKNOWN_NOTLOADED="unknown/notloaded",e.UNKNOWN_UNCOVERED="unknown/uncovered",e.UPDATE_DIALOG="update-dialog",e.UPSELL="upsell",e.VIDEO_DEBUG="video/debug",e.VOICE="voice",e.VOICE_LISTENING="voice/listening",e.VOICE_ONBOARDING="voice/onboarding",e.VOICE_ALTERNATIVESEARCHRESULTS="voice/alternativesearchresults",e.VOICETIPS="voicetips",e.WATCHFEED="watchfeed",e.YOURSPOTIFY="yourspotify",e.YOURSPOTIFY_PROFILE="yourspotify/profile",e.YOURSPOTIFY_FORYOU="yourspotify/foryou",e.DISCOVERYFEED="discoveryfeed",e.VTEC="vtec",e.EXPRESSIVE_PLAYLISTS="expressive-playlists",e.EXPRESSIVE_PLAYLISTS_EDIT="expressive-playlists-edit",e.FREE_TIER_PLAYLIST="free-tier-playlist",e.FREE_TIER_PLAYLIST_ONDEMAND="free-tier-playlist/ondemand",e.FREE_TIER_COLLECTION="free-tier-collection",e.FREE_TIER_LIKES="free-tier-likes",e.FREE_TIER_LIKES_SONGS="free-tier-likes/songs",e.FREE_TIER_PROFILE="free-tier-profile",e.FREE_TIER_OTHER_USER_PROFILE="free-tier-other-user-profile",e.FREE_TIER_ALL_SONGS_DIALOG="free-tier-all-songs-dialog",e.FREE_TIER_EDIT_PLAYLIST="free-tier-edit-playlist",e.FREE_TIER_SEARCH_PLAYLIST="free-tier-search-playlist",e.FREE_TIER_ARTIST="free-tier-artist",e.FREE_TIER_ARTIST_SUBPAGE="free-tier-artist/subpage",e.FREE_TIER_ALBUM="free-tier-album",e.FREE_TIER_TRACK="free-tier-track",e.FREE_TIER_HOME="free-tier-home",e.FREE_TIER_HOME_DRILLDOWN="free-tier-home/drilldown",e.CATEGORIES_ONBOARDING="categories/onboarding",e.CATEGORIES_ONBOARDING_LOADING="categories/onboarding/loading",e.FREETIER_TASTEONBOARDING_LIKEDARTISTS="freetier/tasteonboarding/likedartists",e.FREETIER_TASTEONBOARDING_ARTISTPICKERCONTAINER="freetier/tasteonboarding/artistpickercontainer",e.FREETIER_TASTEONBOARDING_ARTISTPICKER="freetier/tasteonboarding/artistpicker",e.FREETIER_TASTEONBOARDING_ARTISTSEARCH="freetier/tasteonboarding/artistsearch",e.FREETIER_TASTEONBOARDING_SWIPETRACKS="freetier/tasteonboarding/swipetracks",e.FREETIER_TASTEONBOARDING_UPDATETASTE="freetier/tasteonboarding/updatetaste",e.FREETIER_TASTEONBOARDING_SKIPDIALOG="freetier/tasteonboarding/skipdialog",e.FREETIER_DATASAVER="freetier/datasaver",e.FREETIER_DATASAVER_LEARNMORE="freetier/datasaver/learnmore",e.FREETIER_DATASAVER_STATUS="freetier/datasaver/status",e.FREETIER_CHARTS_CHART="freetier/charts/chart",e.INAPPMESSAGE_MODAL="inappmessage/modal",e.INAPPMESSAGE_FULLSCREEN="inappmessage/fullscreen",e.INAPPMESSAGE_WEBVIEW="inappmessage/webview",e.INAPPMESSAGE="inappmessage",e.STATIONSPROMO="stationspromo",e.QUICKPLAY="quickplay",e.LIVESTREAMING="livestreaming",e.LIVE_ENTITY="live/entity",e.LIVE_LEGALDISCLOSURE="live/legaldisclosure",e.LIVE_AUDIO_ENTITY="live-audio/entity",e.SPOTIFLY="spotifly",e.CAREPACKAGE="carepackage",e.OURSONG_INVITE="oursong/invite",e.OURSONG_RECEIVER="oursong/receiver",e.OURSONG_SHARE="oursong/share",e.WRAPPED_DATASTORIES="wrapped/datastories",e.WRAPPED_HOME="wrapped/home",e.WRAPPED_ENTITY="wrapped/entity",e.MRKT_ARTIST_AUDIENCE="mrkt/artist/audience",e.MRKT_ARTIST_AUDIENCE_WEB_VIEW="mrkt/artist/audience-web-view",e.MRKT_ARTIST_AUDIENCE_CITIES="mrkt/artist/audience/cities",e.MRKT_ARTIST_AUDIENCE_COUNTRIES="mrkt/artist/audience/countries",e.MRKT_ARTIST_AUDIENCE_ACTIVE_AUDIENCE="mrkt/artist/audience/active-audience",e.MRKT_ARTIST_AUDIENCE_ACTIVE_AUDIENCE_NO_ARTIST_REDIRECT="mrkt/artist/audience/active-audience/no-artist-redirect",e.MRKT_ARTIST_AUDIENCE_DEMOGRAPHIC="mrkt/artist/audience/demographic",e.MRKT_ARTIST_AUDIENCE_ENGAGEMENT="mrkt/artist/audience/engagement",e.MRKT_ARTIST_AUDIENCE_LOCATION="mrkt/artist/audience/location",e.MRKT_ARTIST_AUDIENCE_RELATED="mrkt/artist/audience/related",e.MRKT_ARTIST_AUDIENCE_RELEASE_ENGAGEMENT="mrkt/artist/audience/release-engagement",e.MRKT_ARTIST_AUDIENCE_SOURCE_OF_STREAMS="mrkt/artist/audience/source-of-streams",e.MRKT_ARTIST_HOME="mrkt/artist/home",e.MRKT_ARTIST_PROFILE_MERCH="mrkt/artist/profile/merch",e.MRKT_ARTIST_PROFILE_MERCH_DETAILS="mrkt/artist/profile/merch/details",e.MRKT_ARTIST_MUSIC="mrkt/artist/music",e.MRKT_ARTIST_PLAYLIST="mrkt/artist/playlist",e.MRKT_ARTIST_PLAYLISTS="mrkt/artist/playlists",e.MRKT_ARTIST_PROFILE="mrkt/artist/profile",e.MRKT_ARTIST_PROFILE_ABOUT="mrkt/artist/profile/about",e.MRKT_ARTIST_PROFILE_ABOUT_EDIT="mrkt/artist/profile/about/edit",e.MRKT_ARTIST_PROFILE_ARTISTPICK_PICK="mrkt/artist/profile/artistpick/pick",e.MRKT_ARTIST_PROFILE_ARTISTPICK_EDIT="mrkt/artist/profile/artistpick/edit",e.MRKT_ARTIST_PROFILE_AVATAR="mrkt/artist/profile/avatar",e.MRKT_ARTIST_PROFILE_AVATAR_EDIT="mrkt/artist/profile/avatar/edit",e.MRKT_ARTIST_PROFILE_CATALOG_ALBUMS="mrkt/artist/profile/catalog/albums",e.MRKT_ARTIST_PROFILE_CATALOG_RELEASE="mrkt/artist/profile/catalog/release",e.MRKT_ARTIST_PROFILE_CATALOG_SINGLES="mrkt/artist/profile/catalog/singles",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY="mrkt/artist/profile/image-gallery",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD="mrkt/artist/profile/image-gallery/add",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD_PREVIEW="mrkt/artist/profile/image-gallery/add/preview",e.MRKT_ARTIST_PROFILE_IMAGES_EDIT="mrkt/artist/profile/images/edit",e.MRKT_ARTIST_PROFILE_PLAYLISTS="mrkt/artist/profile/playlists",e.MRKT_ARTIST_PROFILE_PLAYLISTS_EDIT="mrkt/artist/profile/playlists/edit",e.MRKT_ARTIST_PROFILE_FUNDRAISING="mrkt/artist/profile/fundraising",e.MRKT_ARTIST_SONG_CITIES="mrkt/artist/song/cities",e.MRKT_ARTIST_SONG_COUNTRIES="mrkt/artist/song/countries",e.MRKT_ARTIST_SONG_LOCATION="mrkt/artist/song/location",e.MRKT_ARTIST_SONG_PLAYLIST="mrkt/artist/song/playlist",e.MRKT_ARTIST_SONG_PLAYLISTS="mrkt/artist/song/playlists",e.MRKT_ARTIST_SONG_STATS="mrkt/artist/song/stats",e.MRKT_ARTIST_SONGS="mrkt/artist/songs",e.MRKT_ARTIST_CAMPAIGNS="mrkt/artist/campaigns",e.MRKT_ARTIST_CAMPAIGNS_TEAM="mrkt/artist/campaigns/team",e.MRKT_ARTIST_CAMPAIGNS_PREVIEW="mrkt/artist/campaigns/preview",e.MRKT_ARTIST_CAMPAIGNS_BILLING="mrkt/artist/campaigns/billing",e.MRKT_ARTIST_CAMPAIGNS_BUDGET="mrkt/artist/campaigns/budget",e.MRKT_ARTIST_CAMPAIGNS_DRAFT="mrkt/artist/campaigns/draft",e.MRKT_ARTIST_CAMPAIGNS_REVIEW="mrkt/artist/campaigns/review",e.MRKT_ARTIST_CAMPAIGNS_SETUP="mrkt/artist/campaigns/setup",e.MRKT_ARTIST_CAMPAIGNS_SUCCESS="mrkt/artist/campaigns/success",e.MRKT_ARTIST_CAMPAIGNS_DETAIL="mrkt/artist/campaigns/detail",e.MRKT_ARTIST_CAMPAIGNS_DM="mrkt/artist/campaigns/dm",e.MRKT_ARTIST_CAMPAIGNS_DM_CREATION="mrkt/artist/campaigns/dm/creation",e.MRKT_ARTIST_CAMPAIGNS_DM_REPORT="mrkt/artist/campaigns/dm/report",e.MRKT_ARTIST_CAMPAIGNS_DM_REVIEW="mrkt/artist/campaigns/dm/review",e.MRKT_ARTIST_CAMPAIGNS_NO_ARTIST_REDIRECT="mrkt/artist/campaigns/no-artist-redirect",e.MRKT_ARTIST_CAMPAIGN_ADMIN="mrkt/artist/campaign-admin",e.MRKT_CANVAS_EDIT="mrkt/canvas/edit",e.MRKT_CHARTS_OVERVIEW="mrkt/charts/overview",e.MRKT_CHARTS_VIEW="mrkt/charts/view",e.MRKT_CHARTS_ONBOARDING="mrkt/charts/onboarding",e.MRKT_DEBUG_HUBS_COMPONENT_INFO="mrkt/debug/hubs/component-info",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_OVERVIEW="mrkt/debug/hubs/component-reference/overview",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS="mrkt/debug/hubs/component-reference/rows",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS_DARK="mrkt/debug/hubs/component-reference/rows-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS="mrkt/debug/hubs/component-reference/buttons",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS_DARK="mrkt/debug/hubs/component-reference/buttons-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES="mrkt/debug/hubs/component-reference/tiles",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES_DARK="mrkt/debug/hubs/component-reference/tiles-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS="mrkt/debug/hubs/component-reference/section-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS_DARK="mrkt/debug/hubs/component-reference/section-headers-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS="mrkt/debug/hubs/component-reference/page-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS_DARK="mrkt/debug/hubs/component-reference/page-headers-dark",e.MRKT_EXPRESSION_VIDEO_WRAPPED_DASHBOARD="mrkt/expression-video/wrapped-dashboard",e.MRKT_EXPRESSION_VIDEO_DASHBOARD="mrkt/expression-video/dashboard",e.MRKT_EXPRESSION_VIDEO_DETAIL="mrkt/expression-video/detail",e.MRKT_EXPRESSION_VIDEO_UPLOAD="mrkt/expression-video/upload",e.MRKT_HELP="mrkt/help",e.MRKT_LEGAL_PRIVACY_POLICY="mrkt/legal/privacy-policy",e.MRKT_LEGAL_TERMS_AND_CONDITIONS="mrkt/legal/terms-and-conditions",e.MRKT_LEGAL_THIRD_PARTY_LICENSES="mrkt/legal/third-party-licenses",e.MRKT_LOGIN="mrkt/login",e.MRKT_MOBILE_STATS_LATEST_ALBUM="mrkt/mobile-stats/latest-album",e.MRKT_MOBILE_STATS_OVERVIEW="mrkt/mobile-stats/overview",e.MRKT_REQUEST_ACCESS_MOBILE_LAUNCHER="mrkt/request-access/mobile-launcher",e.MRKT_ROSTER="mrkt/roster",e.MRKT_APP_SETTINGS="mrkt/app-settings",e.MRKT_APP_SETTINGS_SELECT_ARTIST="mrkt/app-settings/select-artist",e.MRKT_APP_SETTINGS_PUSH_NOTIFICATIONS="mrkt/app-settings/push-notifications",e.MRKT_WAITING_ROOM_HOME="mrkt/waiting-room/home",e.MRKT_WAITING_ROOM_MUSIC="mrkt/waiting-room/music",e.MRKT_WAITING_ROOM_AUDIENCE="mrkt/waiting-room/audience",e.MRKT_WAITING_ROOM_PROFILE="mrkt/waiting-room/profile",e.MRKT_WAITING_ROOM_STATS="mrkt/waiting-room/stats",e.MRKT_WELCOME="mrkt/welcome",e.MRKT_ACTIVITY="mrkt/activity",e.MRKT_ADD_TEAM="mrkt/add-team",e.MRKT_ARTIST_NMS="mrkt/artist/nms",e.MRKT_ARTIST_NMS_CREATE="mrkt/artist/nms/create",e.MRKT_ARTIST_NMS_EDIT="mrkt/artist/nms/edit",e.MRKT_ARTIST_PROFILE_CONCERTS="mrkt/artist/profile/concerts",e.MRKT_ARTIST_RELEASES="mrkt/artist/releases",e.MRKT_ARTIST_RELEASE_STATS="mrkt/artist/release/stats",e.MRKT_ARTIST_UPCOMING="mrkt/artist/upcoming",e.MRKT_CONTENT_MISMATCH="mrkt/content-mismatch",e.MRKT_DISTRIBUTOR_INVITE="mrkt/distributor-invite",e.MRKT_LABS="mrkt/labs",e.MRKT_LABS_ARTIST_HISTORY="mrkt/labs/artist-history",e.MRKT_NOT_FOUND="mrkt/not-found",e.MRKT_TEAM_ACCESS_ARTIST="mrkt/team/access/artist",e.MRKT_TEAM_ACCESS_LABEL="mrkt/team/access/label",e.MRKT_TEAM_LABEL_ARTISTS="mrkt/team/label/artists",e.MRKT_TEAM_MANAGEMENT="mrkt/team-management",e.MRKT_TEAM_MANAGEMENT_SELECT_TEAM="mrkt/team-management/select-team",e.MRKT_TEAM_MANAGEMENT_ACCEPT_INVITE="mrkt/team-management/accept-invite",e.MRKT_TEAM_MANAGEMENT_ACTIVITY="mrkt/team-management/activity",e.MRKT_TEAM_MANAGEMENT_BULK_INVITE="mrkt/team-management/bulk-invite",e.MRKT_TEAM_MANAGEMENT_DETAILS="mrkt/team-management/details",e.MRKT_TEAM_MANAGEMENT_TEAM_DETAILS="mrkt/team-management/team-details",e.MRKT_TEAM_MANAGEMENT_INVITE="mrkt/team-management/invite",e.MRKT_TEAM_MANAGEMENT_BILLING="mrkt/team-management/billing";e.MRKT_TEAM_SWITCHER_DEBUG_SETTINGS="mrkt/team-switcher/debug-settings",e.MRKT_USER_SETTINGS="mrkt/user-settings",e.MRKT_SONGWRITER_PROFILE="mrkt/songwriter/profile",e.MRKT_FAN_ENGAGEMENT="mrkt/fan-engagement",e.MRKT_LIVE_ARTIST_ROOM_CREATE="mrkt/live-artist-room/create",e.MRKT_LIVE_ARTIST_ROOM_EDIT="mrkt/live-artist-room/edit",e.MRKT_VIDEO="mrkt/video",e.MRKT_VIDEO_CREATE="mrkt/video/create",e.MRKT_VIDEO_EDIT="mrkt/video/edit",e.MRKT_VIDEO_WRAPPED="mrkt/video/wrapped",e.MRKT_WRAPPED="mrkt/wrapped",e.MRKT_PRE_RELEASE_CREATE="mrkt/pre-release/create",e.MRKT_PRE_RELEASE_VIDEO_CREATE="mrkt/pre-release/video/create",e.MRKT_PRE_RELEASE_EDIT="mrkt/pre-release/edit",e.S4P_HOME="s4p/home",e.SOULSEEKER_SIMILAR_PROFILES="soulseeker-similar-profiles",e.SOULSEEKER_PROFILE_TRACKS="soulseeker-profile-tracks",e.PODCASTMIX_ENTITY="podcastmix/entity",e.PODCASTMIX_CONTROLS="podcastmix/controls",e.PODCASTMIX_CONTROLS_TOPICS="podcastmix/controls/topics",e.PODCASTMIX_CONTROLS_SHOWS="podcastmix/controls/shows",e.PODCASTMIX_CONTROLS_MUSIC="podcastmix/controls/music",e.TOPIC="topic",e.THESTAGE="thestage",e.USERPLAYLISTRESOLVER="userplaylistresolver",e.GENRE="genre",e.FORCEUPGRADE="forceupgrade",e.IMAGE_PICKER="image-picker",e.SUPERBIRD_SETUP_WELCOME="superbird/setup/welcome",e.SUPERBIRD_SETUP_BLUETOOTHCONNECT="superbird/setup/bluetoothconnect",e.SUPERBIRD_SETUP_BLUETOOTHSETTINGS="superbird/setup/bluetoothsettings",e.SUPERBIRD_SETUP_SEARCHING="superbird/setup/searching",e.SUPERBIRD_SETUP_CONNECTED="superbird/setup/connected",e.SUPERBIRD_SETUP_CHECKFORUPDATES="superbird/setup/checkforupdates",e.SUPERBIRD_SETUP_CONNECTTOCAR="superbird/setup/connecttocar",e.SUPERBIRD_SETUP_CONNECTTOWIFI="superbird/setup/connecttowifi",e.SUPERBIRD_SETUP_DOWNLOADED="superbird/setup/downloaded",e.SUPERBIRD_SETUP_DOWNLOADING="superbird/setup/downloading",e.SUPERBIRD_SETUP_EVERYTHINGCONNECTED="superbird/setup/everythingconnected",e.SUPERBIRD_SETUP_READY="superbird/setup/ready",e.SUPERBIRD_SETUP_RECONNECTING="superbird/setup/reconnecting",e.SUPERBIRD_SETUP_TESTSOUND="superbird/setup/testsound",e.SUPERBIRD_SETUP_MOUNTSELECTION="superbird/setup/mountselection",e.SUPERBIRD_SETUP_MOUNTINSTRUCTIONS="superbird/setup/mountinstructions",e.SUPERBIRD_SETUP_CONTROLOTHERMEDIA="superbird/setup/controlothermedia",e.SUPERBIRD_SETUP_CONTROLOTHERMEDIADECLINED="superbird/setup/controlothermediadeclined",e.SPOTIFYBUTTON_ACTIVATION_WELCOME="spotifybutton/activation/welcome",e.SPOTIFYBUTTON_ACTIVATION_DEVICESCANNING="spotifybutton/activation/devicescanning",e.SPOTIFYBUTTON_ACTIVATION_SETUP="spotifybutton/activation/setup",e.SPOTIFYBUTTON_ACTIVATION_READY="spotifybutton/activation/ready",e.IRONCHEF_ENTITY="ironchef/entity",e.IRONCHEF_PREVIEWSONGS="ironchef/previewsongs",e.IRONCHEF_CHOOSEKIND="ironchef/choosekind",e.IRONCHEF_CREATE="ironchef/create",e.IRONCHEF_EDIT="ironchef/edit",e.IRONCHEF_SEARCH="ironchef/search",e.IRONCHEF_NAMING="ironchef/naming",e.ENDLESS_FEED="endless-feed",e.HIFI_ONBOARDING="hifi/onboarding",e.HIFI_SESSION_INFO="hifi/session-info",e.HIFI_TOGGLE="hifi/toggle",e.HARMONYPLAYER_NPV="harmonyplayer/npv",e.HARMONYPLAYER_PLAYLISTS="harmonyplayer/playlists",e.CAMPAIGNS_DATASTORIES="campaigns/datastories",e.PUFFIN_AUTODETECT="puffin/autodetect",e.PUFFIN_MANUAL_SELECT="puffin/manual-select",e.PUFFIN_MANUAL_SELECT_REDUCED="puffin/manual-select-reduced",e.PUFFIN_MANAGEMENT="puffin/management",e.PUFFIN_ONBOARDING="puffin/onboarding",e.PUFFIN_PIGEON_ONBOARDING="puffin/pigeon-onboarding",e.SHARECARD_PLAYLIST="sharecard/playlist",e.GUILTYPLEASURE_LIST="guiltypleasure/list",e.WEB3_NFTSHOWCASEGRID="web3/nftshowcasegrid",e.WEB3_NFTSHOWCASEPREVIEW="web3/nftshowcasepreview",e.WEB3_TOKENENABLED_PLAYLIST="web3/tokenenabled/playlist",e.MANAGE_TEAMS_PAGE="manage/teams-page",e.READALONG="readalong",e.READALONG_FULLSCREEN="readalong/fullscreen",e.ADSTUDIO_DASHBOARD_CAMPAIGNS="adstudio/dashboard/campaigns",e.ADSTUDIO_DASHBOARD_CAMPAIGN_DRAFTS="adstudio/dashboard/campaign-drafts",e.ADSTUDIO_DASHBOARD_AD_SETS="adstudio/dashboard/ad-sets",e.ADSTUDIO_DASHBOARD_AD_SET_DRAFTS="adstudio/dashboard/ad-set-drafts",e.ADSTUDIO_DASHBOARD_ADS="adstudio/dashboard/ads",e.ADSTUDIO_DASHBOARD_AD_DRAFTS="adstudio/dashboard/ad-drafts",e.ADSTUDIO_ASSET_LIBRARY="adstudio/asset-library",e.ADSTUDIO_USER_SETTINGS="adstudio/user-settings",e.ADSTUDIO_ACCOUNT_MANAGEMENT="adstudio/account-management",e.ADSTUDIO_ACCOUNT_DETAILS="adstudio/account-details",e.ADSTUDIO_BILLING_CENTER="adstudio/billing-center",e.ADSTUDIO_ACCOUNT_SETTINGS="adstudio/account-settings",e.ADSTUDIO_AD_SET_REPORT="adstudio/ad-set/report",e.ADSTUDIO_AD_SET_DETAILS="adstudio/ad-set/details",e.ADSTUDIO_AD_SET_ADS="adstudio/ad-set/ads",e.ADSTUDIO_AD_DETAILS="adstudio/ad/details",e.ADSTUDIO_AD_AD_SETS="adstudio/ad/ad-sets",e.YOUR_SOUND="your-sound",e.EPISODECHAPTERS_NPV="episodechapters/npv",e.EPISODECHAPTERS_NPV_FULLSCREEN="episodechapters/npv/fullscreen",e.HACKWEEK2023_SYNC_LIGHTS="hackweek2023/sync-lights",e.HACKWEEK2023_PRERELEASE_EVENT="hackweek2023/prerelease-event"}(i||(i={}))},50346:(e,t,n)=>{"use strict";n.d(t,{JM:()=>o,jy:()=>f,vU:()=>h,WN:()=>m,zJ:()=>v,g8:()=>y,wG:()=>g,g3:()=>_,YD:()=>b,ir:()=>S,KO:()=>oe,HB:()=>ne,QS:()=>te,mg:()=>ce,YF:()=>ue,Ue:()=>de,OB:()=>pe,yF:()=>he,aE:()=>me,zO:()=>fe,hn:()=>ge,L0:()=>ve,dB:()=>ye,nK:()=>be,WP:()=>_e,Kv:()=>Se,oi:()=>Ee,U4:()=>ee,RS:()=>Ae,ie:()=>Te,wj:()=>Pe,Jf:()=>A,ak:()=>T,EC:()=>le,_b:()=>se,FW:()=>P,vo:()=>O,QK:()=>C,ix:()=>k,xt:()=>R,AB:()=>L,tn:()=>N,qC:()=>w});const o=Spicetify.URI.Type={AD:"ad",ALBUM:"album",GENRE:"genre",QUEUE:"queue",APPLICATION:"application",ARTIST:"artist",ARTIST_TOPLIST:"artist-toplist",ARTIST_CONCERTS:"artist-concerts",AUDIO_FILE:"audiofile",COLLECTION:"collection",COLLECTION_ALBUM:"collection-album",COLLECTION_ARTIST:"collection-artist",COLLECTION_MISSING_ALBUM:"collection-missing-album",COLLECTION_TRACK_LIST:"collectiontracklist",CONCERT:"concert",CONTEXT_GROUP:"context-group",CULTURAL_MOMENT:"cultural-moment",DAILY_MIX:"dailymix",EMPTY:"empty",EPISODE:"episode",FACEBOOK:"facebook",FOLDER:"folder",FOLLOWERS:"followers",FOLLOWING:"following",IMAGE:"image",INBOX:"inbox",INTERRUPTION:"interruption",LIBRARY:"library",LIVE:"live",ROOM:"room",EXPRESSION:"expression",LOCAL:"local",LOCAL_TRACK:"local",LOCAL_ALBUM:"local-album",LOCAL_ARTIST:"local-artist",MERCH:"merch",MOSAIC:"mosaic",PLAYLIST:"playlist",PLAYLIST_V2:"playlist-v2",PRERELEASE:"prerelease",PROFILE:"profile",PUBLISHED_ROOTLIST:"published-rootlist",RADIO:"radio",ROOTLIST:"rootlist",SEARCH:"search",SHOW:"show",SOCIAL_SESSION:"socialsession",SPECIAL:"special",STARRED:"starred",STATION:"station",TEMP_PLAYLIST:"temp-playlist",TOPLIST:"toplist",TRACK:"track",TRACKSET:"trackset",USER_TOPLIST:"user-toplist",USER_TOP_TRACKS:"user-top-tracks",UNKNOWN:"unknown",MEDIA:"media",QUESTION:"question",POLL:"poll"};var i,r=n(96583);!function(e){e[e.URI=0]="URI",e[e.URL=1]="URL"}(i||(i={}));const a="spotify:",s="http://play.spotify.com/",l="https://play.spotify.com/",c="http://open.spotify.com/",u="https://open.spotify.com/",d="/",p={APP:"app",FACEBOOK:"facebook",GLOBAL:"global",TOP:"top",USER:"user",CONCERTS:"concerts",HUB:"hub"};function f(e,t){return ae(o.ALBUM,{id:e,disc:t,hasBase62Id:!0})}function h(e,t){return ae(o.APPLICATION,{id:e,args:Array.isArray(t)?t:[]})}function m(e){return ae(o.ARTIST,{id:e,hasBase62Id:!0})}function g(e,t){return ae(o.COLLECTION,{username:e,category:t})}function v(e,t){return ae(o.COLLECTION_ALBUM,{id:t,username:e,hasBase62Id:!0})}function y(e,t){return ae(o.COLLECTION_ARTIST,{id:t,username:e,hasBase62Id:!0})}function _(e){return ae(o.CONCERT,{id:e,hasBase62Id:!0})}function b(e,t,n){return ae(o.EPISODE,{id:e,context:t?se(t):null,play:n,hasBase62Id:!0})}function S(e,t){return ae(o.FOLDER,{id:t,username:e,hasBase62Id:!0})}function E(e,t,n,i){return ae(o.LOCAL_TRACK,{artist:e,album:t,track:n,duration:i})}function A(e,t){return ae(o.LOCAL_ALBUM,{artist:e,album:t})}function T(e){return ae(o.LOCAL_ARTIST,{artist:e})}function P(e){return ae(o.PLAYLIST_V2,{id:e,hasBase62Id:!0})}function O(e){return ae(o.PRERELEASE,{id:e,hasBase62Id:!0})}function C(e,t){return ae(o.PROFILE,{username:e,args:null!=t?t:[]})}function k(e){return ae(o.SEARCH,{query:e})}function R(e){return ae(o.SHOW,{id:e,hasBase62Id:!0})}function L(e){return ae(o.STATION,{args:null!=e?e:[]})}function I(e,t,n){return ae(o.TOPLIST,{toplist:e,country:t,global:Boolean(n)})}function N(e,t,n,i){return ae(o.TRACK,{id:e,anchor:t,context:n?se(n):null,play:i,hasBase62Id:!0})}function w(e,t){return ae(o.USER_TOPLIST,{username:e,toplist:t})}function D(e,t){if(!e)return"";let n=encodeURIComponent(e);return t===i.URI&&(n=n.replace(/%20/g,"+")),n=n.replace(/[!'()]/g,escape),n=n.replace(/\*/g,"%2A"),n}function M(e,t,n=[]){for(let o=0,i=e.length;o<i;++o)n.push(D(e[o],t));return n}function x(e,t){if(!e)return"";const n=t===i.URI?e.replace(/\+/g,"%20"):e;return decodeURIComponent(n)}function F(e){let t="?";for(const n in e)if(e.hasOwnProperty(n)&&void 0!==e[n]){t.length>1&&(t+="&");const o=e[n];void 0!==o&&(t+=`${n}=${encodeURIComponent(o)}`)}return t}const U=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;const B=()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]},[V,G]=B();V(o.PLAYLIST,((e,t,{username:n})=>function(e,t){return ae(o.PLAYLIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getBase62IdComponent()))),V(o.FOLDER,((e,t,{username:n})=>S(n,e.getIdComponent()))),V(o.COLLECTION_TRACK_LIST,((e,t,{username:n})=>function(e,t){return ae(o.COLLECTION_TRACK_LIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getIdComponent()))),V(o.COLLECTION,((e,t,{username:n})=>{const i=e.getNextComponent();if(i===o.ALBUM){const t=e.getIdComponent();return"missing"===e.getNextComponent()?function(e,t){return ae(o.COLLECTION_MISSING_ALBUM,{id:t,username:e,hasBase62Id:!0})}(n,t):v(n,t)}return i===o.ARTIST?y(n,e.getIdComponent()):g(n,i)})),V(o.STARRED,((e,t,{username:n})=>function(e){return ae(o.STARRED,{username:e})}(n))),V(o.FOLLOWERS,((e,t,{username:n})=>function(e){return ae(o.FOLLOWERS,{username:e})}(n))),V(o.FOLLOWING,((e,t,{username:n})=>function(e){return ae(o.FOLLOWING,{username:e})}(n))),V(p.TOP,((e,t,{username:n})=>w(n,e.getNextRequiredComponent()))),V(o.INBOX,((e,t,{username:n})=>function(e){return ae(o.INBOX,{username:e})}(n))),V(o.ROOTLIST,((e,t,{username:n})=>function(e){return ae(o.ROOTLIST,{username:e})}(n))),V(o.PUBLISHED_ROOTLIST,((e,t,{username:n})=>function(e){return ae(o.PUBLISHED_ROOTLIST,{username:e})}(n))),V(o.TOPLIST,((e,t,{username:n})=>function(e){return ae(o.USER_TOP_TRACKS,{username:e})}(n))),V(o.LIBRARY,((e,t,{username:n})=>function(e,t){return ae(o.LIBRARY,{username:e,category:t})}(n,e.getNextComponent())));const[J,j]=B();function H(e){let t,n,o,r,p=e;const[f,h]=p.split("?");if(f&&h){p=f;const[e,t]=h.split("#");e&&(o=function(e){return e.split("&").reduce(((e,t)=>{const[n,o]=t.split("=");return n&&o&&(e[n]=decodeURIComponent(o)),e}),{})}(e),r=t)}const m=p.split("#");if(m.length>1&&(p=m.shift(),r=m.pop()),0===p.indexOf(a))t=p.slice(a.length).split(":"),n=i.URI;else{const[e]=p.split("?");if(0===(null==e?void 0:e.indexOf(s)))t=e.slice(s.length).split("/");else if(0===(null==e?void 0:e.indexOf(l)))t=e.slice(l.length).split("/");else if(0===(null==e?void 0:e.indexOf(c)))t=e.slice(c.length).split("/");else if(0===(null==e?void 0:e.indexOf(u)))t=e.slice(u.length).split("/");else{if(0!==(null==e?void 0:e.indexOf(d)))throw new TypeError("Invalid Spotify URI!");t=e.slice(d.length).split("/")}n=i.URL}return r&&t.push(r),{format:n,components:t,query:o}}function K(e,t,n,r){let a=0;const s=()=>{const t=e[a++];if(t&&/\s/.test(t))throw new TypeError("Invalid Spotify URI!");return t},l=()=>{const e=s();if(!e)throw new TypeError("Invalid Spotify URI!");return e},c={getAllComponents:()=>e,getQueryParams:()=>n,getNextComponent:s,getNextRequiredComponent:l,getIdComponent:()=>{const e=l();if(e.length>22)throw new TypeError("Invalid Spotify URI!");return e},getBase62IdComponent:()=>{const e=l();if(22!==e.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(e))throw new Error("Invalid ID");return e},getRemainingComponents:()=>e.slice(a),getRemainingString:()=>{const n=t===i.URI?":":"/";return e.slice(a).join(n)}};let u=l(),d=j[u];if(!d){const e=function(e){return U.test(e)}(u);e&&(u=l(),d=j[u])}if(d)return d(c,t,{});if(r)return j[o.UNKNOWN](c,t,{});throw new TypeError("Invalid or unknown Spotify URI!")}J(o.ALBUM,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return f(t,n?parseInt(n,10):void 0)})),J(p.APP,((e,t)=>{const n=e.getNextRequiredComponent();if(D(x(n,t),t)!==n)throw new TypeError("Invalid or unknown Spotify URI!");const o=e.getRemainingComponents();for(let e=0,n=o.length;e<n;++e)o[e]=x(o[e],t);return h(n,o)})),J(o.AD,(e=>{return t=e.getNextRequiredComponent(),ae(o.AD,{id:t});var t})),J(o.ARTIST,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return n===p.TOP?function(e,t){return ae(o.ARTIST_TOPLIST,{id:e,toplist:t,hasBase62Id:!0})}(t,e.getNextRequiredComponent()):n===p.CONCERTS?function(e){return ae(o.ARTIST_CONCERTS,{id:e,hasBase62Id:!0})}(t):m(t)})),J(o.AUDIO_FILE,(e=>{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),ae(o.AUDIO_FILE,{id:n,extension:t});var t,n})),J(o.DAILY_MIX,(e=>{return t=e.getIdComponent(),ae(o.DAILY_MIX,{id:t,hasBase62Id:!0});var t})),J(o.TEMP_PLAYLIST,(e=>{return t=e.getNextRequiredComponent(),n=e.getRemainingString(),ae(o.TEMP_PLAYLIST,{origin:t,data:n});var t,n})),J(o.PLAYLIST,(e=>P(e.getBase62IdComponent()))),J(o.SEARCH,((e,t)=>k(x(e.getRemainingString(),t)))),J(o.TRACK,(e=>{const t=e.getQueryParams();return N(e.getBase62IdComponent(),e.getNextComponent(),null==t?void 0:t.context,null==t?void 0:t.play)})),J(o.TRACKSET,(e=>{var t;const n=x(e.getNextComponent());let i=e.getNextRequiredComponent();const r=e.getNextComponent();let a=parseInt(null!==(t=e.getNextComponent())&&void 0!==t?t:"",10);("%23"!==r||isNaN(a))&&(a=null);const s=[];if(i){i=x(i).split(",");for(let e=0,t=i.length;e<t;e++){const t=i[e];t&&s.push(N(t))}}return function(e,t,n){return ae(o.TRACKSET,{tracks:e,name:t||"",index:isNaN(n)?null:null!=n?n:null})}(s,n,a)})),J(o.CONTEXT_GROUP,(e=>{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),ae(o.CONTEXT_GROUP,{origin:t,name:n,hasBase62Id:!0});var t,n})),J(p.TOP,(e=>{const t=e.getNextRequiredComponent();return e.getNextComponent()===p.GLOBAL?I(t,void 0,!0):I(t,e.getNextComponent(),!1)})),J(o.LOCAL_TRACK,((e,t)=>{const n=x(e.getNextComponent(),t),o=e.getNextComponent(),i=x(o,t),r=e.getNextComponent(),a=x(r,t),s=e.getNextComponent(),l=s?parseInt(s,10):void 0;return void 0!==r?E(n,i,a,l):void 0!==o?A(n,i):T(n)})),J(o.IMAGE,(e=>{return t=e.getIdComponent(),ae(o.IMAGE,{id:t,hasBase62Id:!0});var t})),J(o.MOSAIC,(e=>{return t=e.getRemainingComponents(),ae(o.MOSAIC,{ids:t});var t})),J(o.RADIO,(e=>{return t=e.getRemainingString(),ae(o.RADIO,{args:null!=t?t:""});var t})),J(o.SPECIAL,((e,t)=>{const n=e.getRemainingComponents();for(let e=0,o=n.length;e<o;++e)n[e]=x(n[e],t);return function(e){return ae(o.SPECIAL,{args:null!=e?e:[]})}(n)})),J(o.STATION,(e=>L(e.getRemainingComponents()))),J(o.EPISODE,(e=>{const t=e.getQueryParams();return b(e.getBase62IdComponent(),null==t?void 0:t.context,null==t?void 0:t.play)})),J(o.SHOW,(e=>R(e.getBase62IdComponent()))),J(o.LIVE,(e=>{return t=e.getIdComponent(),ae(o.LIVE,{id:t,hasBase62Id:!0});var t})),J(o.ROOM,(e=>{return t=e.getIdComponent(),ae(o.ROOM,{id:t,hasBase62Id:!0});var t})),J(o.EXPRESSION,(e=>{return t=e.getIdComponent(),ae(o.EXPRESSION,{id:t,hasBase62Id:!0});var t})),J(o.CONCERT,(e=>_(e.getIdComponent()))),J(o.MERCH,(e=>{return t=e.getIdComponent(),ae(o.MERCH,{id:t,hasBase62Id:!0});var t})),J(o.PRERELEASE,(e=>O(e.getIdComponent()))),J(o.SOCIAL_SESSION,(e=>{return t=e.getNextRequiredComponent(),ae(o.SOCIAL_SESSION,{id:t,hasBase62Id:!0});var t})),J(o.INTERRUPTION,(e=>{return t=e.getNextRequiredComponent(),ae(o.INTERRUPTION,{id:t});var t})),J(o.COLLECTION,(e=>g(void 0,e.getNextComponent()))),J(o.GENRE,(e=>{return t=e.getNextRequiredComponent(),ae(o.GENRE,{genre:t});var t})),J(o.QUEUE,(()=>ae(o.QUEUE,{}))),J(p.USER,((e,t)=>{const n=x(e.getNextRequiredComponent(),t),i=e.getNextComponent();if(n===o.FACEBOOK&&i)return r=i,ae(o.FACEBOOK,{uid:r});if(i&&G[i]){const o=G[i];if(!o)throw new TypeError("Invalid Spotify URI!");return o(e,t,{username:n})}var r;const a=e.getRemainingComponents();return C(n,i?[i].concat(a):void 0)})),J(o.UNKNOWN,(e=>function(e){return ae(o.UNKNOWN,{args:null!=e?e:[]})}(e.getAllComponents()))),J(o.MEDIA,(e=>{return t=e.getIdComponent(),ae(o.MEDIA,{id:t,hasBase62Id:!0});var t})),J(o.POLL,(e=>{return t=e.getIdComponent(),ae(o.POLL,{id:t,hasBase62Id:!0});var t})),J(o.QUESTION,(e=>{return t=e.getIdComponent(),ae(o.QUESTION,{id:t,hasBase62Id:!0});var t})),J(o.CULTURAL_MOMENT,(e=>{if(e.getNextComponent()!==p.HUB)throw new TypeError("Invalid or unknown Spotify URI!");return t=e.getIdComponent(),ae(o.CULTURAL_MOMENT,{id:t});var t}));const[Y,W]=(()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]})();function z(e,t){const n=W[e.type];if(!n)throw new TypeError("Invalid Spotify URI!");return n(e,t)}Y(o.ALBUM,(e=>{const t=[o.ALBUM,e.id];return e.disc&&t.push(e.disc),t})),Y(o.AD,(e=>[o.AD,e.id])),Y(o.ARTIST,(e=>[o.ARTIST,e.id])),Y(o.QUEUE,(()=>[o.QUEUE])),Y(o.GENRE,(e=>[o.GENRE,e.genre])),Y(o.ARTIST_TOPLIST,(e=>[o.ARTIST,e.id,p.TOP,e.toplist])),Y(o.ARTIST_CONCERTS,(e=>[o.ARTIST,e.id,p.CONCERTS])),Y(o.DAILY_MIX,(e=>[o.DAILY_MIX,e.id])),Y(o.SEARCH,((e,t)=>[o.SEARCH,D(e.query,t)])),Y(o.TRACK,(e=>{let t=e.id;return(e.context||e.play)&&(t+=F({context:e.context,play:e.play})),e.anchor&&(t+=`#${e.anchor}`),[o.TRACK,t]})),Y(o.TRACKSET,(e=>{let t=[];if(e.tracks)for(let n=0,o=e.tracks.length;n<o;n++)t.push(e.tracks[n].id);return t=[t.join(",")],null!==e.index&&void 0!==e.index&&t.push("#",e.index.toString()),[o.TRACKSET,D(e.name)].concat(t)})),Y(o.FACEBOOK,(e=>[p.USER,o.FACEBOOK,e.uid])),Y(o.AUDIO_FILE,(e=>[o.AUDIO_FILE,e.extension,e.id])),Y(o.FOLDER,((e,t)=>[p.USER,D(e.username,t),o.FOLDER,e.id])),Y(o.FOLLOWERS,((e,t)=>[p.USER,D(e.username,t),o.FOLLOWERS])),Y(o.FOLLOWING,((e,t)=>[p.USER,D(e.username,t),o.FOLLOWING])),Y(o.PLAYLIST,((e,t)=>[p.USER,D(e.username,t),o.PLAYLIST,e.id])),Y(o.PLAYLIST_V2,(e=>[o.PLAYLIST,e.id])),Y(o.STARRED,((e,t)=>[p.USER,D(e.username,t),o.STARRED])),Y(o.TEMP_PLAYLIST,(e=>[o.TEMP_PLAYLIST,e.origin,e.data])),Y(o.CONTEXT_GROUP,(e=>[o.CONTEXT_GROUP,e.origin,e.name])),Y(o.USER_TOPLIST,((e,t)=>[p.USER,D(e.username,t),p.TOP,e.toplist])),Y(o.USER_TOP_TRACKS,((e,t)=>[p.USER,D(e.username,t),o.TOPLIST])),Y(o.TOPLIST,(e=>[p.TOP,e.toplist].concat(e.global||!e.country?[p.GLOBAL]:["country",e.country]))),Y(o.INBOX,((e,t)=>[p.USER,D(e.username,t),o.INBOX])),Y(o.ROOTLIST,((e,t)=>[p.USER,D(e.username,t),o.ROOTLIST])),Y(o.PUBLISHED_ROOTLIST,((e,t)=>[p.USER,D(e.username,t),o.PUBLISHED_ROOTLIST])),Y(o.COLLECTION_TRACK_LIST,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION_TRACK_LIST,e.id])),Y(o.PROFILE,((e,t)=>e.args&&e.args.length>0?[p.USER,D(e.username,t)].concat(e.args):[p.USER,D(e.username,t)])),Y(o.LOCAL_ARTIST,((e,t)=>[o.LOCAL_TRACK,D(e.artist,t)])),Y(o.LOCAL_ALBUM,((e,t)=>[o.LOCAL_TRACK,D(e.artist,t),D(e.album,t)])),Y(o.LOCAL_TRACK,((e,t)=>[o.LOCAL_TRACK,D(e.artist,t),D(e.album,t),D(e.track,t),e.duration])),Y(o.LIBRARY,((e,t)=>[p.USER,D(e.username,t),o.LIBRARY].concat(e.category?[e.category]:[]))),Y(o.IMAGE,(e=>[o.IMAGE,e.id])),Y(o.MOSAIC,(e=>{let t=[];return e.ids&&(t=e.ids.slice(0)),t.unshift(o.MOSAIC),t})),Y(o.RADIO,((e,t)=>M(e.args,t,[o.RADIO]))),Y(o.SPECIAL,((e,t)=>M(e.args,t,[o.SPECIAL]))),Y(o.STATION,((e,t)=>M(e.args,t,[o.STATION]))),Y(o.APPLICATION,((e,t)=>M(e.args,t,[p.APP,e.id]))),Y(o.COLLECTION_ALBUM,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION,o.ALBUM,e.id])),Y(o.COLLECTION_MISSING_ALBUM,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION,o.ALBUM,e.id,"missing"])),Y(o.COLLECTION_ARTIST,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION,o.ARTIST,e.id])),Y(o.COLLECTION,((e,t)=>{const n=[o.COLLECTION].concat(e.category?[e.category]:[]);return e.username?[p.USER,D(e.username,t)].concat(n):n})),Y(o.EPISODE,(e=>{let t=e.id;return(e.context||e.play)&&(t+=F({context:e.context,play:e.play})),[o.EPISODE,t]})),Y(o.SHOW,(e=>[o.SHOW,e.id])),Y(o.LIVE,(e=>[o.LIVE,e.id])),Y(o.ROOM,(e=>[o.ROOM,e.id])),Y(o.EXPRESSION,(e=>[o.EXPRESSION,e.id])),Y(o.CONCERT,(e=>[o.CONCERT,e.id])),Y(o.SOCIAL_SESSION,(e=>[o.SOCIAL_SESSION,e.id])),Y(o.INTERRUPTION,(e=>[o.INTERRUPTION,e.id])),Y(o.MERCH,(e=>[o.MERCH,e.id])),Y(o.PRERELEASE,(e=>[o.PRERELEASE,e.id])),Y(o.UNKNOWN,((e,t)=>M(e.args,t))),Y(o.MEDIA,(e=>[o.MEDIA,e.id])),Y(o.POLL,(e=>[o.POLL,e.id])),Y(o.QUESTION,(e=>[o.QUESTION,e.id])),Y(o.CULTURAL_MOMENT,(e=>[o.CULTURAL_MOMENT,p.HUB,e.id]));const q="0123456789abcdef",X="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Z=[];Z.length=256;for(let e=0;e<256;e++)Z[e]=q[e>>4]+q[15&e];const Q=[];Q.length=128;for(let e=0;e<X.length;++e)Q[X.charCodeAt(e)]=e;const $=[];for(let e=0;e<16;e++)$[q.charCodeAt(e)]=e;for(let e=0;e<6;e++)$["ABCDEF".charCodeAt(e)]=10+e;function ee(e,t){const n=le(e),r=le(t);if(!n||!r)return!1;if(n.toString()===r.toString())return!0;if(!(n.type!==o.PLAYLIST&&n.type!==o.PLAYLIST_V2||r.type!==o.PLAYLIST&&r.type!==o.PLAYLIST_V2))return n.id===r.id;if(n.type===o.STATION&&r.type===o.STATION){const e=K(n.args,i.URI);return!!e&&ee(e,K(r.args,i.URI))}return!1}function te(e){return 22===e.length?function(e){if(22!==e.length)return null;const t=2.3283064365386963e-10,n=4294967296,o=238328;let i,r,a,s,l;return i=56800235584*Q[e.charCodeAt(0)]+916132832*Q[e.charCodeAt(1)]+14776336*Q[e.charCodeAt(2)]+238328*Q[e.charCodeAt(3)]+3844*Q[e.charCodeAt(4)]+62*Q[e.charCodeAt(5)]+Q[e.charCodeAt(6)],r=i*t|0,i-=r*n,l=3844*Q[e.charCodeAt(7)]+62*Q[e.charCodeAt(8)]+Q[e.charCodeAt(9)],i=i*o+l,i-=(l=i*t|0)*n,r=r*o+l,l=3844*Q[e.charCodeAt(10)]+62*Q[e.charCodeAt(11)]+Q[e.charCodeAt(12)],i=i*o+l,i-=(l=i*t|0)*n,r=r*o+l,r-=(l=r*t|0)*n,a=l,l=3844*Q[e.charCodeAt(13)]+62*Q[e.charCodeAt(14)]+Q[e.charCodeAt(15)],i=i*o+l,i-=(l=i*t|0)*n,r=r*o+l,r-=(l=r*t|0)*n,a=a*o+l,l=3844*Q[e.charCodeAt(16)]+62*Q[e.charCodeAt(17)]+Q[e.charCodeAt(18)],i=i*o+l,i-=(l=i*t|0)*n,r=r*o+l,r-=(l=r*t|0)*n,a=a*o+l,a-=(l=a*t|0)*n,s=l,l=3844*Q[e.charCodeAt(19)]+62*Q[e.charCodeAt(20)]+Q[e.charCodeAt(21)],i=i*o+l,i-=(l=i*t|0)*n,r=r*o+l,r-=(l=r*t|0)*n,a=a*o+l,a-=(l=a*t|0)*n,s=s*o+l,s-=(l=s*t|0)*n,l?null:Z[s>>>24]+Z[s>>>16&255]+Z[s>>>8&255]+Z[255&s]+Z[a>>>24]+Z[a>>>16&255]+Z[a>>>8&255]+Z[255&a]+Z[r>>>24]+Z[r>>>16&255]+Z[r>>>8&255]+Z[255&r]+Z[i>>>24]+Z[i>>>16&255]+Z[i>>>8&255]+Z[255&i]}(e):e}function ne(e){return 32===e.length?function(e){let t,n=0,o=0,i=0;for(t=0;t<10;t++)i=16*i+$[e.charCodeAt(t)];for(t=0;t<11;t++)o=16*o+$[e.charCodeAt(t+10)];for(t=0;t<11;t++)n=16*n+$[e.charCodeAt(t+21)];if(isNaN(n+o+i))return null;const r=17592186044416,a=1/62;let s,l="";for(t=0;t<7;++t)s=i,i=Math.floor(s*a),s=(s-62*i)*r+o,o=Math.floor(s*a),s=(s-62*o)*r+n,n=Math.floor(s*a),l=X[s-62*n]+l;for(o+=i*r;t<15;++t)s=o,o=Math.floor(s*a),s=(s-62*o)*r+n,n=Math.floor(s*a),l=X[s-62*n]+l;for(n+=o*r;t<21;++t)s=n,n=Math.floor(s*a),l=X[s-62*n]+l;return X[n]+l}(e):e}function oe(e){return x(e,i.URI)}const ie="function"==typeof Object.assign?(e,t)=>{Object.assign(e,t)}:(e,t)=>{for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};class re{constructor(e,t={}){this.type=e,this.hasBase62Id=!!t.hasBase62Id,ie(this,t)}toURI(){return`spotify:${z(this,i.URI).join(":")}`}toString(){return this.toURI()}toURLPath(e=!1){let t=z(this,i.URL);t[0]===p.APP&&t.shift();const n=t[0]===o.TRACKSET,r=t[0]===o.LOCAL_TRACK;if(!n&&!r){const e=[];for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&e.push(o)}t=e}const a=t.join("/");return e?`/${a}`:a}getPath(){return this.toString().replace(/[#?].*/,"")}toURL(e){return`${e||u}${this.toURLPath()}`}clone(){return new re(this.type,this)}};Object.assign(re,Spicetify.URI);Object.defineProperty(Spicetify,"URI",{get:()=>re});function ae(e,t){return new re(e,t)}Spicetify.URI.fromString=se;function se(e,t){if("string"!=typeof e)throw new TypeError("Argument `uri` must be a string.");return function(e,t){const n=H(e);return K(n.components,n.format,n.query,t)}(e,null==t?void 0:t.parseUnknown)}Spicetify.URI.from=le;function le(e,t){var n,o,i;if(!e)return null;let a={};if(t&&(Array.isArray(t)?a.allowedTypes=t:a=t),e instanceof re)return-1===(null===(n=a.allowedTypes)||void 0===n?void 0:n.indexOf(e.type))?null:e.clone();if("string"==typeof e)try{const t=se(e,a);return-1===(null===(o=a.allowedTypes)||void 0===o?void 0:o.indexOf(t.type))?null:t}catch(e){return null}if(null==e?void 0:e.type){if(-1===(null===(i=a.allowedTypes)||void 0===i?void 0:i.indexOf(e.type)))return null;const{type:t}=e,n=(0,r.__rest)(e,["type"]);return new re(t,n)}return null}function ce(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.AD}function ue(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.ALBUM}function de(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.APPLICATION}function pe(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.ARTIST}function fe(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.COLLECTION}function he(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.COLLECTION_ALBUM}function me(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.COLLECTION_ARTIST}function ge(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.EPISODE}function ve(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.FOLDER}function ye(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.LOCAL_TRACK}function _e(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.PLAYLIST}function be(e){return _e(e)||function(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.PLAYLIST_V2}(e)}function Se(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.PROFILE}function Ee(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.RADIO}function Ae(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.SHOW}function Te(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.STATION}function Pe(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.TRACK}},93640:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(17150),t)},17150:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendWwwWebFraudLogsNonAuth=t.sendWwwWebFraudLogs=t.sendWwwExperimentsNonAuth=t.sendWwwExperimentsAgnostic=t.sendWwwExperiments=t.sendWwwAnalyticsAgnostic=t.sendWwwAnalyticsNonAuth=t.sendWwwAnalytics=void 0;const i=o(n(9751)),r=n(13911),a=n(62339);t.sendWwwAnalytics=i.default({endpoint:r.Endpoints.WwwAnalytics,request:a.request}),t.sendWwwAnalyticsNonAuth=i.default({endpoint:r.Endpoints.WwwAnalyticsNonAuth,request:a.request}),t.sendWwwAnalyticsAgnostic=i.default({endpoint:r.Endpoints.WwwAnalyticsAgnostic,request:a.request}),t.sendWwwExperiments=i.default({endpoint:r.Endpoints.WwwExperiments,request:a.request}),t.sendWwwExperimentsAgnostic=i.default({endpoint:r.Endpoints.WwwExperimentsAgnostic,request:a.request}),t.sendWwwExperimentsNonAuth=i.default({endpoint:r.Endpoints.WwwExperimentsNonAuth,request:a.request}),t.sendWwwWebFraudLogs=i.default({endpoint:"wwwwebfraudlogs",request:a.request}),t.sendWwwWebFraudLogsNonAuth=i.default({endpoint:"wwwwebfraudlogsnonauth",request:a.request})},62339:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.request=void 0,t.request=function(e,t){return n(this,void 0,void 0,(function*(){if(!("sendBeacon"in window.navigator))return;const n=`https://www.spotify.com/api/growth-events/${e}`;try{if(!navigator.sendBeacon(n,JSON.stringify(t)))throw new Error("Error sending beacon")}catch(e){throw new Error(e)}}))}},9751:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({endpoint:e,request:t}){return(o,i)=>n(this,void 0,void 0,(function*(){try{yield t(e,o,i)}catch(e){throw new Error(e)}}))}},13911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Endpoints=void 0,function(e){e.WwwAnalytics="wwwanalytics",e.WwwAnalyticsAgnostic="wwwanalyticsagnostic",e.WwwAnalyticsNonAuth="wwwanalyticsnonauth",e.WwwExperiments="wwwexperiments",e.WwwExperimentsAgnostic="wwwexperimentsagnostic",e.WwwExperimentsNonAuth="wwwexperimentsnonauth",e.WwwWebFraudLogs="wwwwebfraudlogs",e.WwwWebFraudLogsNonAuth="wwwwebfraudlogsnonauth"}(t.Endpoints||(t.Endpoints={}))},93963:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryAvailableEntityTypes=t.YourLibraryDecoratedEntity=t.YourLibraryBookExtraInfo=t.YourLibraryLocalFilesExtraInfo=t.YourLibraryNewEpisodesExtraInfo=t.YourLibraryYourEpisodesExtraInfo=t.YourLibraryLikedSongsExtraInfo=t.YourLibraryFolderExtraInfo=t.YourLibraryShowExtraInfo=t.YourLibraryPlaylistExtraInfo=t.YourLibraryArtistExtraInfo=t.YourLibraryAlbumExtraInfo=t.Offline=t.YourLibraryEntityInfo=t.yourLibraryBookExtraInfo_AccessToJSON=t.yourLibraryBookExtraInfo_AccessFromJSON=t.YourLibraryBookExtraInfo_Access=t.offline_AvailabilityToJSON=t.offline_AvailabilityFromJSON=t.Offline_Availability=t.yourLibraryEntityInfo_PinnableToJSON=t.yourLibraryEntityInfo_PinnableFromJSON=t.YourLibraryEntityInfo_Pinnable=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l;function c(e){switch(e){case 0:case"YES":return a.YES;case 1:case"NO_IN_FOLDER":return a.NO_IN_FOLDER;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.YES:return"YES";case a.NO_IN_FOLDER:return"NO_IN_FOLDER";default:return"UNKNOWN"}}function d(e){switch(e){case 0:case"UNKNOWN":return s.UNKNOWN;case 1:case"NO":return s.NO;case 2:case"YES":return s.YES;case 3:case"DOWNLOADING":return s.DOWNLOADING;case 4:case"WAITING":return s.WAITING;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.UNKNOWN:return"UNKNOWN";case s.NO:return"NO";case s.YES:return"YES";case s.DOWNLOADING:return"DOWNLOADING";case s.WAITING:return"WAITING";default:return"UNKNOWN"}}function f(e){switch(e){case 0:case"OPEN":return l.OPEN;case 1:case"LOCKED":return l.LOCKED;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.OPEN:return"OPEN";case l.LOCKED:return"LOCKED";default:return"UNKNOWN"}}function m(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.YES=0]="YES",e[e.NO_IN_FOLDER=1]="NO_IN_FOLDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.YourLibraryEntityInfo_Pinnable||(t.YourLibraryEntityInfo_Pinnable={})),t.yourLibraryEntityInfo_PinnableFromJSON=c,t.yourLibraryEntityInfo_PinnableToJSON=u,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO=1]="NO",e[e.YES=2]="YES",e[e.DOWNLOADING=3]="DOWNLOADING",e[e.WAITING=4]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.Offline_Availability||(t.Offline_Availability={})),t.offline_AvailabilityFromJSON=d,t.offline_AvailabilityToJSON=p,function(e){e[e.OPEN=0]="OPEN",e[e.LOCKED=1]="LOCKED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.YourLibraryBookExtraInfo_Access||(t.YourLibraryBookExtraInfo_Access={})),t.yourLibraryBookExtraInfo_AccessFromJSON=f,t.yourLibraryBookExtraInfo_AccessToJSON=h,t.YourLibraryEntityInfo={fromJSON:e=>({key:m(e.key)?String(e.key):"",name:m(e.name)?String(e.name):"",uri:m(e.uri)?String(e.uri):"",groupLabel:m(e.groupLabel)?String(e.groupLabel):"",imageUri:m(e.imageUri)?String(e.imageUri):"",pinned:!!m(e.pinned)&&Boolean(e.pinned),pinnable:m(e.pinnable)?c(e.pinnable):0,offlineAvailability:m(e.offlineAvailability)?d(e.offlineAvailability):0}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.name&&(t.name=e.name),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.pinned&&(t.pinned=e.pinned),void 0!==e.pinnable&&(t.pinnable=u(e.pinnable)),void 0!==e.offlineAvailability&&(t.offlineAvailability=p(e.offlineAvailability)),t},fromPartial(e){const t={key:"",name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0};return t.key=e.key??"",t.name=e.name??"",t.uri=e.uri??"",t.groupLabel=e.groupLabel??"",t.imageUri=e.imageUri??"",t.pinned=e.pinned??!1,t.pinnable=e.pinnable??0,t.offlineAvailability=e.offlineAvailability??0,t}},t.Offline={fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.YourLibraryAlbumExtraInfo={fromJSON:e=>({artistName:m(e.artistName)?String(e.artistName):""}),toJSON(e){const t={};return void 0!==e.artistName&&(t.artistName=e.artistName),t},fromPartial(e){const t={artistName:""};return t.artistName=e.artistName??"",t}},t.YourLibraryArtistExtraInfo={fromJSON:e=>({hasLikedTracksOrAlbums:!!m(e.hasLikedTracksOrAlbums)&&Boolean(e.hasLikedTracksOrAlbums)}),toJSON(e){const t={};return void 0!==e.hasLikedTracksOrAlbums&&(t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums),t},fromPartial(e){const t={hasLikedTracksOrAlbums:!1};return t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums??!1,t}},t.YourLibraryPlaylistExtraInfo={fromJSON:e=>({creatorName:m(e.creatorName)?String(e.creatorName):"",isLoading:!!m(e.isLoading)&&Boolean(e.isLoading),canView:!!m(e.canView)&&Boolean(e.canView)}),toJSON(e){const t={};return void 0!==e.creatorName&&(t.creatorName=e.creatorName),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.canView&&(t.canView=e.canView),t},fromPartial(e){const t={creatorName:"",isLoading:!1,canView:!1};return t.creatorName=e.creatorName??"",t.isLoading=e.isLoading??!1,t.canView=e.canView??!1,t}},t.YourLibraryShowExtraInfo={fromJSON:e=>({creatorName:m(e.creatorName)?String(e.creatorName):"",publishDate:m(e.publishDate)?String(e.publishDate):"0",isMusicAndTalk:!!m(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),numberOfDownloadedEpisodes:m(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return void 0!==e.creatorName&&(t.creatorName=e.creatorName),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};return t.creatorName=e.creatorName??"",t.publishDate=e.publishDate??"0",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryFolderExtraInfo={fromJSON:e=>({numberOfPlaylists:m(e.numberOfPlaylists)?Number(e.numberOfPlaylists):0,numberOfFolders:m(e.numberOfFolders)?Number(e.numberOfFolders):0}),toJSON(e){const t={};return void 0!==e.numberOfPlaylists&&(t.numberOfPlaylists=Math.round(e.numberOfPlaylists)),void 0!==e.numberOfFolders&&(t.numberOfFolders=Math.round(e.numberOfFolders)),t},fromPartial(e){const t={numberOfPlaylists:0,numberOfFolders:0};return t.numberOfPlaylists=e.numberOfPlaylists??0,t.numberOfFolders=e.numberOfFolders??0,t}},t.YourLibraryLikedSongsExtraInfo={fromJSON:e=>({numberOfSongs:m(e.numberOfSongs)?Number(e.numberOfSongs):0}),toJSON(e){const t={};return void 0!==e.numberOfSongs&&(t.numberOfSongs=Math.round(e.numberOfSongs)),t},fromPartial(e){const t={numberOfSongs:0};return t.numberOfSongs=e.numberOfSongs??0,t}},t.YourLibraryYourEpisodesExtraInfo={fromJSON:e=>({numberOfDownloadedEpisodes:m(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={numberOfDownloadedEpisodes:0};return t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryNewEpisodesExtraInfo={fromJSON:e=>({publishDate:m(e.publishDate)?String(e.publishDate):"0"}),toJSON(e){const t={};return void 0!==e.publishDate&&(t.publishDate=e.publishDate),t},fromPartial(e){const t={publishDate:"0"};return t.publishDate=e.publishDate??"0",t}},t.YourLibraryLocalFilesExtraInfo={fromJSON:e=>({numberOfFiles:m(e.numberOfFiles)?Number(e.numberOfFiles):0}),toJSON(e){const t={};return void 0!==e.numberOfFiles&&(t.numberOfFiles=Math.round(e.numberOfFiles)),t},fromPartial(e){const t={numberOfFiles:0};return t.numberOfFiles=e.numberOfFiles??0,t}},t.YourLibraryBookExtraInfo={fromJSON:e=>({authorName:m(e.authorName)?String(e.authorName):"",access:m(e.access)?f(e.access):0}),toJSON(e){const t={};return void 0!==e.authorName&&(t.authorName=e.authorName),void 0!==e.access&&(t.access=h(e.access)),t},fromPartial(e){const t={authorName:"",access:0};return t.authorName=e.authorName??"",t.access=e.access??0,t}},t.YourLibraryDecoratedEntity={fromJSON:e=>({entityInfo:m(e.entityInfo)?t.YourLibraryEntityInfo.fromJSON(e.entityInfo):void 0,album:m(e.album)?t.YourLibraryAlbumExtraInfo.fromJSON(e.album):void 0,artist:m(e.artist)?t.YourLibraryArtistExtraInfo.fromJSON(e.artist):void 0,playlist:m(e.playlist)?t.YourLibraryPlaylistExtraInfo.fromJSON(e.playlist):void 0,show:m(e.show)?t.YourLibraryShowExtraInfo.fromJSON(e.show):void 0,folder:m(e.folder)?t.YourLibraryFolderExtraInfo.fromJSON(e.folder):void 0,likedSongs:m(e.likedSongs)?t.YourLibraryLikedSongsExtraInfo.fromJSON(e.likedSongs):void 0,yourEpisodes:m(e.yourEpisodes)?t.YourLibraryYourEpisodesExtraInfo.fromJSON(e.yourEpisodes):void 0,newEpisodes:m(e.newEpisodes)?t.YourLibraryNewEpisodesExtraInfo.fromJSON(e.newEpisodes):void 0,localFiles:m(e.localFiles)?t.YourLibraryLocalFilesExtraInfo.fromJSON(e.localFiles):void 0,book:m(e.book)?t.YourLibraryBookExtraInfo.fromJSON(e.book):void 0}),toJSON(e){const n={};return void 0!==e.entityInfo&&(n.entityInfo=e.entityInfo?t.YourLibraryEntityInfo.toJSON(e.entityInfo):void 0),void 0!==e.album&&(n.album=e.album?t.YourLibraryAlbumExtraInfo.toJSON(e.album):void 0),void 0!==e.artist&&(n.artist=e.artist?t.YourLibraryArtistExtraInfo.toJSON(e.artist):void 0),void 0!==e.playlist&&(n.playlist=e.playlist?t.YourLibraryPlaylistExtraInfo.toJSON(e.playlist):void 0),void 0!==e.show&&(n.show=e.show?t.YourLibraryShowExtraInfo.toJSON(e.show):void 0),void 0!==e.folder&&(n.folder=e.folder?t.YourLibraryFolderExtraInfo.toJSON(e.folder):void 0),void 0!==e.likedSongs&&(n.likedSongs=e.likedSongs?t.YourLibraryLikedSongsExtraInfo.toJSON(e.likedSongs):void 0),void 0!==e.yourEpisodes&&(n.yourEpisodes=e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.toJSON(e.yourEpisodes):void 0),void 0!==e.newEpisodes&&(n.newEpisodes=e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.toJSON(e.newEpisodes):void 0),void 0!==e.localFiles&&(n.localFiles=e.localFiles?t.YourLibraryLocalFilesExtraInfo.toJSON(e.localFiles):void 0),void 0!==e.book&&(n.book=e.book?t.YourLibraryBookExtraInfo.toJSON(e.book):void 0),n},fromPartial(e){const n={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0};return n.entityInfo=void 0!==e.entityInfo&&null!==e.entityInfo?t.YourLibraryEntityInfo.fromPartial(e.entityInfo):void 0,n.album=void 0!==e.album&&null!==e.album?t.YourLibraryAlbumExtraInfo.fromPartial(e.album):void 0,n.artist=void 0!==e.artist&&null!==e.artist?t.YourLibraryArtistExtraInfo.fromPartial(e.artist):void 0,n.playlist=void 0!==e.playlist&&null!==e.playlist?t.YourLibraryPlaylistExtraInfo.fromPartial(e.playlist):void 0,n.show=void 0!==e.show&&null!==e.show?t.YourLibraryShowExtraInfo.fromPartial(e.show):void 0,n.folder=void 0!==e.folder&&null!==e.folder?t.YourLibraryFolderExtraInfo.fromPartial(e.folder):void 0,n.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?t.YourLibraryLikedSongsExtraInfo.fromPartial(e.likedSongs):void 0,n.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.fromPartial(e.yourEpisodes):void 0,n.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.fromPartial(e.newEpisodes):void 0,n.localFiles=void 0!==e.localFiles&&null!==e.localFiles?t.YourLibraryLocalFilesExtraInfo.fromPartial(e.localFiles):void 0,n.book=void 0!==e.book&&null!==e.book?t.YourLibraryBookExtraInfo.fromPartial(e.book):void 0,n}},t.YourLibraryAvailableEntityTypes={fromJSON:e=>({albums:!!m(e.albums)&&Boolean(e.albums),artists:!!m(e.artists)&&Boolean(e.artists),playlists:!!m(e.playlists)&&Boolean(e.playlists),shows:!!m(e.shows)&&Boolean(e.shows),books:!!m(e.books)&&Boolean(e.books),playlistByYou:!!m(e.playlistByYou)&&Boolean(e.playlistByYou),playlistBySpotify:!!m(e.playlistBySpotify)&&Boolean(e.playlistBySpotify)}),toJSON(e){const t={};return void 0!==e.albums&&(t.albums=e.albums),void 0!==e.artists&&(t.artists=e.artists),void 0!==e.playlists&&(t.playlists=e.playlists),void 0!==e.shows&&(t.shows=e.shows),void 0!==e.books&&(t.books=e.books),void 0!==e.playlistByYou&&(t.playlistByYou=e.playlistByYou),void 0!==e.playlistBySpotify&&(t.playlistBySpotify=e.playlistBySpotify),t},fromPartial(e){const t={albums:!1,artists:!1,playlists:!1,shows:!1,books:!1,playlistByYou:!1,playlistBySpotify:!1};return t.albums=e.albums??!1,t.artists=e.artists??!1,t.playlists=e.playlists??!1,t.shows=e.shows??!1,t.books=e.books??!1,t.playlistByYou=e.playlistByYou??!1,t.playlistBySpotify=e.playlistBySpotify??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},6714:function(e,t,n){var o;e=n.nmd(e),function(i){var r=t,a=(e&&e.exports,"object"==typeof n.g&&n.g);a.global!==a&&a.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var l=function(e){throw new s(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,o,i,r=e.length%3,a="",s=-1,u=e.length-r;++s<u;)t=e.charCodeAt(s)<<16,n=e.charCodeAt(++s)<<8,o=e.charCodeAt(++s),a+=c.charAt((i=t+n+o)>>18&63)+c.charAt(i>>12&63)+c.charAt(i>>6&63)+c.charAt(63&i);return 2==r?(t=e.charCodeAt(s)<<8,n=e.charCodeAt(++s),a+=c.charAt((i=t+n)>>10)+c.charAt(i>>4&63)+c.charAt(i<<2&63)+"="):1==r&&(i=e.charCodeAt(s),a+=c.charAt(i>>2)+c.charAt(i<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(u,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var n,o,i=0,r="",a=-1;++a<t;)o=c.indexOf(e.charAt(a)),n=i%4?64*n+o:o,i++%4&&(r+=String.fromCharCode(255&n>>(-2*i&6)));return r},version:"1.0.0"};void 0===(o=function(){return d}.call(t,n,t,e))||(e.exports=o)}()},65415:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,r=[],a=16383,s=0,l=o-i;s<l;s+=a)r.push(c(e,s,s+a>l?l:s+a));1===i?(t=e[o-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[o-2]<<8)+e[o-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return r.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=r.length;a<s;++a)n[a]=r[a],o[r.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,o){for(var i,r,a=[],s=t;s<o;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(r=i)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},19496:function(e){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,o){void 0===o&&(o=!1);var i=e.getVersionPrecision(t),r=e.getVersionPrecision(n),a=Math.max(i,r),s=0,l=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),o=t+new Array(n+1).join(".0");return e.map(o.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(o&&(s=a-Math.min(i,r)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}},e.map=function(e,t){var n,o=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)o.push(t(e[n]));return o},e.find=function(e,t){var n,o;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,o=e.length;n<o;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,o=e,i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(r));var s=function(){var e=r[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){o[t]=e[t]}))};for(t=0,n=r.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return o.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return o.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o,i=(o=n(91))&&o.__esModule?o:{default:o},r=n(18);function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(){function e(){}var t,n,o;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,o=[{key:"BROWSER_MAP",get:function(){return r.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return r.ENGINE_MAP}},{key:"OS_MAP",get:function(){return r.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return r.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),o&&a(t,o),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o=l(n(92)),i=l(n(93)),r=l(n(94)),a=l(n(95)),s=l(n(17));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},o=0,i={},r=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,r+=1):"object"==typeof a&&(n[t]=a,o+=1)})),o>0){var a=Object.keys(n),l=s.default.find(a,(function(e){return t.isOS(e)}));if(l){var c=this.satisfies(n[l]);if(void 0!==c)return c}var u=s.default.find(a,(function(e){return t.isPlatform(e)}));if(u){var d=this.satisfies(n[u]);if(void 0!==d)return d}}if(r>0){var p=Object.keys(i),f=s.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),o=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(o);return t&&i&&(o=i.toLowerCase()),o===n},t.compareVersion=function(e){var t=[0],n=e,o=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(o=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(o=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,o))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o,i=(o=n(17))&&o.__esModule?o:{default:o},r=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(r,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o,i=(o=n(17))&&o.__esModule?o:{default:o},r=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:r.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:r.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:r.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),o={name:r.OS_MAP.MacOS,version:t};return n&&(o.versionName=n),o}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:r.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),o={name:r.OS_MAP.Android,version:t};return n&&(o.versionName=n),o}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:r.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:r.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:r.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:r.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o,i=(o=n(17))&&o.__esModule?o:{default:o},r=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:r.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:r.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:r.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o,i=(o=n(17))&&o.__esModule?o:{default:o},r=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:r.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:r.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:r.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:r.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:r.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:r.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:r.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},55872:(e,t,n)=>{"use strict";const o=n(65415),i=n(30551),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let o=s(n);const i=o.write(e,t);i!==n&&(o=o.slice(0,i));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(q(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(q(e,SharedArrayBuffer)||e&&q(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||X(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,l.prototype),o}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return o?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function v(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function y(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:_(e,t,n,o,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,o,i){let r,a=1,s=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let o=-1;for(r=n;r<s;r++)if(c(e,r)===c(t,-1===o?0:r-o)){if(-1===o&&(o=r),r-o+1===l)return o*a}else-1!==o&&(r-=r-o),o=-1}else for(n+l>s&&(n=s-l),r=n;r>=0;r--){let n=!0;for(let o=0;o<l;o++)if(c(e,r+o)!==c(t,o)){n=!1;break}if(n)return r}return-1}function b(e,t,n,o){n=Number(n)||0;const i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;const r=t.length;let a;for(o>r/2&&(o=r/2),a=0;a<o;++a){const o=parseInt(t.substr(2*a,2),16);if(X(o))return a;e[n+a]=o}return a}function S(e,t,n,o){return z(Y(t,e.length-n),e,n,o)}function E(e,t,n,o){return z(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function A(e,t,n,o){return z(W(t),e,n,o)}function T(e,t,n,o){return z(function(e,t){let n,o,i;const r=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,i=n%256,r.push(i),r.push(o);return r}(t,e.length-n),e,n,o)}function P(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);const o=[];let i=t;for(;i<n;){const t=e[i];let r=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,o,s,l;switch(a){case 1:t<128&&(r=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(r=l));break;case 3:n=e[i+1],o=e[i+2],128==(192&n)&&128==(192&o)&&(l=(15&t)<<12|(63&n)<<6|63&o,l>2047&&(l<55296||l>57343)&&(r=l));break;case 4:n=e[i+1],o=e[i+2],s=e[i+3],128==(192&n)&&128==(192&o)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(r=l))}}null===r?(r=65533,a=1):r>65535&&(r-=65536,o.push(r>>>10&1023|55296),r=56320|1023&r),o.push(r),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=C));return n}(o)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let i=0,r=Math.min(n,o);i<r;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const o=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(q(t,Uint8Array))i+t.length>o.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,i)}i+=t.length}return o},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(e,t,n,o,i){if(q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(i>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(r,a),c=this.slice(o,i),u=e.slice(t,n);for(let e=0;e<s;++e)if(c[e]!==u[e]){r=c[e],a=u[e];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let r=!1;for(;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function k(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}function R(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}function L(e,t,n){const o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);let i="";for(let o=t;o<n;++o)i+=Z[e[o]];return i}function I(e,t,n){const o=e.slice(t,n);let i="";for(let e=0;e<o.length-1;e+=2)i+=String.fromCharCode(o[e]+256*o[e+1]);return i}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,n,o,i,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function D(e,t,n,o,i){J(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,o,i){J(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function x(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,o,r){return t=+t,n>>>=0,r||x(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function U(e,t,n,o,r){return t=+t,n>>>=0,r||x(e,0,n,8),i.write(e,t,n,o,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const o=this.subarray(e,t);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return o},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(o)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let o=this[e],i=1,r=0;for(;++r<t&&(i*=256);)o+=this[e+r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let o=t,i=1,r=this[e+--o];for(;o>0&&(i*=256);)r+=this[e+--o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){w(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,r=0;for(this[t]=255&e;++r<n&&(i*=256);)this[t+r]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){w(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);w(this,e,t,n,o-1,-o)}let i=0,r=1,a=0;for(this[t]=255&e;++i<n&&(r*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/r>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);w(this,e,t,n,o-1,-o)}let i=n-1,r=1,a=0;for(this[t+i]=255&e;--i>=0&&(r*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/r>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);const i=o-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),i},l.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(1===e.length){const t=e.charCodeAt(0);("utf8"===o&&t<128||"latin1"===o)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const r=l.isBuffer(e)?e:l.from(e,o),a=r.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=r[i%a]}return this};const B={};function V(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function G(e){let t="",n=e.length;const o="-"===e[0]?1:0;for(;n>=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function J(e,t,n,o,i,r){if(e>n||e<t){const o="bigint"==typeof t?"n":"";let i;throw i=r>3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(r+1)}${o}`:`>= -(2${o} ** ${8*(r+1)-1}${o}) and < 2 ** ${8*(r+1)-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(o,i,r)}function j(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw j(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,n){let o=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=G(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=G(i)),i+="n"),o+=` It must be ${t}. Received ${i}`,o}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function Y(e,t){let n;t=t||1/0;const o=e.length;let i=null;const r=[];for(let a=0;a<o;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function W(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,o){let i;for(i=0;i<o&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const o=16*n;for(let i=0;i<16;++i)t[o+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},84875:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},44589:(e,t,n)=>{var o=n(13337),i={};for(var r in o)o.hasOwnProperty(r)&&(i[o[r]]=r);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:c})}function u(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}a.rgb.hsl=function(e){var t,n,o=e[0]/255,i=e[1]/255,r=e[2]/255,a=Math.min(o,i,r),s=Math.max(o,i,r),l=s-a;return s===a?t=0:o===s?t=(i-r)/l:i===s?t=2+(r-o)/l:r===s&&(t=4+(o-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,o,i,r,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?i=r=0:(r=u/c,t=d(a),n=d(s),o=d(l),a===c?i=o-n:s===c?i=1/3+t-o:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,o))),100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,o=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-o,1-i)))/(1-t)||0),100*((1-o-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,r=1/0;for(var a in o)if(o.hasOwnProperty(a)){var s=u(e,o[a]);s<r&&(r=s,n=a)}return n},a.keyword.rgb=function(e){return o[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*t+.7152*n+.0722*o),100*(.0193*t+.1192*n+.9505*o)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,o,i,r,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[r=255*l,r,r];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(o=a+1/3*-(c-1))<0&&o++,o>1&&o--,r=6*o<1?t+6*(n-t)*o:2*o<1?n:3*o<2?t+(n-t)*(2/3-o)*6:t,i[c]=255*r;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,o=e[2]/100,i=n,r=Math.max(o,.01);return n*=(o*=2)<=1?o:2-o,i*=r<=1?r:2-r,[t,100*(0===o?2*i/(r+i):2*n/(o+n)),100*((o+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,o=e[2]/100,i=Math.floor(t)%6,r=t-Math.floor(t),a=255*o*(1-n),s=255*o*(1-n*r),l=255*o*(1-n*(1-r));switch(o*=255,i){case 0:return[o,l,a];case 1:return[s,o,a];case 2:return[a,o,l];case 3:return[a,s,o];case 4:return[l,a,o];case 5:return[o,a,s]}},a.hsv.hsl=function(e){var t,n,o,i=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return o=(2-r)*a,n=r*s,[i,100*(n=(n/=(t=(2-r)*s)<=1?t:2-t)||0),100*(o/=2)]},a.hwb.rgb=function(e){var t,n,o,i,r,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),o=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(o=1-o),i=c+o*((n=1-u)-c),t){default:case 6:case 0:r=n,a=i,s=c;break;case 1:r=i,a=n,s=c;break;case 2:r=c,a=n,s=i;break;case 3:r=c,a=i,s=n;break;case 4:r=i,a=c,s=n;break;case 5:r=n,a=c,s=i}return[255*r,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,o=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,o*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,o,i=e[0]/100,r=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*r+.0415*a,o=.0557*i+-.204*r+1.057*a,t=(t=3.2406*i+-1.5372*r+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.lab.xyz=function(e){var t,n,o,i=e[0];t=e[1]/500+(n=(i+16)/116),o=n-e[2]/200;var r=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(o,3);return n=r>.008856?r:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,o=s>.008856?s:(o-16/116)/7.787,[t*=95.047,n*=100,o*=108.883]},a.lab.lch=function(e){var t,n=e[0],o=e[1],i=e[2];return(t=360*Math.atan2(i,o)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(o*o+i*i),t]},a.lch.lab=function(e){var t,n=e[0],o=e[1];return t=e[2]/360*2*Math.PI,[n,o*Math.cos(t),o*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var r=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(r+=60),r},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],o=e[2];return t===n&&n===o?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var o=parseInt(n,16);return[o>>16&255,o>>8&255,255&o]},a.rgb.hcg=function(e){var t,n=e[0]/255,o=e[1]/255,i=e[2]/255,r=Math.max(Math.max(n,o),i),a=Math.min(Math.min(n,o),i),s=r-a;return t=s<=0?0:r===n?(o-i)/s%6:r===o?2+(i-n)/s:4+(n-o)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,o=1,i=0;return(o=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*o)/(1-o)),[e[0],100*o,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,o=t*n,i=0;return o<1&&(i=(n-o)/(1-o)),[e[0],100*o,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,o=e[2]/100;if(0===n)return[255*o,255*o,255*o];var i,r=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return i=(1-n)*o,[255*(n*r[0]+i),255*(n*r[1]+i),255*(n*r[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),o=0;return n>0&&(o=t/n),[e[0],100*o,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],100*o,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,o=n-t,i=0;return o<1&&(i=(n-o)/(1-o)),[e[0],100*o,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},18358:(e,t,n)=>{var o=n(44589),i=n(3314),r={};Object.keys(o).forEach((function(e){r[e]={},Object.defineProperty(r[e],"channels",{value:o[e].channels}),Object.defineProperty(r[e],"labels",{value:o[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var o=t[n];r[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var o=n.length,i=0;i<o;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(o),r[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(o)}))})),e.exports=r},3314:(e,t,n)=>{var o=n(44589);function i(e){var t=function(){for(var e={},t=Object.keys(o),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),r=Object.keys(o[i]),a=r.length,s=0;s<a;s++){var l=r[s],c=t[l];-1===c.distance&&(c.distance=t[i].distance+1,c.parent=i,n.unshift(l))}return t}function r(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],i=o[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),i=r(o[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){for(var t=i(e),n={},o=Object.keys(t),r=o.length,s=0;s<r;s++){var l=o[s];null!==t[l].parent&&(n[l]=a(l,t))}return n}},13337:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},99419:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2489:(e,t,n)=>{var o=n(99419),i=n(27933),r=Object.hasOwnProperty,a=Object.create(null);for(var s in o)r.call(o,s)&&(a[o[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:r.call(o,t[1])?((a=o[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=c(a[n],0,255);return a[3]=c(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),o=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+o+"%)":"rgba("+t+"%, "+n+"%, "+o+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},74654:(e,t,n)=>{"use strict";var o=n(2489),i=n(18358),r=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[r.call(i[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=o.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=i[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=i[this.model].channels;var f=r.call(e,0,u);this.color=p(f,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=h.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,v=[];for(n=0;n<g.length;n++)v.push(e[g[n]]);this.color=p(v)}if(l[this.model])for(u=i[this.model].channels,n=0;n<u;n++){var y=l[this.model][n];y&&(this.color[n]=y(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(e,t,n){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(l[e]||(l[e]=[]))[t]=n})),e=e[0],function(o){var i;return arguments.length?(n&&(o=n(o)),(i=this[e]()).color[t]=o,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e,t){for(var n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in o.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return o.to[t.model](n)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:t.color.concat(this.valpha);return o.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=i[this.model].channels,n=i[this.model].labels,o=0;o<t;o++)e[n[o]]=this.color[o];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new c(this.color.map(function(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(function(e){return(e%360+360)%360})),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(100)),y:u("xyz",1,d(100)),z:u("xyz",2,d(100)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword:function(e){return arguments.length?new c(e):i[this.model].keyword(this.color)},hex:function(e){return arguments.length?new c(e):o.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var o=e[n]/255;t[n]=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),o=this.rgb(),i=void 0===t?.5:t,r=2*i-1,a=n.alpha()-o.alpha(),s=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-s;return c.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue(),n.alpha()*i+o.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===a.indexOf(e)){var t=i[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n,o="number"==typeof arguments[t]?t:this.valpha;return new c((n=i[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(o),e)},c[e]=function(n){return"number"==typeof n&&(n=p(r.call(arguments),t)),new c(n,e)}}})),e.exports=c},22839:(e,t,n)=>{var o=n(17833),i=n(65222),r=TypeError;e.exports=function(e){if(o(e))return e;throw r(i(e)+" is not a function")}},24336:(e,t,n)=>{var o=n(17833),i=String,r=TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw r("Can't set "+i(e)+" as a prototype")}},20666:(e,t,n)=>{var o=n(9765),i=n(48892),r=n(5184).f,a=o("unscopables"),s=Array.prototype;null==s[a]&&r(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},62533:(e,t,n)=>{var o=n(86919),i=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},70195:(e,t,n)=>{var o=n(14679),i=String,r=TypeError;e.exports=function(e){if(o(e))return e;throw r(i(e)+" is not an object")}},70793:(e,t,n)=>{var o=n(59631);e.exports=function(e,t){for(var n=0,i=o(t),r=new e(i);i>n;)r[n]=t[n++];return r}},79801:(e,t,n)=>{var o=n(91482),i=n(85581),r=n(90041),a=n(70928),s=n(58195),l=n(59631),c=n(48892),u=n(70793),d=Array,p=i([].push);e.exports=function(e,t,n,i){for(var f,h,m,g=a(e),v=r(g),y=o(t,n),_=c(null),b=l(v),S=0;b>S;S++)m=v[S],(h=s(y(m,S,g)))in _?p(_[h],m):_[h]=[m];if(i&&(f=i(g))!==d)for(h in _)_[h]=u(f,_[h]);return _}},79099:(e,t,n)=>{var o=n(243),i=n(47973),r=n(59631),a=function(e){return function(t,n,a){var s,l=o(t),c=r(l),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},87289:(e,t,n)=>{var o=n(85581);e.exports=o([].slice)},21919:(e,t,n)=>{var o=n(85581),i=o({}.toString),r=o("".slice);e.exports=function(e){return r(i(e),8,-1)}},2562:(e,t,n)=>{var o=n(22415),i=n(17833),r=n(21919),a=n(9765)("toStringTag"),s=Object,l="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?r(t):"Object"==(o=r(t))&&i(t.callee)?"Arguments":o}},33830:(e,t,n)=>{var o=n(76031),i=n(71250),r=n(29630),a=n(5184);e.exports=function(e,t,n){for(var s=i(t),l=a.f,c=r.f,u=0;u<s.length;u++){var d=s[u];o(e,d)||n&&o(n,d)||l(e,d,c(t,d))}}},90427:(e,t,n)=>{var o=n(97057),i=n(5184),r=n(24431);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},24431:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3437:(e,t,n)=>{"use strict";var o=n(58195),i=n(5184),r=n(24431);e.exports=function(e,t,n){var a=o(t);a in e?i.f(e,a,r(0,n)):e[a]=n}},77309:(e,t,n)=>{var o=n(17833),i=n(5184),r=n(1262),a=n(99329);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&r(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},99329:(e,t,n)=>{var o=n(91642),i=Object.defineProperty;e.exports=function(e,t){try{i(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},97057:(e,t,n)=>{var o=n(24074);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},68438:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},16603:(e,t,n)=>{var o=n(91642),i=n(14679),r=o.document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},88738:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},96911:(e,t,n)=>{var o=n(67321),i=n(78468);e.exports=!o&&!i&&"object"==typeof window&&"object"==typeof document},24192:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},67321:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},68860:(e,t,n)=>{var o=n(7009);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},78468:(e,t,n)=>{var o=n(14224),i=n(21919);e.exports=void 0!==o&&"process"==i(o)},7009:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},81552:(e,t,n)=>{var o,i,r=n(91642),a=n(7009),s=r.process,l=r.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(o=u.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(i=+o[1]),e.exports=i},37884:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},75863:(e,t,n)=>{var o=n(85581),i=Error,r=o("".replace),a=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=r(e,s,"");return e}},77154:(e,t,n)=>{var o=n(24074),i=n(24431);e.exports=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},41959:(e,t,n)=>{var o=n(91642),i=n(29630).f,r=n(90427),a=n(77309),s=n(99329),l=n(33830),c=n(68004);e.exports=function(e,t){var n,u,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?o:g?o[h]||s(h,{}):(o[h]||{}).prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(f=i(n,u))&&f.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&r(p,"sham",!0),a(n,u,p,e)}}},24074:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},42109:(e,t,n)=>{var o=n(57821),i=Function.prototype,r=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(r):function(){return a.apply(r,arguments)})},91482:(e,t,n)=>{var o=n(97141),i=n(22839),r=n(57821),a=o(o.bind);e.exports=function(e,t){return i(e),void 0===t?e:r?a(e,t):function(){return e.apply(t,arguments)}}},57821:(e,t,n)=>{var o=n(24074);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},63248:(e,t,n)=>{var o=n(57821),i=Function.prototype.call;e.exports=o?i.bind(i):function(){return i.apply(i,arguments)}},10928:(e,t,n)=>{var o=n(97057),i=n(76031),r=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=i(r,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(r,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},79616:(e,t,n)=>{var o=n(85581),i=n(22839);e.exports=function(e,t,n){try{return o(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},97141:(e,t,n)=>{var o=n(21919),i=n(85581);e.exports=function(e){if("Function"===o(e))return i(e)}},85581:(e,t,n)=>{var o=n(57821),i=Function.prototype,r=i.call,a=o&&i.bind.bind(r,r);e.exports=o?a:function(e){return function(){return r.apply(e,arguments)}}},16392:(e,t,n)=>{var o=n(91642),i=n(17833);e.exports=function(e,t){return arguments.length<2?(n=o[e],i(n)?n:void 0):o[e]&&o[e][t];var n}},22544:(e,t,n)=>{var o=n(2562),i=n(88384),r=n(3241),a=n(5251),s=n(9765)("iterator");e.exports=function(e){if(!r(e))return i(e,s)||i(e,"@@iterator")||a[o(e)]}},29408:(e,t,n)=>{var o=n(63248),i=n(22839),r=n(70195),a=n(65222),s=n(22544),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return r(o(n,e));throw l(a(e)+" is not iterable")}},88384:(e,t,n)=>{var o=n(22839),i=n(3241);e.exports=function(e,t){var n=e[t];return i(n)?void 0:o(n)}},91642:(e,t,n)=>{var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},76031:(e,t,n)=>{var o=n(85581),i=n(70928),r=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(i(e),t)}},741:e=>{e.exports={}},3004:(e,t,n)=>{var o=n(16392);e.exports=o("document","documentElement")},49472:(e,t,n)=>{var o=n(97057),i=n(24074),r=n(16603);e.exports=!o&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},90041:(e,t,n)=>{var o=n(85581),i=n(24074),r=n(21919),a=Object,s=o("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s(e,""):a(e)}:a},95446:(e,t,n)=>{var o=n(17833),i=n(14679),r=n(96250);e.exports=function(e,t,n){var a,s;return r&&o(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&r(e,s),e}},62795:(e,t,n)=>{var o=n(85581),i=n(17833),r=n(52752),a=o(Function.toString);i(r.inspectSource)||(r.inspectSource=function(e){return a(e)}),e.exports=r.inspectSource},5744:(e,t,n)=>{var o,i,r,a=n(99928),s=n(91642),l=n(14679),c=n(90427),u=n(76031),d=n(52752),p=n(76714),f=n(741),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,o=function(e,t){if(v.has(e))throw m(h);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var y=p("state");f[y]=!0,o=function(e,t){if(u(e,y))throw m(h);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},r=function(e){return u(e,y)}}e.exports={set:o,get:i,has:r,enforce:function(e){return r(e)?i(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},215:(e,t,n)=>{var o=n(9765),i=n(5251),r=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},17833:(e,t,n)=>{var o=n(68438),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},9530:(e,t,n)=>{var o=n(85581),i=n(24074),r=n(17833),a=n(2562),s=n(16392),l=n(62795),c=function(){},u=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=o(p.exec),h=!p.exec(c),m=function(e){if(!r(e))return!1;try{return d(c,u,e),!0}catch(e){return!1}},g=function(e){if(!r(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(p,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},68004:(e,t,n)=>{var o=n(24074),i=n(17833),r=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(i(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},3241:e=>{e.exports=function(e){return null==e}},14679:(e,t,n)=>{var o=n(17833),i=n(68438),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:o(e)||e===r}:function(e){return"object"==typeof e?null!==e:o(e)}},70956:e=>{e.exports=!1},88032:(e,t,n)=>{var o=n(16392),i=n(17833),r=n(86919),a=n(6502),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&r(t.prototype,s(e))}},24424:(e,t,n)=>{var o=n(91482),i=n(63248),r=n(70195),a=n(65222),s=n(215),l=n(59631),c=n(86919),u=n(29408),d=n(22544),p=n(13373),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,v,y,_,b,S,E,A=n&&n.that,T=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),k=o(t,A),R=function(e){return g&&p(g,"normal",e),new h(!0,e)},L=function(e){return T?(r(e),C?k(e[0],e[1],R):k(e[0],e[1])):C?k(e,R):k(e)};if(P)g=e.iterator;else if(O)g=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(y=0,_=l(e);_>y;y++)if((b=L(e[y]))&&c(m,b))return b;return new h(!1)}g=u(e,v)}for(S=P?e.next:g.next;!(E=i(S,g)).done;){try{b=L(E.value)}catch(e){p(g,"throw",e)}if("object"==typeof b&&b&&c(m,b))return b}return new h(!1)}},13373:(e,t,n)=>{var o=n(63248),i=n(70195),r=n(88384);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=r(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},5251:e=>{e.exports={}},59631:(e,t,n)=>{var o=n(79397);e.exports=function(e){return o(e.length)}},1262:(e,t,n)=>{var o=n(85581),i=n(24074),r=n(17833),a=n(76031),s=n(97057),l=n(10928).CONFIGURABLE,c=n(62795),u=n(5744),d=u.enforce,p=u.get,f=String,h=Object.defineProperty,m=o("".slice),g=o("".replace),v=o([].join),y=s&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=d(e);return a(o,"source")||(o.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return r(this)&&p(this).source||c(this)}),"toString")},43105:(e,t,n)=>{var o=n(85581),i=Map.prototype;e.exports={Map,set:o(i.set),get:o(i.get),has:o(i.has),remove:o(i.delete),proto:i}},49749:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},26485:(e,t,n)=>{var o=n(18299);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:o(e)}},48892:(e,t,n)=>{var o,i=n(70195),r=n(325),a=n(37884),s=n(741),l=n(3004),c=n(16603),u=n(76714),d="prototype",p="script",f=u("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&o?g(o):(t=c("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(o);for(var i=a.length;i--;)delete v[d][a[i]];return v()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=i(e),n=new h,h[d]=null,n[f]=e):n=v(),void 0===t?n:r.f(n,t)}},325:(e,t,n)=>{var o=n(97057),i=n(11338),r=n(5184),a=n(70195),s=n(243),l=n(83355);t.f=o&&!i?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),i=l(t),c=i.length,u=0;c>u;)r.f(e,n=i[u++],o[n]);return e}},5184:(e,t,n)=>{var o=n(97057),i=n(49472),r=n(11338),a=n(70195),s=n(58195),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=o?r?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var o=u(e,t);o&&o[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:o[p],enumerable:d in n?n[d]:o[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},29630:(e,t,n)=>{var o=n(97057),i=n(63248),r=n(50347),a=n(24431),s=n(243),l=n(58195),c=n(76031),u=n(49472),d=Object.getOwnPropertyDescriptor;t.f=o?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!i(r.f,e,t),e[t])}},18933:(e,t,n)=>{var o=n(1778),i=n(37884).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},1307:(e,t)=>{t.f=Object.getOwnPropertySymbols},86919:(e,t,n)=>{var o=n(85581);e.exports=o({}.isPrototypeOf)},1778:(e,t,n)=>{var o=n(85581),i=n(76031),r=n(243),a=n(79099).indexOf,s=n(741),l=o([].push);e.exports=function(e,t){var n,o=r(e),c=0,u=[];for(n in o)!i(s,n)&&i(o,n)&&l(u,n);for(;t.length>c;)i(o,n=t[c++])&&(~a(u,n)||l(u,n));return u}},83355:(e,t,n)=>{var o=n(1778),i=n(37884);e.exports=Object.keys||function(e){return o(e,i)}},50347:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},96250:(e,t,n)=>{var o=n(79616),i=n(70195),r=n(24336);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return i(n),r(o),t?e(n,o):n.__proto__=o,n}}():void 0)},36029:(e,t,n)=>{var o=n(63248),i=n(17833),r=n(14679),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!r(s=o(n,e)))return s;if(i(n=e.valueOf)&&!r(s=o(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!r(s=o(n,e)))return s;throw a("Can't convert object to primitive value")}},71250:(e,t,n)=>{var o=n(16392),i=n(85581),r=n(18933),a=n(1307),s=n(70195),l=i([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=a.f;return n?l(t,n(e)):t}},1509:(e,t,n)=>{"use strict";var o=n(70195);e.exports=function(){var e=o(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},82574:(e,t,n)=>{var o=n(63248),i=n(76031),r=n(86919),a=n(1509),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!r(s,e)?t:o(a,e)}},77871:(e,t,n)=>{var o=n(3241),i=TypeError;e.exports=function(e){if(o(e))throw i("Can't call method on "+e);return e}},91274:(e,t,n)=>{"use strict";var o,i=n(91642),r=n(42109),a=n(17833),s=n(24192),l=n(7009),c=n(87289),u=n(36278),d=i.Function,p=/MSIE .\./.test(l)||s&&((o=i.Bun.version.split(".")).length<3||0==o[0]&&(o[1]<3||3==o[1]&&0==o[2]));e.exports=function(e,t){var n=t?2:1;return p?function(o,i){var s=u(arguments.length,1)>n,l=a(o)?o:d(o),p=s?c(arguments,n):[],f=s?function(){r(l,this,p)}:l;return t?e(f,i):e(f)}:e}},14612:(e,t,n)=>{var o=n(85581),i=Set.prototype;e.exports={Set,add:o(i.add),has:o(i.has),remove:o(i.delete),proto:i}},76714:(e,t,n)=>{var o=n(61617),i=n(3582),r=o("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},52752:(e,t,n)=>{var o=n(91642),i=n(99329),r="__core-js_shared__",a=o[r]||i(r,{});e.exports=a},61617:(e,t,n)=>{var o=n(70956),i=n(52752);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:o?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})},45799:(e,t,n)=>{var o=n(91642),i=n(24074),r=n(81552),a=n(96911),s=n(67321),l=n(78468),c=o.structuredClone;e.exports=!!c&&!i((function(){if(s&&r>92||l&&r>94||a&&r>97)return!1;var e=new ArrayBuffer(8),t=c(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength}))},97344:(e,t,n)=>{var o=n(81552),i=n(24074);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},70997:(e,t,n)=>{var o,i,r,a,s=n(91642),l=n(42109),c=n(91482),u=n(17833),d=n(76031),p=n(24074),f=n(3004),h=n(87289),m=n(16603),g=n(36278),v=n(68860),y=n(78468),_=s.setImmediate,b=s.clearImmediate,S=s.process,E=s.Dispatch,A=s.Function,T=s.MessageChannel,P=s.String,O=0,C={},k="onreadystatechange";p((function(){o=s.location}));var R=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},L=function(e){return function(){R(e)}},I=function(e){R(e.data)},N=function(e){s.postMessage(P(e),o.protocol+"//"+o.host)};_&&b||(_=function(e){g(arguments.length,1);var t=u(e)?e:A(e),n=h(arguments,1);return C[++O]=function(){l(t,void 0,n)},i(O),O},b=function(e){delete C[e]},y?i=function(e){S.nextTick(L(e))}:E&&E.now?i=function(e){E.now(L(e))}:T&&!v?(a=(r=new T).port2,r.port1.onmessage=I,i=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!p(N)?(i=N,s.addEventListener("message",I,!1)):i=k in m("script")?function(e){f.appendChild(m("script"))[k]=function(){f.removeChild(this),R(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:_,clear:b}},47973:(e,t,n)=>{var o=n(96814),i=Math.max,r=Math.min;e.exports=function(e,t){var n=o(e);return n<0?i(n+t,0):r(n,t)}},243:(e,t,n)=>{var o=n(90041),i=n(77871);e.exports=function(e){return o(i(e))}},96814:(e,t,n)=>{var o=n(49749);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},79397:(e,t,n)=>{var o=n(96814),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},70928:(e,t,n)=>{var o=n(77871),i=Object;e.exports=function(e){return i(o(e))}},80423:(e,t,n)=>{var o=n(63248),i=n(14679),r=n(88032),a=n(88384),s=n(36029),l=n(9765),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||r(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!i(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},58195:(e,t,n)=>{var o=n(80423),i=n(88032);e.exports=function(e){var t=o(e,"string");return i(t)?t:t+""}},22415:(e,t,n)=>{var o={};o[n(9765)("toStringTag")]="z",e.exports="[object z]"===String(o)},18299:(e,t,n)=>{var o=n(2562),i=String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},65222:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3582:(e,t,n)=>{var o=n(85581),i=0,r=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+r,36)}},6502:(e,t,n)=>{var o=n(97344);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},11338:(e,t,n)=>{var o=n(97057),i=n(24074);e.exports=o&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},36278:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},99928:(e,t,n)=>{var o=n(91642),i=n(17833),r=o.WeakMap;e.exports=i(r)&&/native code/.test(String(r))},9765:(e,t,n)=>{var o=n(91642),i=n(61617),r=n(76031),a=n(3582),s=n(97344),l=n(6502),c=o.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return r(u,e)||(u[e]=s&&r(c,e)?c[e]:d("Symbol."+e)),u[e]}},10612:(e,t,n)=>{"use strict";var o=n(41959),i=n(79801),r=n(20666);o({target:"Array",proto:!0},{group:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r("group")},80769:(e,t,n)=>{var o=n(41959),i=n(91642),r=n(70997).clear;o({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==r},{clearImmediate:r})},20464:(e,t,n)=>{"use strict";var o=n(41959),i=n(91642),r=n(16392),a=n(24431),s=n(5184).f,l=n(76031),c=n(62533),u=n(95446),d=n(26485),p=n(88738),f=n(75863),h=n(97057),m=n(70956),g="DOMException",v=r("Error"),y=r(g),_=function(){c(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),o=new y(t,n),i=v(t);return i.name=g,s(o,"stack",a(1,f(i.stack,1))),u(o,this,_),o},b=_.prototype=y.prototype,S="stack"in v(g),E="stack"in new y(1,2),A=y&&h&&Object.getOwnPropertyDescriptor(i,g),T=!(!A||A.writable&&A.configurable),P=S&&!T&&!E;o({global:!0,constructor:!0,forced:m||P},{DOMException:P?_:y});var O=r(g),C=O.prototype;if(C.constructor!==O)for(var k in m||s(C,"constructor",a(1,O)),p)if(l(p,k)){var R=p[k],L=R.s;l(O,L)||s(O,L,a(6,R.c))}},56708:(e,t,n)=>{n(80769),n(26235)},26235:(e,t,n)=>{var o=n(41959),i=n(91642),r=n(70997).set,a=n(91274),s=i.setImmediate?a(r,!1):r;o({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},86504:(e,t,n)=>{var o,i=n(70956),r=n(41959),a=n(91642),s=n(16392),l=n(85581),c=n(24074),u=n(3582),d=n(17833),p=n(9530),f=n(3241),h=n(14679),m=n(88032),g=n(24424),v=n(70195),y=n(2562),_=n(76031),b=n(3437),S=n(90427),E=n(59631),A=n(36278),T=n(82574),P=n(43105),O=n(14612),C=n(77154),k=n(45799),R=a.Object,L=a.Array,I=a.Date,N=a.Error,w=a.EvalError,D=a.RangeError,M=a.ReferenceError,x=a.SyntaxError,F=a.TypeError,U=a.URIError,B=a.PerformanceMark,V=a.WebAssembly,G=V&&V.CompileError||N,J=V&&V.LinkError||N,j=V&&V.RuntimeError||N,H=s("DOMException"),K=P.Map,Y=P.has,W=P.get,z=P.set,q=O.Set,X=O.add,Z=s("Object","keys"),Q=l([].push),$=l((!0).valueOf),ee=l(1..valueOf),te=l("".valueOf),ne=l(I.prototype.getTime),oe=u("structuredClone"),ie="DataCloneError",re="Transferring",ae=function(e){return!c((function(){var t=new a.Set([7]),n=e(t),o=e(R(7));return n==t||!n.has(7)||"object"!=typeof o||7!=o}))&&e},se=function(e,t){return!c((function(){var n=new t,o=e({a:n,b:n});return!(o&&o.a===o.b&&o.a instanceof t&&o.a.stack===n.stack)}))},le=a.structuredClone,ce=i||!se(le,N)||!se(le,H)||(o=le,!!c((function(){var e=o(new a.AggregateError([1],oe,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=oe||3!=e.cause}))),ue=!le&&ae((function(e){return new B(oe,{detail:e}).detail})),de=ae(le)||ue,pe=function(e){throw new H("Uncloneable type: "+e,ie)},fe=function(e,t){throw new H((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",ie)},he=function(e,t){if(m(e)&&pe("Symbol"),!h(e))return e;if(t){if(Y(t,e))return W(t,e)}else t=new K;var n,o,i,r,l,c,u,p,f,g,v,A=y(e),P=!1;switch(A){case"Array":i=L(E(e)),P=!0;break;case"Object":i={},P=!0;break;case"Map":i=new K,P=!0;break;case"Set":i=new q,P=!0;break;case"RegExp":i=new RegExp(e.source,T(e));break;case"Error":switch(o=e.name){case"AggregateError":i=s("AggregateError")([]);break;case"EvalError":i=w();break;case"RangeError":i=D();break;case"ReferenceError":i=M();break;case"SyntaxError":i=x();break;case"TypeError":i=F();break;case"URIError":i=U();break;case"CompileError":i=G();break;case"LinkError":i=J();break;case"RuntimeError":i=j();break;default:i=N()}P=!0;break;case"DOMException":i=new H(e.message,e.name),P=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=a[A],h(n)||fe(A),i=new n(he(e.buffer,t),e.byteOffset,"DataView"===A?e.byteLength:e.length);break;case"DOMQuad":try{i=new DOMQuad(he(e.p1,t),he(e.p2,t),he(e.p3,t),he(e.p4,t))}catch(t){de?i=de(e):fe(A)}break;case"FileList":if(r=function(){var e;try{e=new a.DataTransfer}catch(t){try{e=new a.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(l=0,c=E(e);l<c;l++)r.items.add(he(e[l],t));i=r.files}else de?i=de(e):fe(A);break;case"ImageData":try{i=new ImageData(he(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){de?i=de(e):fe(A)}break;default:if(de)i=de(e);else switch(A){case"BigInt":i=R(e.valueOf());break;case"Boolean":i=R($(e));break;case"Number":i=R(ee(e));break;case"String":i=R(te(e));break;case"Date":i=new I(ne(e));break;case"ArrayBuffer":(n=a.DataView)||"function"==typeof e.slice||fe(A);try{if("function"!=typeof e.slice||e.resizable){c=e.byteLength,v="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,i=new ArrayBuffer(c,v),f=new n(e),g=new n(i);for(l=0;l<c;l++)g.setUint8(l,f.getUint8(l))}else i=e.slice(0)}catch(e){throw new H("ArrayBuffer is detached",ie)}break;case"SharedArrayBuffer":i=e;break;case"Blob":try{i=e.slice(0,e.size,e.type)}catch(e){fe(A)}break;case"DOMPoint":case"DOMPointReadOnly":n=a[A];try{i=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){fe(A)}break;case"DOMRect":case"DOMRectReadOnly":n=a[A];try{i=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){fe(A)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=a[A];try{i=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){fe(A)}break;case"AudioData":case"VideoFrame":d(e.clone)||fe(A);try{i=e.clone()}catch(e){pe(A)}break;case"File":try{i=new File([e],e.name,e)}catch(e){fe(A)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":fe(A);default:pe(A)}}if(z(t,e,i),P)switch(A){case"Array":case"Object":for(u=Z(e),l=0,c=E(u);l<c;l++)p=u[l],b(i,p,he(e[p],t));break;case"Map":e.forEach((function(e,n){z(i,he(n,t),he(e,t))}));break;case"Set":e.forEach((function(e){X(i,he(e,t))}));break;case"Error":S(i,"message",he(e.message,t)),_(e,"cause")&&S(i,"cause",he(e.cause,t)),"AggregateError"==o&&(i.errors=he(e.errors,t));case"DOMException":C&&S(i,"stack",he(e.stack,t))}return i};r({global:!0,enumerable:!0,sham:!k,forced:ce},{structuredClone:function(e){var t,n=A(arguments.length,1)>1&&!f(arguments[1])?v(arguments[1]):void 0,o=n?n.transfer:void 0;return void 0!==o&&function(e,t){if(!h(e))throw F("Transfer option cannot be converted to a sequence");var n=[];g(e,(function(e){Q(n,v(e))}));var o,i,r,s,l,c,u=0,f=E(n);if(k)for(s=le(n,{transfer:n});u<f;)z(t,n[u],s[u++]);else for(;u<f;){if(o=n[u++],Y(t,o))throw new H("Duplicate transferable",ie);switch(i=y(o)){case"ImageBitmap":r=a.OffscreenCanvas,p(r)||fe(i,re);try{(c=new r(o.width,o.height)).getContext("bitmaprenderer").transferFromImageBitmap(o),l=c.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":d(o.clone)&&d(o.close)||fe(i,re);try{l=o.clone(),o.close()}catch(e){}break;case"ArrayBuffer":d(o.transfer)||fe(i,re),l=o.transfer();break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":fe(i,re)}if(void 0===l)throw new H("This object cannot be transferred: "+i,ie);z(t,o,l)}}(o,t=new K),he(e,t)}})},45005:function(e,t){var n="undefined"!=typeof self?self:this,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(n.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function r(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function c(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=u(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,o=c(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=u(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=r(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[r(e)]},l.prototype.get=function(e){return e=r(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(r(e))},l.prototype.set=function(e,t){this.map[r(e)]=a(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),s(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),s(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),s(e)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var h=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){var n,o,i=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=t.method||this.method||"GET",o=n.toUpperCase(),h.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}})),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},f.call(m.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var y=[301,302,303,307,308];v.redirect=function(e,t){if(-1===y.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,o){return new Promise((function(i,r){var a=new m(e,o);if(a.signal&&a.signal.aborted)return r(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();t.append(o,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;i(new v(o,n))},s.onerror=function(){r(new TypeError("Network request failed"))},s.ontimeout=function(){r(new TypeError("Network request failed"))},s.onabort=function(){r(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=l,e.Request=m,e.Response=v),t.Headers=l,t.Request=m,t.Response=v,t.fetch=_,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},29215:(e,t,n)=>{t.UINT32=n(8397),t.UINT64=n(49364)},8397:function(e,t){var n;!function(o){i(Math.pow(36,5)),i(Math.pow(16,7)),i(Math.pow(10,9)),i(Math.pow(2,30)),i(36),i(16),i(10),i(2);function i(e,t){return this instanceof i?(this._low=0,this._high=0,this.remainder=null,void 0===t?a.call(this,e):"string"==typeof e?s.call(this,e,t):void r.call(this,e,t)):new i(e,t)}function r(e,t){return this._low=0|e,this._high=0|t,this}function a(e){return this._low=65535&e,this._high=e>>>16,this}function s(e,t){var n=parseInt(e,t||10);return this._low=65535&n,this._high=n>>>16,this}i.prototype.fromBits=r,i.prototype.fromNumber=a,i.prototype.fromString=s,i.prototype.toNumber=function(){return 65536*this._high+this._low},i.prototype.toString=function(e){return this.toNumber().toString(e||10)},i.prototype.add=function(e){var t=this._low+e._low,n=t>>>16;return n+=this._high+e._high,this._low=65535&t,this._high=65535&n,this},i.prototype.subtract=function(e){return this.add(e.clone().negate())},i.prototype.multiply=function(e){var t,n,o=this._high,i=this._low,r=e._high,a=e._low;return t=(n=i*a)>>>16,t+=o*a,t&=65535,t+=i*r,this._low=65535&n,this._high=65535&t,this},i.prototype.div=function(e){if(0==e._low&&0==e._high)throw Error("division by zero");if(0==e._high&&1==e._low)return this.remainder=new i(0),this;if(e.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new i(0),this._low=1,this._high=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=16?this._high|=1<<n-16:this._low|=1<<n);return this},i.prototype.negate=function(){var e=1+(65535&~this._low);return this._low=65535&e,this._high=~this._high+(e>>>16)&65535,this},i.prototype.equals=i.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},i.prototype.greaterThan=i.prototype.gt=function(e){return this._high>e._high||!(this._high<e._high)&&this._low>e._low},i.prototype.lessThan=i.prototype.lt=function(e){return this._high<e._high||!(this._high>e._high)&&this._low<e._low},i.prototype.or=function(e){return this._low|=e._low,this._high|=e._high,this},i.prototype.and=function(e){return this._low&=e._low,this._high&=e._high,this},i.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},i.prototype.xor=function(e){return this._low^=e._low,this._high^=e._high,this},i.prototype.shiftRight=i.prototype.shiftr=function(e){return e>16?(this._low=this._high>>e-16,this._high=0):16==e?(this._low=this._high,this._high=0):(this._low=this._low>>e|this._high<<16-e&65535,this._high>>=e),this},i.prototype.shiftLeft=i.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<<e-16,this._low=0,t||(this._high&=65535)):16==e?(this._high=this._low,this._low=0):(this._high=this._high<<e|this._low>>16-e,this._low=this._low<<e&65535,t||(this._high&=65535)),this},i.prototype.rotateLeft=i.prototype.rotl=function(e){var t=this._high<<16|this._low;return t=t<<e|t>>>32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.rotateRight=i.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.clone=function(){return new i(this._low,this._high)},void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},49364:function(e,t){var n;!function(o){var i={16:a(Math.pow(16,5)),10:a(Math.pow(10,5)),2:a(Math.pow(2,5))},r={16:a(16),10:a(10),2:a(2)};function a(e,t,n,o){return this instanceof a?(this.remainder=null,"string"==typeof e?c.call(this,e,t):void 0===t?l.call(this,e):void s.apply(this,arguments)):new a(e,t,n,o)}function s(e,t,n,o){return void 0===n?(this._a00=65535&e,this._a16=e>>>16,this._a32=65535&t,this._a48=t>>>16,this):(this._a00=0|e,this._a16=0|t,this._a32=0|n,this._a48=0|o,this)}function l(e){return this._a00=65535&e,this._a16=e>>>16,this._a32=0,this._a48=0,this}function c(e,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var n=i[t]||new a(Math.pow(t,5)),o=0,r=e.length;o<r;o+=5){var s=Math.min(5,r-o),l=parseInt(e.slice(o,o+s),t);this.multiply(s<5?new a(Math.pow(t,s)):n).add(new a(l))}return this}a.prototype.fromBits=s,a.prototype.fromNumber=l,a.prototype.fromString=c,a.prototype.toNumber=function(){return 65536*this._a16+this._a00},a.prototype.toString=function(e){var t=r[e=e||10]||new a(e);if(!this.gt(t))return this.toNumber().toString(e);for(var n=this.clone(),o=new Array(64),i=63;i>=0&&(n.div(t),o[i]=n.remainder.toNumber().toString(e),n.gt(t));i--);return o[i-1]=n.toNumber().toString(e),o.join("")},a.prototype.add=function(e){var t=this._a00+e._a00,n=t>>>16,o=(n+=this._a16+e._a16)>>>16,i=(o+=this._a32+e._a32)>>>16;return i+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&n,this._a32=65535&o,this._a48=65535&i,this},a.prototype.subtract=function(e){return this.add(e.clone().negate())},a.prototype.multiply=function(e){var t=this._a00,n=this._a16,o=this._a32,i=this._a48,r=e._a00,a=e._a16,s=e._a32,l=t*r,c=l>>>16,u=(c+=t*a)>>>16;c&=65535,u+=(c+=n*r)>>>16;var d=(u+=t*s)>>>16;return u&=65535,d+=(u+=n*a)>>>16,u&=65535,d+=(u+=o*r)>>>16,d+=t*e._a48,d&=65535,d+=n*s,d&=65535,d+=o*a,d&=65535,d+=i*r,this._a00=65535&l,this._a16=65535&c,this._a32=65535&u,this._a48=65535&d,this},a.prototype.div=function(e){if(0==e._a16&&0==e._a32&&0==e._a48){if(0==e._a00)throw Error("division by zero");if(1==e._a00)return this.remainder=new a(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new a(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=48?this._a48|=1<<n-48:n>=32?this._a32|=1<<n-32:n>=16?this._a16|=1<<n-16:this._a00|=1<<n);return this},a.prototype.negate=function(){var e=1+(65535&~this._a00);return this._a00=65535&e,e=(65535&~this._a16)+(e>>>16),this._a16=65535&e,e=(65535&~this._a32)+(e>>>16),this._a32=65535&e,this._a48=~this._a48+(e>>>16)&65535,this},a.prototype.equals=a.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},a.prototype.greaterThan=a.prototype.gt=function(e){return this._a48>e._a48||!(this._a48<e._a48)&&(this._a32>e._a32||!(this._a32<e._a32)&&(this._a16>e._a16||!(this._a16<e._a16)&&this._a00>e._a00))},a.prototype.lessThan=a.prototype.lt=function(e){return this._a48<e._a48||!(this._a48>e._a48)&&(this._a32<e._a32||!(this._a32>e._a32)&&(this._a16<e._a16||!(this._a16>e._a16)&&this._a00<e._a00))},a.prototype.or=function(e){return this._a00|=e._a00,this._a16|=e._a16,this._a32|=e._a32,this._a48|=e._a48,this},a.prototype.and=function(e){return this._a00&=e._a00,this._a16&=e._a16,this._a32&=e._a32,this._a48&=e._a48,this},a.prototype.xor=function(e){return this._a00^=e._a00,this._a16^=e._a16,this._a32^=e._a32,this._a48^=e._a48,this},a.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},a.prototype.shiftRight=a.prototype.shiftr=function(e){return(e%=64)>=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=65535&(this._a32>>e|this._a48<<16-e),this._a16=this._a48>>e&65535,this._a32=0,this._a48=0):e>=16?(e-=16,this._a00=65535&(this._a16>>e|this._a32<<16-e),this._a16=65535&(this._a32>>e|this._a48<<16-e),this._a32=this._a48>>e&65535,this._a48=0):(this._a00=65535&(this._a00>>e|this._a16<<16-e),this._a16=65535&(this._a16>>e|this._a32<<16-e),this._a32=65535&(this._a32>>e|this._a48<<16-e),this._a48=this._a48>>e&65535),this},a.prototype.shiftLeft=a.prototype.shiftl=function(e,t){return(e%=64)>=48?(this._a48=this._a00<<e-48,this._a32=0,this._a16=0,this._a00=0):e>=32?(e-=32,this._a48=this._a16<<e|this._a00>>16-e,this._a32=this._a00<<e&65535,this._a16=0,this._a00=0):e>=16?(e-=16,this._a48=this._a32<<e|this._a16>>16-e,this._a32=65535&(this._a16<<e|this._a00>>16-e),this._a16=this._a00<<e&65535,this._a00=0):(this._a48=this._a48<<e|this._a32>>16-e,this._a32=65535&(this._a32<<e|this._a16>>16-e),this._a16=65535&(this._a16<<e|this._a00>>16-e),this._a00=this._a00<<e&65535),t||(this._a48&=65535),this},a.prototype.rotateLeft=a.prototype.rotl=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,o=this._a16<<16|this._a00,i=n<<e|o>>>32-e,r=o<<e|n>>>32-e;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&i,this._a48=i>>>16,this},a.prototype.rotateRight=a.prototype.rotr=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,o=this._a16<<16|this._a00,i=n>>>e|o<<32-e,r=o>>>e|n<<32-e;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&i,this._a48=i>>>16,this},a.prototype.clone=function(){return new a(this._a00,this._a16,this._a32,this._a48)},void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},35529:(e,t,n)=>{var o=n(14224);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==o&&"env"in o&&(e={}.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(52456)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},52456:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,r,a=null;function s(...e){if(!s.enabled)return;const o=s,i=Number(new Date),r=i-(n||i);o.diff=r,o.prev=n,o.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const r=t.formatters[i];if("function"==typeof r){const t=e[a];n=r.call(o,t),e.splice(a,1),a--}return n})),t.formatArgs.call(o,e);(o.log||t.log).apply(o,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=o,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,r=t.enabled(e)),r),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),i=o.length;for(n=0;n<i;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(54610),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},74622:e=>{"use strict";function t(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");return e}function n(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var o=Object.getOwnPropertyDescriptor(e,t);if(!o)throw new TypeError("must call property on owner object");if(!o.configurable)throw new TypeError("property must be configurable")}e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");function o(e){}return o._file=void 0,o._ignored=!0,o._namespace=e,o._traced=!1,o._warned=Object.create(null),o.function=t,o.property=n,o}},13706:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},91612:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=n(13706),a=n(4409);i(n(4409),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},4409:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(13706),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var o=e.call(this,n)||this;return o.name=t,o.type=a.ElementType.Directive,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,i){void 0===o&&(o=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var r=e.call(this,o)||this;return r.name=t,r.attribs=n,r.type=i,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function _(e){return e.type===a.ElementType.Comment}function b(e){return e.type===a.ElementType.Directive}function S(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(_(e))n=new u(e.data);else if(g(e)){var o=t?A(e.children):[],i=new m(e.name,r({},e.attribs),o);o.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=i}else if(v(e)){o=t?A(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(S(e)){o=t?A(e.children):[];var s=new h(o);o.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function A(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=_,t.isDirective=b,t.isDocument=S,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},65936:(e,t,n)=>{var o;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)}()},3341:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,r[i]))return!1;for(i=o;0!=i--;){var a=r[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},39689:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,o){if(o=o||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof o)throw new t("defaults must be an object");if(void 0!==o.retries&&!e(o.retries))throw new t("retries must be a positive integer");if(void 0!==o.retryDelay&&!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==o.retryOn&&!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");var i={retries:3,retryDelay:1e3,retryOn:[]};return o=Object.assign(i,o),function(i,r){var a=o.retries,s=o.retryDelay,l=o.retryOn;if(r&&void 0!==r.retries){if(!e(r.retries))throw new t("retries must be a positive integer");a=r.retries}if(r&&void 0!==r.retryDelay){if(!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=r.retryDelay}if(r&&r.retryOn){if(!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");l=r.retryOn}return new Promise((function(e,t){var o=function(o){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;n(s,r).then((function(n){if(Array.isArray(l)&&-1===l.indexOf(n.status))e(n);else if("function"==typeof l)try{return Promise.resolve(l(o,null,n)).then((function(t){t?c(o,null,n):e(n)})).catch(t)}catch(e){t(e)}else o<a?c(o,null,n):e(n)})).catch((function(e){if("function"==typeof l)try{Promise.resolve(l(o,e,null)).then((function(n){n?c(o,e,null):t(e)})).catch((function(e){t(e)}))}catch(e){t(e)}else o<a?c(o,e,null):t(e)}))};function c(e,t,n){var i="function"==typeof s?s(e,t,n):s;setTimeout((function(){o(++e)}),i)}o(0)}))}}}()},1608:(e,t,n)=>{"use strict";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},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(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 n,i=s(e);if(t){var r=s(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var l=n(59496),c=n(87995),u=n(40507),d=n(45523).createFocusTrap,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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}(u,e);var t,n,o,s=a(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&("returnFocusOnDeactivate"!==o?"onPostDeactivate"!==o?t.tailoredFocusTrapOptions[o]=n[o]:t.onPostDeactivate=n[o]:t.returnFocusOnDeactivate=!!n[o]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=u,(n=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n,o=t;if("string"==typeof t&&!(o=null===(n=this.getDocument())||void 0===n?void 0:n.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(o=t()))throw new Error("`".concat(e,"` did not return a node"));return o}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus");return e||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions,n=t.checkCanReturnFocus,o=t.preventScroll,i=void 0!==o&&o;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var r=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus({preventScroll:i}),e.onPostDeactivate&&e.onPostDeactivate.call(null)};n?n(this.getReturnFocusNode()).then(r,r):r()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(c.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,o=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();o&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?l.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===l.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return l.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(l.Component),f="undefined"==typeof Element?Function:Element;p.propTypes={active:u.bool,paused:u.bool,focusTrapOptions:u.shape({document:u.object,onActivate:u.func,onPostActivate:u.func,checkCanFocusTrap:u.func,onDeactivate:u.func,onPostDeactivate:u.func,checkCanReturnFocus:u.func,initialFocus:u.oneOfType([u.instanceOf(f),u.string,u.func,u.bool]),fallbackFocus:u.oneOfType([u.instanceOf(f),u.string,u.func]),escapeDeactivates:u.oneOfType([u.bool,u.func]),clickOutsideDeactivates:u.oneOfType([u.bool,u.func]),returnFocusOnDeactivate:u.bool,setReturnFocus:u.oneOfType([u.instanceOf(f),u.string,u.func]),allowOutsideClick:u.oneOfType([u.bool,u.func]),preventScroll:u.bool}),containerElements:u.arrayOf(u.instanceOf(f)),children:u.oneOfType([u.element,u.instanceOf(f)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},45523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>T});var o=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=o.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e,t,n){var o=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&r.call(e,i)&&o.unshift(e),o=o.filter(n)},s=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},l=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},c=function(e){return"INPUT"===e.tagName},u=function(e){return function(e){return c(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},d=function(e,t){return!(t.disabled||function(e){return c(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var o=e.getBoundingClientRect(),i=o.width,a=o.height;return 0===i&&0===a}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(c(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},p=function(e,t){return!(!d(e,t)||u(t)||s(t)<0)},f=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,i)&&p(t,e)},h=o.concat("iframe").join(","),m=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,h)&&d(t,e)};function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y,_=(y=[],{activateTrap:function(e){if(y.length>0){var t=y[y.length-1];t!==e&&t.pause()}var n=y.indexOf(e);-1===n||y.splice(n,1),y.push(e)},deactivateTrap:function(e){var t=y.indexOf(e);-1!==t&&y.splice(t,1),y.length>0&&y[y.length-1].unpause()}}),b=function(e){return setTimeout(e,0)},S=function(e,t){var n=-1;return e.every((function(e,o){return!t(e)||(n=o,!1)})),n},E=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},A=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},T=function(e,t){var n,o=(null==t?void 0:t.document)||document,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),r={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},c=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},u=function(e){return!(!e||!r.containers.some((function(t){return t.contains(e)})))},h=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];t=t.apply(void 0,r)}if(!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=o.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},y=function(){var e=h("initialFocus");if(!1===e)return!1;if(void 0===e)if(u(o.activeElement))e=o.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||h("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},T=function(){if(r.tabbableGroups=r.containers.map((function(e){var t,n,o,i=(n=[],o=[],a(e,(t=t||{}).includeContainer,p.bind(null,t)).forEach((function(e,t){var i=s(e);0===i?n.push(e):o.push({documentOrder:t,tabIndex:i,node:e})})),o.sort(l).map((function(e){return e.node})).concat(n)),r=function(e,t){return a(e,(t=t||{}).includeContainer,d.bind(null,t))}(e);if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1],nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=r.findIndex((function(t){return t===e}));return t?r.slice(n+1).find((function(e){return f(e)})):r.slice(0,n).reverse().find((function(e){return f(e)}))}}})).filter((function(e){return!!e})),r.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},P=function e(t){!1!==t&&t!==o.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),r.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(y()))},O=function(e){var t=h("setReturnFocus",e);return t||!1!==t&&e},C=function(e){var t=A(e);u(t)||(E(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!m(t)}):E(i.allowOutsideClick,e)||e.preventDefault())},k=function(e){var t=A(e),n=u(t);n||t instanceof Document?n&&(r.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),P(r.mostRecentlyFocusedNode||y()))},R=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==E(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=A(e);T();var n=null;if(r.tabbableGroups.length>0){var o=S(r.tabbableGroups,(function(e){return e.container.contains(t)})),i=o>=0?r.tabbableGroups[o]:void 0;if(o<0)n=e.shiftKey?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var a=S(r.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(a<0&&(i.container===t||m(t)&&!f(t)&&!i.nextTabbableNode(t,!1))&&(a=o),a>=0){var s=0===a?r.tabbableGroups.length-1:a-1;n=r.tabbableGroups[s].lastTabbableNode}}else{var l=S(r.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(l<0&&(i.container===t||m(t)&&!f(t)&&!i.nextTabbableNode(t))&&(l=o),l>=0){var c=l===r.tabbableGroups.length-1?0:l+1;n=r.tabbableGroups[c].firstTabbableNode}}}else n=h("fallbackFocus");n&&(e.preventDefault(),P(n))}(e)},L=function(e){if(!E(i.clickOutsideDeactivates,e)){var t=A(e);u(t)||E(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},I=function(){if(r.active)return _.activateTrap(n),r.delayInitialFocusTimer=i.delayInitialFocus?b((function(){P(y())})):P(y()),o.addEventListener("focusin",k,!0),o.addEventListener("mousedown",C,{capture:!0,passive:!1}),o.addEventListener("touchstart",C,{capture:!0,passive:!1}),o.addEventListener("click",L,{capture:!0,passive:!1}),o.addEventListener("keydown",R,{capture:!0,passive:!1}),n},N=function(){if(r.active)return o.removeEventListener("focusin",k,!0),o.removeEventListener("mousedown",C,!0),o.removeEventListener("touchstart",C,!0),o.removeEventListener("click",L,!0),o.removeEventListener("keydown",R,!0),n};return(n={activate:function(e){if(r.active)return this;var t=c(e,"onActivate"),n=c(e,"onPostActivate"),i=c(e,"checkCanFocusTrap");i||T(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=o.activeElement,t&&t();var a=function(){i&&T(),I(),n&&n()};return i?(i(r.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!r.active)return this;clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,N(),r.active=!1,r.paused=!1,_.deactivateTrap(n);var t=c(e,"onDeactivate"),o=c(e,"onPostDeactivate"),i=c(e,"checkCanReturnFocus");t&&t();var a=c(e,"returnFocus","returnFocusOnDeactivate"),s=function(){b((function(){a&&P(O(r.nodeFocusedBeforeActivation)),o&&o()}))};return a&&i?(i(O(r.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(){return r.paused||!r.active||(r.paused=!0,N()),this},unpause:function(){return r.paused&&r.active?(r.paused=!1,T(),I(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?o.querySelector(e):e})),r.active&&T(),this}}).updateContainerElements(e),n}},46731:(e,t,n)=>{const o=n(84842),i=n(23392).a,r=n(41966).a,a=n(9981),s=n(61329).Base64,l=new a(s.toUint8Array(i)),c=new a(s.toUint8Array(r));function u(e,t){return 0!=(e&t)}const d={Initial:0,ExtendOrZWJ:1,NotBoundary:2};function p(e,t){const n=e.length;let i=0,r=d.Initial;for(let a=t;a+1<n;a++){const n=e[a+0],s=e[a+1];switch(u(n,o.Regional_Indicator)||(i=0),r){case d.NotBoundary:case d.Initial:r=u(n,o.Extended_Pictographic)?d.ExtendOrZWJ:d.Initial;break;case d.ExtendOrZWJ:r=u(n,o.Extend)?d.ExtendOrZWJ:u(n,o.ZWJ)&&u(s,o.Extended_Pictographic)?d.NotBoundary:d.Initial}if(!u(n,o.CR)||!u(s,o.LF)){if(u(n,o.Control|o.CR|o.LF))return a+1-t;if(u(s,o.Control|o.CR|o.LF))return a+1-t;if(!(u(n,o.L)&&u(s,o.L|o.V|o.LV|o.LVT)||u(n,o.LV|o.V)&&u(s,o.V|o.T)||u(n,o.LVT|o.T)&&u(s,o.T)||u(s,o.Extend|o.ZWJ)||u(s,o.SpacingMark)||u(n,o.Prepend)||r===d.NotBoundary)){if(!u(n,o.Regional_Indicator)||!u(s,o.Regional_Indicator)||i%2!=0)return a+1-t;i++}}}return n-t}e.exports=function(e){const t=[],n=[0],o=[];for(let t=0;t<e.length;){const i=e.codePointAt(t);o.push(l.get(i)|c.get(i)),t+=i>65535?2:1,n.push(t)}for(let i=0;i<o.length;){const r=p(o,i),a=n[i],s=n[i+r];t.push(e.slice(a,s)),i+=r}return t}},84842:e=>{e.exports={Other:0,CR:1,LF:2,Control:4,Extend:8,ZWJ:16,Regional_Indicator:32,Prepend:64,SpacingMark:128,L:256,V:512,T:1024,LV:2048,LVT:4096,Extended_Pictographic:8192}},38366:(e,t,n)=>{"use strict";n.d(t,{lX:()=>P,PP:()=>R});var o=n(56962),i=n.n(o),r=n(53670),a=n.n(r);function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,o=n+1,i=e.length;o<i;n+=1,o+=1)e[n]=e[o];e.pop()}const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&s(e),r=t&&s(t),a=i||r;if(e&&s(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var d=0,p=o.length;p>=0;p--){var f=o[p];"."===f?l(o,p):".."===f?(l(o,p),d++):d&&(l(o,p),d--)}if(!a)for(;d--;d)o.unshift("..");!a||""===o[0]||o[0]&&s(o[0])||o.unshift("");var h=o.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var u=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},p=function(e){var t=e.pathname,n=e.search,o=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(i+="#"===o.charAt(0)?o:"#"+o),i},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h=function(e,t,n,o){var i=void 0;"string"==typeof e?(i=function(e){var t=e||"/",n="",o="",i=t.indexOf("#");-1!==i&&(o=t.substr(i),t=t.substr(0,i));var r=t.indexOf("?");return-1!==r&&(n=t.substr(r),t=t.substr(0,r)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}(e),i.state=t):(void 0===(i=f({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=c(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i};const m=function(){var e=null,t=[];return{setPrompt:function(t){return i()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,o,r){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof o?o(a,r):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==a)}else r(!0)},appendListener:function(e){var n=!0,o=function(){n&&e.apply(void 0,arguments)};return t.push(o),function(){n=!1,t=t.filter((function(e){return e!==o}))}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];t.forEach((function(e){return e.apply(void 0,n)}))}}};var g=!("undefined"==typeof window||!window.document||!window.document.createElement),v=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},y=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},_=function(e,t){return t(window.confirm(e))},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},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},E="popstate",A="hashchange",T=function(){try{return window.history.state||{}}catch(e){return{}}};const P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(g,"Browser history needs a DOM");var t,n,o=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),l=e.forceRefresh,c=void 0!==l&&l,f=e.getUserConfirmation,P=void 0===f?_:f,O=e.keyLength,C=void 0===O?6:O,k=e.basename?"/"===(n=u(e.basename)).charAt(n.length-1)?n.slice(0,-1):n:"",R=function(e){var t=e||{},n=t.key,o=t.state,r=window.location,a=r.pathname+r.search+r.hash;return i()(!k||d(a,k),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+k+'".'),k&&(a=function(e,t){return d(e,t)?e.substr(t.length):e}(a,k)),h(a,o,n)},L=function(){return Math.random().toString(36).substr(2,C)},I=m(),N=function(e){S(K,e),K.length=o.length,I.notifyListeners(K.location,K.action)},w=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(R(e.state))},D=function(){x(R(T()))},M=!1,x=function(e){if(M)M=!1,N();else{I.confirmTransitionTo(e,"POP",P,(function(t){t?N({action:"POP",location:e}):F(e)}))}},F=function(e){var t=K.location,n=B.indexOf(t.key);-1===n&&(n=0);var o=B.indexOf(e.key);-1===o&&(o=0);var i=n-o;i&&(M=!0,G(i))},U=R(T()),B=[U.key],V=function(e){return k+p(e)},G=function(e){o.go(e)},J=0,j=function(e){1===(J+=e)?(v(window,E,w),s&&v(window,A,D)):0===J&&(y(window,E,w),s&&y(window,A,D))},H=!1,K={length:o.length,action:"POP",location:U,createHref:V,push:function(e,t){i()(!("object"===(void 0===e?"undefined":b(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var n="PUSH",a=h(e,t,L(),K.location);I.confirmTransitionTo(a,n,P,(function(e){if(e){var t=V(a),s=a.key,l=a.state;if(r)if(o.pushState({key:s,state:l},null,t),c)window.location.href=t;else{var u=B.indexOf(K.location.key),d=B.slice(0,-1===u?0:u+1);d.push(a.key),B=d,N({action:n,location:a})}else i()(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}}))},replace:function(e,t){i()(!("object"===(void 0===e?"undefined":b(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var n="REPLACE",a=h(e,t,L(),K.location);I.confirmTransitionTo(a,n,P,(function(e){if(e){var t=V(a),s=a.key,l=a.state;if(r)if(o.replaceState({key:s,state:l},null,t),c)window.location.replace(t);else{var u=B.indexOf(K.location.key);-1!==u&&(B[u]=a.key),N({action:n,location:a})}else i()(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}}))},go:G,goBack:function(){return G(-1)},goForward:function(){return G(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=I.setPrompt(e);return H||(j(1),H=!0),function(){return H&&(H=!1,j(-1)),t()}},listen:function(e){var t=I.appendListener(e);return j(1),function(){j(-1),t()}}};return K};Object.assign;var 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},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},k=function(e,t,n){return Math.min(Math.max(e,t),n)};const R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,o=void 0===n?["/"]:n,r=e.initialIndex,a=void 0===r?0:r,s=e.keyLength,l=void 0===s?6:s,c=m(),u=function(e){C(_,e),_.length=_.entries.length,c.notifyListeners(_.location,_.action)},d=function(){return Math.random().toString(36).substr(2,l)},f=k(a,0,o.length-1),g=o.map((function(e){return h(e,void 0,"string"==typeof e?d():e.key||d())})),v=p,y=function(e){var n=k(_.index+e,0,_.entries.length-1),o=_.entries[n];c.confirmTransitionTo(o,"POP",t,(function(e){e?u({action:"POP",location:o,index:n}):u()}))},_={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:v,push:function(e,n){i()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",r=h(e,n,d(),_.location);c.confirmTransitionTo(r,o,t,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:o,location:r,index:t,entries:n})}}))},replace:function(e,n){i()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",r=h(e,n,d(),_.location);c.confirmTransitionTo(r,o,t,(function(e){e&&(_.entries[_.index]=r,u({action:o,location:r}))}))},go:y,goBack:function(){return y(-1)},goForward:function(){return y(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},72535:(e,t,n)=>{"use strict";var o=n(56237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?a:s[e.$$typeof]||i}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,o)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(r[v]||o&&o[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},1062:(e,t)=>{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},83810:e=>{var t="html",n="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,r=/<head[^]*>/i,a=/<body[^]*>/i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();s=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,f="object"==typeof document?document.createElement("template"):{};f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var c,u,d,f,h=e.match(i);switch(h&&h[1]&&(c=h[1].toLowerCase()),c){case t:return u=l(e),r.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(o))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case o:return f=(u=s(e)).querySelectorAll(c),a.test(e)&&r.test(e)?f[0].parentNode.childNodes:f;default:return p?p(e):(d=s(e,o).querySelector(o)).childNodes}}},52009:(e,t,n)=>{var o=n(83810),i=n(73039).formatDOM,r=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(r);return n&&n[1]&&(t=n[1]),i(o(e),null,t)}},73039:(e,t,n)=>{for(var o,i=n(91612),r=n(1062).CASE_SENSITIVE_TAG_NAMES,a=i.Comment,s=i.Element,l=i.ProcessingInstruction,c=i.Text,u={},d=0,p=r.length;d<p;d++)o=r[d],u[o.toLowerCase()]=o;function f(e){for(var t,n={},o=0,i=e.length;o<i;o++)n[(t=e[o]).name]=t.value;return n}function h(e){var t=function(e){return u[e]}(e=e.toLowerCase());return t||e}t.formatAttributes=f,t.formatDOM=function e(t,n,o){n=n||null;for(var i,r=[],u=0,d=t.length;u<d;u++){var p,m=t[u];switch(m.nodeType){case 1:i=h(m.nodeName),(p=new s(i,f(m.attributes))).children=e("template"===i?m.content.childNodes:m.childNodes,p);break;case 3:p=new c(m.nodeValue);break;case 8:p=new a(m.nodeValue);break;default:continue}var g=r[u-1]||null;g&&(g.next=p),p.parent=n,p.prev=g,p.next=null,r.push(p)}return o&&((p=new l(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=r[0]||null,p.parent=n,r.unshift(p),r[1]&&(r[1].prev=r[0])),r}},86937:(e,t,n)=>{var o=n(91612),i=n(52009),r=n(29916),a=n(82025);i="function"==typeof i.default?i.default:i;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(i(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=a,l.htmlToDOM=i,l.attributesToProps=r,l.Comment=o.Comment,l.Element=o.Element,l.ProcessingInstruction=o.ProcessingInstruction,l.Text=o.Text,e.exports=l,l.default=l},29916:(e,t,n)=>{var o=n(26509),i=n(73746),r=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,f={},h=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],o.isCustomAttribute(n))f[n]=u;else if(d=l(c=n.toLowerCase()))switch(p=o.getPropertyInfo(d),-1===r.indexOf(d)||-1===a.indexOf(t)||h||(d=l("default"+c)),f[d]=u,p&&p.type){case o.BOOLEAN:f[d]=!0;break;case o.OVERLOADED_BOOLEAN:""===u&&(f[d]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(f[n]=u);return i.setStyleProp(e.style,f),f}},82025:(e,t,n)=>{var o=n(59496),i=n(29916),r=n(73746),a=r.setStyleProp,s=r.canTextBeChildOfNode;function l(e){return r.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&r.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var r,c,u,d,p,f=(n=n||{}).library||o,h=f.cloneElement,m=f.createElement,g=f.isValidElement,v=[],y="function"==typeof n.replace,_=n.trim,b=0,S=t.length;b<S;b++)if(r=t[b],y&&g(u=n.replace(r)))S>1&&(u=h(u,{key:u.key||b})),v.push(u);else if("text"!==r.type){switch(d=r.attribs,l(r)?a(d.style,d):d&&(d=i(d,r.name)),p=null,r.type){case"script":case"style":r.children[0]&&(d.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?d.defaultValue=r.children[0].data:r.children&&r.children.length&&(p=e(r.children,n));break;default:continue}S>1&&(d.key=b),v.push(m(r.name,d,p))}else{if((c=!r.data.trim().length)&&r.parent&&!s(r.parent))continue;if(_&&c)continue;v.push(r.data)}return 1===v.length?v[0]:v}},73746:(e,t,n)=>{var o=n(59496),i=n(75090).default;var r={reactCompat:!0};var a=o.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,o,i="function"==typeof t,r={},a={};for(n in e)o=e[n],i&&(r=t(n,o))&&2===r.length?a[r[0]]=r[1]:"string"==typeof o&&(a[o]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,r)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},4417:function(e,t,n){e.exports=function(e){"use strict";function t(e,t,o,i){return void 0===t&&(t={}),Object.keys(t).reduce((function(r,a){if(/^on.*/.test(a))return r;var s=a;/^(data|aria)-/.test(a)||0===o.filter((function(e){return e instanceof RegExp?e.test(a):e===a})).length&&(s=n(a));var l,c,u=i(e,s);if("style"===u.name)r[u.name]=(l=t.style,c={},l.split(";").filter((function(e){return""!==e.trim()})).forEach((function(e){var t,o=e.split(":");if(o.length>1){var i=function(e){return/^-ms-/.test(e)&&(e=e.substr(1)),e.startsWith("--")?e:n(e)}(o[0].trim()),r=(t=o.slice(1).join(":").trim(),/^\d+$/.test(t)?Number(t):t.replace(/'/g,'"'));c[i]=r}})),c);else{var d=t[a],p=""===d||String(d).toLowerCase()===s.toLowerCase();r[u.name]=u.isBoolean?p:d}return r}),{})}function n(e){return e.replace(/(-|:)(.)/g,(function(e,t,n){return n.toUpperCase()}))}e=e&&e.hasOwnProperty("default")?e.default:e;var o=["table","tbody","thead","tfoot","tr"],i={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function r(e,t){var n=i[t],o=document.createElement(e);if(n)return{name:Array.isArray(n)?n[0]:n,isBoolean:a(o,Array.isArray(n)?n[1]||t:n)};for(var r in o)if(r.toLowerCase()===t.toLowerCase())return{name:r,isBoolean:a(o,r)};return{name:t,isBoolean:a(o,t)}}function a(e,t){return e.setAttribute(t,""),!0===e[t]||s.indexOf(t)>-1}var s=["itemScope"];function l(t,n,o,i){void 0===i&&(i=null);var r=o[t],a=o._;return r?e.createElement(r,n,i):a?a(t,n,i):e.createElement(t,n,i)}return function(e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new TypeError("Expected HTML string");var i=document.createElement("div");i.innerHTML=e.trim();var a=Array.from(i.childNodes).map((function(e,i){return function e(n,i,a){var s=a.transform||{},c=a.preserveAttributes||[],u=a.dangerouslySetChildren||["style"],d=s._;if(8===n.nodeType)return null;if(3===n.nodeType){var p=n.textContent;return d?d(p):p}for(var f={},h=n.attributes,m=0;m<h.length;m++)f[h[m].name]=h[m].value;f.key=i.toString();var g=n.tagName.toLowerCase(),v=t(g,f,c,r),y=Array.from(n.childNodes).map((function(t,n){return o.indexOf(g)>-1&&3===t.nodeType&&(t.textContent=t.textContent.trim(),""===t.textContent)?null:e(t,i+"."+n,a)})).filter(Boolean);if(u.indexOf(g)>-1){var _=n.innerHTML;return _&&("style"!==g&&"script"!==g&&(_=_.replace(/"/g,"&quot;")),v.dangerouslySetInnerHTML={__html:_.trim()}),l(g,v,s)}var b=0===y.length?null:y;return l(g,v,s,b)}(e,String(i),n)})).filter(Boolean);return 1===a.length?a[0]:a}}(n(59496))},16556:(e,t,n)=>{"use strict";var o,i=n(74622)("http-errors"),r=n(75561),a=n(14435),s=n(2937),l=n(66730);function c(e){return Number(String(e).charAt(0)+"00")}function u(e,t){var n=Object.getOwnPropertyDescriptor(e,"name");n&&n.configurable&&(n.value=t,Object.defineProperty(e,"name",n))}function d(e){return"Error"!==e.substr(-5)?e+"Error":e}e.exports=function e(){for(var t,n,o=500,r={},s=0;s<arguments.length;s++){var l=arguments[s],u=typeof l;if("object"===u&&l instanceof Error)o=(t=l).status||t.statusCode||o;else if("number"===u&&0===s)o=l;else if("string"===u)n=l;else{if("object"!==u)throw new TypeError("argument #"+(s+1)+" unsupported type "+u);r=l}}"number"==typeof o&&(o<400||o>=600)&&i("non-error status code; use only 4xx or 5xx status codes");("number"!=typeof o||!a.message[o]&&(o<400||o>=600))&&(o=500);var d=e[o]||e[c(o)];t||(t=d?new d(n):new Error(n||a.message[o]),Error.captureStackTrace(t,e));d&&t instanceof d&&t.status===o||(t.expose=o<500,t.status=t.statusCode=o);for(var p in r)"status"!==p&&"statusCode"!==p&&(t[p]=r[p]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return s(e,Error),e}(),e.exports.isHttpError=(o=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof o||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,n){t.forEach((function(t){var o,i=l(a.message[t]);switch(c(t)){case 400:o=function(e,t,n){var o=d(t);function i(e){var t=null!=e?e:a.message[n],s=new Error(t);return Error.captureStackTrace(s,i),r(s,i.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:o,writable:!0}),s}return s(i,e),u(i,o),i.prototype.status=n,i.prototype.statusCode=n,i.prototype.expose=!0,i}(n,i,t);break;case 500:o=function(e,t,n){var o=d(t);function i(e){var t=null!=e?e:a.message[n],s=new Error(t);return Error.captureStackTrace(s,i),r(s,i.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:o,writable:!0}),s}return s(i,e),u(i,o),i.prototype.status=n,i.prototype.statusCode=n,i.prototype.expose=!1,i}(n,i,t)}o&&(e[t]=o,e[i]=o)}))}(e.exports,a.codes,e.exports.HttpError)},30551:(e,t)=>{t.read=function(e,t,n,o,i){var r,a,s=8*i-o-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-u)-1,f>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),r-=c}return(f?-1:1)*a*Math.pow(2,r-o)},t.write=function(e,t,n,o,i,r){var a,s,l,c=8*r-i-1,u=(1<<c)-1,d=u>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:r-1,h=o?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*m}},2937:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},55309:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function _(){y(o)}function b(e){var t;for(e=e||[];t=S();)!1!==t&&e.push(t);return e}function S(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=h(),n=y(i);if(n){if(S(),!y(r))return v("property missing ':'");var o=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return y(s),l}}return _(),function(){var e,t=[];for(b(t);e=E();)!1!==e&&(t.push(e),b(t));return t}()}},53670:e=>{"use strict";e.exports=function(e,t,n,o,i,r,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,r,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},48254:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},61329:function(e,t,n){var o=n(55872).lW;"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e="3.7.2",t=e,n="function"==typeof atob,i="function"==typeof btoa,r="function"==typeof o,a="function"==typeof TextDecoder?new TextDecoder:void 0,s="function"==typeof TextEncoder?new TextEncoder:void 0,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(l),u=function(e){var t={};return e.forEach((function(e,n){return t[e]=n})),t}(c),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,p=String.fromCharCode.bind(String),f="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},h=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},m=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},g=function(e){for(var t,n,o,i,r="",a=e.length%3,s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");r+=c[(t=n<<16|o<<8|i)>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return a?r.slice(0,a-3)+"===".substring(a):r},v=i?function(e){return btoa(e)}:r?function(e){return o.from(e,"binary").toString("base64")}:g,y=r?function(e){return o.from(e).toString("base64")}:function(e){for(var t=4096,n=[],o=0,i=e.length;o<i;o+=t)n.push(p.apply(null,e.subarray(o,o+t)));return v(n.join(""))},_=function(e,t){return void 0===t&&(t=!1),t?h(y(e)):y(e)},b=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?p(192|t>>>6)+p(128|63&t):p(224|t>>>12&15)+p(128|t>>>6&63)+p(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return p(240|t>>>18&7)+p(128|t>>>12&63)+p(128|t>>>6&63)+p(128|63&t)},S=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(e){return e.replace(S,b)},A=r?function(e){return o.from(e,"utf8").toString("base64")}:s?function(e){return y(s.encode(e))}:function(e){return v(E(e))},T=function(e,t){return void 0===t&&(t=!1),t?h(A(e)):A(e)},P=function(e){return T(e,!0)},O=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return p(55296+(t>>>10))+p(56320+(1023&t));case 3:return p((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return p((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k=function(e){return e.replace(O,C)},R=function(e){if(e=e.replace(/\s+/g,""),!d.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,o,i="",r=0;r<e.length;)t=u[e.charAt(r++)]<<18|u[e.charAt(r++)]<<12|(n=u[e.charAt(r++)])<<6|(o=u[e.charAt(r++)]),i+=64===n?p(t>>16&255):64===o?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,255&t);return i},L=n?function(e){return atob(m(e))}:r?function(e){return o.from(e,"base64").toString("binary")}:R,I=r?function(e){return f(o.from(e,"base64"))}:function(e){return f(L(e),(function(e){return e.charCodeAt(0)}))},N=function(e){return I(D(e))},w=r?function(e){return o.from(e,"base64").toString("utf8")}:a?function(e){return a.decode(I(e))}:function(e){return k(L(e))},D=function(e){return m(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},M=function(e){return w(D(e))},x=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},F=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,x(t))};e("fromBase64",(function(){return M(this)})),e("toBase64",(function(e){return T(this,e)})),e("toBase64URI",(function(){return T(this,!0)})),e("toBase64URL",(function(){return T(this,!0)})),e("toUint8Array",(function(){return N(this)}))},U=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,x(t))};e("toBase64",(function(e){return _(this,e)})),e("toBase64URI",(function(){return _(this,!0)})),e("toBase64URL",(function(){return _(this,!0)}))},B=function(){F(),U()},V={version:e,VERSION:t,atob:L,atobPolyfill:R,btoa:v,btoaPolyfill:g,fromBase64:M,toBase64:T,encode:T,encodeURI:P,encodeURL:P,utob:E,btou:k,decode:M,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:_,toUint8Array:N,extendString:F,extendUint8Array:U,extendBuiltins:B,Base64:{}};return Object.keys(V).forEach((function(e){return V.Base64[e]=V[e]})),V}()},68961:(module,exports,__webpack_require__)=>{var process=__webpack_require__(14224),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null==e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw ERROR;if(null===e)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw ERROR;t=!0}for(var o,i,r=0,a=e.length,s=this.blocks,l=this.buffer8;r<a;){if(this.hashed&&(this.hashed=!1,s[0]=s[16],s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)if(ARRAY_BUFFER)for(i=this.start;r<a&&i<64;++r)l[i++]=e[r];else for(i=this.start;r<a&&i<64;++r)s[i>>2]|=e[r]<<SHIFT[3&i++];else if(ARRAY_BUFFER)for(i=this.start;r<a&&i<64;++r)(o=e.charCodeAt(r))<128?l[i++]=o:o<2048?(l[i++]=192|o>>6,l[i++]=128|63&o):o<55296||o>=57344?(l[i++]=224|o>>12,l[i++]=128|o>>6&63,l[i++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),l[i++]=240|o>>18,l[i++]=128|o>>12&63,l[i++]=128|o>>6&63,l[i++]=128|63&o);else for(i=this.start;r<a&&i<64;++r)(o=e.charCodeAt(r))<128?s[i>>2]|=o<<SHIFT[3&i++]:o<2048?(s[i>>2]|=(192|o>>6)<<SHIFT[3&i++],s[i>>2]|=(128|63&o)<<SHIFT[3&i++]):o<55296||o>=57344?(s[i>>2]|=(224|o>>12)<<SHIFT[3&i++],s[i>>2]|=(128|o>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&o)<<SHIFT[3&i++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),s[i>>2]|=(240|o>>18)<<SHIFT[3&i++],s[i>>2]|=(128|o>>12&63)<<SHIFT[3&i++],s[i>>2]|=(128|o>>6&63)<<SHIFT[3&i++],s[i>>2]|=(128|63&o)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,o,i,r,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(n=((n=(-271733879^(o=((o=(-1732584194^2004318071&e)+a[1]-117830708)<<12|o>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|n>>>15)+o<<0)&(o^e))+a[3]-1316259209)<<22|t>>>10)+n<<0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((o=this.h3)^t&(n^o))+a[0]-680876936)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[1]-389564586)<<12|o>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|n>>>15)+o<<0)&(o^e))+a[3]-1044525330)<<22|t>>>10)+n<<0),t=((t+=((e=((e+=(o^t&(n^o))+a[4]-176418897)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[5]+1200080426)<<12|o>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|n>>>15)+o<<0)&(o^e))+a[7]-45705983)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(o^t&(n^o))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[9]-1958414417)<<12|o>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|n>>>15)+o<<0)&(o^e))+a[11]-1990404162)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(o^t&(n^o))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[13]-40341101)<<12|o>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|n>>>15)+o<<0)&(o^e))+a[15]+1236535329)<<22|t>>>10)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[11]+643717713)<<14|n>>>18)+o<<0)^o))+a[0]-373897302)<<20|t>>>12)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[15]-660478335)<<14|n>>>18)+o<<0)^o))+a[4]-405537848)<<20|t>>>12)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[3]-187363961)<<14|n>>>18)+o<<0)^o))+a[8]+1163531501)<<20|t>>>12)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[7]+1735328473)<<14|n>>>18)+o<<0)^o))+a[12]-1926607734)<<20|t>>>12)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[11]+1839030562)<<16|n>>>16)+o<<0))+a[14]-35309556)<<23|t>>>9)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[7]-155497632)<<16|n>>>16)+o<<0))+a[10]-1094730640)<<23|t>>>9)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[3]-722521979)<<16|n>>>16)+o<<0))+a[6]+76029189)<<23|t>>>9)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[15]+530742520)<<16|n>>>16)+o<<0))+a[2]-995338651)<<23|t>>>9)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[0]-198630844)<<6|e>>>26)+t<<0)|~n))+a[7]+1126891415)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[14]-1416354905)<<15|n>>>17)+o<<0)|~e))+a[5]-57434055)<<21|t>>>11)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~n))+a[3]-1894986606)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[10]-1051523)<<15|n>>>17)+o<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~n))+a[15]-30611744)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[6]-1560198380)<<15|n>>>17)+o<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[4]-145523070)<<6|e>>>26)+t<<0)|~n))+a[11]-1120210379)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[2]+718787259)<<15|n>>>17)+o<<0)|~e))+a[9]-343485551)<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=o+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+o<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,o=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,o=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&o,o>>8&255,o>>16&255,o>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,o="",i=this.array(),r=0;r<15;)e=i[r++],t=i[r++],n=i[r++],o+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=i[r],o+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},29168:e=>{e.exports=n;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function o(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=o;var i={},r={};function a(e,t){var n,o,a;return t?(a=0<=(e>>>=0)&&e<256)&&(o=r[e])?o:(n=l(e,(0|e)<0?-1:0,!0),a&&(r[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(o=i[e])?o:(n=l(e,e<0?-1:0,!1),a&&(i[e]=n),n)}function s(e,t){if(isNaN(e))return t?v:g;if(t){if(e<0)return v;if(e>=f)return E}else{if(e<=-h)return A;if(e+1>=h)return S}return e<0?s(-e,t).neg():l(e%p|0,e/p|0,t)}function l(e,t,o){return new n(e,t,o)}n.fromInt=a,n.fromNumber=s,n.fromBits=l;var c=Math.pow;function u(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return g;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var o;if((o=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===o)return u(e.substring(1),t,n).neg();for(var i=s(c(n,8)),r=g,a=0;a<e.length;a+=8){var l=Math.min(8,e.length-a),d=parseInt(e.substring(a,a+l),n);if(l<8){var p=s(c(n,l));r=r.mul(p).add(s(d))}else r=(r=r.mul(i)).add(s(d))}return r.unsigned=t,r}function d(e,t){return"number"==typeof e?s(e,t):"string"==typeof e?u(e,t):l(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}n.fromString=u,n.fromValue=d;var p=4294967296,f=p*p,h=f/2,m=a(1<<24),g=a(0);n.ZERO=g;var v=a(0,!0);n.UZERO=v;var y=a(1);n.ONE=y;var _=a(1,!0);n.UONE=_;var b=a(-1);n.NEG_ONE=b;var S=l(-1,2147483647,!1);n.MAX_VALUE=S;var E=l(-1,-1,!0);n.MAX_UNSIGNED_VALUE=E;var A=l(0,-2147483648,!1);n.MIN_VALUE=A;var T=n.prototype;T.toInt=function(){return this.unsigned?this.low>>>0:this.low},T.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},T.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(A)){var t=s(e),n=this.div(t),o=n.mul(t).sub(this);return n.toString(e)+o.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=s(c(e,6),this.unsigned),r=this,a="";;){var l=r.div(i),u=(r.sub(l.mul(i)).toInt()>>>0).toString(e);if((r=l).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},T.getHighBits=function(){return this.high},T.getHighBitsUnsigned=function(){return this.high>>>0},T.getLowBits=function(){return this.low},T.getLowBitsUnsigned=function(){return this.low>>>0},T.getNumBitsAbs=function(){if(this.isNegative())return this.eq(A)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},T.isZero=function(){return 0===this.high&&0===this.low},T.eqz=T.isZero,T.isNegative=function(){return!this.unsigned&&this.high<0},T.isPositive=function(){return this.unsigned||this.high>=0},T.isOdd=function(){return 1==(1&this.low)},T.isEven=function(){return 0==(1&this.low)},T.equals=function(e){return o(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},T.eq=T.equals,T.notEquals=function(e){return!this.eq(e)},T.neq=T.notEquals,T.ne=T.notEquals,T.lessThan=function(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.le=T.lessThanOrEqual,T.greaterThan=function(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.ge=T.greaterThanOrEqual,T.compare=function(e){if(o(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},T.comp=T.compare,T.negate=function(){return!this.unsigned&&this.eq(A)?A:this.not().add(y)},T.neg=T.negate,T.add=function(e){o(e)||(e=d(e));var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,r=65535&this.low,a=e.high>>>16,s=65535&e.high,c=e.low>>>16,u=0,p=0,f=0,h=0;return f+=(h+=r+(65535&e.low))>>>16,p+=(f+=i+c)>>>16,u+=(p+=n+s)>>>16,u+=t+a,l((f&=65535)<<16|(h&=65535),(u&=65535)<<16|(p&=65535),this.unsigned)},T.subtract=function(e){return o(e)||(e=d(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function(e){if(this.isZero())return g;if(o(e)||(e=d(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return g;if(this.eq(A))return e.isOdd()?A:g;if(e.eq(A))return this.isOdd()?A:g;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,a=65535&this.low,c=e.high>>>16,u=65535&e.high,p=e.low>>>16,f=65535&e.low,h=0,v=0,y=0,_=0;return y+=(_+=a*f)>>>16,v+=(y+=r*f)>>>16,y&=65535,v+=(y+=a*p)>>>16,h+=(v+=i*f)>>>16,v&=65535,h+=(v+=r*p)>>>16,v&=65535,h+=(v+=a*u)>>>16,h+=n*f+i*p+r*u+a*c,l((y&=65535)<<16|(_&=65535),(h&=65535)<<16|(v&=65535),this.unsigned)},T.mul=T.multiply,T.divide=function(e){if(o(e)||(e=d(e)),e.isZero())throw Error("division by zero");var n,i,r;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?v:g;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return v;if(e.gt(this.shru(1)))return _;r=v}else{if(this.eq(A))return e.eq(y)||e.eq(b)?A:e.eq(A)?y:(n=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?y:b:(i=this.sub(e.mul(n)),r=n.add(i.div(e)));if(e.eq(A))return this.unsigned?v:g;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();r=g}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),u=a<=48?1:c(2,a-48),p=s(n),f=p.mul(e);f.isNegative()||f.gt(i);)f=(p=s(n-=u,this.unsigned)).mul(e);p.isZero()&&(p=y),r=r.add(p),i=i.sub(f)}return r},T.div=T.divide,T.modulo=function(e){return o(e)||(e=d(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},T.mod=T.modulo,T.rem=T.modulo,T.not=function(){return l(~this.low,~this.high,this.unsigned)},T.and=function(e){return o(e)||(e=d(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function(e){return o(e)||(e=d(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function(e){return o(e)||(e=d(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},T.shl=T.shiftLeft,T.shiftRight=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},T.shr=T.shiftRight,T.shiftRightUnsigned=function(e){if(o(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?l(this.low>>>e|t<<32-e,t>>>e,this.unsigned):l(32===e?t:t>>>e-32,0,this.unsigned)},T.shru=T.shiftRightUnsigned,T.shr_u=T.shiftRightUnsigned,T.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},T.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},T.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},T.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},T.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,o){return o?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},8049:()=>{},62505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={}},66685:(e,t,n)=>{var o;!function(i,r,a){if(i){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)l[111+p]="f"+p;for(p=0;p<=9;++p)l[p+96]=p.toString();_.prototype.bind=function(e,t,n){var o=this;return e=e instanceof Array?e:[e],o._bindMultiple.call(o,e,t,n),o},_.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},_.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},_.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},_.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},_.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},_.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},_.init=function(){var e=_(r);for(var t in e)"_"!==t.charAt(0)&&(_[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},_.init();Spicetify.Mousetrap=_;i.Mousetrap=_,e.exports&&(e.exports=_),void 0===(o=function(){return _}.call(t,n,t,e))||(e.exports=o)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function g(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,o,i,r=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i<n.length;++i)o=n[i],d[o]&&(o=d[o]),t&&"keypress"!=t&&u[o]&&(o=u[o],r.push("shift")),m(o)&&r.push(o);return{key:o,modifiers:r,action:t=g(o,r,t)}}function y(e,t){return null!==e&&e!==r&&(e===t||y(e.parentNode,t))}function _(e){var t=this;if(e=e||r,!(t instanceof _))return new _(e);t.target=e,t._callbacks={},t._directMap={};var n,o={},i=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in o)e[t]?n=!0:o[t]=0;n||(s=!1)}function c(e,n,i,r,a,s){var l,c,u,d,p=[],f=i.type;if(!t._callbacks[e])return[];for("keyup"==f&&m(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(c=t._callbacks[e][l],(r||!c.seq||o[c.seq]==c.level)&&f==c.action&&("keypress"==f&&!i.metaKey&&!i.ctrlKey||(u=n,d=c.modifiers,u.sort().join(",")===d.sort().join(",")))){var h=!r&&c.combo==a,g=r&&c.seq==r&&c.level==s;(h||g)&&t._callbacks[e].splice(l,1),p.push(c)}return p}function u(e,n,o,i){t.stopCallback(n,n.target||n.srcElement,o,i)||!1===e(n,o)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=h(e);n&&("keyup"!=e.type||i!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):i=!1)}function p(e,t,r,a){function c(t){return function(){s=t,++o[e],clearTimeout(n),n=setTimeout(l,1e3)}}function d(t){u(r,t,e),"keyup"!==a&&(i=h(t)),setTimeout(l,10)}o[e]=0;for(var p=0;p<t.length;++p){var f=p+1===t.length?d:c(a||v(t[p+1]).action);g(t[p],f,a,e,p)}}function g(e,n,o,i,r){t._directMap[e+":"+o]=n;var a,s=(e=e.replace(/\s+/g," ")).split(" ");s.length>1?p(e,s,n,o):(a=v(e,o),t._callbacks[a.key]=t._callbacks[a.key]||[],c(a.key,a.modifiers,{type:a.action},i,e,r),t._callbacks[a.key][i?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:i,level:r,combo:e}))}t._handleKey=function(e,t,n){var o,i=c(e,t,n),r={},d=0,p=!1;for(o=0;o<i.length;++o)i[o].seq&&(d=Math.max(d,i[o].level));for(o=0;o<i.length;++o)if(i[o].seq){if(i[o].level!=d)continue;p=!0,r[i[o].seq]=1,u(i[o].callback,n,i[o].combo,i[o].seq)}else p||u(i[o].callback,n,i[o].combo);var f="keypress"==n.type&&a;n.type!=s||m(e)||f||l(r),a=p&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var o=0;o<e.length;++o)g(e[o],t,n)},f(e,"keypress",d),f(e,"keydown",d),f(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},54610:e=>{var t=1e3,n=60*t,o=60*n,i=24*o,r=7*i,a=365.25*i;function s(e,t,n,o){var i=t>=1.5*n;return Math.round(e/n)+" "+o+(i?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*r;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*o;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var r=Math.abs(e);if(r>=i)return s(e,r,i,"day");if(r>=o)return s(e,r,o,"hour");if(r>=n)return s(e,r,n,"minute");if(r>=t)return s(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=i)return Math.round(e/i)+"d";if(r>=o)return Math.round(e/o)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},22767:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))n.call(r,c)&&(s[c]=r[c]);if(t){a=t(r);for(var u=0;u<a.length;u++)o.call(r,a[u])&&(s[a[u]]=r[a[u]])}}return s}},98911:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var o=n(59496),i=n(67446),r=n.n(i);class a extends o.Component{constructor(e){super(e),this._osInstance=null,this._osTargetRef=o.createRef()}osInstance(){return this._osInstance}osTarget(){return this._osTargetRef.current||null}componentDidMount(){this._osInstance=r()(this.osTarget(),this.props.options||{},this.props.extensions),s(this._osInstance,this.props.className)}componentWillUnmount(){r().valid(this._osInstance)&&(this._osInstance.destroy(),this._osInstance=null)}componentDidUpdate(e){r().valid(this._osInstance)&&(this._osInstance.options(this.props.options),e.className!==this.props.className&&s(this._osInstance,this.props.className))}render(){const e=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(this.props,["options","extensions","children","className"]);return o.createElement("div",Object.assign({className:"os-host"},e,{ref:this._osTargetRef}),o.createElement("div",{className:"os-resize-observer-host"}),o.createElement("div",{className:"os-padding"},o.createElement("div",{className:"os-viewport"},o.createElement("div",{className:"os-content"},this.props.children))),o.createElement("div",{className:"os-scrollbar os-scrollbar-horizontal "},o.createElement("div",{className:"os-scrollbar-track"},o.createElement("div",{className:"os-scrollbar-handle"}))),o.createElement("div",{className:"os-scrollbar os-scrollbar-vertical"},o.createElement("div",{className:"os-scrollbar-track"},o.createElement("div",{className:"os-scrollbar-handle"}))),o.createElement("div",{className:"os-scrollbar-corner"}))}}function s(e,t){if(r().valid(e)){const{host:n}=e.getElements(),o=new RegExp(`(^os-host([-_].+|)$)|${e.options().className.replace(/\s/g,"$|")}$`,"g"),i=n.className.split(" ").filter((e=>e.match(o))).join(" ");n.className=`${i} ${t||""}`}}},67446:function(e,t,n){var o;!function(i,r){o=function(){return function(e,t,n){"use strict";var o="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},r={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},a=function(){var o={},i={},s=["-webkit-","-moz-","-o-","-ms-"],l=["WebKit","Moz","O","MS"];function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}return{_cssPrefixes:s,_jsPrefixes:l,_cssProperty:function(e){var o=i[e];if(i[r.hOP](e))return o;for(var a,l,u,d=c(e),p=t.createElement("div")[r.s],f=0;f<s.length;f++)for(u=s[f].replace(/-/g,""),a=[e,s[f]+e,u+d,c(u)+d],l=0;l<a[r.l];l++)if(p[a[l]]!==n){o=a[l];break}return i[e]=o,o},_cssPropertyValue:function(e,n,o){var s=e+" "+n,l=i[s];if(i[r.hOP](s))return l;for(var c,u=t.createElement("div")[r.s],d=n.split(" "),p=o||"",f=0,h=-1;f<d[r.l];f++)for(;h<a._cssPrefixes[r.l];h++)if(c=h<0?d[f]:a._cssPrefixes[h]+d[f],u.cssText=e+":"+c+p,u[r.l]){l=c;break}return i[s]=l,l},_jsAPI:function(t,n,i){var a=0,s=o[t];if(!o[r.hOP](t)){for(s=e[t];a<l[r.l];a++)s=s||e[(n?l[a]:l[a].toLowerCase())+c(t)];o[t]=s}return s||i}}}(),s=function(){function o(n){return n?e.innerWidth||t.documentElement[r.cW]||t.body[r.cW]:e.innerHeight||t.documentElement[r.cH]||t.body[r.cH]}function s(e,t){if(typeof e!=i.f)throw"Can't bind function!";var n=r.p,o=Array[n].slice.call(arguments,2),a=function(){},s=function(){return e.apply(this instanceof a?this:t,o.concat(Array[n].slice.call(arguments)))};return e[n]&&(a[n]=e[n]),s[n]=new a,s}return{wW:s(o,0,!0),wH:s(o,0),mO:s(a._jsAPI,0,"MutationObserver",!0),rO:s(a._jsAPI,0,"ResizeObserver",!0),rAF:s(a._jsAPI,0,"requestAnimationFrame",!1,(function(t){return e.setTimeout(t,1e3/60)})),cAF:s(a._jsAPI,0,"cancelAnimationFrame",!1,(function(t){return e.clearTimeout(t)})),now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1},page:function(e){var o="page",i="client",r="X",a="Y",s=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,l=s.documentElement,c=s.body;if(e.touches!==n){var u=e.touches[0];return{x:u[o+r],y:u[o+a]}}return!e[o+r]&&e[i+r]&&null!=e[i+r]?{x:e[i+r]+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0),y:e[i+a]+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)}:{x:e[o+r],y:e[o+a]}},mBtn:function(e){var t=e.button;return e.which||t===n?e.which:1&t?1:2&t?3:4&t?2:0},inA:function(e,t){for(var n=0;n<t[r.l];n++)try{if(t[n]===e)return n}catch(e){}return-1},isA:function(e){var t=Array.isArray;return t?t(e):this.type(e)==i.a},type:function(e){return e===n||null===e?e+"":Object[r.p].toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:s}}(),l=Math,c=e.jQuery,u=(g={p:l.PI,c:l.cos,s:l.sin,w:l.pow,t:l.sqrt,n:l.asin,a:l.abs,o:1.70158},{swing:function(e,t,n,o,i){return.5-g.c(e*g.p)/2},linear:function(e,t,n,o,i){return e},easeInQuad:function(e,t,n,o,i){return o*(t/=i)*t+n},easeOutQuad:function(e,t,n,o,i){return-o*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,o,i){return(t/=i/2)<1?o/2*t*t+n:-o/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,o,i){return o*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,o,i){return o*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,o,i){return(t/=i/2)<1?o/2*t*t*t+n:o/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,o,i){return o*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,o,i){return-o*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,o,i){return(t/=i/2)<1?o/2*t*t*t*t+n:-o/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,o,i){return o*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,o,i){return o*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,o,i){return(t/=i/2)<1?o/2*t*t*t*t*t+n:o/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,o,i){return-o*g.c(t/i*(g.p/2))+o+n},easeOutSine:function(e,t,n,o,i){return o*g.s(t/i*(g.p/2))+n},easeInOutSine:function(e,t,n,o,i){return-o/2*(g.c(g.p*t/i)-1)+n},easeInExpo:function(e,t,n,o,i){return 0==t?n:o*g.w(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,o,i){return t==i?n+o:o*(1-g.w(2,-10*t/i))+n},easeInOutExpo:function(e,t,n,o,i){return 0==t?n:t==i?n+o:(t/=i/2)<1?o/2*g.w(2,10*(t-1))+n:o/2*(2-g.w(2,-10*--t))+n},easeInCirc:function(e,t,n,o,i){return-o*(g.t(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,o,i){return o*g.t(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,o,i){return(t/=i/2)<1?-o/2*(g.t(1-t*t)-1)+n:o/2*(g.t(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,o,i){var r=g.o,a=0,s=o;return 0==t?n:1==(t/=i)?n+o:(a||(a=.3*i),s<g.a(o)?(s=o,r=a/4):r=a/(2*g.p)*g.n(o/s),-s*g.w(2,10*(t-=1))*g.s((t*i-r)*(2*g.p)/a)+n)},easeOutElastic:function(e,t,n,o,i){var r=g.o,a=0,s=o;return 0==t?n:1==(t/=i)?n+o:(a||(a=.3*i),s<g.a(o)?(s=o,r=a/4):r=a/(2*g.p)*g.n(o/s),s*g.w(2,-10*t)*g.s((t*i-r)*(2*g.p)/a)+o+n)},easeInOutElastic:function(e,t,n,o,i){var r=g.o,a=0,s=o;return 0==t?n:2==(t/=i/2)?n+o:(a||(a=i*(.3*1.5)),s<g.a(o)?(s=o,r=a/4):r=a/(2*g.p)*g.n(o/s),t<1?s*g.w(2,10*(t-=1))*g.s((t*i-r)*(2*g.p)/a)*-.5+n:s*g.w(2,-10*(t-=1))*g.s((t*i-r)*(2*g.p)/a)*.5+o+n)},easeInBack:function(e,t,n,o,i,r){return o*(t/=i)*t*(((r=r||g.o)+1)*t-r)+n},easeOutBack:function(e,t,n,o,i,r){return o*((t=t/i-1)*t*(((r=r||g.o)+1)*t+r)+1)+n},easeInOutBack:function(e,t,n,o,i,r){return r=r||g.o,(t/=i/2)<1?o/2*(t*t*((1+(r*=1.525))*t-r))+n:o/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+n},easeInBounce:function(e,t,n,o,i){return o-this.easeOutBounce(e,i-t,0,o,i)+n},easeOutBounce:function(e,t,n,o,i){var r=7.5625;return(t/=i)<1/2.75?o*(r*t*t)+n:t<2/2.75?o*(r*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?o*(r*(t-=2.25/2.75)*t+.9375)+n:o*(r*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,o,i){return t<i/2?.5*this.easeInBounce(e,2*t,0,o,i)+n:.5*this.easeOutBounce(e,2*t-i,0,o,i)+.5*o+n}}),d=function(){var o=/[^\x20\t\r\n\f]+/g,a=" ",c="",d="scrollLeft",p="scrollTop",f=[],h=s.type,m={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0};function g(){var e,t,o,a,l,c,u=arguments[0]||{},d=1,p=arguments[r.l],f=!1;for(h(u)==i.b&&(f=u,u=arguments[1]||{},d=2),h(u)!=i.o&&!h(u)==i.f&&(u={}),p===d&&(u=w,--d);d<p;d++)if(null!=(l=arguments[d]))for(a in l)e=u[a],u!==(o=l[a])&&(f&&o&&(b(o)||(t=s.isA(o)))?(t?(t=!1,c=e&&s.isA(e)?e:[]):c=e&&b(e)?e:{},u[a]=g(f,c,o)):o!==n&&(u[a]=o));return u}function v(e,t,n){for(var o=n||0;o<t[r.l];o++)if(t[o]===e)return o;return-1}function y(e){return h(e)==i.f}function _(e){for(var t in e)return!1;return!0}function b(e){if(!e||h(e)!=i.o)return!1;var t,n=r.p,o=Object[n].hasOwnProperty,a=o.call(e,"constructor"),s=e.constructor&&e.constructor[n]&&o.call(e.constructor[n],"isPrototypeOf");if(e.constructor&&!a&&!s)return!1;for(t in e);return h(t)==i.u||o.call(e,t)}function S(e,t){var n=0;if(E(e))for(;n<e[r.l]&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e}function E(e){var t=!!e&&[r.l]in e&&e[r.l],n=h(e);return!y(n)&&(n==i.a||0===t||h(t)==i.n&&t>0&&t-1 in e)}function A(e){return(e.match(o)||[]).join(a)}function T(e,n){for(var o=(e.parentNode||t).querySelectorAll(n)||[],i=o[r.l];i--;)if(o[i]==e)return!0;return!1}function P(e,t,n){if(s.isA(n))for(var o=0;o<n[r.l];o++)P(e,t,n[o]);else h(n)==i.s?e.insertAdjacentHTML(t,n):e.insertAdjacentElement(t,n.nodeType?n:n[0])}function O(e,t,o){try{e[r.s][t]!==n&&(e[r.s][t]=C(t,o))}catch(e){}}function C(e,t){return m[e.toLowerCase()]||h(t)!=i.n||(t+="px"),t}function k(e,t){var n,o;!1!==t&&e.q.splice(0,1),e.q[r.l]>0?(o=e.q[0],L(e.el,o.props,o.duration,o.easing,o.complete,!0)):(n=v(e,f))>-1&&f.splice(n,1)}function R(e,t,n){t===d||t===p?e[t]=n:O(e,t,n)}function L(e,t,o,i,a,c){var h,m,g,S,E,A,T=b(o),P={},O={},C=0;for(T?(i=o.easing,o.start,g=o.progress,S=o.step,E=o.specialEasing,a=o.complete,A=o.duration):A=o,E=E||{},A=A||400,i=i||"swing",c=c||!1;C<f[r.l];C++)if(f[C].el===e){m=f[C];break}for(h in m||(m={el:e,q:[]},f.push(m)),t)P[h]=h===d||h===p?e[h]:w(e).css(h);for(h in P)P[h]!==t[h]&&t[h]!==n&&(O[h]=t[h]);if(_(O))c&&k(m);else{var L,I,N,D,M,x,F,U,B,V=c?0:v(G,m.q),G={props:O,duration:T?o:A,easing:i,complete:a};if(-1===V&&(V=m.q[r.l],m.q.push(G)),0===V)if(A>0)F=s.now(),U=function(){for(h in L=s.now(),B=L-F,I=G.stop||B>=A,N=1-(l.max(0,F+A-L)/A||0),O)D=parseFloat(P[h]),M=parseFloat(O[h]),x=(M-D)*u[E[h]||i](N,N*A,0,1,A)+D,R(e,h,x),y(S)&&S(x,{elem:e,prop:h,start:D,now:x,end:M,pos:N,options:{easing:i,speacialEasing:E,duration:A,complete:a,step:S},startTime:F});y(g)&&g({},N,l.max(0,A-B)),I?(k(m),y(a)&&a()):G.frame=s.rAF()(U)},G.frame=s.rAF()(U);else{for(h in O)R(e,h,O[h]);k(m)}}}function I(e,t,n){for(var o,i,a,l=0;l<f[r.l];l++)if((o=f[l]).el===e){if(o.q[r.l]>0){if((i=o.q[0]).stop=!0,s.cAF()(i.frame),o.q.splice(0,1),n)for(a in i.props)R(e,a,i.props[a]);t?o.q=[]:k(o,!1)}break}}function N(e){return!!(e[r.oW]||e[r.oH]||e.getClientRects()[r.l])}function w(n){if(0===arguments[r.l])return this;var o,a,s=new w,l=n,c=0;if(h(n)==i.s)for(l=[],"<"===n.charAt(0)?((a=t.createElement("div")).innerHTML=n,o=a.children):o=t.querySelectorAll(n);c<o[r.l];c++)l.push(o[c]);if(l){for(h(l)==i.s||E(l)&&l!==e&&l!==l.self||(l=[l]),c=0;c<l[r.l];c++)s[c]=l[c];s[r.l]=l[r.l]}return s}return w[r.p]={on:function(e,t){var n,i=(e=(e||c).match(o)||[c])[r.l],a=0;return this.each((function(){n=this;try{if(n.addEventListener)for(;a<i;a++)n.addEventListener(e[a],t);else if(n.detachEvent)for(;a<i;a++)n.attachEvent("on"+e[a],t)}catch(e){}}))},off:function(e,t){var n,i=(e=(e||c).match(o)||[c])[r.l],a=0;return this.each((function(){n=this;try{if(n.removeEventListener)for(;a<i;a++)n.removeEventListener(e[a],t);else if(n.detachEvent)for(;a<i;a++)n.detachEvent("on"+e[a],t)}catch(e){}}))},one:function(e,t){return e=(e||c).match(o)||[c],this.each((function(){var n=w(this);w.each(e,(function(e,o){var i=function(e){t.call(this,e),n.off(o,i)};n.on(o,i)}))}))},trigger:function(e){var n,o;return this.each((function(){n=this,t.createEvent?((o=t.createEvent("HTMLEvents")).initEvent(e,!0,!1),n.dispatchEvent(o)):n.fireEvent("on"+e)}))},append:function(e){return this.each((function(){P(this,"beforeend",e)}))},prepend:function(e){return this.each((function(){P(this,"afterbegin",e)}))},before:function(e){return this.each((function(){P(this,"beforebegin",e)}))},after:function(e){return this.each((function(){P(this,"afterend",e)}))},remove:function(){return this.each((function(){var e=this,t=e.parentNode;null!=t&&t.removeChild(e)}))},unwrap:function(){var e,t,n,o=[];for(this.each((function(){-1===v(n=this.parentNode,o)&&o.push(n)})),e=0;e<o[r.l];e++){for(t=o[e],n=t.parentNode;t.firstChild;)n.insertBefore(t.firstChild,t);n.removeChild(t)}return this},wrapAll:function(e){for(var t,n=this,o=w(e)[0],i=o,a=n[0].parentNode,s=n[0].previousSibling;i.childNodes[r.l]>0;)i=i.childNodes[0];for(t=0;n[r.l]-t;i.firstChild===n[0]&&t++)i.appendChild(n[t]);var l=s?s.nextSibling:a.firstChild;return a.insertBefore(o,l),this},wrapInner:function(e){return this.each((function(){var t=w(this),n=t.contents();n[r.l]?n.wrapAll(e):t.append(e)}))},wrap:function(e){return this.each((function(){w(this).wrapAll(e)}))},css:function(t,o){var a,s,l,c=e.getComputedStyle;return h(t)==i.s?o===n?(a=this[0],l=c?c(a,null):a.currentStyle[t],c?null!=l?l.getPropertyValue(t):a[r.s][t]:l):this.each((function(){O(this,t,o)})):this.each((function(){for(s in t)O(this,s,t[s])}))},hasClass:function(e){for(var t,n,o=0,i=a+e+a;t=this[o++];){if((n=t.classList)&&n.contains(e))return!0;if(1===t.nodeType&&(a+A(t.className+c)+a).indexOf(i)>-1)return!0}return!1},addClass:function(e){var t,i,r,s,l,u,d,p,f=0,h=0;if(e)for(t=e.match(o)||[];i=this[f++];)if(p=i.classList,d===n&&(d=p!==n),d)for(;l=t[h++];)p.add(l);else if(s=i.className+c,r=1===i.nodeType&&a+A(s)+a){for(;l=t[h++];)r.indexOf(a+l+a)<0&&(r+=l+a);s!==(u=A(r))&&(i.className=u)}return this},removeClass:function(e){var t,i,r,s,l,u,d,p,f=0,h=0;if(e)for(t=e.match(o)||[];i=this[f++];)if(p=i.classList,d===n&&(d=p!==n),d)for(;l=t[h++];)p.remove(l);else if(s=i.className+c,r=1===i.nodeType&&a+A(s)+a){for(;l=t[h++];)for(;r.indexOf(a+l+a)>-1;)r=r.replace(a+l+a,a);s!==(u=A(r))&&(i.className=u)}return this},hide:function(){return this.each((function(){this[r.s].display="none"}))},show:function(){return this.each((function(){this[r.s].display="block"}))},attr:function(e,t){for(var o,i=0;o=this[i++];){if(t===n)return o.getAttribute(e);o.setAttribute(e,t)}return this},removeAttr:function(e){return this.each((function(){this.removeAttribute(e)}))},offset:function(){var n=this[0][r.bCR](),o=e.pageXOffset||t.documentElement[d],i=e.pageYOffset||t.documentElement[p];return{top:n.top+i,left:n.left+o}},position:function(){var e=this[0];return{top:e.offsetTop,left:e.offsetLeft}},scrollLeft:function(e){for(var t,o=0;t=this[o++];){if(e===n)return t[d];t[d]=e}return this},scrollTop:function(e){for(var t,o=0;t=this[o++];){if(e===n)return t[p];t[p]=e}return this},val:function(e){var t=this[0];return e?(t.value=e,this):t.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){return w(this[e>=0?e:this[r.l]+e])},find:function(e){var t,n=[];return this.each((function(){var o=this.querySelectorAll(e);for(t=0;t<o[r.l];t++)n.push(o[t])})),w(n)},children:function(e){var t,n,o,i=[];return this.each((function(){for(n=this.children,o=0;o<n[r.l];o++)t=n[o],e?(t.matches&&t.matches(e)||T(t,e))&&i.push(t):i.push(t)})),w(i)},parent:function(e){var t,n=[];return this.each((function(){t=this.parentNode,e&&!w(t).is(e)||n.push(t)})),w(n)},is:function(e){var t,n;for(n=0;n<this[r.l];n++){if(t=this[n],":visible"===e)return N(t);if(":hidden"===e)return!N(t);if(t.matches&&t.matches(e)||T(t,e))return!0}return!1},contents:function(){var e,t,n=[];return this.each((function(){for(e=this.childNodes,t=0;t<e[r.l];t++)n.push(e[t])})),w(n)},each:function(e){return S(this,e)},animate:function(e,t,n,o){return this.each((function(){L(this,e,t,n,o)}))},stop:function(e,t){return this.each((function(){I(this,e,t)}))}},g(w,{extend:g,inArray:v,isEmptyObject:_,isPlainObject:b,each:S}),w}(),p=(h=[],m="__overlayScrollbars__",function(e,t){var n=arguments[r.l];if(n<1)return h;if(t)e[m]=t,h.push(e);else{var o=s.inA(e,h);if(o>-1){if(!(n>1))return h[o][m];delete e[m],h.splice(o,1)}}}),f=function(){var u,f,h,m,g,v,y,_,b,S,E,A,T,P,O,C,k=[],R=(m=s.type,g=[i.b,i.n,i.s,i.a,i.o,i.f,i.z],v=" ",y=":",_=[i.z,i.s],b=i.n,S=[i.z,i.b],E=[!0,i.b],A=[!1,i.b],T=[null,[i.z,i.f]],P="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",O={className:["os-theme-dark",_],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:E,clipAlways:E,normalizeRTL:E,paddingAbsolute:A,autoUpdate:[null,S],autoUpdateInterval:[33,b],updateOnLoad:[["img"],[i.s,i.a,i.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:A,initialize:E},overflowBehavior:{x:["scroll",P],y:["scroll",P]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,b],dragScrolling:E,clickScrolling:A,touchSupport:E,snapHandle:A},textarea:{dynWidth:A,dynHeight:A,inheritedAttrs:[["style","class"],[i.s,i.a,i.z]]},callbacks:{onInitialized:T,onInitializationWithdrawn:T,onDestroyed:T,onScrollStart:T,onScroll:T,onScrollStop:T,onOverflowChanged:T,onOverflowAmountChanged:T,onDirectionChanged:T,onContentSizeChanged:T,onHostSizeChanged:T,onUpdated:T}},{_defaults:(C=function(e){var t=function(n){var o,a,s;for(o in n)n[r.hOP](o)&&(a=n[o],(s=m(a))==i.a?n[o]=a[e?1:0]:s==i.o&&(n[o]=t(a)));return n};return t(d.extend(!0,{},O))})(),_template:C(!0),_validate:function(t,o,a,l){var c={},u={},p=d.extend(!0,{},t),f=d.inArray,h=d.isEmptyObject,_=function(e,t,o,l,c,u){for(var p in t)if(t[r.hOP](p)&&e[r.hOP](p)){var b,S,E,A,T,P,O,C,k=!1,R=!1,L=t[p],I=m(L),N=I==i.o,w=s.isA(L)?L:[L],D=o[p],M=e[p],x=m(M),F=u?u+".":"",U='The option "'+F+p+"\" wasn't set, because",B=[],V=[];if(D=D===n?{}:D,N&&x==i.o)l[p]={},c[p]={},_(M,L,D,l[p],c[p],F+p),d.each([e,l,c],(function(e,t){h(t[p])&&delete t[p]}));else if(!N){for(P=0;P<w[r.l];P++)if(T=w[P],E=(I=m(T))==i.s&&-1===f(T,g))for(B.push(i.s),b=T.split(v),V=V.concat(b),O=0;O<b[r.l];O++){for(A=(S=b[O].split(y))[0],C=0;C<S[r.l];C++)if(M===S[C]){k=!0;break}if(k)break}else if(B.push(T),x===T){k=!0;break}k?((R=M!==D)&&(l[p]=M),(E?f(D,S)<0:R)&&(c[p]=E?A:M)):a&&console.warn(U+" it doesn't accept the type [ "+x.toUpperCase()+' ] with the value of "'+M+'".\r\nAccepted types are: [ '+B.join(", ").toUpperCase()+" ]."+(V[length]>0?"\r\nValid strings are: [ "+V.join(", ").split(y).join(", ")+" ].":"")),delete e[p]}}};return _(p,o,l||{},c,u),!h(p)&&a&&console.warn("The following options are discarded due to invalidity:\r\n"+e.JSON.stringify(p,null,2)),{_default:c,_prepared:u}}});function L(){f||(f=new I(R._defaults)),h||(h=new N(f))}function I(t){var n=this,o="overflow",i="hidden",c="scroll",u=d("body"),f=d('<div id="os-dummy-scrollbar-size"><div></div></div>'),h=f[0],m=d(f.children("div").eq(0));u.append(f),f.hide().show();var g=_(h),v={x:0===g.x,y:0===g.y},y=function(){var t,n=e.navigator.userAgent,o="indexOf",i="substring",r=n[o]("MSIE "),a=n[o]("Trident/"),s=n[o]("Edge/"),l=n[o]("rv:"),c=parseInt;return r>0?t=c(n[i](r+5,n[o](".",r)),10):a>0?t=c(n[i](l+3,n[o](".",l)),10):s>0&&(t=c(n[i](s+5,n[o](".",s)),10)),t}();function _(e){return{x:e[r.oH]-e[r.cH],y:e[r.oW]-e[r.cW]}}d.extend(n,{defaultOptions:t,msie:y,autoUpdateLoop:!1,autoUpdateRecommended:!s.mO(),nativeScrollbarSize:g,nativeScrollbarIsOverlaid:v,nativeScrollbarStyling:function(){var t=!1;f.addClass("os-viewport-native-scrollbars-invisible");try{t="none"===f.css("scrollbar-width")&&(y>9||!y)||"none"===e.getComputedStyle(h,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return t}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:a._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){f.css(o,i);var e={w:h[r.sW],h:h[r.sH]};f.css(o,"visible");var t={w:h[r.sW],h:h[r.sH]};return e.w-t.w!=0||e.h-t.h!=0}(),rtlScrollBehavior:function(){f.css({"overflow-y":i,"overflow-x":c,direction:"rtl"}).scrollLeft(0);var e=f.offset(),t=m.offset();f.scrollLeft(-999);var n=m.offset();return{i:e.left===t.left,n:t.left!==n.left}}(),supportTransform:!!a._cssProperty("transform"),supportTransition:!!a._cssProperty("transition"),supportPassiveEvents:function(){var t=!1;try{e.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),supportResizeObserver:!!s.rO(),supportMutationObserver:!!s.mO()}),f.removeAttr(r.s).remove(),function(){if(!v.x||!v.y){var t=l.abs,o=s.wW(),i=s.wH(),r=h(),a=function(){if(p().length>0){var e=s.wW(),a=s.wH(),m=e-o,g=a-i;if(0===m&&0===g)return;var v,y=l.round(e/(o/100)),b=l.round(a/(i/100)),S=t(m),E=t(g),A=t(y),T=t(b),P=h(),O=S>2&&E>2,C=!c(A,T),k=O&&C&&(P!==r&&r>0),R=n.nativeScrollbarSize;k&&(u.append(f),v=n.nativeScrollbarSize=_(f[0]),f.remove(),R.x===v.x&&R.y===v.y||d.each(p(),(function(){p(this)&&p(this).update("zoom")}))),o=e,i=a,r=P}};d(e).on("resize",a)}function c(e,n){var o=t(e),i=t(n);return!(o===i||o+1===i||o-1===i)}function h(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function N(e){var t,o=this,i=d.inArray,a=s.now,c="autoUpdate",u=c+"Interval",p=r.l,f=[],h=[],m=!1,g=33,v=g,y=a(),_=function(){if(f[p]>0&&m){t=s.rAF()((function(){_()}));var e,o,i,r,d,b,S=a(),E=S-y;if(E>v){y=S-E%v,e=g;for(var A=0;A<f[p];A++)(o=f[A])!==n&&(r=(i=o.options())[c],d=l.max(1,i[u]),b=a(),(!0===r||null===r)&&b-h[A]>d&&(o.update("auto"),h[A]=new Date(b+=d)),e=l.max(1,l.min(e,d)));v=e}}else v=g};o.add=function(t){-1===i(t,f)&&(f.push(t),h.push(a()),f[p]>0&&!m&&(m=!0,e.autoUpdateLoop=m,_()))},o.remove=function(o){var r=i(o,f);r>-1&&(h.splice(r,1),f.splice(r,1),0===f[p]&&m&&(m=!1,e.autoUpdateLoop=m,t!==n&&(s.cAF()(t),t=-1)))}}function w(o,f,h,m,g){var v=s.type,y=d.inArray,_=d.each,b=new u,S=d[r.p];if(vi(o)){if(p(o)){var E=p(o);return E.options(f),E}var A,T,P,O,C,k,L,I,N,w,D,M,x,F,U,B,V,G,J,j,H,K,Y,W,z,q,X,Z,Q,$,ee,te,ne,oe,ie,re,ae,se,le,ce,ue,de,pe,fe,he,me,ge,ve,ye,_e,be,Se,Ee,Ae,Te,Pe,Oe,Ce,ke,Re,Le,Ie,Ne,we,De,Me,xe,Fe,Ue,Be,Ve,Ge,Je,je,He,Ke,Ye,We,ze,qe,Xe,Ze,Qe,$e,et,tt,nt,ot,it,rt,at,st,lt,ct,ut,dt,pt,ft,ht,mt,gt,vt,yt,_t,bt,St,Et,At,Tt,Pt,Ot,Ct,kt,Rt,Lt,It,Nt,wt,Dt,Mt,xt={},Ft={},Ut={},Bt={},Vt={},Gt="-hidden",Jt="margin-",jt="padding-",Ht="border-",Kt="top",Yt="right",Wt="bottom",zt="left",qt="min-",Xt="max-",Zt="width",Qt="height",$t="float",en="",tn="auto",nn="sync",on="scroll",rn="100%",an="x",sn="y",ln=".",cn=" ",un="scrollbar",dn="-horizontal",pn="-vertical",fn=on+"Left",hn=on+"Top",mn="mousedown touchstart",gn="mouseup touchend touchcancel",vn="mousemove touchmove",yn="mouseenter",_n="mouseleave",bn="keydown",Sn="keyup",En="selectstart",An="transitionend webkitTransitionEnd oTransitionEnd",Tn="__overlayScrollbarsRO__",Pn="os-",On=Pn+"html",Cn=Pn+"host",kn=Cn+"-foreign",Rn=Cn+"-textarea",Ln=Cn+"-"+un+dn+Gt,In=Cn+"-"+un+pn+Gt,Nn=Cn+"-transition",wn=Cn+"-rtl",Dn=Cn+"-resize-disabled",Mn=Cn+"-scrolling",xn=Cn+"-overflow",Fn=(xn=Cn+"-overflow")+"-x",Un=xn+"-y",Bn=Pn+"textarea",Vn=Bn+"-cover",Gn=Pn+"padding",Jn=Pn+"viewport",jn=Jn+"-native-scrollbars-invisible",Hn=Jn+"-native-scrollbars-overlaid",Kn=Pn+"content",Yn=Pn+"content-arrange",Wn=Pn+"content-glue",zn=Pn+"size-auto-observer",qn=Pn+"resize-observer",Xn=Pn+"resize-observer-item",Zn=Xn+"-final",Qn=Pn+"text-inherit",$n=Pn+un,eo=$n+"-track",to=eo+"-off",no=$n+"-handle",oo=no+"-off",io=$n+"-unusable",ro=$n+"-"+tn+Gt,ao=$n+"-corner",so=ao+"-resize",lo=so+"-both",co=so+dn,uo=so+pn,po=$n+dn,fo=$n+pn,ho=Pn+"dragging",mo=Pn+"theme-none",go=[jn,Hn,to,oo,io,ro,so,lo,co,uo,ho].join(cn),vo=[],yo=[r.ti],_o={},bo="added removed on contract",So={},Eo=42,Ao="load",To=[],Po={},Oo=["wrap","cols","rows"],Co=[r.i,r.c,r.s,"open"].concat(yo),ko=[];return b.sleep=function(){Q=!0},b.update=function(e){var t,o,r,a,s;if(!U)return v(e)==i.s?e===tn?(t=Yo(),o=Ko(),(r=t||o)&&Xo({_contentSizeChanged:o,_changedOptions:F?n:te})):e===nn?St?(a=_t(vt.takeRecords()),s=bt(yt.takeRecords())):a=b.update(tn):"zoom"===e&&Xo({_hostSizeChanged:!0,_contentSizeChanged:!0}):(e=Q||e,Q=!1,b.update(nn)&&!e||Xo({_force:e})),Zo(),r||a||s},b.options=function(e,t){var n,o={};if(d.isEmptyObject(e)||!d.isPlainObject(e)){if(v(e)!=i.s)return ee;if(!(arguments.length>1))return Pi(ee,e);Oi(o,e,t),n=Qo(o)}else n=Qo(e);d.isEmptyObject(n)||Xo({_changedOptions:n})},b.destroy=function(){if(!U){for(var e in g.remove(b),Do(),Io(de),Io(ue),_o)b.removeExt(e);for(;ko[r.l]>0;)ko.pop()();Go(!0),ge&&wi(ge),me&&wi(me),H&&wi(ue),ti(!0),ci(!0),$o(!0);for(var t=0;t<To[r.l];t++)d(To[t]).off(Ao,Vo);To=n,U=!0,Q=!0,p(o,0),di("onDestroyed")}},b.scroll=function(e,t,o,a){if(0===arguments.length||e===n){var u=Ft,p=Ut,f=lt&&Z&&P.i,h=lt&&Z&&P.n,m=u._currentScroll,g=u._currentScrollRatio,_=u._maxScroll;return g=f?1-g:g,m=f?_-m:m,_*=h?-1:1,{position:{x:m*=h?-1:1,y:p._currentScroll},ratio:{x:g,y:p._currentScrollRatio},max:{x:_,y:p._maxScroll},handleOffset:{x:u._handleOffset,y:p._handleOffset},handleLength:{x:u._handleLength,y:p._handleLength},handleLengthRatio:{x:u._handleLengthRatio,y:p._handleLengthRatio},trackLength:{x:u._trackLength,y:p._trackLength},snappedHandleOffset:{x:u._snappedHandleOffset,y:p._snappedHandleOffset},isRTL:Z,isRTLNormalized:lt}}b.update(nn);var S,E,A,T,O,C,k,R,L,I=lt,N=[an,zt,"l"],D=[sn,Kt,"t"],M=["+=","-=","*=","/="],x=v(t)==i.o,F=x?t.complete:a,U={},B={},V="end",G="begin",J="center",j="nearest",H="always",K="never",Y="ifneeded",W=r.l,z=[an,sn,"xy","yx"],q=[G,V,J,j],X=[H,K,Y],Q=e[r.hOP]("el"),$=Q?e.el:e,ee=!!($ instanceof d||c)&&$ instanceof c,te=!ee&&vi($),ne=function(){E&&ai(!0),A&&ai(!1)},oe=v(F)!=i.f?n:function(){ne(),F()};function ie(e,t){for(S=0;S<t[W];S++)if(e===t[S])return!0;return!1}function re(e,t){var n=e?N:D;if(t=v(t)==i.s||v(t)==i.n?[t,t]:t,s.isA(t))return e?t[0]:t[1];if(v(t)==i.o)for(S=0;S<n[W];S++)if(n[S]in t)return t[n[S]]}function ae(e,t){var o,r,a,s,c=v(t)==i.s,u=e?Ft:Ut,d=u._currentScroll,p=u._maxScroll,f=" * ",h=Z&&e,m=h&&P.n&&!I,g="replace",_=eval;if(c?(t[W]>2&&(s=t.substr(0,2),y(s,M)>-1&&(o=s)),t=(t=o?t.substr(2):t)[g](/min/g,0)[g](/</g,0)[g](/max/g,(m?"-":en)+rn)[g](/>/g,(m?"-":en)+rn)[g](/px/g,en)[g](/%/g,f+p*(h&&P.n?-1:1)/100)[g](/vw/g,f+Bt.w)[g](/vh/g,f+Bt.h),r=_i(isNaN(t)?_i(_(t),!0).toFixed():t)):r=t,r!==n&&!isNaN(r)&&v(r)==i.n){var b=I&&h,S=d*(b&&P.n?-1:1),E=b&&P.i,A=b&&P.n;switch(S=E?p-S:S,o){case"+=":a=S+r;break;case"-=":a=S-r;break;case"*=":a=S*r;break;case"/=":a=S/r;break;default:a=r}a=E?p-a:a,a*=A?-1:1,a=h&&P.n?l.min(0,l.max(p,a)):l.max(0,l.min(p,a))}return a===d?n:a}function se(e,t,n,o){var r,a,s=[n,n],l=v(e);if(l==t)e=[e,e];else if(l==i.a){if((r=e[W])>2||r<1)e=s;else for(1===r&&(e[1]=n),S=0;S<r;S++)if(a=e[S],v(a)!=t||!ie(a,o)){e=s;break}}else e=l==i.o?[e[an]||n,e[sn]||n]:s;return{x:e[0],y:e[1]}}function le(e){var t,n,o=[],r=[Kt,Yt,Wt,zt];for(S=0;S<e[W]&&S!==r[W];S++)t=e[S],(n=v(t))==i.b?o.push(t?_i(L.css(Jt+r[S])):0):o.push(n==i.n?t:0);return o}if(ee||te){var ce,ue=Q?e.margin:0,de=Q?e.axis:0,he=Q?e.scroll:0,me=Q?e.block:0,ge=[0,0,0,0],ve=v(ue);if((L=ee?$:d($))[W]>0){ue=ve==i.n||ve==i.b?le([ue,ue,ue,ue]):ve==i.a?2===(ce=ue[W])?le([ue[0],ue[1],ue[0],ue[1]]):ce>=4?le(ue):ge:ve==i.o?le([ue[Kt],ue[Yt],ue[Wt],ue[zt]]):ge,O=ie(de,z)?de:"xy",C=se(he,i.s,H,X),k=se(me,i.s,G,q),R=ue;var ye={l:Ft._currentScroll,t:Ut._currentScroll},_e=pe.offset(),be=L.offset(),Se={x:C.x==K||O==sn,y:C.y==K||O==an};be[Kt]-=R[0],be[zt]-=R[3];var Ee={x:l.round(be[zt]-_e[zt]+ye.l),y:l.round(be[Kt]-_e[Kt]+ye.t)};if(Z&&(P.n||P.i||(Ee.x=l.round(_e[zt]-be[zt]+ye.l)),P.n&&I&&(Ee.x*=-1),P.i&&I&&(Ee.x=l.round(_e[zt]-be[zt]+(Ft._maxScroll-ye.l)))),k.x!=G||k.y!=G||C.x==Y||C.y==Y||Z){var Ae=L[0],Te=w?Ae[r.bCR]():{width:Ae[r.oW],height:Ae[r.oH]},Pe={w:Te[Zt]+R[3]+R[1],h:Te[Qt]+R[0]+R[2]},Oe=function(e){var t=li(e),n=t._w_h,o=t._left_top,i=t._x_y,r=k[i]==(e&&Z?G:V),a=k[i]==J,s=k[i]==j,l=C[i]==K,c=C[i]==Y,u=Bt[n],d=_e[o],p=Pe[n],f=be[o],h=a?2:1,m=f+p/2,g=d+u/2,v=p<=u&&f>=d&&f+p<=d+u;l?Se[i]=!0:Se[i]||((s||c)&&(Se[i]=!!c&&v,r=p<u?m>g:m<g),Ee[i]-=r||a?(u/h-p/h)*(e&&Z&&I?-1:1):0)};Oe(!0),Oe(!1)}Se.y&&delete Ee.y,Se.x&&delete Ee.x,e=Ee}}U[fn]=ae(!0,re(!0,e)),U[hn]=ae(!1,re(!1,e)),E=U[fn]!==n,A=U[hn]!==n,(E||A)&&(t>0||x)?x?(t.complete=oe,fe.animate(U,t)):(T={duration:t,complete:oe},s.isA(o)||d.isPlainObject(o)?(B[fn]=o[0]||o.x,B[hn]=o[1]||o.y,T.specialEasing=B):T.easing=o,fe.animate(U,T)):(E&&fe[fn](U[fn]),A&&fe[hn](U[hn]),ne())},b.scrollStop=function(e,t,n){return fe.stop(e,t,n),b},b.getElements=function(e){var t={target:Ce,host:ke,padding:Ie,viewport:Ne,content:we,scrollbarHorizontal:{scrollbar:_e[0],track:be[0],handle:Se[0]},scrollbarVertical:{scrollbar:Ee[0],track:Ae[0],handle:Te[0]},scrollbarCorner:ye[0]};return v(e)==i.s?Pi(t,e):t},b.getState=function(e){function t(e){if(!d.isPlainObject(e))return e;var t=Ri({},e),n=function(e,n){t[r.hOP](e)&&(t[n]=t[e],delete t[e])};return n("w",Zt),n("h",Qt),delete t.c,t}var n={destroyed:!!t(U),sleeping:!!t(Q),autoUpdate:t(!St),widthAuto:t(Be),heightAuto:t(Ve),padding:t(Je),overflowAmount:t(Ze),hideOverflow:t(Ue),hasOverflow:t(Fe),contentScrollSize:t(Me),viewportSize:t(Bt),hostSize:t(De),documentMixed:t(G)};return v(e)==i.s?Pi(n,e):n},b.ext=function(e){var t,n=bo.split(" "),o=0;if(v(e)==i.s){if(_o[r.hOP](e))for(t=Ri({},_o[e]);o<n.length;o++)delete t[n[o]]}else for(o in t={},_o)t[o]=Ri({},b.ext(o));return t},b.addExt=function(t,n){var o,a,l,c,p=u.extension(t),f=!0;if(p){if(_o[r.hOP](t))return b.ext(t);if((o=p.extensionFactory.call(b,Ri({},p.defaultOptions),d,s))&&(l=o.contract,v(l)==i.f&&(c=l(e),f=v(c)==i.b?c:f),f))return _o[t]=o,a=o.added,v(a)==i.f&&a(n),b.ext(t)}else console.warn('A extension with the name "'+t+"\" isn't registered.")},b.removeExt=function(e){var t,n=_o[e];return!!n&&(delete _o[e],t=n.removed,v(t)==i.f&&t(),!0)},u.valid(Mi(o,f,h))&&p(o,b),b}function Ro(e,t,n,o,i){var a=s.isA(t)&&s.isA(n),l=o?"removeEventListener":"addEventListener",c=o?"off":"on",u=!a&&t.split(cn),p=0,f=d.isPlainObject(i),h=D&&(f?i._passive:i)||!1,m=f&&(i._capture||!1),g=D?{passive:h,capture:m}:m;if(a)for(;p<t[r.l];p++)Ro(e,t[p],n[p],o,i);else for(;p<u[r.l];p++)D?e[0][l](u[p],n,g):e[c](u[p],n)}function Lo(e,t,n,o){Ro(e,t,n,!1,o),ko.push(s.bind(Ro,0,e,t,n,!0,o))}function Io(e,t){if(e){var o=s.rO(),a="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",l="childNodes",c=3333333,u=function(){e[hn](c)[fn](Z?P.n?-c:P.i?0:c:c),t()};if(t){if(M)((U=e.addClass("observed").append(Ai(qn)).contents()[0])[Tn]=new o(u)).observe(U);else if(C>9||!O){e.prepend(Ai(qn,Ai({c:Xn,dir:"ltr"},Ai(Xn,Ai(Zn))+Ai(Xn,Ai({c:Zn,style:"width: 200%; height: 200%"})))));var p,f,h,g,v=e[0][l][0][l][0],y=d(v[l][1]),_=d(v[l][0]),b=d(_[0][l][0]),S=v[r.oW],E=v[r.oH],A=2,T=m.nativeScrollbarSize,k=function(){_[fn](c)[hn](c),y[fn](c)[hn](c)},R=function(){f=0,p&&(S=h,E=g,u())},L=function(e){return h=v[r.oW],g=v[r.oH],p=h!=S||g!=E,e&&p&&!f?(s.cAF()(f),f=s.rAF()(R)):e||R(),k(),e&&(s.prvD(e),s.stpP(e)),!1},I={},N={};pi(N,en,[-(T.y+1)*A,T.x*-A,T.y*-A,-(T.x+1)*A]),d(v).css(N),_.on(on,L),y.on(on,L),e.on(a,(function(){L(!1)})),I[Zt]=c,I[Qt]=c,b.css(I),k()}else{var w=Oe.attachEvent,D=C!==n;if(w)e.prepend(Ai(qn)),Di(e,ln+qn)[0].attachEvent("onresize",u);else{var x=Oe.createElement(i.o);x.setAttribute(r.ti,"-1"),x.setAttribute(r.c,qn),x.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",u),e.document.documentElement.style.display="none"},x.type="text/html",D&&e.prepend(x),x.data="about:blank",D||e.prepend(x),e.on(a,u)}}if(e[0]===Le){var F=function(){var e=ce.css("direction"),t={},n=0,o=!1;return e!==Ye&&("ltr"===e?(t[zt]=0,t[Yt]=tn,n=c):(t[zt]=tn,t[Yt]=0,n=P.n?-c:P.i?0:c),de.children().eq(0).css(t),de[fn](n)[hn](c),Ye=e,o=!0),o};F(),Lo(e,on,(function(e){return F()&&Xo(),s.prvD(e),s.stpP(e),!1}))}}else if(M){var U,B=(U=e.contents()[0])[Tn];B&&(B.disconnect(),delete U[Tn])}else wi(e.children(ln+qn).eq(0))}}function No(){if(x){var e,t,n,o,i,a,l,c,u,d,p=11,f=s.mO(),h=s.now();bt=function(e){var t=!1;return F&&!Q&&(_(e,(function(){return!(t=Ho(this))})),t&&(c=s.now(),u=Ve||Be,d=function(){U||(h=c,B&&qo(),u?Xo():b.update(tn))},clearTimeout(l),p<=0||c-h>p||!u?d():l=setTimeout(d,p))),t},vt=new f(_t=function(s){var l,c=!1,u=!1,d=[];return F&&!Q&&(_(s,(function(){e=(l=this).target,t=l.attributeName,n=t===r.c,o=l.oldValue,i=e.className,J&&n&&!u&&o.indexOf(kn)>-1&&i.indexOf(kn)<0&&(a=mi(!0),ke.className=i.split(cn).concat(o.split(cn).filter((function(e){return e.match(a)}))).join(cn),c=u=!0),c||(c=n?jo(o,i):t!==r.s||o!==e[r.s].cssText),d.push(t)})),zo(d),c&&b.update(u||tn)),c}),yt=new f(bt)}}function wo(){x&&!St&&(vt.observe(ke,{attributes:!0,attributeOldValue:!0,attributeFilter:Co}),yt.observe(B?Ce:we,{attributes:!0,attributeOldValue:!0,subtree:!B,childList:!B,characterData:!B,attributeFilter:B?Oo:Co}),St=!0)}function Do(){x&&St&&(vt.disconnect(),yt.disconnect(),St=!1)}function Mo(){if(!Q){var e,t={w:Le[r.sW],h:Le[r.sH]};e=ki(t,nt),nt=t,e&&Xo({_hostSizeChanged:!0})}}function xo(){Rt&&ii(!0)}function Fo(){Rt&&!se.hasClass(ho)&&ii(!1)}function Uo(){kt&&(ii(!0),clearTimeout(Tt),Tt=setTimeout((function(){kt&&!U&&ii(!1)}),100))}function Bo(e){return s.prvD(e),!1}function Vo(e){if(!U){var t=e.target,n=d(e.target),o=d.inArray(t,To);o>-1&&To.splice(o,1),Ci((function(e,t){n.is(t)&&Xo({_contentSizeChanged:!0})}))}}function Go(e){e||Go(!0),Ro(ce,vn.split(cn)[0],Uo,!kt||e,!0),Ro(ce,[yn,_n],[xo,Fo],!Rt||e,!0),F||e||ce.one("mouseover",xo)}function Jo(){var e={};return V&&me&&(e.w=_i(me.css(qt+Zt)),e.h=_i(me.css(qt+Qt)),e.c=ki(e,gt),e.f=!0),gt=e,!!e.c}function jo(e,t){var n,o,a=typeof t==i.s?t.split(cn):[],s=yi(typeof e==i.s?e.split(cn):[],a),l=y(mo,s);if(l>-1&&s.splice(l,1),s[r.l]>0)for(o=mi(!0,!0),n=0;n<s.length;n++)if(!s[n].match(o))return!0;return!1}function Ho(e){var t=e.attributeName,n=e.target,o=e.type,a="closest";if(n===we)return null===t;if("attributes"===o&&(t===r.c||t===r.s)&&!B){if(t===r.c&&d(n).hasClass(Cn))return jo(e.oldValue,n.className);if(typeof n[a]!=i.f)return!0;if(null!==n[a](ln+qn)||null!==n[a](ln+$n)||null!==n[a](ln+ao))return!1}return!0}function Ko(){if(Q)return!1;var e,t,n,o,i=Ei(),a=B&&Be&&!dt?le.val().length:0,s=!St&&Be&&!B,l={};return s&&(e=he.css($t),l[$t]=Z?Yt:zt,l[Zt]=tn,he.css(l)),o={w:i[r.sW]+a,h:i[r.sH]+a},s&&(l[$t]=e,l[Zt]=rn,he.css(l)),t=Jo(),n=ki(o,tt),tt=o,n||t}function Yo(){if(!Q&&!St){var e,t,o,i=[],a=[{_elem:ce,_attrs:Co.concat(":visible")},{_elem:B?le:n,_attrs:Oo}];return _(a,(function(n,r){(e=r._elem)&&_(r._attrs,(function(n,r){t=":"===r.charAt(0)?e.is(r):e.attr(r),o=Po[r],ki(t,o)&&i.push(r),Po[r]=t}))})),zo(i),i[r.l]>0}}function Wo(e){if(!F)return!0;var t="flex-grow",n="flex-shrink",o="flex-basis",i=[Zt,qt+Zt,Xt+Zt,Jt+zt,Jt+Yt,zt,Yt,"font-weight","word-spacing",t,n,o],a=[jt+zt,jt+Yt,Ht+zt+Zt,Ht+Yt+Zt],s=[Qt,qt+Qt,Xt+Qt,Jt+Kt,Jt+Wt,Kt,Wt,"line-height",t,n,o],l=[jt+Kt,jt+Wt,Ht+Kt+Zt,Ht+Wt+Zt],c="s",u="v-s",d=Xe.x===c||Xe.x===u,p=!1,f=function(e,t){for(var n=0;n<e[r.l];n++)if(e[n]===t)return!0;return!1};return(Xe.y===c||Xe.y===u)&&((p=f(s,e))||j||(p=f(l,e))),d&&!p&&((p=f(i,e))||j||(p=f(a,e))),p}function zo(e){_(e=e||yo,(function(e,t){if(s.inA(t,yo)>-1){var n=le.attr(t);v(n)==i.s?fe.attr(t,n):fe.removeAttr(t)}}))}function qo(){if(!Q){var e,t,n,o,i=!dt,a=Bt.w,s=Bt.h,c={},u=Be||i;return c[qt+Zt]=en,c[qt+Qt]=en,c[Zt]=tn,le.css(c),e=Ce[r.oW],t=u?l.max(e,Ce[r.sW]-1):1,c[Zt]=Be?tn:rn,c[qt+Zt]=rn,c[Qt]=tn,le.css(c),n=Ce[r.oH],o=l.max(n,Ce[r.sH]-1),c[Zt]=t,c[Qt]=o,ve.css(c),c[qt+Zt]=a,c[qt+Qt]=s,le.css(c),{_originalWidth:e,_originalHeight:n,_dynamicWidth:t,_dynamicHeight:o}}}function Xo(e){clearTimeout(oe),e=e||{},So._hostSizeChanged|=e._hostSizeChanged,So._contentSizeChanged|=e._contentSizeChanged,So._force|=e._force;var t,o=s.now(),i=!!So._hostSizeChanged,c=!!So._contentSizeChanged,u=!!So._force,p=e._changedOptions,f=Eo>0&&F&&!U&&!u&&!p&&o-ne<Eo&&!Ve&&!Be;if(f&&(oe=setTimeout(Xo,Eo)),!(U||f||Q&&!p||F&&!u&&(t=ce.is(":hidden"))||"inline"===ce.css("display"))){ne=o,So={},!k||A.x&&A.y?I=Ri({},m.nativeScrollbarSize):(I.x=0,I.y=0),Vt={x:3*(I.x+(A.x?0:3)),y:3*(I.y+(A.y?0:3))},p=p||{};var h=function(){return ki.apply(this,[].slice.call(arguments).concat([u]))},v={x:fe[fn](),y:fe[hn]()},y=te.scrollbars,_=te.textarea,S=y.visibility,E=h(S,ot),C=y.autoHide,R=h(C,it),N=y.clickScrolling,w=h(N,rt),D=y.dragScrolling,M=h(D,at),x=te.className,G=h(x,ct),J=te.resize,$=h(J,st)&&!V,ee=te.paddingAbsolute,ie=h(ee,We),re=te.clipAlways,ae=h(re,ze),se=te.sizeAutoCapable&&!V,_e=h(se,et),be=te.nativeScrollbarsOverlaid.showNativeScrollbars,Se=h(be,Qe),Ee=te.autoUpdate,Ae=h(Ee,$e),Te=te.overflowBehavior,Pe=h(Te,Xe,u),Oe=_.dynWidth,Ce=h(mt,Oe),Le=_.dynHeight,Ye=h(ht,Le);if(Ot="n"===C,Ct="s"===C,kt="m"===C,Rt="l"===C,Pt=y.autoHideDelay,ut=ct,Nt="n"===J,wt="b"===J,Dt="h"===J,Mt="v"===J,lt=te.normalizeRTL,be=be&&A.x&&A.y,ot=S,it=C,rt=N,at=D,ct=x,st=J,We=ee,ze=re,et=se,Qe=be,$e=Ee,Xe=Ri({},Te),mt=Oe,ht=Le,Fe=Fe||{x:!1,y:!1},G&&(Ii(ce,ut+cn+mo),Li(ce,x!==n&&null!==x&&x.length>0?x:mo)),Ae&&(!0===Ee||null===Ee&&O?(Do(),g.add(b)):(g.remove(b),wo())),_e)if(se)if(ge?ge.show():(ge=d(Ai(Wn)),pe.before(ge)),H)ue.show();else{ue=d(Ai(zn)),Re=ue[0],ge.before(ue);var tt={w:-1,h:-1};Io(ue,(function(){var e={w:Re[r.oW],h:Re[r.oH]};ki(e,tt)&&(F&&Ve&&e.h>0||Be&&e.w>0||F&&!Ve&&0===e.h||!Be&&0===e.w)&&Xo(),tt=e})),H=!0,null!==L&&ue.css(Qt,L+"(100% + 1px)")}else H&&ue.hide(),ge&&ge.hide();u&&(de.find("*").trigger(on),H&&ue.find("*").trigger(on)),t=t===n?ce.is(":hidden"):t;var nt,vt=!!B&&"off"!==le.attr("wrap"),yt=h(vt,dt),_t=ce.css("direction"),bt=h(_t,Ke),At=ce.css("box-sizing"),Tt=h(At,Ge),Lt=fi(jt);try{nt=H?Re[r.bCR]():null}catch(e){return}j="border-box"===At;var It=(Z="rtl"===_t)?zt:Yt,Ft=Z?Yt:zt,Ut=!1,Gt=!(!H||"none"===ce.css($t))&&(0===l.round(nt.right-nt.left)&&(!!ee||ke[r.cW]-K>0));if(se&&!Gt){var nn=ke[r.oW],an=ge.css(Zt);ge.css(Zt,tn);var sn=ke[r.oW];ge.css(Zt,an),(Ut=nn!==sn)||(ge.css(Zt,nn+1),sn=ke[r.oW],ge.css(Zt,an),Ut=nn!==sn)}var ln=(Gt||Ut)&&se&&!t,un=h(ln,Be),dn=!ln&&Be,pn=!(!H||!se||t)&&0===l.round(nt.bottom-nt.top),mn=h(pn,Ve),gn=!pn&&Ve,vn=fi(Ht,"-"+Zt,!(ln&&j||!j),!(pn&&j||!j)),yn=fi(Jt),_n={},bn={},Sn=function(){return{w:ke[r.cW],h:ke[r.cH]}},En=function(){return{w:Ie[r.oW]+l.max(0,we[r.cW]-we[r.sW]),h:Ie[r.oH]+l.max(0,we[r.cH]-we[r.sH])}},An=K=Lt.l+Lt.r,Tn=Y=Lt.t+Lt.b;if(An*=ee?1:0,Tn*=ee?1:0,Lt.c=h(Lt,Je),W=vn.l+vn.r,z=vn.t+vn.b,vn.c=h(vn,je),q=yn.l+yn.r,X=yn.t+yn.b,yn.c=h(yn,He),dt=vt,Ke=_t,Ge=At,Be=ln,Ve=pn,Je=Lt,je=vn,He=yn,bt&&H&&ue.css($t,Ft),Lt.c||bt||ie||un||mn||Tt||_e){var Pn={},On={},Cn=[Lt.t,Lt.r,Lt.b,Lt.l];pi(bn,Jt,[-Lt.t,-Lt.r,-Lt.b,-Lt.l]),ee?(pi(Pn,en,Cn),pi(B?On:_n,jt)):(pi(Pn,en),pi(B?On:_n,jt,Cn)),pe.css(Pn),le.css(On)}Bt=En();var kn=!!B&&qo(),Rn=B&&h(kn,ft),Ln=B&&kn?{w:Oe?kn._dynamicWidth:kn._originalWidth,h:Le?kn._dynamicHeight:kn._originalHeight}:{};if(ft=kn,pn&&(mn||ie||Tt||Lt.c||vn.c)?_n[Qt]=tn:(mn||ie)&&(_n[Qt]=rn),ln&&(un||ie||Tt||Lt.c||vn.c||bt)?(_n[Zt]=tn,bn[Xt+Zt]=rn):(un||ie)&&(_n[Zt]=rn,_n[$t]=en,bn[Xt+Zt]=en),ln?(bn[Zt]=tn,_n[Zt]=a._cssPropertyValue(Zt,"max-content intrinsic")||tn,_n[$t]=Ft):bn[Zt]=en,bn[Qt]=pn?Ln.h||we[r.cH]:en,se&&ge.css(bn),he.css(_n),_n={},bn={},i||c||Rn||bt||Tt||ie||un||ln||mn||pn||Se||Pe||ae||$||E||R||M||w||Ce||Ye||yt){var In="overflow",Nn=In+"-x",Bn=In+"-y",Vn="hidden",Gn="visible";if(!k){var Jn={},Hn=Fe.y&&Ue.ys&&!be?A.y?fe.css(It):-I.y:0,Kn=Fe.x&&Ue.xs&&!be?A.x?fe.css(Wt):-I.x:0;pi(Jn,en),fe.css(Jn)}var qn=Ei(),Xn={w:Ln.w||qn[r.cW],h:Ln.h||qn[r.cH]},Zn={w:qn[r.sW],h:qn[r.sH]};k||(Jn[Wt]=gn?en:Kn,Jn[It]=dn?en:Hn,fe.css(Jn)),Bt=En();var Qn=Sn(),$n={w:Qn.w-q-W-(j?0:K),h:Qn.h-X-z-(j?0:Y)},eo={w:l.max((ln?Xn.w:Zn.w)+An,$n.w),h:l.max((pn?Xn.h:Zn.h)+Tn,$n.h)};if(eo.c=h(eo,qe),qe=eo,se){(eo.c||pn||ln)&&(bn[Zt]=eo.w,bn[Qt]=eo.h,B||(Xn={w:qn[r.cW],h:qn[r.cH]}));var to={},no=function(e){var t=li(e),n=t._w_h,o=t._width_height,i=e?ln:pn,r=e?W:z,a=e?K:Y,s=e?q:X,c=Bt[n]-r-s-(j?0:a);(!i||!i&&vn.c)&&(bn[o]=$n[n]-1),!(i&&Xn[n]<c)||e&&B&&vt||(B&&(to[o]=_i(ve.css(o))-1),bn[o]-=1),Xn[n]>0&&(bn[o]=l.max(1,bn[o]))};no(!0),no(!1),B&&ve.css(to),ge.css(bn)}ln&&(_n[Zt]=rn),!ln||j||St||(_n[$t]="none"),he.css(_n),_n={};var oo={w:qn[r.sW],h:qn[r.sH]};oo.c=c=h(oo,Me),Me=oo,Bt=En(),i=h(Qn=Sn(),De),De=Qn;var io=B&&(0===Bt.w||0===Bt.h),ro=Ze,ao={},po={},fo={},ho={},go={},vo={},yo={},_o=Ie[r.bCR](),bo=function(e){var t=li(e),n=li(!e)._x_y,o=t._x_y,i=t._w_h,r=t._width_height,a=on+t._Left_Top+"Max",s=_o[r]?l.abs(_o[r]-Bt[i]):0,c=ro&&ro[o]>0&&0===Ne[a];ao[o]="v-s"===Te[o],po[o]="v-h"===Te[o],fo[o]="s"===Te[o],ho[o]=l.max(0,l.round(100*(oo[i]-Bt[i]))/100),ho[o]*=io||c&&s>0&&s<1?0:1,go[o]=ho[o]>0,vo[o]=ao[o]||po[o]?go[n]&&!ao[n]&&!po[n]:go[o],vo[o+"s"]=!!vo[o]&&(fo[o]||ao[o]),yo[o]=go[o]&&vo[o+"s"]};if(bo(!0),bo(!1),ho.c=h(ho,Ze),Ze=ho,go.c=h(go,Fe),Fe=go,vo.c=h(vo,Ue),Ue=vo,A.x||A.y){var Ao,To="px solid transparent",Po={},Oo={},Co=u;(go.x||go.y)&&(Oo.w=A.y&&go.y?oo.w+T.y:en,Oo.h=A.x&&go.x?oo.h+T.x:en,Co=h(Oo,xe),xe=Oo),(go.c||vo.c||oo.c||bt||un||mn||ln||pn||Se)&&(_n[Jt+Ft]=_n[Ht+Ft]=en,Ao=function(e){var t=li(e),n=li(!e),o=t._x_y,i=e?Wt:It,r=e?pn:ln;A[o]&&go[o]&&vo[o+"s"]?(_n[Jt+i]=r?be?en:T[o]:en,_n[Ht+i]=e&&r||be?en:T[o]+To):(Oo[n._w_h]=_n[Jt+i]=_n[Ht+i]=en,Co=!0)},k?Ni(fe,jn,!be):(Ao(!0),Ao(!1))),be&&(Oo.w=Oo.h=en,Co=!0),Co&&!k&&(Po[Zt]=vo.y?Oo.w:en,Po[Qt]=vo.x?Oo.h:en,me||(me=d(Ai(Yn)),fe.prepend(me)),me.css(Po)),he.css(_n)}var ko,Ro={};Pn={};if((i||go.c||vo.c||oo.c||Pe||Tt||Se||bt||ae||mn)&&(Ro[Ft]=en,(ko=function(e){var t=li(e),n=li(!e),o=t._x_y,i=t._X_Y,r=e?Wt:It,a=function(){Ro[r]=en,xt[n._w_h]=0};go[o]&&vo[o+"s"]?(Ro[In+i]=on,be||k?a():(Ro[r]=-(A[o]?T[o]:I[o]),xt[n._w_h]=A[o]?T[n._x_y]:0)):(Ro[In+i]=en,a())})(!0),ko(!1),!k&&(Bt.h<Vt.x||Bt.w<Vt.y)&&(go.x&&vo.x&&!A.x||go.y&&vo.y&&!A.y)?(Ro[jt+Kt]=Vt.x,Ro[Jt+Kt]=-Vt.x,Ro[jt+Ft]=Vt.y,Ro[Jt+Ft]=-Vt.y):Ro[jt+Kt]=Ro[Jt+Kt]=Ro[jt+Ft]=Ro[Jt+Ft]=en,Ro[jt+It]=Ro[Jt+It]=en,go.x&&vo.x||go.y&&vo.y||io?B&&io&&(Pn[Nn]=Pn[Bn]=Vn):(!re||po.x||ao.x||po.y||ao.y)&&(B&&(Pn[Nn]=Pn[Bn]=en),Ro[Nn]=Ro[Bn]=Gn),pe.css(Pn),fe.css(Ro),Ro={},(go.c||Tt||un||mn)&&(!A.x||!A.y))){var Lo=we[r.s];Lo.webkitTransform="scale(1)",Lo.display="run-in",we[r.oH],Lo.display=en,Lo.webkitTransform=en}if(_n={},bt||un||mn)if(Z&&ln){var No=he.css($t),Mo=l.round(he.css($t,en).css(zt,en).position().left);he.css($t,No),Mo!==l.round(he.position().left)&&(_n[zt]=Mo)}else _n[zt]=en;if(he.css(_n),B&&c){var xo=bi();if(xo){var Fo=pt===n||xo._rows!==pt._rows,Uo=xo._cursorRow,Bo=xo._cursorColumn,Vo=xo._widestRow,jo=xo._rows,Ho=xo._columns,Ko=xo._cursorPosition>=xo._cursorMax&&Et,Yo={x:vt||Bo!==Ho||Uo!==Vo?-1:Ze.x,y:(vt?Ko||Fo&&ro&&v.y===ro.y:(Ko||Fo)&&Uo===jo)?Ze.y:-1};v.x=Yo.x>-1?Z&&lt&&P.i?0:Yo.x:v.x,v.y=Yo.y>-1?Yo.y:v.y}pt=xo}Z&&P.i&&A.y&&go.x&&lt&&(v.x+=xt.w||0),ln&&ce[fn](0),pn&&ce[hn](0),fe[fn](v.x)[hn](v.y);var Wo="v"===S,zo="h"===S,Qo="a"===S,$o=function(e,t){t=t===n?e:t,oi(!0,e,yo.x),oi(!1,t,yo.y)};Ni(ce,xn,vo.x||vo.y),Ni(ce,Fn,vo.x),Ni(ce,Un,vo.y),bt&&!V&&Ni(ce,wn,Z),V&&Li(ce,Dn),$&&(Ni(ce,Dn,Nt),Ni(ye,so,!Nt),Ni(ye,lo,wt),Ni(ye,co,Dt),Ni(ye,uo,Mt)),(E||Pe||vo.c||go.c||Se)&&(be?Se&&(Ii(ce,Mn),be&&$o(!1)):Qo?$o(yo.x,yo.y):Wo?$o(!0):zo&&$o(!1)),(R||Se)&&(Go(!Rt&&!kt),ii(Ot,!Ot)),(i||ho.c||mn||un||$||Tt||ie||Se||bt)&&(ri(!0),ai(!0),ri(!1),ai(!1)),w&&si(!0,N),M&&si(!1,D),di("onDirectionChanged",{isRTL:Z,dir:_t},bt),di("onHostSizeChanged",{width:De.w,height:De.h},i),di("onContentSizeChanged",{width:Me.w,height:Me.h},c),di("onOverflowChanged",{x:go.x,y:go.y,xScrollable:vo.xs,yScrollable:vo.ys,clipped:vo.x||vo.y},go.c||vo.c),di("onOverflowAmountChanged",{x:ho.x,y:ho.y},ho.c)}V&&gt&&(Fe.c||gt.c)&&(gt.f||Jo(),A.y&&Fe.x&&he.css(qt+Zt,gt.w+T.y),A.x&&Fe.y&&he.css(qt+Qt,gt.h+T.x),gt.c=!1),F&&p.updateOnLoad&&Zo(),di("onUpdated",{forced:u})}}function Zo(){B||Ci((function(e,t){he.find(t).each((function(e,t){s.inA(t,To)<0&&(To.push(t),d(t).off(Ao,Vo).on(Ao,Vo))}))}))}function Qo(e){var t=R._validate(e,R._template,!0,ee);return ee=Ri({},ee,t._default),te=Ri({},te,t._prepared),t._prepared}function $o(e){var t="parent",o="os-resize-observer-host",a=Bn+cn+Qn,l=B?cn+Qn:en,c=te.textarea.inheritedAttrs,u={},p=function(){var t=e?le:ce;_(u,(function(e,n){v(n)==i.s&&(e==r.c?t.addClass(n):t.attr(e,n))}))},f=[Cn,kn,Rn,Dn,wn,Ln,In,Nn,Mn,xn,Fn,Un,mo,Bn,Qn,ct].join(cn),h={};ce=ce||(B?J?le[t]()[t]()[t]()[t]():d(Ai(Rn)):le),he=he||Ti(Kn+l),fe=fe||Ti(Jn+l),pe=pe||Ti(Gn+l),de=de||Ti(o),ve=ve||(B?Ti(Vn):n),J&&Li(ce,kn),e&&Ii(ce,f),c=v(c)==i.s?c.split(cn):c,s.isA(c)&&B&&_(c,(function(t,n){v(n)==i.s&&(u[n]=e?ce.attr(n):le.attr(n))})),e?(J&&F?(de.children().remove(),_([pe,fe,he,ve],(function(e,t){t&&Ii(t.removeAttr(r.s),go)})),Li(ce,B?Rn:Cn)):(wi(de),he.contents().unwrap().unwrap().unwrap(),B&&(le.unwrap(),wi(ce),wi(ve),p())),B&&le.removeAttr(r.s),V&&Ii(ae,On)):(B&&(te.sizeAutoCapable||(h[Zt]=le.css(Zt),h[Qt]=le.css(Qt)),J||le.addClass(Qn).wrap(ce),ce=le[t]().css(h)),J||(Li(le,B?a:Cn),ce.wrapInner(he).wrapInner(fe).wrapInner(pe).prepend(de),he=Di(ce,ln+Kn),fe=Di(ce,ln+Jn),pe=Di(ce,ln+Gn),B&&(he.prepend(ve),p())),k&&Li(fe,jn),A.x&&A.y&&Li(fe,Hn),V&&Li(ae,On),Le=de[0],ke=ce[0],Ie=pe[0],Ne=fe[0],we=he[0],zo())}function ei(){var e,t,o=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],i=[],a=175,l="focus";function c(t){qo(),b.update(tn),t&&O&&clearInterval(e)}function u(e){return le[fn](P.i&&lt?9999999:0),le[hn](0),s.prvD(e),s.stpP(e),!1}function d(e){setTimeout((function(){U||c()}),50)}function p(){Et=!0,Li(ce,l)}function f(){Et=!1,i=[],Ii(ce,l),c(!0)}function h(t){var n=t.keyCode;y(n,o)<0&&(i[r.l]||(c(),e=setInterval(c,1e3/60)),y(n,i)<0&&i.push(n))}function m(e){var t=e.keyCode,n=y(t,i);y(t,o)<0&&(n>-1&&i.splice(n,1),i[r.l]||c(!0))}function g(e){!0!==$e&&Wo((e=e.originalEvent||e).propertyName)&&b.update(tn)}function v(e){Q||(t!==n?clearTimeout(t):((Ct||kt)&&ii(!0),Si()||Li(ce,Mn),di("onScrollStart",e)),It||(ai(!0),ai(!1)),di("onScroll",e),t=setTimeout((function(){U||(clearTimeout(t),t=n,(Ct||kt)&&ii(!1),Si()||Ii(ce,Mn),di("onScrollStop",e))}),a))}B?(C>9||!O?Lo(le,"input",c):Lo(le,[bn,Sn],[h,m]),Lo(le,[on,"drop",l,l+"out"],[u,d,p,f])):Lo(he,An,g),Lo(fe,on,v,!0)}function ti(e){var t,n,o=function(t){var n=Ti($n+cn+(t?po:fo),!0),o=Ti(eo,n),i=Ti(no,n);return J||e||(n.append(o),o.append(i)),{_scrollbar:n,_track:o,_handle:i}};function i(e){var t=li(e),n=t._scrollbar,i=t._track,a=t._handle;J&&F?_([n,i,a],(function(e,t){Ii(t.removeAttr(r.s),go)})):wi(n||o(e)._scrollbar)}e?(i(!0),i()):(t=o(!0),n=o(),_e=t._scrollbar,be=t._track,Se=t._handle,Ee=n._scrollbar,Ae=n._track,Te=n._handle,J||(pe.after(Ee),pe.after(_e)))}function ni(e){var t,o,i,a,c=li(e),u=c._info,d=Pe.top!==Pe,p=c._x_y,f=c._X_Y,h=on+c._Left_Top,m="active",g="snapHandle",v="click",_=1,S=[16,17];function E(e){return C&&d?e["screen"+f]:s.page(e)[p]}function A(e){return te.scrollbars[e]}function T(){_=.5}function O(){_=1}function k(e){s.stpP(e)}function R(e){y(e.keyCode,S)>-1&&T()}function L(e){y(e.keyCode,S)>-1&&O()}function I(e){var t=(e.originalEvent||e).touches!==n;return!(Q||U||Si()||!at||t&&!A("touchSupport"))&&(1===s.mBtn(e)||t)}function w(t){if(I(t)){var n=u._trackLength,r=u._handleLength,c=u._maxScroll*((E(t)-i)*a/(n-r));c=isFinite(c)?c:0,Z&&e&&!P.i&&(c*=-1),fe[h](l.round(o+c)),It&&ai(e,o+c),D||s.prvD(t)}else M(t)}function M(l){if(l=l||l.originalEvent,Ro(re,[vn,gn,bn,Sn,En],[w,M,R,L,Bo],!0),s.rAF()((function(){Ro(re,v,k,!0,{_capture:!0})})),It&&ai(e,!0),It=!1,Ii(se,ho),Ii(c._handle,m),Ii(c._track,m),Ii(c._scrollbar,m),o=n,i=n,a=1,O(),t!==n&&(b.scrollStop(),clearTimeout(t),t=n),l){var u=ke[r.bCR]();l.clientX>=u.left&&l.clientX<=u.right&&l.clientY>=u.top&&l.clientY<=u.bottom||Fo(),(Ct||kt)&&ii(!1)}}function x(e){I(e)&&F(e)}function F(t){o=fe[h](),o=isNaN(o)?0:o,(Z&&e&&!P.n||!Z)&&(o=o<0?0:o),a=gi()[p],i=E(t),It=!A(g),Li(se,ho),Li(c._handle,m),Li(c._scrollbar,m),Ro(re,[vn,gn,En],[w,M,Bo]),s.rAF()((function(){Ro(re,v,k,!1,{_capture:!0})})),!C&&G||s.prvD(t),s.stpP(t)}function B(o){if(I(o)){var r,d=c._info._handleLength/Math.round(l.min(1,Bt[c._w_h]/Me[c._w_h])*c._info._trackLength),f=l.round(Bt[c._w_h]*d),v=270*d,y=400*d,S=c._track.offset()[c._left_top],E=o.ctrlKey,O=o.shiftKey,C=O&&E,k=!0,N="linear",w=function(t){It&&ai(e,t)},D=function(){w(),F(o)},x=function(){if(!U){var o=(i-S)*a,s=u._handleOffset,c=u._trackLength,d=u._handleLength,m=u._maxScroll,g=u._currentScroll,E=v*_,A=k?l.max(y,E):E,T=m*((o-d/2)/(c-d)),R=Z&&e&&(!P.i&&!P.n||lt),L=R?s<o:s>o,I={},M={easing:N,step:function(t){It&&(fe[h](t),ai(e,t))}};T=isFinite(T)?T:0,T=Z&&e&&!P.i?m-T:T,O?(fe[h](T),C?(T=fe[h](),fe[h](g),T=R&&P.i?m-T:T,T=R&&P.n?-T:T,I[p]=T,b.scroll(I,Ri(M,{duration:130,complete:D}))):D()):(r=k?L:r,(R?r?s+d>=o:s<=o:r?s<=o:s+d>=o)?(clearTimeout(t),b.scrollStop(),t=n,w(!0)):(t=setTimeout(x,A),I[p]=(r?"-=":"+=")+f,b.scroll(I,Ri(M,{duration:E}))),k=!1)}};E&&T(),a=gi()[p],i=s.page(o)[p],It=!A(g),Li(se,ho),Li(c._track,m),Li(c._scrollbar,m),Ro(re,[gn,bn,Sn,En],[M,R,L,Bo]),x(),s.prvD(o),s.stpP(o)}}function V(e){Lt=!0,(Ct||kt)&&ii(!0)}function J(e){Lt=!1,(Ct||kt)&&ii(!1)}function j(e){s.stpP(e)}Lo(c._handle,mn,x),Lo(c._track,[mn,yn,_n],[B,V,J]),Lo(c._scrollbar,mn,j),N&&Lo(c._scrollbar,An,(function(t){t.target===c._scrollbar[0]&&(ri(e),ai(e))}))}function oi(e,t,n){var o=e?_e:Ee;Ni(ce,e?Ln:In,!t),Ni(o,io,!n)}function ii(e,t){if(clearTimeout(At),e)Ii(_e,ro),Ii(Ee,ro);else{var n,o="active",i=function(){Lt||U||(!(n=Se.hasClass(o)||Te.hasClass(o))&&(Ct||kt||Rt)&&Li(_e,ro),!n&&(Ct||kt||Rt)&&Li(Ee,ro))};Pt>0&&!0!==t?At=setTimeout(i,Pt):i()}}function ri(e){var t={},n=li(e),o=n._info,i=1e6,r=l.min(1,Bt[n._w_h]/Me[n._w_h]);t[n._width_height]=l.floor(100*r*i)/i+"%",Si()||n._handle.css(t),o._handleLength=n._handle[0]["offset"+n._Width_Height],o._handleLengthRatio=r}function ai(e,t){var o,r,s=v(t)==i.b,c=250,u=Z&&e,d=li(e),p=d._info,f="translate(",h=a._cssProperty("transform"),m=a._cssProperty("transition"),g=e?fe[fn]():fe[hn](),y=t===n||s?g:t,_=p._handleLength,b=d._track[0]["offset"+d._Width_Height],S=b-_,E={},A=(Ne[on+d._Width_Height]-Ne["client"+d._Width_Height])*(P.n&&u?-1:1),T=function(e){return isNaN(e/A)?0:l.max(0,l.min(1,e/A))},O=function(e){var t=S*e;return t=isNaN(t)?0:t,t=u&&!P.i?b-_-t:t,t=l.max(0,t)},C=T(g),k=O(T(y)),R=O(C);p._maxScroll=A,p._currentScroll=g,p._currentScrollRatio=C,w?(o=u?-(b-_-k):k,r=e?f+o+"px, 0)":f+"0, "+o+"px)",E[h]=r,N&&(E[m]=s&&l.abs(k-p._handleOffset)>1?hi(d._handle)+", "+(h+cn+c)+"ms":en)):E[d._left_top]=k,Si()||(d._handle.css(E),w&&N&&s&&d._handle.one(An,(function(){U||d._handle.css(m,en)}))),p._handleOffset=k,p._snappedHandleOffset=R,p._trackLength=b}function si(e,t){var n=t?"removeClass":"addClass",o=e?Ae:Te,i=e?to:oo;(e?be:Se)[n](i),o[n](i)}function li(e){return{_width_height:e?Zt:Qt,_Width_Height:e?"Width":"Height",_left_top:e?zt:Kt,_Left_Top:e?"Left":"Top",_x_y:e?an:sn,_X_Y:e?"X":"Y",_w_h:e?"w":"h",_l_t:e?"l":"t",_track:e?be:Ae,_handle:e?Se:Te,_scrollbar:e?_e:Ee,_info:e?Ft:Ut}}function ci(e){ye=ye||Ti(ao,!0),e?J&&F?Ii(ye.removeAttr(r.s),go):wi(ye):J||ce.append(ye)}function ui(){var e,t=Pe.top!==Pe,o={},i={},a={};function l(e){if(u(e)){var t=d(e),n={};(Dt||wt)&&(n[Zt]=i.w+(t.x-o.x)*a.x),(Mt||wt)&&(n[Qt]=i.h+(t.y-o.y)*a.y),ce.css(n),s.stpP(e)}else c(e)}function c(t){var o=t!==n;Ro(re,[En,vn,gn],[Bo,l,c],!0),Ii(se,ho),ye.releaseCapture&&ye.releaseCapture(),o&&(e&&wo(),b.update(tn)),e=!1}function u(e){var t=(e.originalEvent||e).touches!==n;return!Q&&!U&&(1===s.mBtn(e)||t)}function d(e){return C&&t?{x:e.screenX,y:e.screenY}:s.page(e)}Lo(ye,mn,(function(t){u(t)&&!Nt&&(St&&(e=!0,Do()),o=d(t),i.w=ke[r.oW]-(j?0:K),i.h=ke[r.oH]-(j?0:Y),a=gi(),Ro(re,[En,vn,gn],[Bo,l,c]),Li(se,ho),ye.setCapture&&ye.setCapture(),s.prvD(t),s.stpP(t))}))}function di(e,t,n){if(!1!==n)if(F){var o,r=te.callbacks[e],a=e;"on"===a.substr(0,2)&&(a=a.substr(2,1).toLowerCase()+a.substr(3)),v(r)==i.f&&r.call(b,t),_(_o,(function(){v((o=this).on)==i.f&&o.on(a,t)}))}else U||vo.push({n:e,a:t})}function pi(e,t,n){n=n||[en,en,en,en],e[(t=t||en)+Kt]=n[0],e[t+Yt]=n[1],e[t+Wt]=n[2],e[t+zt]=n[3]}function fi(e,t,n,o){return t=t||en,e=e||en,{t:o?0:_i(ce.css(e+Kt+t)),r:n?0:_i(ce.css(e+Yt+t)),b:o?0:_i(ce.css(e+Wt+t)),l:n?0:_i(ce.css(e+zt+t))}}function hi(e){var t=a._cssProperty("transition"),n=e.css(t);if(n)return n;for(var o,i,s,l="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",c=new RegExp(l),u=new RegExp("^("+l+")+$"),d="property duration timing-function delay".split(" "),p=[],f=0,h=function(e){if(o=[],!e.match(u))return e;for(;e.match(c);)o.push(RegExp.$1),e=e.replace(c,en);return o};f<d[r.l];f++)for(i=h(e.css(t+"-"+d[f])),s=0;s<i[r.l];s++)p[s]=(p[s]?p[s]+cn:en)+i[s];return p.join(", ")}function mi(e,t){var n,o,a,s=function(e,t){if(a="",t&&typeof e==i.s)for(o=e.split(cn),n=0;n<o[r.l];n++)a+="|"+o[n]+"$";return a};return new RegExp("(^"+Cn+"([-_].+|)$)"+s(ct,e)+s(ut,t),"g")}function gi(){var e=Ie[r.bCR]();return{x:w&&1/(l.round(e.width)/Ie[r.oW])||1,y:w&&1/(l.round(e.height)/Ie[r.oH])||1}}function vi(t){var n="ownerDocument",o="HTMLElement",r=t&&t[n]&&t[n].parentWindow||e;return typeof r[o]==i.o?t instanceof r[o]:t&&typeof t==i.o&&null!==t&&1===t.nodeType&&typeof t.nodeName==i.s}function yi(e,t){var n,o,i=[],r=[];for(n=0;n<e.length;n++)i[e[n]]=!0;for(n=0;n<t.length;n++)i[t[n]]?delete i[t[n]]:i[t[n]]=!0;for(o in i)r.push(o);return r}function _i(e,t){var n=t?parseFloat(e):parseInt(e,10);return isNaN(n)?0:n}function bi(){var e=Ce.selectionStart;if(e!==n){var t,o,i=le.val(),a=i[r.l],s=i.split("\n"),l=s[r.l],c=i.substr(0,e).split("\n"),u=0,d=0,p=c[r.l],f=c[c[r.l]-1][r.l];for(o=0;o<s[r.l];o++)(t=s[o][r.l])>d&&(u=o+1,d=t);return{_cursorRow:p,_cursorColumn:f,_rows:l,_columns:d,_widestRow:u,_cursorPosition:e,_cursorMax:a}}}function Si(){return Qe&&A.x&&A.y}function Ei(){return B?ve[0]:we}function Ai(e,t){return"<div "+(e?v(e)==i.s?'class="'+e+'"':function(){var t,n=en;if(d.isPlainObject(e))for(t in e)n+=("c"===t?"class":t)+'="'+e[t]+'" ';return n}():en)+">"+(t||en)+"</div>"}function Ti(e,t){var n=v(t)==i.b,o=n?ce:t||ce;return J&&!o[r.l]?null:J?o[n?"children":"find"](ln+e.replace(/\s/g,ln)).eq(0):d(Ai(e))}function Pi(e,t){for(var n,o=t.split(ln),a=0;a<o.length;a++){if(!e[r.hOP](o[a]))return;n=e[o[a]],a<o.length&&v(n)==i.o&&(e=n)}return n}function Oi(e,t,n){for(var o=t.split(ln),i=o.length,r=0,a={},s=a;r<i;r++)a=a[o[r]]=r+1<i?{}:n;d.extend(e,s,!0)}function Ci(e){var t=te.updateOnLoad;t=v(t)==i.s?t.split(cn):t,s.isA(t)&&!U&&_(t,e)}function ki(e,t,n){if(n)return n;if(v(e)!=i.o||v(t)!=i.o)return e!==t;for(var o in e)if("c"!==o){if(!e[r.hOP](o)||!t[r.hOP](o))return!0;if(ki(e[o],t[o]))return!0}return!1}function Ri(){return d.extend.apply(this,[!0].concat([].slice.call(arguments)))}function Li(e,t){return S.addClass.call(e,t)}function Ii(e,t){return S.removeClass.call(e,t)}function Ni(e,t,n){return n?Li(e,t):Ii(e,t)}function wi(e){return S.remove.call(e)}function Di(e,t){return S.find.call(e,t).eq(0)}function Mi(e,n,o){var a,c;return $=m.defaultOptions,k=m.nativeScrollbarStyling,I=Ri({},m.nativeScrollbarSize),A=Ri({},m.nativeScrollbarIsOverlaid),T=Ri({},m.overlayScrollbarDummySize),P=Ri({},m.rtlScrollBehavior),Qo(Ri({},$,n)),L=m.cssCalc,C=m.msie,O=m.autoUpdateRecommended,N=m.supportTransition,w=m.supportTransform,D=m.supportPassiveEvents,M=m.supportResizeObserver,x=m.supportMutationObserver,m.restrictedMeasuring,re=d(e.ownerDocument),Oe=re[0],ie=d(Oe.defaultView||Oe.parentWindow),Pe=ie[0],ae=Di(re,"html"),se=Di(ae,"body"),le=d(e),Ce=le[0],B=le.is("textarea"),V=le.is("body"),G=Oe!==t,J=B?le.hasClass(Bn)&&le.parent().hasClass(Kn):le.hasClass(Cn)&&le.children(ln+Gn)[r.l],A.x&&A.y&&!te.nativeScrollbarsOverlaid.initialize?(F=!0,di("onInitializationWithdrawn"),J&&($o(!0),ti(!0),ci(!0)),F=!1,U=!0,Q=!0,b):(V&&((a={}).l=l.max(le[fn](),ae[fn](),ie[fn]()),a.t=l.max(le[hn](),ae[hn](),ie[hn]()),c=function(){fe.removeAttr(r.ti),Ro(fe,mn,c,!0,!0)}),$o(),ti(),ci(),ei(),ni(!0),ni(!1),ui(),No(),Io(de,Mo),V&&(fe[fn](a.l)[hn](a.t),t.activeElement==e&&Ne.focus&&(fe.attr(r.ti,"-1"),Ne.focus(),Ro(fe,mn,c,!1,!0))),b.update(tn),F=!0,di("onInitialized"),_(vo,(function(e,t){di(t.n,t.a)})),vo=[],v(o)==i.s&&(o=[o]),s.isA(o)?_(o,(function(e,t){b.addExt(t)})):d.isPlainObject(o)&&_(o,(function(e,t){b.addExt(e,t)})),setTimeout((function(){N&&!U&&Li(ce,Nn)}),333),b)}}return u=e[o]=function(e,t,o){if(0===arguments[r.l])return this;var a,l,c=[],m=d.isPlainObject(t);return e?(e=e[r.l]!=n?e:[e[0]||e],L(),e[r.l]>0&&(m?d.each(e,(function(e,i){(a=i)!==n&&c.push(w(a,t,o,f,h))})):d.each(e,(function(e,o){a=p(o),("!"===t&&u.valid(a)||s.type(t)==i.f&&t(o,a)||t===n)&&c.push(a)})),l=1===c[r.l]?c[0]:c),l):m||!t?l:c},u.globals=function(){L();var e=d.extend(!0,{},f);return delete e.msie,e},u.defaultOptions=function(e){L();var t=f.defaultOptions;if(e===n)return d.extend(!0,{},t);f.defaultOptions=d.extend(!0,{},t,R._validate(e,R._template,!0,t)._default)},u.valid=function(e){return e instanceof u&&!e.getState().destroyed},u.extension=function(e,t,n){var o=s.type(e)==i.s,a=arguments[r.l],l=0;if(a<1||!o)return d.extend(!0,{length:k[r.l]},k);if(o)if(s.type(t)==i.f)k.push({name:e,extensionFactory:t,defaultOptions:n});else for(;l<k[r.l];l++)if(k[l].name===e){if(!(a>1))return d.extend(!0,{},k[l]);k.splice(l,1)}},u}();var h,m;var g;c&&c.fn&&(c.fn.overlayScrollbars=function(e,t){var n=this;return c.isPlainObject(e)?(c.each(n,(function(){f(this,e,t)})),n):f(n,e)});return f}(i,i.document,void 0)}.call(t,n,t,e),void 0===o||(e.exports=o)}("undefined"!=typeof window?window:this)},14224:e=>{var t,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(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 n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||a(p)},f.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}},74049:(e,t,n)=>{"use strict";var o=n(36257);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i};return n.PropTypes=n,n}},40507:(e,t,n)=>{e.exports=n(74049)()},36257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},92228:(e,t,n)=>{"use strict";e.exports=n(81585)},81585:(e,t,n)=>{"use strict";var o=t;function i(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=n(77168),o.BufferWriter=n(14023),o.Reader=n(83124),o.BufferReader=n(8170),o.util=n(11986),o.rpc=n(20531),o.roots=n(16742),o.configure=i,i()},83124:(e,t,n)=>{"use strict";e.exports=l;var o,i=n(11986),r=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var c,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},d=function(){return i.Buffer?function(e){return(l.create=function(e){return i.Buffer.isBuffer(e)?new o(e):u(e)})(e)}:u};function p(){var e=new r(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new r(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.create=d(),l.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,l.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},l.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){o=e,l.create=d(),o._configure();var t=i.Long?"toLong":"toNumber";i.merge(l.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},8170:(e,t,n)=>{"use strict";e.exports=r;var o=n(83124);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(11986);function r(e){o.call(this,e)}r._configure=function(){i.Buffer&&(r.prototype._slice=i.Buffer.prototype.slice)},r.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},r._configure()},16742:e=>{"use strict";e.exports={}},20531:(e,t,n)=>{"use strict";t.Service=n(39180)},39180:(e,t,n)=>{"use strict";e.exports=i;var o=n(11986);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(o.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,r,a){if(!r)throw TypeError("request must be specified");var s=this;if(!a)return o.asPromise(e,s,t,n,i,r);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](r).finish(),(function(e,n){if(e)return s.emit("error",e,t),a(e);if(null!==n){if(!(n instanceof i))try{n=i[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",n,t),a(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},32969:(e,t,n)=>{"use strict";e.exports=i;var o=n(11986);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=i.zero=new i(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var n=e>>>0,o=(e-n)/4294967296>>>0;return t&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new i(n,o)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(o.isString(e)){if(!o.Long)return i.fromNumber(parseInt(e,10));e=o.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):r},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?r:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},11986:function(e,t,n){"use strict";var o=t;function i(e,t,n){for(var o=Object.keys(t),i=0;i<o.length;++i)void 0!==e[o[i]]&&n||(e[o[i]]=t[o[i]]);return e}function r(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&i(this,n)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}o.asPromise=n(45317),o.base64=n(98660),o.EventEmitter=n(23745),o.float=n(19059),o.inquire=n(50491),o.utf8=n(68375),o.pool=n(18601),o.LongBits=n(32969),o.isNode=Boolean(void 0!==n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),o.global=o.isNode&&n.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o.isString=function(e){return"string"==typeof e||e instanceof String},o.isObject=function(e){return e&&"object"==typeof e},o.isset=o.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r("ProtocolError"),o.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var e=o.Buffer;e?(o._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},o._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):o._Buffer_from=o._Buffer_allocUnsafe=null}},77168:(e,t,n)=>{"use strict";e.exports=d;var o,i=n(11986),r=i.LongBits,a=i.base64,s=i.utf8;function l(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function u(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new l(c,0,0),this.tail=this.head,this.states=null}var p=function(){return i.Buffer?function(){return(d.create=function(){return new o})()}:function(){return new d}};function f(e,t,n){t[n]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=p(),d.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(d.alloc=i.pool(d.alloc,i.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new l(e,t,n),this.len+=t,this},h.prototype=Object.create(l.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(m,10,r.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=r.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=r.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var o=0;o<e.length;++o)t[n+o]=e[o]};d.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(i.isString(e)){var n=d.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},d.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new l(c,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(c,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){o=e,d.create=p(),o._configure()}},14023:(e,t,n)=>{"use strict";e.exports=r;var o=n(77168);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(11986);function r(){o.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}r._configure=function(){r.alloc=i._Buffer_allocUnsafe,r.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var o=0;o<e.length;)t[n++]=e[o++]}},r.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(r.writeBytesBuffer,t,e),this},r.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},r._configure()},33892:(e,t,n)=>{"use strict";e.exports=n(77515)},77515:(e,t,n)=>{"use strict";var o=t;function i(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=n(43142),o.BufferWriter=n(94139),o.Reader=n(13953),o.BufferReader=n(31426),o.util=n(12138),o.rpc=n(54032),o.roots=n(97957),o.configure=i,i()},13953:(e,t,n)=>{"use strict";e.exports=l;var o,i=n(12138),r=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var c,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},d=function(){return i.Buffer?function(e){return(l.create=function(e){return i.Buffer.isBuffer(e)?new o(e):u(e)})(e)}:u};function p(){var e=new r(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new r(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.create=d(),l.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,l.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},l.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){o=e,l.create=d(),o._configure();var t=i.Long?"toLong":"toNumber";i.merge(l.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},31426:(e,t,n)=>{"use strict";e.exports=r;var o=n(13953);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(12138);function r(e){o.call(this,e)}r._configure=function(){i.Buffer&&(r.prototype._slice=i.Buffer.prototype.slice)},r.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},r._configure()},97957:e=>{"use strict";e.exports={}},54032:(e,t,n)=>{"use strict";t.Service=n(61392)},61392:(e,t,n)=>{"use strict";e.exports=i;var o=n(12138);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(o.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,r,a){if(!r)throw TypeError("request must be specified");var s=this;if(!a)return o.asPromise(e,s,t,n,i,r);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](r).finish(),(function(e,n){if(e)return s.emit("error",e,t),a(e);if(null!==n){if(!(n instanceof i))try{n=i[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",n,t),a(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},99101:(e,t,n)=>{"use strict";e.exports=i;var o=n(12138);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=i.zero=new i(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var n=e>>>0,o=(e-n)/4294967296>>>0;return t&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new i(n,o)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(o.isString(e)){if(!o.Long)return i.fromNumber(parseInt(e,10));e=o.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):r},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?r:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},12138:function(e,t,n){"use strict";var o=t;function i(e,t,n){for(var o=Object.keys(t),i=0;i<o.length;++i)void 0!==e[o[i]]&&n||(e[o[i]]=t[o[i]]);return e}function r(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&i(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}o.asPromise=n(45317),o.base64=n(98660),o.EventEmitter=n(23745),o.float=n(19059),o.inquire=n(50491),o.utf8=n(68375),o.pool=n(18601),o.LongBits=n(99101),o.isNode=Boolean(void 0!==n.g&&n.g&&n.g.process&&n.g.process.versions&&n.g.process.versions.node),o.global=o.isNode&&n.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,o.emptyArray=Object.freeze?Object.freeze([]):[],o.emptyObject=Object.freeze?Object.freeze({}):{},o.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},o.isString=function(e){return"string"==typeof e||e instanceof String},o.isObject=function(e){return e&&"object"==typeof e},o.isset=o.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r("ProtocolError"),o.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},o.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},o._configure=function(){var e=o.Buffer;e?(o._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},o._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):o._Buffer_from=o._Buffer_allocUnsafe=null}},43142:(e,t,n)=>{"use strict";e.exports=d;var o,i=n(12138),r=i.LongBits,a=i.base64,s=i.utf8;function l(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function u(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new l(c,0,0),this.tail=this.head,this.states=null}var p=function(){return i.Buffer?function(){return(d.create=function(){return new o})()}:function(){return new d}};function f(e,t,n){t[n]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=p(),d.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(d.alloc=i.pool(d.alloc,i.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new l(e,t,n),this.len+=t,this},h.prototype=Object.create(l.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(m,10,r.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=r.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=r.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var o=0;o<e.length;++o)t[n+o]=e[o]};d.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(i.isString(e)){var n=d.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},d.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new l(c,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(c,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){o=e,d.create=p(),o._configure()}},94139:(e,t,n)=>{"use strict";e.exports=r;var o=n(43142);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(12138);function r(){o.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}r._configure=function(){r.alloc=i._Buffer_allocUnsafe,r.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var o=0;o<e.length;)t[n++]=e[o++]}},r.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(r.writeBytesBuffer,t,e),this},r.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},r._configure()},57044:(e,t,n)=>{"use strict";t.ZP=void 0;var o,i=(o=n(81244))&&o.__esModule?o:{default:o};var r,a,s,l,c,u,d,p,f,h=(r={blacklistedNodeNames:["STYLE"]},a={strategy:"accented"},s=!1,l=null,c={characterData:!0,childList:!0,subtree:!0},u=function(e){return!!e&&"string"==typeof e},d=function(e){var t=function(e){for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,(function(e){return e.nodeValue&&!/[^\s]/.test(e.nodeValue)||e.parentElement&&r.blacklistedNodeNames.includes(e.parentElement.nodeName)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT})),o=[];t=n.nextNode();)o.push(t);return o}(e),n=!0,o=!1,s=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done);n=!0){var d=l.value,p=d.nodeValue;u(p)&&(d.nodeValue=(0,i.default)(p,a))}}catch(e){o=!0,s=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw s}}},p=function(e){if(l){var t=!0,n=!1,o=void 0;try{for(var s,p=e[Symbol.iterator]();!(t=(s=p.next()).done);t=!0){var f=s.value;if("childList"===f.type&&f.addedNodes.length>0)l.disconnect(),f.addedNodes.forEach(d),l.observe(document.body,c);else if("characterData"===f.type){var h=f.target.nodeValue,m=!!f.target.parentElement&&r.blacklistedNodeNames.includes(f.target.parentElement.nodeName);u(h)&&!m&&(l.disconnect(),f.target.nodeValue=(0,i.default)(h,a),l.observe(document.body,c))}}}catch(e){n=!0,o=e}finally{try{t||null==p.return||p.return()}finally{if(n)throw o}}}},{start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.strategy,n=void 0===t?"accented":t,o=e.blacklistedNodeNames,i=void 0===o?r.blacklistedNodeNames:o;f()?console.error("pseudo-localization is already enabled"):(r.blacklistedNodeNames=i,a.strategy=n,d(document.body),(l=new MutationObserver(p)).observe(document.body,c),s=!0)},stop:function(){f()?(l&&l.disconnect(),s=!1):console.error("pseudo-localization is already disabled")},isEnabled:f=function(){return s},localize:i.default});t.ZP=h},81244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={accented:{prefix:"",postfix:"",map:{a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},elongate:!0},bidi:{prefix:"",postfix:"",map:{a:"ɐ",A:"∀",b:"q",B:"Ԑ",c:"ɔ",C:"Ↄ",d:"p",D:"ᗡ",e:"ǝ",E:"Ǝ",f:"ɟ",F:"Ⅎ",g:"ƃ",G:"⅁",h:"ɥ",H:"H",i:"ı",I:"I",j:"ɾ",J:"ſ",k:"ʞ",K:"Ӽ",l:"ʅ",L:"⅂",m:"ɯ",M:"W",n:"u",N:"N",o:"o",O:"O",p:"d",P:"Ԁ",q:"b",Q:"Ò",r:"ɹ",R:"ᴚ",s:"s",S:"S",t:"ʇ",T:"⊥",u:"n",U:"∩",v:"ʌ",V:"Ʌ",w:"ʍ",W:"M",x:"x",X:"X",y:"ʎ",Y:"⅄",z:"z",Z:"Z"},elongate:!1}},o=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).strategy,o=n[void 0===t?"accented":t],i="",r=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;if(u in o.map){var d=u,p=d.toLowerCase();!o.elongate||"a"!==p&&"e"!==p&&"o"!==p&&"u"!==p?i+=o.map[d]:i+=o.map[d]+o.map[d]}else i+=u}}catch(e){a=!0,s=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw s}}return i.startsWith(o.prefix)&&i.endsWith(o.postfix)?i:o.prefix+i+o.postfix};t.default=o},85145:(e,t,n)=>{"use strict";var o=n(22767),i=n(59496);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=60106,s=60107,l=60108,c=60114,u=60109,d=60110,p=60112,f=60113,h=60120,m=60115,g=60116,v=60121,y=60117,_=60119,b=60129,S=60131;if("function"==typeof Symbol&&Symbol.for){var E=Symbol.for;a=E("react.portal"),s=E("react.fragment"),l=E("react.strict_mode"),c=E("react.profiler"),u=E("react.provider"),d=E("react.context"),p=E("react.forward_ref"),f=E("react.suspense"),h=E("react.suspense_list"),m=E("react.memo"),g=E("react.lazy"),v=E("react.block"),y=E("react.fundamental"),_=E("react.scope"),b=E("react.debug_trace_mode"),S=E("react.legacy_hidden")}function A(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case s:return"Fragment";case a:return"Portal";case c:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case d:return(e.displayName||"Context")+".Consumer";case u:return(e._context.displayName||"Context")+".Provider";case p:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return A(e.type);case v:return A(e._render);case g:t=e._payload,e=e._init;try{return A(e(t))}catch(e){}}return null}var T=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P={};function O(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var C=new Uint16Array(16),k=0;15>k;k++)C[k]=k+1;C[15]=0;var R=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L=Object.prototype.hasOwnProperty,I={},N={};function w(e){return!!L.call(N,e)||!L.call(I,e)&&(R.test(e)?N[e]=!0:(I[e]=!0,!1))}function D(e,t,n,o,i,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){M[e]=new D(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];M[t]=new D(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){M[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){M[e]=new D(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){M[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){M[e]=new D(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){M[e]=new D(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){M[e]=new D(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){M[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)}));var x=/[\-:]([a-z])/g;function F(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(x,F);M[t]=new D(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(x,F);M[t]=new D(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(x,F);M[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)})),M.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)}));var U=/["'&<>]/;function B(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=U.exec(e);if(t){var n,o="",i=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==n&&(o+=e.substring(i,n)),i=n+1,o+=t}e=i!==n?o+e.substring(i,n):o}return e}function V(e,t){var n,o=M.hasOwnProperty(e)?M[e]:null;return(n="style"!==e)&&(n=null!==o?0===o.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(e,t,o,!1)?"":null!==o?(e=o.attributeName,3===(n=o.type)||4===n&&!0===t?e+'=""':(o.sanitizeURL&&(t=""+t),e+'="'+B(t)+'"')):w(e)?e+'="'+B(t)+'"':""}var G="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},J=null,j=null,H=null,K=!1,Y=!1,W=null,z=0;function q(){if(null===J)throw Error(r(321));return J}function X(){if(0<z)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Z(){return null===H?null===j?(K=!1,j=H=X()):(K=!0,H=j):null===H.next?(K=!1,H=H.next=X()):(K=!0,H=H.next),H}function Q(e,t,n,o){for(;Y;)Y=!1,z+=1,H=null,n=e(t,o);return $(),n}function $(){J=null,Y=!1,j=null,z=0,H=W=null}function ee(e,t){return"function"==typeof t?t(e):t}function te(e,t,n){if(J=q(),H=Z(),K){var o=H.queue;if(t=o.dispatch,null!==W&&void 0!==(n=W.get(o))){W.delete(o),o=H.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return H.memoizedState=o,[o,t]}return[H.memoizedState,t]}return e=e===ee?"function"==typeof t?t():t:void 0!==n?n(t):t,H.memoizedState=e,e=(e=H.queue={last:null,dispatch:null}).dispatch=oe.bind(null,J,e),[H.memoizedState,e]}function ne(e,t){if(J=q(),t=void 0===t?null:t,null!==(H=Z())){var n=H.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var i=0;i<o.length&&i<t.length;i++)if(!G(t[i],o[i])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),H.memoizedState=[e,t],e}function oe(e,t,n){if(!(25>z))throw Error(r(301));if(e===J)if(Y=!0,e={action:n,next:null},null===W&&(W=new Map),void 0===(n=W.get(t)))W.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ie(){}var re=null,ae={readContext:function(e){var t=re.threadID;return O(e,t),e[t]},useContext:function(e){q();var t=re.threadID;return O(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){J=q();var t=(H=Z()).memoizedState;return null===t?(e={current:e},H.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:ie,useEffect:ie,useDebugValue:ie,useDeferredValue:function(e){return q(),e},useTransition:function(){return q(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(re.identifierPrefix||"")+"R:"+(re.uniqueID++).toString(36)},useMutableSource:function(e,t){return q(),t(e._source)}},se="http://www.w3.org/1999/xhtml";function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ce={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ue=o({menuitem:!0},ce),de={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var fe=/([A-Z])/g,he=/^ms-/,me=i.Children.toArray,ge=T.ReactCurrentDispatcher,ve={listing:!0,pre:!0,textarea:!0},ye=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e={},be={};var Se=Object.prototype.hasOwnProperty,Ee={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ae(e,t){if(void 0===e)throw Error(r(152,A(t)||"Component"))}function Te(e,t,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,o){if(o&&"object"==typeof(o=e.contextType)&&null!==o)return O(o,n),o[n];if(e=e.contextTypes){for(var i in n={},e)n[i]=t[i];t=n}else t=P;return t}(a,t,n,s),c=[],u=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(s){if(s=new a(i.props,l,d),"function"==typeof a.getDerivedStateFromProps){var p=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=p&&(s.state=o({},s.state,p))}}else if(J={},s=a(i.props,l,d),null==(s=Q(a,i.props,s,l))||null==s.render)return void Ae(e=s,a);if(s.props=i.props,s.context=l,s.updater=d,void 0===(d=s.state)&&(s.state=d=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){d=c;var f=u;if(c=null,u=!1,f&&1===d.length)s.state=d[0];else{p=f?d[0]:s.state;var h=!0;for(f=f?1:0;f<d.length;f++){var m=d[f];null!=(m="function"==typeof m?m.call(s,p,i.props,l):m)&&(h?(h=!1,p=o({},p,m)):o(p,m))}s.state=p}}else c=null;if(Ae(e=s.render(),a),"function"==typeof s.getChildContext&&"object"==typeof(i=a.childContextTypes)){var g=s.getChildContext();for(var v in g)if(!(v in i))throw Error(r(108,A(a)||"Unknown",v))}g&&(t=o({},t,g))}for(;i.isValidElement(e);){var s=e,l=s.type;if("function"!=typeof l)break;a(s,l)}return{child:e,context:t}}var Pe=function(){function e(e,t,n){i.isValidElement(e)?e.type!==s?e=[e]:(e=e.props.children,e=i.isValidElement(e)?[e]:me(e)):e=me(e),e={type:null,domNamespace:se,children:e,childIndex:0,context:P,footer:""};var o=C[0];if(0===o){var a=C,l=2*(o=a.length);if(!(65536>=l))throw Error(r(304));var c=new Uint16Array(l);for(c.set(a),(C=c)[0]=o+1,a=o;a<l-1;a++)C[a]=a+1;C[l-1]=0}else C[0]=C[o];this.threadID=o,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;C[e]=C[0],C[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;O(n,o);var i=n[o];this.contextStack[t]=n,this.contextValueStack[t]=i,n[o]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=re;re=this;var n=ge.current;ge.current=ae;try{for(var o=[""],i=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;C[a]=C[0],C[0]=a;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===u)this.popProvider(s.type);else if(s.type===f){this.suspenseDepth--;var c=o.pop();if(i){i=!1;var d=s.fallbackFrame;if(!d)throw Error(r(303));this.stack.push(d),o[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}o[this.suspenseDepth]+=c}o[this.suspenseDepth]+=l}else{var p=s.children[s.childIndex++],h="";try{h+=this.render(p,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(r(294));throw e}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=h}}return o[0]}finally{ge.current=n,re=t,$()}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?B(n):this.previousWasTextNode?"\x3c!-- --\x3e"+B(n):(this.previousWasTextNode=!0,B(n));if(e=(t=Te(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!i.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(r(257));throw Error(r(258,n.toString()))}return e=me(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var v=e.type;if("string"==typeof v)return this.renderDOM(e,t,n);switch(v){case S:case b:case l:case c:case h:case s:return e=me(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:throw Error(r(294));case _:throw Error(r(343))}if("object"==typeof v&&null!==v)switch(v.$$typeof){case p:J={};var E=v.render(e.props,e.ref);return E=Q(v.render,e.props,E,e.ref),E=me(E),this.stack.push({type:null,domNamespace:n,children:E,childIndex:0,context:t,footer:""}),"";case m:return e=[i.createElement(v.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case u:return n={type:e,domNamespace:n,children:v=me(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:v=e.type,E=e.props;var A=this.threadID;return O(v,A),v=me(E.children(v[A])),this.stack.push({type:e,domNamespace:n,children:v,childIndex:0,context:t,footer:""}),"";case y:throw Error(r(338));case g:return v=(E=(v=e.type)._init)(v._payload),e=[i.createElement(v,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(r(130,null==v?v:typeof v,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===se&&le(a),!_e.hasOwnProperty(a)){if(!ye.test(a))throw Error(r(65,a));_e[a]=!0}var s=e.props;if("input"===a)s=o({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var c=s.children;if(null!=c){if(null!=l)throw Error(r(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(r(93));c=c[0]}l=""+c}null==l&&(l="")}s=o({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=o({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=c){var d=null!=s.value?s.value+"":u;if(l=!1,Array.isArray(c)){for(var p=0;p<c.length;p++)if(""+c[p]===d){l=!0;break}}else l=""+c===d;s=o({selected:void 0,children:void 0},s,{selected:l,children:u})}}if(l=s){if(ue[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(r(137,a));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(r(60));if("object"!=typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(null!=l.style&&"object"!=typeof l.style)throw Error(r(62))}l=s,c=this.makeStaticMarkup,u=1===this.stack.length,d="<"+e.type;e:if(-1===a.indexOf("-"))p="string"==typeof l.is;else switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":p=!1;break e;default:p=!0}for(S in l)if(Se.call(l,S)){var f=l[S];if(null!=f){if("style"===S){var h=void 0,m="",g="";for(h in f)if(f.hasOwnProperty(h)){var v=0===h.indexOf("--"),y=f[h];if(null!=y){if(v)var _=h;else if(_=h,be.hasOwnProperty(_))_=be[_];else{var b=_.replace(fe,"-$1").toLowerCase().replace(he,"-ms-");_=be[_]=b}m+=g+_+":",g=h,m+=v=null==y||"boolean"==typeof y||""===y?"":v||"number"!=typeof y||0===y||de.hasOwnProperty(g)&&de[g]?(""+y).trim():y+"px",g=";"}}f=m||null}h=null,p?Ee.hasOwnProperty(S)||(h=w(h=S)&&null!=f?h+'="'+B(f)+'"':""):h=V(S,f),h&&(d+=" "+h)}}c||u&&(d+=' data-reactroot=""');var S=d;l="",ce.hasOwnProperty(a)?S+="/>":(S+=">",l="</"+e.type+">");e:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=s.children)||"number"==typeof c){c=B(c);break e}c=null}return null!=c?(s=[],ve.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(S+="\n"),S+=c):s=me(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?le(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,S},e}();t.renderToNodeStream=function(){throw Error(r(207))},t.renderToStaticMarkup=function(e,t){e=new Pe(e,!0,t);try{return e.read(1/0)}finally{e.destroy()}},t.renderToStaticNodeStream=function(){throw Error(r(208))},t.renderToString=function(e,t){e=new Pe(e,!1,t);try{return e.read(1/0)}finally{e.destroy()}},t.version="17.0.2"},17439:(e,t,n)=>{"use strict";var o=n(59496),i=n(22767),r=n(58051);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,o,i,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function _(e){return e[1].toUpperCase()}function b(e,t,n,o){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,o)&&(n=null),o||null===i?function(e){return!!f.call(m,e)||!f.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,o=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,_);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,_);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,_);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,A=60106,T=60107,P=60108,O=60114,C=60109,k=60110,R=60112,L=60113,I=60120,N=60115,w=60116,D=60121,M=60128,x=60129,F=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;E=B("react.element"),A=B("react.portal"),T=B("react.fragment"),P=B("react.strict_mode"),O=B("react.profiler"),C=B("react.provider"),k=B("react.context"),R=B("react.forward_ref"),L=B("react.suspense"),I=B("react.suspense_list"),N=B("react.memo"),w=B("react.lazy"),D=B("react.block"),B("react.scope"),M=B("react.opaque.id"),x=B("react.debug_trace_mode"),F=B("react.offscreen"),U=B("react.legacy_hidden")}var V,G="function"==typeof Symbol&&Symbol.iterator;function J(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=G&&e[G]||e["@@iterator"])?e:null}function j(e){if(void 0===V)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var H=!1;function K(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var o=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){o=e}e.call(t.prototype)}else{try{throw Error()}catch(e){o=e}e()}}catch(e){if(e&&o&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),r=o.stack.split("\n"),a=i.length-1,s=r.length-1;1<=a&&0<=s&&i[a]!==r[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==r[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==r[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function Y(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=K(e.type,!1);case 11:return e=K(e.type.render,!1);case 22:return e=K(e.type._render,!1);case 1:return e=K(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case T:return"Fragment";case A:return"Portal";case O:return"Profiler";case P:return"StrictMode";case L:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return W(e.type);case D:return W(e._render);case w:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function z(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){o=""+e,r.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=q(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=z(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function re(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,o){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&o&&(e[n].defaultSelected=!0)}else{for(n=""+z(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(o&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:z(n)}}function ce(e,t){var n=z(t.value),o=z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),i=_e(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,i):e[n]=i}}Object.keys(ve).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Ae(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Oe=null,Ce=null;function ke(e){if(e=$o(e)){if("function"!=typeof Pe)throw Error(a(280));var t=e.stateNode;t&&(t=ti(t),Pe(e.stateNode,e.type,t))}}function Re(e){Oe?Ce?Ce.push(e):Ce=[e]:Oe=e}function Le(){if(Oe){var e=Oe,t=Ce;if(Ce=Oe=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ie(e,t){return e(t)}function Ne(e,t,n,o,i){return e(t,n,o,i)}function we(){}var De=Ie,Me=!1,xe=!1;function Fe(){null===Oe&&null===Ce||(we(),Le())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var o=ti(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(e){Be=!1}function Ge(e,t,n,o,i,r,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Je=!1,je=null,He=!1,Ke=null,Ye={onError:function(e){Je=!0,je=e}};function We(e,t,n,o,i,r,a,s,l){Je=!1,je=null,Ge.apply(Ye,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(ze(e)!==e)throw Error(a(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var r=i.alternate;if(null===r){if(null!==(o=i.return)){n=o;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return Xe(i),e;if(r===o)return Xe(i),t;r=r.sibling}throw Error(a(188))}if(n.return!==o.return)n=i,o=r;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,o=r;break}if(l===o){s=!0,o=i,n=r;break}l=l.sibling}if(!s){for(l=r.child;l;){if(l===n){s=!0,n=r,o=i;break}if(l===o){s=!0,o=r,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==o)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var $e,et,tt,nt,ot=!1,it=[],rt=null,at=null,st=null,lt=new Map,ct=new Map,ut=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,o,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[o]}}function ft(e,t){switch(e){case"focusin":case"focusout":rt=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function ht(e,t,n,o,i,r){return null===e||e.nativeEvent!==r?(e=pt(t,n,o,i,r),null!==t&&(null!==(t=$o(t))&&et(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=Qo(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void nt(e.lanePriority,(function(){r.unstable_runWithPriority(e.priority,(function(){tt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=$o(n))&&et(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){gt(e)&&n.delete(t)}function yt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=$o(e.blockedOn))&&$e(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==rt&&gt(rt)&&(rt=null),null!==at&&gt(at)&&(at=null),null!==st&&gt(st)&&(st=null),lt.forEach(vt),ct.forEach(vt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,yt)))}function bt(e){function t(t){return _t(t,e)}if(0<it.length){_t(it[0],e);for(var n=1;n<it.length;n++){var o=it[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==rt&&_t(rt,e),null!==at&&_t(at,e),null!==st&&_t(st,e),lt.forEach(t),ct.forEach(t),n=0;n<ut.length;n++)(o=ut[n]).blockedOn===e&&(o.blockedOn=null);for(;0<ut.length&&null===(n=ut[0]).blockedOn;)mt(n),null===n.blockedOn&&ut.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},At={},Tt={};function Pt(e){if(At[e])return At[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return At[e]=n[t];return e}d&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Pt("animationend"),Ct=Pt("animationiteration"),kt=Pt("animationstart"),Rt=Pt("transitionend"),Lt=new Map,It=new Map,Nt=["abort","abort",Ot,"animationEnd",Ct,"animationIteration",kt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function wt(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),It.set(o,t),Lt.set(o,i),c(i,[o])}}(0,r.unstable_now)();var Dt=8;function Mt(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function xt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var o=0,i=0,r=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==r)o=r,i=Dt=15;else if(0!==(r=134217727&n)){var l=r&~a;0!==l?(o=Mt(l),i=Dt):0!==(s&=r)&&(o=Mt(s),i=Dt)}else 0!==(r=n&~a)?(o=Mt(r),i=Dt):0!==s&&(o=Mt(s),i=Dt);if(0===o)return 0;if(o=n&((0>(o=31-Jt(o))?0:1<<o)<<1)-1,0!==t&&t!==o&&0==(t&a)){if(Mt(t),i<=Dt)return t;Dt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)i=1<<(n=31-Jt(t)),o|=e[n],t&=~i;return o}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ut(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ut(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gt(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,(e=e.eventTimes)[t=31-Jt(t)]=n}var Jt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(jt(e)/Ht|0)|0},jt=Math.log,Ht=Math.LN2;var Kt=r.unstable_UserBlockingPriority,Yt=r.unstable_runWithPriority,Wt=!0;function zt(e,t,n,o){Me||we();var i=Xt,r=Me;Me=!0;try{Ne(i,e,t,n,o)}finally{(Me=r)||Fe()}}function qt(e,t,n,o){Yt(Kt,Xt.bind(null,e,t,n,o))}function Xt(e,t,n,o){var i;if(Wt)if((i=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,o),it.push(e);else{var r=Zt(e,t,n,o);if(null===r)i&&ft(e,o);else{if(i){if(-1<dt.indexOf(e))return e=pt(r,e,t,n,o),void it.push(e);if(function(e,t,n,o,i){switch(t){case"focusin":return rt=ht(rt,e,t,n,o,i),!0;case"dragenter":return at=ht(at,e,t,n,o,i),!0;case"mouseover":return st=ht(st,e,t,n,o,i),!0;case"pointerover":var r=i.pointerId;return lt.set(r,ht(lt.get(r)||null,e,t,n,o,i)),!0;case"gotpointercapture":return r=i.pointerId,ct.set(r,ht(ct.get(r)||null,e,t,n,o,i)),!0}return!1}(r,e,t,n,o))return;ft(e,o)}Io(e,t,o,null,n)}}}function Zt(e,t,n,o){var i=Te(o);if(null!==(i=Qo(i))){var r=ze(i);if(null===r)i=null;else{var a=r.tag;if(13===a){if(null!==(i=qe(r)))return i;i=null}else if(3===a){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;i=null}else r!==i&&(i=null)}}return Io(e,t,o,i,n),null}var Qt=null,$t=null,en=null;function tn(){if(en)return en;var e,t,n=$t,o=n.length,i="value"in Qt?Qt.value:Qt.textContent,r=i.length;for(e=0;e<o&&n[e]===i[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===i[r-t];t++);return en=i.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function rn(){return!1}function an(e){function t(t,n,o,i,r){for(var a in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:rn,this.isPropagationStopped=rn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var sn,ln,cn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(un),pn=i({},un,{view:0,detail:0}),fn=an(pn),hn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=an(hn),gn=an(i({},hn,{dataTransfer:0})),vn=an(i({},pn,{relatedTarget:0})),yn=an(i({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=an(i({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),bn=an(i({},un,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function Pn(){return Tn}var On=an(i({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cn=an(i({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=an(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pn})),Rn=an(i({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=an(i({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=[9,13,27,32],Nn=d&&"CompositionEvent"in window,wn=null;d&&"documentMode"in document&&(wn=document.documentMode);var Dn=d&&"TextEvent"in window&&!wn,Mn=d&&(!Nn||wn&&8<wn&&11>=wn),xn=String.fromCharCode(32),Fn=!1;function Un(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function jn(e,t,n,o){Re(o),0<(t=wo(t,"onChange")).length&&(n=new dn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Hn=null,Kn=null;function Yn(e){Po(e,0)}function Wn(e){if(Z(ei(e)))return e}function zn(e,t){if("change"===e)return t}var qn=!1;if(d){var Xn;if(d){var Zn="oninput"in document;if(!Zn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Zn="function"==typeof Qn.oninput}Xn=Zn}else Xn=!1;qn=Xn&&(!document.documentMode||9<document.documentMode)}function $n(){Hn&&(Hn.detachEvent("onpropertychange",eo),Kn=Hn=null)}function eo(e){if("value"===e.propertyName&&Wn(Kn)){var t=[];if(jn(t,Kn,e,Te(e)),e=Yn,Me)e(t);else{Me=!0;try{Ie(e,t)}finally{Me=!1,Fe()}}}}function to(e,t,n){"focusin"===e?($n(),Kn=n,(Hn=t).attachEvent("onpropertychange",eo)):"focusout"===e&&$n()}function no(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn(Kn)}function oo(e,t){if("click"===e)return Wn(t)}function io(e,t){if("input"===e||"change"===e)return Wn(t)}var ro="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ao=Object.prototype.hasOwnProperty;function so(e,t){if(ro(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!ao.call(t,n[o])||!ro(e[n[o]],t[n[o]]))return!1;return!0}function lo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var n,o=lo(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=lo(o)}}function uo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?uo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function po(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ho=d&&"documentMode"in document&&11>=document.documentMode,mo=null,go=null,vo=null,yo=!1;function _o(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yo||null==mo||mo!==Q(o)||("selectionStart"in(o=mo)&&fo(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},vo&&so(vo,o)||(vo=o,0<(o=wo(go,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=mo)))}wt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),wt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),wt(Nt,2);for(var bo="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),So=0;So<bo.length;So++)It.set(bo[So],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ao=new Set("cancel close invalid load scroll toggle".split(" ").concat(Eo));function To(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,i,r,s,l,c){if(We.apply(this,arguments),Je){if(!Je)throw Error(a(198));var u=je;Je=!1,je=null,He||(He=!0,Ke=u)}}(o,t,void 0,e),e.currentTarget=null}function Po(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var o=e[n],i=o.event;o=o.listeners;e:{var r=void 0;if(t)for(var a=o.length-1;0<=a;a--){var s=o[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==r&&i.isPropagationStopped())break e;To(i,s,c),r=l}else for(a=0;a<o.length;a++){if(l=(s=o[a]).instance,c=s.currentTarget,s=s.listener,l!==r&&i.isPropagationStopped())break e;To(i,s,c),r=l}}}if(He)throw e=Ke,He=!1,Ke=null,e}function Oo(e,t){var n=ni(t),o=e+"__bubble";n.has(o)||(Lo(t,e,2,!1),n.add(o))}var Co="_reactListening"+Math.random().toString(36).slice(2);function ko(e){e[Co]||(e[Co]=!0,s.forEach((function(t){Ao.has(t)||Ro(t,!1,e,null),Ro(t,!0,e,null)})))}function Ro(e,t,n,o){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,r=n;if("selectionchange"===e&&9!==n.nodeType&&(r=n.ownerDocument),null!==o&&!t&&Ao.has(e)){if("scroll"!==e)return;i|=2,r=o}var a=ni(r),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Lo(r,e,i,t),a.add(s))}function Lo(e,t,n,o){var i=It.get(t);switch(void 0===i?2:i){case 0:i=zt;break;case 1:i=qt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),o?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Io(e,t,n,o,i){var r=o;if(0==(1&t)&&0==(2&t)&&null!==o)e:for(;;){if(null===o)return;var a=o.tag;if(3===a||4===a){var s=o.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=o.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Qo(s)))return;if(5===(l=a.tag)||6===l){o=r=a;continue e}s=s.parentNode}}o=o.return}!function(e,t,n){if(xe)return e(t,n);xe=!0;try{return De(e,t,n)}finally{xe=!1,Fe()}}((function(){var o=r,i=Te(n),a=[];e:{var s=Lt.get(e);if(void 0!==s){var l=dn,c=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=kn;break;case Ot:case Ct:case kt:l=yn;break;case Rt:l=Rn;break;case"scroll":l=fn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=o;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Ue(h,p))&&u.push(No(h,m,f)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!Qo(c)&&!c[Xo])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=o,null!==(c=(c=n.relatedTarget||n.toElement)?Qo(c):null)&&(c!==(d=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=o),l!==c)){if(u=mn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Cn,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:ei(l),f=null==c?s:ei(c),(s=new u(m,h+"leave",l,n,i)).target=d,s.relatedTarget=f,m=null,Qo(i)===o&&((u=new u(p,h+"enter",c,n,i)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Do(f))h++;for(f=0,m=p;m;m=Do(m))f++;for(;0<h-f;)u=Do(u),h--;for(;0<f-h;)p=Do(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Do(u),p=Do(p)}u=null}else u=null;null!==l&&Mo(a,s,l,u,!1),null!==c&&null!==d&&Mo(a,d,c,u,!0)}if("select"===(l=(s=o?ei(o):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=zn;else if(Jn(s))if(qn)g=io;else{g=no;var v=to}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=oo);switch(g&&(g=g(e,o))?jn(a,g,n,i):(v&&v(e,s,o),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=o?ei(o):window,e){case"focusin":(Jn(v)||"true"===v.contentEditable)&&(mo=v,go=o,vo=null);break;case"focusout":vo=go=mo=null;break;case"mousedown":yo=!0;break;case"contextmenu":case"mouseup":case"dragend":yo=!1,_o(a,n,i);break;case"selectionchange":if(ho)break;case"keydown":case"keyup":_o(a,n,i)}var y;if(Nn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Vn?Un(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Mn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Vn&&(y=tn()):($t="value"in(Qt=i)?Qt.value:Qt.textContent,Vn=!0)),0<(v=wo(o,_)).length&&(_=new bn(_,e,null,n,i),a.push({event:_,listeners:v}),y?_.data=y:null!==(y=Bn(n))&&(_.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Fn=!0,xn);case"textInput":return(e=t.data)===xn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Nn&&Un(e,t)?(e=tn(),en=$t=Qt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=wo(o,"onBeforeInput")).length&&(i=new bn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:o}),i.data=y))}Po(a,t)}))}function No(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wo(e,t){for(var n=t+"Capture",o=[];null!==e;){var i=e,r=i.stateNode;5===i.tag&&null!==r&&(i=r,null!=(r=Ue(e,n))&&o.unshift(No(e,r,i)),null!=(r=Ue(e,t))&&o.push(No(e,r,i))),e=e.return}return o}function Do(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mo(e,t,n,o,i){for(var r=t._reactName,a=[];null!==n&&n!==o;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===o)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ue(n,r))&&a.unshift(No(n,l,s)):i||null!=(l=Ue(n,r))&&a.push(No(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function xo(){}var Fo=null,Uo=null;function Bo(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vo(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Go="function"==typeof setTimeout?setTimeout:void 0,Jo="function"==typeof clearTimeout?clearTimeout:void 0;function jo(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Ho(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ko(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yo=0;var Wo=Math.random().toString(36).slice(2),zo="__reactFiber$"+Wo,qo="__reactProps$"+Wo,Xo="__reactContainer$"+Wo,Zo="__reactEvents$"+Wo;function Qo(e){var t=e[zo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xo]||n[zo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ko(e);null!==e;){if(n=e[zo])return n;e=Ko(e)}return t}n=(e=n).parentNode}return null}function $o(e){return!(e=e[zo]||e[Xo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ei(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ti(e){return e[qo]||null}function ni(e){var t=e[Zo];return void 0===t&&(t=e[Zo]=new Set),t}var oi=[],ii=-1;function ri(e){return{current:e}}function ai(e){0>ii||(e.current=oi[ii],oi[ii]=null,ii--)}function si(e,t){ii++,oi[ii]=e.current,e.current=t}var li={},ci=ri(li),ui=ri(!1),di=li;function pi(e,t){var n=e.type.contextTypes;if(!n)return li;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var i,r={};for(i in n)r[i]=t[i];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function fi(e){return null!=(e=e.childContextTypes)}function hi(){ai(ui),ai(ci)}function mi(e,t,n){if(ci.current!==li)throw Error(a(168));si(ci,t),si(ui,n)}function gi(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in e))throw Error(a(108,W(t)||"Unknown",r));return i({},n,o)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ci.current,si(ci,e),si(ui,ui.current),!0}function yi(e,t,n){var o=e.stateNode;if(!o)throw Error(a(169));n?(e=gi(e,t,di),o.__reactInternalMemoizedMergedChildContext=e,ai(ui),ai(ci),si(ci,e)):ai(ui),si(ui,n)}var _i=null,bi=null,Si=r.unstable_runWithPriority,Ei=r.unstable_scheduleCallback,Ai=r.unstable_cancelCallback,Ti=r.unstable_shouldYield,Pi=r.unstable_requestPaint,Oi=r.unstable_now,Ci=r.unstable_getCurrentPriorityLevel,ki=r.unstable_ImmediatePriority,Ri=r.unstable_UserBlockingPriority,Li=r.unstable_NormalPriority,Ii=r.unstable_LowPriority,Ni=r.unstable_IdlePriority,wi={},Di=void 0!==Pi?Pi:function(){},Mi=null,xi=null,Fi=!1,Ui=Oi(),Bi=1e4>Ui?Oi:function(){return Oi()-Ui};function Vi(){switch(Ci()){case ki:return 99;case Ri:return 98;case Li:return 97;case Ii:return 96;case Ni:return 95;default:throw Error(a(332))}}function Gi(e){switch(e){case 99:return ki;case 98:return Ri;case 97:return Li;case 96:return Ii;case 95:return Ni;default:throw Error(a(332))}}function Ji(e,t){return e=Gi(e),Si(e,t)}function ji(e,t,n){return e=Gi(e),Ei(e,t,n)}function Hi(){if(null!==xi){var e=xi;xi=null,Ai(e)}Ki()}function Ki(){if(!Fi&&null!==Mi){Fi=!0;var e=0;try{var t=Mi;Ji(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mi=null}catch(t){throw null!==Mi&&(Mi=Mi.slice(e+1)),Ei(ki,Hi),t}finally{Fi=!1}}}var Yi=S.ReactCurrentBatchConfig;function Wi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var zi=ri(null),qi=null,Xi=null,Zi=null;function Qi(){Zi=Xi=qi=null}function $i(e){var t=zi.current;ai(zi),e.type._context._currentValue=t}function er(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function tr(e,t){qi=e,Zi=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Na=!0),e.firstContext=null)}function nr(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===qi)throw Error(a(308));Xi=t,qi.dependencies={lanes:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var or=!1;function ir(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function rr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ar(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sr(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lr(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var i=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===r?i=r=a:r=r.next=a,n=n.next}while(null!==n);null===r?i=r=t:r=r.next=t}else i=r=t;return n={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cr(e,t,n,o){var r=e.updateQueue;or=!1;var a=r.firstBaseUpdate,s=r.lastBaseUpdate,l=r.shared.pending;if(null!==l){r.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var p=(d=d.updateQueue).lastBaseUpdate;p!==s&&(null===p?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(p=r.baseState,s=0,d=u=c=null;;){l=a.lane;var f=a.eventTime;if((o&l)===l){null!==d&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){p=h.call(f,p,l);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=m.payload)?h.call(f,p,l):h))break e;p=i({},p,l);break e;case 2:or=!0}}null!==a.callback&&(e.flags|=32,null===(l=r.effects)?r.effects=[a]:l.push(a))}else f={eventTime:f,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=f,c=p):d=d.next=f,s|=l;if(null===(a=a.next)){if(null===(l=r.shared.pending))break;a=l.next,l.next=null,r.lastBaseUpdate=l,r.shared.pending=null}}null===d&&(c=p),r.baseState=c,r.firstBaseUpdate=u,r.lastBaseUpdate=d,Fs|=s,e.lanes=s,e.memoizedState=p}}function ur(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=n,"function"!=typeof i)throw Error(a(191,i));i.call(o)}}}var dr=(new o.Component).refs;function pr(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var fr={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ll(),i=cl(e),r=ar(o,i);r.payload=t,null!=n&&(r.callback=n),sr(e,r),ul(e,i,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ll(),i=cl(e),r=ar(o,i);r.tag=1,r.payload=t,null!=n&&(r.callback=n),sr(e,r),ul(e,i,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ll(),o=cl(e),i=ar(n,o);i.tag=2,null!=t&&(i.callback=t),sr(e,i),ul(e,o,n)}};function hr(e,t,n,o,i,r,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,r,a):!t.prototype||!t.prototype.isPureReactComponent||(!so(n,o)||!so(i,r))}function mr(e,t,n){var o=!1,i=li,r=t.contextType;return"object"==typeof r&&null!==r?r=nr(r):(i=fi(t)?di:ci.current,r=(o=null!=(o=t.contextTypes))?pi(e,i):li),t=new t(n,r),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=fr,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=r),t}function gr(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&fr.enqueueReplaceState(t,t.state,null)}function vr(e,t,n,o){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=dr,ir(e);var r=t.contextType;"object"==typeof r&&null!==r?i.context=nr(r):(r=fi(t)?di:ci.current,i.context=pi(e,r)),cr(e,n,i,o),i.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(pr(e,t,r,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&fr.enqueueReplaceState(i,i.state,null),cr(e,n,i,o),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var yr=Array.isArray;function _r(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var o=n.stateNode}if(!o)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===dr&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function br(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sr(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Jl(e,t)).index=0,e.sibling=null,e}function r(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags=2,n):o:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Yl(n,e.mode,o)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,o){return null!==t&&t.elementType===n.type?((o=i(t,n.props)).ref=_r(e,t,n),o.return=e,o):((o=jl(n.type,n.key,n.props,null,e.mode,o)).ref=_r(e,t,n),o.return=e,o)}function u(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wl(n,e.mode,o)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,o,r){return null===t||7!==t.tag?((t=Hl(n,e.mode,o,r)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=jl(t.type,t.key,t.props,null,e.mode,n)).ref=_r(e,null,t),n.return=e,n;case A:return(t=Wl(t,e.mode,n)).return=e,t}if(yr(t)||J(t))return(t=Hl(t,e.mode,n,null)).return=e,t;br(e,t)}return null}function f(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===i?n.type===T?d(e,t,n.props.children,o,i):c(e,t,n,o):null;case A:return n.key===i?u(e,t,n,o):null}if(yr(n)||J(n))return null!==i?null:d(e,t,n,o,null);br(e,n)}return null}function h(e,t,n,o,i){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,i);if("object"==typeof o&&null!==o){switch(o.$$typeof){case E:return e=e.get(null===o.key?n:o.key)||null,o.type===T?d(t,e,o.props.children,i,o.key):c(t,e,o,i);case A:return u(t,e=e.get(null===o.key?n:o.key)||null,o,i)}if(yr(o)||J(o))return d(t,e=e.get(n)||null,o,i,null);br(t,o)}return null}function m(i,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=r(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),c;if(null===d){for(;m<s.length;m++)null!==(d=p(i,s[m],l))&&(a=r(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=o(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=r(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),c}function g(i,s,l,c){var u=J(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var _=f(i,m,y.value,c);if(null===_){null===m&&(m=v);break}e&&m&&null===_.alternate&&t(i,m),s=r(_,s,g),null===d?u=_:d.sibling=_,d=_,m=v}if(y.done)return n(i,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,c))&&(s=r(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=r(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,o,r,l){var c="object"==typeof r&&null!==r&&r.type===T&&null===r.key;c&&(r=r.props.children);var u="object"==typeof r&&null!==r;if(u)switch(r.$$typeof){case E:e:{for(u=r.key,c=o;null!==c;){if(c.key===u){if(7===c.tag){if(r.type===T){n(e,c.sibling),(o=i(c,r.props.children)).return=e,e=o;break e}}else if(c.elementType===r.type){n(e,c.sibling),(o=i(c,r.props)).ref=_r(e,c,r),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}r.type===T?((o=Hl(r.props.children,e.mode,l,r.key)).return=e,e=o):((l=jl(r.type,r.key,r.props,null,e.mode,l)).ref=_r(e,o,r),l.return=e,e=l)}return s(e);case A:e:{for(c=r.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===r.containerInfo&&o.stateNode.implementation===r.implementation){n(e,o.sibling),(o=i(o,r.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Wl(r,e.mode,l)).return=e,e=o}return s(e)}if("string"==typeof r||"number"==typeof r)return r=""+r,null!==o&&6===o.tag?(n(e,o.sibling),(o=i(o,r)).return=e,e=o):(n(e,o),(o=Yl(r,e.mode,l)).return=e,e=o),s(e);if(yr(r))return m(e,o,r,l);if(J(r))return g(e,o,r,l);if(u&&br(e,r),void 0===r&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,W(e.type)||"Component"))}return n(e,o)}}var Er=Sr(!0),Ar=Sr(!1),Tr={},Pr=ri(Tr),Or=ri(Tr),Cr=ri(Tr);function kr(e){if(e===Tr)throw Error(a(174));return e}function Rr(e,t){switch(si(Cr,t),si(Or,e),si(Pr,Tr),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(Pr),si(Pr,t)}function Lr(){ai(Pr),ai(Or),ai(Cr)}function Ir(e){kr(Cr.current);var t=kr(Pr.current),n=fe(t,e.type);t!==n&&(si(Or,e),si(Pr,n))}function Nr(e){Or.current===e&&(ai(Pr),ai(Or))}var wr=ri(0);function Dr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mr=null,xr=null,Fr=!1;function Ur(e,t){var n=Vl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Br(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Vr(e){if(Fr){var t=xr;if(t){var n=t;if(!Br(e,t)){if(!(t=Ho(n.nextSibling))||!Br(e,t))return e.flags=-1025&e.flags|2,Fr=!1,void(Mr=e);Ur(Mr,n)}Mr=e,xr=Ho(t.firstChild)}else e.flags=-1025&e.flags|2,Fr=!1,Mr=e}}function Gr(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Mr=e}function Jr(e){if(e!==Mr)return!1;if(!Fr)return Gr(e),Fr=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vo(t,e.memoizedProps))for(t=xr;t;)Ur(e,t),t=Ho(t.nextSibling);if(Gr(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){xr=Ho(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}xr=null}}else xr=Mr?Ho(e.stateNode.nextSibling):null;return!0}function jr(){xr=Mr=null,Fr=!1}var Hr=[];function Kr(){for(var e=0;e<Hr.length;e++)Hr[e]._workInProgressVersionPrimary=null;Hr.length=0}var Yr=S.ReactCurrentDispatcher,Wr=S.ReactCurrentBatchConfig,zr=0,qr=null,Xr=null,Zr=null,Qr=!1,$r=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ro(e[n],t[n]))return!1;return!0}function na(e,t,n,o,i,r){if(zr=r,qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yr.current=null===e||null===e.memoizedState?ka:Ra,e=n(o,i),$r){r=0;do{if($r=!1,!(25>r))throw Error(a(301));r+=1,Zr=Xr=null,t.updateQueue=null,Yr.current=La,e=n(o,i)}while($r)}if(Yr.current=Ca,t=null!==Xr&&null!==Xr.next,zr=0,Zr=Xr=qr=null,Qr=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zr?qr.memoizedState=Zr=e:Zr=Zr.next=e,Zr}function ia(){if(null===Xr){var e=qr.alternate;e=null!==e?e.memoizedState:null}else e=Xr.next;var t=null===Zr?qr.memoizedState:Zr.next;if(null!==t)Zr=t,Xr=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Xr=e).memoizedState,baseState:Xr.baseState,baseQueue:Xr.baseQueue,queue:Xr.queue,next:null},null===Zr?qr.memoizedState=Zr=e:Zr=Zr.next=e}return Zr}function ra(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=Xr,i=o.baseQueue,r=n.pending;if(null!==r){if(null!==i){var s=i.next;i.next=r.next,r.next=s}o.baseQueue=i=r,n.pending=null}if(null!==i){i=i.next,o=o.baseState;var l=s=r=null,c=i;do{var u=c.lane;if((zr&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),o=c.eagerReducer===e?c.eagerState:e(o,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,r=o):l=l.next=d,qr.lanes|=u,Fs|=u}c=c.next}while(null!==c&&c!==i);null===l?r=o:l.next=s,ro(o,t.memoizedState)||(Na=!0),t.memoizedState=o,t.baseState=r,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function sa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,r=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{r=e(r,s.action),s=s.next}while(s!==i);ro(r,t.memoizedState)||(Na=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,o]}function la(e,t,n){var o=t._getVersion;o=o(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===o:(e=e.mutableReadLanes,(e=(zr&e)===e)&&(t._workInProgressVersionPrimary=o,Hr.push(t))),e)return n(t._source);throw Hr.push(t),Error(a(350))}function ca(e,t,n,o){var i=Rs;if(null===i)throw Error(a(349));var r=t._getVersion,s=r(t._source),l=Yr.current,c=l.useState((function(){return la(i,t,n)})),u=c[1],d=c[0];c=Zr;var p=e.memoizedState,f=p.refs,h=f.getSnapshot,m=p.source;p=p.subscribe;var g=qr;return e.memoizedState={refs:f,source:t,subscribe:o},l.useEffect((function(){f.getSnapshot=n,f.setSnapshot=u;var e=r(t._source);if(!ro(s,e)){e=n(t._source),ro(d,e)||(u(e),e=cl(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var o=i.entanglements,a=e;0<a;){var l=31-Jt(a),c=1<<l;o[l]|=e,a&=~c}}}),[n,t,o]),l.useEffect((function(){return o(t._source,(function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var o=cl(g);i.mutableReadLanes|=o&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,o]),ro(h,n)&&ro(m,t)&&ro(p,o)||((e={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:d}).dispatch=u=Oa.bind(null,qr,e),c.queue=e,c.baseQueue=null,d=la(i,t,n),c.memoizedState=c.baseState=d),d}function ua(e,t,n){return ca(ia(),e,t,n)}function da(e){var t=oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e}).dispatch=Oa.bind(null,qr,e),[t.memoizedState,e]}function pa(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=qr.updateQueue)?(t={lastEffect:null},qr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function fa(e){return e={current:e},oa().memoizedState=e}function ha(){return ia().memoizedState}function ma(e,t,n,o){var i=oa();qr.flags|=e,i.memoizedState=pa(1|t,n,void 0,void 0===o?null:o)}function ga(e,t,n,o){var i=ia();o=void 0===o?null:o;var r=void 0;if(null!==Xr){var a=Xr.memoizedState;if(r=a.destroy,null!==o&&ta(o,a.deps))return void pa(t,n,r,o)}qr.flags|=e,i.memoizedState=pa(1|t,n,r,o)}function va(e,t){return ma(516,4,e,t)}function ya(e,t){return ga(516,4,e,t)}function _a(e,t){return ga(4,2,e,t)}function ba(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,ba.bind(null,t,e),n)}function Ea(){}function Aa(e,t){var n=ia();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ta(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Ta(e,t){var n=ia();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ta(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=Vi();Ji(98>n?98:n,(function(){e(!0)})),Ji(97<n?97:n,(function(){var n=Wr.transition;Wr.transition=1;try{e(!1),t()}finally{Wr.transition=n}}))}function Oa(e,t,n){var o=ll(),i=cl(e),r={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?r.next=r:(r.next=a.next,a.next=r),t.pending=r,a=e.alternate,e===qr||null!==a&&a===qr)$r=Qr=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(r.eagerReducer=a,r.eagerState=l,ro(l,s))return}catch(e){}ul(e,i,o)}}var Ca={readContext:nr,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},ka={readContext:nr,useCallback:function(e,t){return oa().memoizedState=[e,void 0===t?null:t],e},useContext:nr,useEffect:va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=oa();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oa.bind(null,qr,e),[o.memoizedState,e]},useRef:fa,useState:da,useDebugValue:Ea,useDeferredValue:function(e){var t=da(e),n=t[0],o=t[1];return va((function(){var t=Wr.transition;Wr.transition=1;try{o(e)}finally{Wr.transition=t}}),[e]),n},useTransition:function(){var e=da(!1),t=e[0];return fa(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var o=oa();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ca(o,e,t,n)},useOpaqueIdentifier:function(){if(Fr){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yo++).toString(36))),Error(a(355))})),n=da(t)[1];return 0==(2&qr.mode)&&(qr.flags|=516,pa(5,(function(){n("r:"+(Yo++).toString(36))}),void 0,null)),t}return da(t="r:"+(Yo++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:nr,useCallback:Aa,useContext:nr,useEffect:ya,useImperativeHandle:Sa,useLayoutEffect:_a,useMemo:Ta,useReducer:aa,useRef:ha,useState:function(){return aa(ra)},useDebugValue:Ea,useDeferredValue:function(e){var t=aa(ra),n=t[0],o=t[1];return ya((function(){var t=Wr.transition;Wr.transition=1;try{o(e)}finally{Wr.transition=t}}),[e]),n},useTransition:function(){var e=aa(ra)[0];return[ha().current,e]},useMutableSource:ua,useOpaqueIdentifier:function(){return aa(ra)[0]},unstable_isNewReconciler:!1},La={readContext:nr,useCallback:Aa,useContext:nr,useEffect:ya,useImperativeHandle:Sa,useLayoutEffect:_a,useMemo:Ta,useReducer:sa,useRef:ha,useState:function(){return sa(ra)},useDebugValue:Ea,useDeferredValue:function(e){var t=sa(ra),n=t[0],o=t[1];return ya((function(){var t=Wr.transition;Wr.transition=1;try{o(e)}finally{Wr.transition=t}}),[e]),n},useTransition:function(){var e=sa(ra)[0];return[ha().current,e]},useMutableSource:ua,useOpaqueIdentifier:function(){return sa(ra)[0]},unstable_isNewReconciler:!1},Ia=S.ReactCurrentOwner,Na=!1;function wa(e,t,n,o){t.child=null===e?Ar(t,null,n,o):Er(t,e.child,n,o)}function Da(e,t,n,o,i){n=n.render;var r=t.ref;return tr(t,i),o=na(e,t,n,o,r,i),null===e||Na?(t.flags|=1,wa(e,t,o,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ts(e,t,i))}function Ma(e,t,n,o,i,r){if(null===e){var a=n.type;return"function"!=typeof a||Gl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jl(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,xa(e,t,a,o,i,r))}return a=e.child,0==(i&r)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:so)(i,o)&&e.ref===t.ref)?ts(e,t,r):(t.flags|=1,(e=Jl(a,o)).ref=t.ref,e.return=t,t.child=e)}function xa(e,t,n,o,i,r){if(null!==e&&so(e.memoizedProps,o)&&e.ref===t.ref){if(Na=!1,0==(r&i))return t.lanes=e.lanes,ts(e,t,r);0!=(16384&e.flags)&&(Na=!0)}return Ba(e,t,n,o,r)}function Fa(e,t,n){var o=t.pendingProps,i=o.children,r=null!==e?e.memoizedState:null;if("hidden"===o.mode||"unstable-defer-without-hiding"===o.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yl(t,n);else{if(0==(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yl(t,e),null;t.memoizedState={baseLanes:0},yl(t,null!==r?r.baseLanes:n)}else null!==r?(o=r.baseLanes|n,t.memoizedState=null):o=n,yl(t,o);return wa(e,t,i,n),t.child}function Ua(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ba(e,t,n,o,i){var r=fi(n)?di:ci.current;return r=pi(t,r),tr(t,i),n=na(e,t,n,o,r,i),null===e||Na?(t.flags|=1,wa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ts(e,t,i))}function Va(e,t,n,o,i){if(fi(n)){var r=!0;vi(t)}else r=!1;if(tr(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mr(t,n,o),vr(t,n,o,i),o=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=nr(c):c=pi(t,c=fi(n)?di:ci.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==o||l!==c)&&gr(t,a,o,c),or=!1;var p=t.memoizedState;a.state=p,cr(t,o,a,i),l=t.memoizedState,s!==o||p!==l||ui.current||or?("function"==typeof u&&(pr(t,n,u,o),l=t.memoizedState),(s=or||hr(t,n,s,o,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=l),a.props=o,a.state=l,a.context=c,o=s):("function"==typeof a.componentDidMount&&(t.flags|=4),o=!1)}else{a=t.stateNode,rr(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Wi(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=nr(l):l=pi(t,l=fi(n)?di:ci.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&gr(t,a,o,l),or=!1,p=t.memoizedState,a.state=p,cr(t,o,a,i);var h=t.memoizedState;s!==d||p!==h||ui.current||or?("function"==typeof f&&(pr(t,n,f,o),h=t.memoizedState),(c=or||hr(t,n,c,o,p,h,l))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(o,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=h),a.props=o,a.state=h,a.context=l,o=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),o=!1)}return Ga(e,t,n,o,r,i)}function Ga(e,t,n,o,i,r){Ua(e,t);var a=0!=(64&t.flags);if(!o&&!a)return i&&yi(t,n,!1),ts(e,t,r);o=t.stateNode,Ia.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&a?(t.child=Er(t,e.child,null,r),t.child=Er(t,null,s,r)):wa(e,t,s,r),t.memoizedState=o.state,i&&yi(t,n,!0),t.child}function Ja(e){var t=e.stateNode;t.pendingContext?mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mi(0,t.context,!1),Rr(e,t.containerInfo)}var ja,Ha,Ka,Ya,Wa={dehydrated:null,retryLane:0};function za(e,t,n){var o,i=t.pendingProps,r=wr.current,a=!1;return(o=0!=(64&t.flags))||(o=(null===e||null!==e.memoizedState)&&0!=(2&r)),o?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(r|=1),si(wr,1&r),null===e?(void 0!==i.fallback&&Vr(t),e=i.children,r=i.fallback,a?(e=qa(t,e,r,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Wa,e):"number"==typeof i.unstable_expectedLoadTime?(e=qa(t,e,r,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Wa,t.lanes=33554432,e):((n=Kl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Za(e,t,i.children,i.fallback,n),a=t.child,r=e.child.memoizedState,a.memoizedState=null===r?{baseLanes:n}:{baseLanes:r.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Wa,i):(n=Xa(e,t,i.children,n),t.memoizedState=null,n))}function qa(e,t,n,o){var i=e.mode,r=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==r?(r.childLanes=0,r.pendingProps=t):r=Kl(t,i,0,null),n=Hl(n,i,o,null),r.return=e,n.return=e,r.sibling=n,e.child=r,n}function Xa(e,t,n,o){var i=e.child;return e=i.sibling,n=Jl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=o),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Za(e,t,n,o,i){var r=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&r)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Jl(a,s),null!==e?o=Jl(e,o):(o=Hl(o,r,i,null)).flags|=2,o.return=t,n.return=t,n.sibling=o,t.child=n,o}function Qa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),er(e.return,t)}function $a(e,t,n,o,i,r){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:i,lastEffect:r}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=o,a.tail=n,a.tailMode=i,a.lastEffect=r)}function es(e,t,n){var o=t.pendingProps,i=o.revealOrder,r=o.tail;if(wa(e,t,o.children,n),0!=(2&(o=wr.current)))o=1&o|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,n);else if(19===e.tag)Qa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(si(wr,o),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Dr(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$a(t,!1,i,n,r,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Dr(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$a(t,!0,n,null,r,t.lastEffect);break;case"together":$a(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ts(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Jl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Jl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ns(e,t){if(!Fr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function os(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return fi(t.type)&&hi(),null;case 3:return Lr(),ai(ui),ai(ci),Kr(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(Jr(t)?t.flags|=4:o.hydrate||(t.flags|=256)),Ha(t),null;case 5:Nr(t);var r=kr(Cr.current);if(n=t.type,null!==e&&null!=t.stateNode)Ka(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(null===t.stateNode)throw Error(a(166));return null}if(e=kr(Pr.current),Jr(t)){o=t.stateNode,n=t.type;var s=t.memoizedProps;switch(o[zo]=t,o[qo]=s,n){case"dialog":Oo("cancel",o),Oo("close",o);break;case"iframe":case"object":case"embed":Oo("load",o);break;case"video":case"audio":for(e=0;e<Eo.length;e++)Oo(Eo[e],o);break;case"source":Oo("error",o);break;case"img":case"image":case"link":Oo("error",o),Oo("load",o);break;case"details":Oo("toggle",o);break;case"input":ee(o,s),Oo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Oo("invalid",o);break;case"textarea":le(o,s),Oo("invalid",o)}for(var c in Ee(n,s),e=null,s)s.hasOwnProperty(c)&&(r=s[c],"children"===c?"string"==typeof r?o.textContent!==r&&(e=["children",r]):"number"==typeof r&&o.textContent!==""+r&&(e=["children",""+r]):l.hasOwnProperty(c)&&null!=r&&"onScroll"===c&&Oo("scroll",o));switch(n){case"input":X(o),oe(o,s,!0);break;case"textarea":X(o),ue(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=xo)}o=e,t.updateQueue=o,null!==o&&(t.flags|=4)}else{switch(c=9===r.nodeType?r:r.ownerDocument,e===de.html&&(e=pe(n)),e===de.html?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(n,{is:o.is}):(e=c.createElement(n),"select"===n&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,n),e[zo]=t,e[qo]=o,ja(e,t,!1,!1),t.stateNode=e,c=Ae(n,o),n){case"dialog":Oo("cancel",e),Oo("close",e),r=o;break;case"iframe":case"object":case"embed":Oo("load",e),r=o;break;case"video":case"audio":for(r=0;r<Eo.length;r++)Oo(Eo[r],e);r=o;break;case"source":Oo("error",e),r=o;break;case"img":case"image":case"link":Oo("error",e),Oo("load",e),r=o;break;case"details":Oo("toggle",e),r=o;break;case"input":ee(e,o),r=$(e,o),Oo("invalid",e);break;case"option":r=re(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=i({},o,{value:void 0}),Oo("invalid",e);break;case"textarea":le(e,o),r=se(e,o),Oo("invalid",e);break;default:r=o}Ee(n,r);var u=r;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?be(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&me(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ge(e,d):"number"==typeof d&&ge(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Oo("scroll",e):null!=d&&b(e,s,d,c))}switch(n){case"input":X(e),oe(e,o,!1);break;case"textarea":X(e),ue(e);break;case"option":null!=o.value&&e.setAttribute("value",""+z(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?ae(e,!!o.multiple,s,!1):null!=o.defaultValue&&ae(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=xo)}Bo(n,o)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(a(166));n=kr(Cr.current),kr(Pr.current),Jr(t)?(o=t.stateNode,n=t.memoizedProps,o[zo]=t,o.nodeValue!==n&&(t.flags|=4)):((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[zo]=t,t.stateNode=o)}return null;case 13:return ai(wr),o=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(o=null!==o,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Jr(t):n=null!==e.memoizedState,o&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&wr.current)?0===Ds&&(Ds=3):(0!==Ds&&3!==Ds||(Ds=4),null===Rs||0==(134217727&Fs)&&0==(134217727&Us)||hl(Rs,Is))),(o||n)&&(t.flags|=4),null);case 4:return Lr(),Ha(t),null===e&&ko(t.stateNode.containerInfo),null;case 10:return $i(t),null;case 19:if(ai(wr),null===(o=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(c=o.rendering))if(s)ns(o,!1);else{if(0!==Ds||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Dr(e))){for(t.flags|=64,ns(o,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;null!==n;)e=o,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return si(wr,1&wr.current|2),t.child}e=e.sibling}null!==o.tail&&Bi()>Js&&(t.flags|=64,s=!0,ns(o,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Dr(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ns(o,!0),null===o.tail&&"hidden"===o.tailMode&&!c.alternate&&!Fr)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*Bi()-o.renderingStartTime>Js&&1073741824!==n&&(t.flags|=64,s=!0,ns(o,!1),t.lanes=33554432);o.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=o.last)?n.sibling=c:t.child=c,o.last=c)}return null!==o.tail?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=Bi(),n.sibling=null,t=wr.current,si(wr,s?1&t|2:1&t),n):null;case 23:case 24:return _l(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==o.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function is(e){switch(e.tag){case 1:fi(e.type)&&hi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lr(),ai(ui),ai(ci),Kr(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Nr(e),null;case 13:return ai(wr),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(wr),null;case 4:return Lr(),null;case 10:return $i(e),null;case 23:case 24:return _l(),null;default:return null}}function rs(e,t){try{var n="",o=t;do{n+=Y(o),o=o.return}while(o);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function as(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}ja=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(){},Ka=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,kr(Pr.current);var a,s=null;switch(n){case"input":r=$(e,r),o=$(e,o),s=[];break;case"option":r=re(e,r),o=re(e,o),s=[];break;case"select":r=i({},r,{value:void 0}),o=i({},o,{value:void 0}),s=[];break;case"textarea":r=se(e,r),o=se(e,o),s=[];break;default:"function"!=typeof r.onClick&&"function"==typeof o.onClick&&(e.onclick=xo)}for(d in Ee(n,o),n=null,r)if(!o.hasOwnProperty(d)&&r.hasOwnProperty(d)&&null!=r[d])if("style"===d){var c=r[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in o){var u=o[d];if(c=null!=r?r[d]:void 0,o.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Oo("scroll",e),s||c===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===M?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ya=function(e,t,n,o){n!==o&&(t.flags|=4)};var ss="function"==typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=ar(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ys||(Ys=!0,Ws=o),as(0,t)},n}function cs(e,t,n){(n=ar(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var i=t.value;n.payload=function(){return as(0,t),o(i)}}var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===zs?zs=new Set([this]):zs.add(this),as(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var us="function"==typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){xl(e,t)}else t.current=null}function ps(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Wi(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&jo(t.stateNode.containerInfo))}throw Error(a(163))}function fs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;o=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(wl(n,e),Nl(n,e)),e=o}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Wi(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ur(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ur(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Bo(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&bt(n)))))}throw Error(a(163))}function hs(e,t){for(var n=e;;){if(5===n.tag){var o=n.stateNode;if(t)"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,o.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ms(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(_i,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var o=n,i=o.destroy;if(o=o.tag,void 0!==i)if(0!=(4&o))wl(t,n);else{o=t;try{i()}catch(e){xl(o,e)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){xl(t,e)}break;case 5:ds(t);break;case 4:Ss(e,t)}}function gs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}o?_s(e,n,t):bs(e,n,t)}function _s(e,t,n){var o=e.tag,i=5===o||6===o;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=xo));else if(4!==o&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function bs(e,t,n){var o=e.tag,i=5===o||6===o;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(bs(e,t,n),e=e.sibling;null!==e;)bs(e,t,n),e=e.sibling}function Ss(e,t){for(var n,o,i=t,r=!1;;){if(!r){r=i.return;e:for(;;){if(null===r)throw Error(a(160));switch(n=r.stateNode,r.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}r=r.return}r=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,c=l;;)if(ms(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}o?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(ms(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(r=!1)}i.sibling.return=i.return,i=i.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{3==(3&o.tag)&&(e=o.destroy,o.destroy=void 0,void 0!==e&&e()),o=o.next}while(o!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){o=t.memoizedProps;var i=null!==e?e.memoizedProps:o;e=t.type;var r=t.updateQueue;if(t.updateQueue=null,null!==r){for(n[qo]=o,"input"===e&&"radio"===o.type&&null!=o.name&&te(n,o),Ae(e,i),t=Ae(e,o),i=0;i<r.length;i+=2){var s=r[i],l=r[i+1];"style"===s?be(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ge(n,l):b(n,s,l,t)}switch(e){case"input":ne(n,o);break;case"textarea":ce(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(r=o.value)?ae(n,!!o.multiple,r,!1):e!==!!o.multiple&&(null!=o.defaultValue?ae(n,!!o.multiple,o.defaultValue,!0):ae(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,bt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Gs=Bi(),hs(t.child,!0)),void As(t);case 19:return void As(t);case 23:case 24:return void hs(t,null!==t.memoizedState)}throw Error(a(163))}function As(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new us),t.forEach((function(t){var o=Ul.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ps=Math.ceil,Os=S.ReactCurrentDispatcher,Cs=S.ReactCurrentOwner,ks=0,Rs=null,Ls=null,Is=0,Ns=0,ws=ri(0),Ds=0,Ms=null,xs=0,Fs=0,Us=0,Bs=0,Vs=null,Gs=0,Js=1/0;function js(){Js=Bi()+500}var Hs,Ks=null,Ys=!1,Ws=null,zs=null,qs=!1,Xs=null,Zs=90,Qs=[],$s=[],el=null,tl=0,nl=null,ol=-1,il=0,rl=0,al=null,sl=!1;function ll(){return 0!=(48&ks)?Bi():-1!==ol?ol:ol=Bi()}function cl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vi()?1:2;if(0===il&&(il=xs),0!==Yi.transition){0!==rl&&(rl=null!==Vs?Vs.pendingLanes:0),e=il;var t=4186112&~rl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vi(),0!=(4&ks)&&98===e?e=Ut(12,il):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),il),e}function ul(e,t,n){if(50<tl)throw tl=0,nl=null,Error(a(185));if(null===(e=dl(e,t)))return null;Gt(e,t,n),e===Rs&&(Us|=t,4===Ds&&hl(e,Is));var o=Vi();1===t?0!=(8&ks)&&0==(48&ks)?ml(e):(pl(e,n),0===ks&&(js(),Hi())):(0==(4&ks)||98!==o&&99!==o||(null===el?el=new Set([e]):el.add(e)),pl(e,n)),Vs=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function pl(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Jt(s),c=1<<l,u=r[l];if(-1===u){if(0==(c&o)||0!=(c&i)){u=t,Mt(c);var d=Dt;r[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(o=xt(e,e===Rs?Is:0),t=Dt,0===o)null!==n&&(n!==wi&&Ai(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==wi&&Ai(n)}15===t?(n=ml.bind(null,e),null===Mi?(Mi=[n],xi=Ei(ki,Ki)):Mi.push(n),n=wi):14===t?n=ji(99,ml.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=ji(n,fl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function fl(e){if(ol=-1,rl=il=0,0!=(48&ks))throw Error(a(327));var t=e.callbackNode;if(Il()&&e.callbackNode!==t)return null;var n=xt(e,e===Rs?Is:0);if(0===n)return null;var o=n,i=ks;ks|=16;var r=El();for(Rs===e&&Is===o||(js(),bl(e,o));;)try{Pl();break}catch(t){Sl(e,t)}if(Qi(),Os.current=r,ks=i,null!==Ls?o=0:(Rs=null,Is=0,o=Ds),0!=(xs&Us))bl(e,0);else if(0!==o){if(2===o&&(ks|=64,e.hydrate&&(e.hydrate=!1,jo(e.containerInfo)),0!==(n=Ft(e))&&(o=Al(e,n))),1===o)throw t=Ms,bl(e,0),hl(e,n),pl(e,Bi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(a(345));case 2:case 5:kl(e);break;case 3:if(hl(e,n),(62914560&n)===n&&10<(o=Gs+500-Bi())){if(0!==xt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ll(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Go(kl.bind(null,e),o);break}kl(e);break;case 4:if(hl(e,n),(4186112&n)===n)break;for(o=e.eventTimes,i=-1;0<n;){var s=31-Jt(n);r=1<<s,(s=o[s])>i&&(i=s),n&=~r}if(n=i,10<(n=(120>(n=Bi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ps(n/1960))-n)){e.timeoutHandle=Go(kl.bind(null,e),n);break}kl(e);break;default:throw Error(a(329))}}return pl(e,Bi()),e.callbackNode===t?fl.bind(null,e):null}function hl(e,t){for(t&=~Bs,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jt(t),o=1<<n;e[n]=-1,t&=~o}}function ml(e){if(0!=(48&ks))throw Error(a(327));if(Il(),e===Rs&&0!=(e.expiredLanes&Is)){var t=Is,n=Al(e,t);0!=(xs&Us)&&(n=Al(e,t=xt(e,t)))}else n=Al(e,t=xt(e,0));if(0!==e.tag&&2===n&&(ks|=64,e.hydrate&&(e.hydrate=!1,jo(e.containerInfo)),0!==(t=Ft(e))&&(n=Al(e,t))),1===n)throw n=Ms,bl(e,0),hl(e,t),pl(e,Bi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,kl(e),pl(e,Bi()),null}function gl(e,t){var n=ks;ks|=1;try{return e(t)}finally{0===(ks=n)&&(js(),Hi())}}function vl(e,t){var n=ks;ks&=-2,ks|=8;try{return e(t)}finally{0===(ks=n)&&(js(),Hi())}}function yl(e,t){si(ws,Ns),Ns|=t,xs|=t}function _l(){Ns=ws.current,ai(ws)}function bl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Jo(n)),null!==Ls)for(n=Ls.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&hi();break;case 3:Lr(),ai(ui),ai(ci),Kr();break;case 5:Nr(o);break;case 4:Lr();break;case 13:case 19:ai(wr);break;case 10:$i(o);break;case 23:case 24:_l()}n=n.return}Rs=e,Ls=Jl(e.current,null),Is=Ns=xs=t,Ds=0,Ms=null,Bs=Us=Fs=0}function Sl(e,t){for(;;){var n=Ls;try{if(Qi(),Yr.current=Ca,Qr){for(var o=qr.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}Qr=!1}if(zr=0,Zr=Xr=qr=null,$r=!1,Cs.current=null,null===n||null===n.return){Ds=1,Ms=t,Ls=null;break}e:{var r=e,a=n.return,s=n,l=t;if(t=Is,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&wr.current),p=a;do{var f;if(f=13===p.tag){var h=p.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var m=p.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(f){var g=p.updateQueue;if(null===g){var v=new Set;v.add(c),p.updateQueue=v}else g.add(c);if(0==(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ar(-1,1);y.tag=2,sr(s,y)}s.lanes|=1;break e}l=void 0,s=t;var _=r.pingCache;if(null===_?(_=r.pingCache=new ss,l=new Set,_.set(c,l)):void 0===(l=_.get(c))&&(l=new Set,_.set(c,l)),!l.has(s)){l.add(s);var b=Fl.bind(null,r,c,s);c.then(b,b)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error((W(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ds&&(Ds=2),l=rs(l,s),p=a;do{switch(p.tag){case 3:r=l,p.flags|=4096,t&=-t,p.lanes|=t,lr(p,ls(0,r,t));break e;case 1:r=l;var S=p.type,E=p.stateNode;if(0==(64&p.flags)&&("function"==typeof S.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===zs||!zs.has(E)))){p.flags|=4096,t&=-t,p.lanes|=t,lr(p,cs(p,r,t));break e}}p=p.return}while(null!==p)}Cl(n)}catch(e){t=e,Ls===n&&null!==n&&(Ls=n=n.return);continue}break}}function El(){var e=Os.current;return Os.current=Ca,null===e?Ca:e}function Al(e,t){var n=ks;ks|=16;var o=El();for(Rs===e&&Is===t||bl(e,t);;)try{Tl();break}catch(t){Sl(e,t)}if(Qi(),ks=n,Os.current=o,null!==Ls)throw Error(a(261));return Rs=null,Is=0,Ds}function Tl(){for(;null!==Ls;)Ol(Ls)}function Pl(){for(;null!==Ls&&!Ti();)Ol(Ls)}function Ol(e){var t=Hs(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Cl(e):Ls=t,Cs.current=null}function Cl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=os(n,t,Ns)))return void(Ls=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ns)||0==(4&n.mode)){for(var o=0,i=n.child;null!==i;)o|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=o}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=is(t)))return n.flags&=2047,void(Ls=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ls=t);Ls=t=e}while(null!==t);0===Ds&&(Ds=5)}function kl(e){var t=Vi();return Ji(99,Rl.bind(null,e,t)),null}function Rl(e,t){do{Il()}while(null!==Xs);if(0!=(48&ks))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var o=n.lanes|n.childLanes,i=o,r=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<r;){var c=31-Jt(r),u=1<<c;i[c]=0,s[c]=-1,l[c]=-1,r&=~u}if(null!==el&&0==(24&o)&&el.has(e)&&el.delete(e),e===Rs&&(Ls=Rs=null,Is=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){if(i=ks,ks|=32,Cs.current=null,Fo=Wt,fo(s=po())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,r=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var d=0,p=-1,f=-1,h=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==r&&3!==g.nodeType||(p=d+r),g!==c||0!==u&&3!==g.nodeType||(f=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++h===r&&(p=d),v===c&&++m===u&&(f=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===p||-1===f?null:{start:p,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;Uo={focusedElem:s,selectionRange:l},Wt=!1,al=null,sl=!1,Ks=o;do{try{Ll()}catch(e){if(null===Ks)throw Error(a(330));xl(Ks,e),Ks=Ks.nextEffect}}while(null!==Ks);al=null,Ks=o;do{try{for(s=e;null!==Ks;){var _=Ks.flags;if(16&_&&ge(Ks.stateNode,""),128&_){var b=Ks.alternate;if(null!==b){var S=b.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&_){case 2:ys(Ks),Ks.flags&=-3;break;case 6:ys(Ks),Ks.flags&=-3,Es(Ks.alternate,Ks);break;case 1024:Ks.flags&=-1025;break;case 1028:Ks.flags&=-1025,Es(Ks.alternate,Ks);break;case 4:Es(Ks.alternate,Ks);break;case 8:Ss(s,l=Ks);var E=l.alternate;gs(l),null!==E&&gs(E)}Ks=Ks.nextEffect}}catch(e){if(null===Ks)throw Error(a(330));xl(Ks,e),Ks=Ks.nextEffect}}while(null!==Ks);if(S=Uo,b=po(),_=S.focusedElem,s=S.selectionRange,b!==_&&_&&_.ownerDocument&&uo(_.ownerDocument.documentElement,_)){null!==s&&fo(_)&&(b=s.start,void 0===(S=s.end)&&(S=b),"selectionStart"in _?(_.selectionStart=b,_.selectionEnd=Math.min(S,_.value.length)):(S=(b=_.ownerDocument||document)&&b.defaultView||window).getSelection&&(S=S.getSelection(),l=_.textContent.length,E=Math.min(s.start,l),s=void 0===s.end?E:Math.min(s.end,l),!S.extend&&E>s&&(l=s,s=E,E=l),l=co(_,E),r=co(_,s),l&&r&&(1!==S.rangeCount||S.anchorNode!==l.node||S.anchorOffset!==l.offset||S.focusNode!==r.node||S.focusOffset!==r.offset)&&((b=b.createRange()).setStart(l.node,l.offset),S.removeAllRanges(),E>s?(S.addRange(b),S.extend(r.node,r.offset)):(b.setEnd(r.node,r.offset),S.addRange(b))))),b=[];for(S=_;S=S.parentNode;)1===S.nodeType&&b.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<b.length;_++)(S=b[_]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Wt=!!Fo,Uo=Fo=null,e.current=n,Ks=o;do{try{for(_=e;null!==Ks;){var A=Ks.flags;if(36&A&&fs(_,Ks.alternate,Ks),128&A){b=void 0;var T=Ks.ref;if(null!==T){var P=Ks.stateNode;Ks.tag,b=P,"function"==typeof T?T(b):T.current=b}}Ks=Ks.nextEffect}}catch(e){if(null===Ks)throw Error(a(330));xl(Ks,e),Ks=Ks.nextEffect}}while(null!==Ks);Ks=null,Di(),ks=i}else e.current=n;if(qs)qs=!1,Xs=e,Zs=t;else for(Ks=o;null!==Ks;)t=Ks.nextEffect,Ks.nextEffect=null,8&Ks.flags&&((A=Ks).sibling=null,A.stateNode=null),Ks=t;if(0===(o=e.pendingLanes)&&(zs=null),1===o?e===nl?tl++:(tl=0,nl=e):tl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(_i,n,void 0,64==(64&n.current.flags))}catch(e){}if(pl(e,Bi()),Ys)throw Ys=!1,e=Ws,Ws=null,e;return 0!=(8&ks)||Hi(),null}function Ll(){for(;null!==Ks;){var e=Ks.alternate;sl||null===al||(0!=(8&Ks.flags)?Qe(Ks,al)&&(sl=!0):13===Ks.tag&&Ts(e,Ks)&&Qe(Ks,al)&&(sl=!0));var t=Ks.flags;0!=(256&t)&&ps(e,Ks),0==(512&t)||qs||(qs=!0,ji(97,(function(){return Il(),null}))),Ks=Ks.nextEffect}}function Il(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Ji(e,Dl)}return!1}function Nl(e,t){Qs.push(t,e),qs||(qs=!0,ji(97,(function(){return Il(),null})))}function wl(e,t){$s.push(t,e),qs||(qs=!0,ji(97,(function(){return Il(),null})))}function Dl(){if(null===Xs)return!1;var e=Xs;if(Xs=null,0!=(48&ks))throw Error(a(331));var t=ks;ks|=32;var n=$s;$s=[];for(var o=0;o<n.length;o+=2){var i=n[o],r=n[o+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===r)throw Error(a(330));xl(r,e)}}for(n=Qs,Qs=[],o=0;o<n.length;o+=2){i=n[o],r=n[o+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===r)throw Error(a(330));xl(r,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return ks=t,Hi(),!0}function Ml(e,t,n){sr(e,t=ls(0,t=rs(n,t),1)),t=ll(),null!==(e=dl(e,1))&&(Gt(e,1,t),pl(e,t))}function xl(e,t){if(3===e.tag)Ml(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ml(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===zs||!zs.has(o))){var i=cs(n,e=rs(t,e),1);if(sr(n,i),i=ll(),null!==(n=dl(n,1)))Gt(n,1,i),pl(n,i);else if("function"==typeof o.componentDidCatch&&(null===zs||!zs.has(o)))try{o.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Fl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=ll(),e.pingedLanes|=e.suspendedLanes&n,Rs===e&&(Is&n)===n&&(4===Ds||3===Ds&&(62914560&Is)===Is&&500>Bi()-Gs?bl(e,0):Bs|=n),pl(e,t)}function Ul(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vi()?1:2:(0===il&&(il=xs),0===(t=Bt(62914560&~il))&&(t=4194304))),n=ll(),null!==(e=dl(e,t))&&(Gt(e,t,n),pl(e,n))}function Bl(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vl(e,t,n,o){return new Bl(e,t,n,o)}function Gl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jl(e,t){var n=e.alternate;return null===n?((n=Vl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,o,i,r){var s=2;if(o=e,"function"==typeof e)Gl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case T:return Hl(n.children,i,r,t);case x:s=8,i|=16;break;case P:s=8,i|=1;break;case O:return(e=Vl(12,n,t,8|i)).elementType=O,e.type=O,e.lanes=r,e;case L:return(e=Vl(13,n,t,i)).type=L,e.elementType=L,e.lanes=r,e;case I:return(e=Vl(19,n,t,i)).elementType=I,e.lanes=r,e;case F:return Kl(n,i,r,t);case U:return(e=Vl(24,n,t,i)).elementType=U,e.lanes=r,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case k:s=9;break e;case R:s=11;break e;case N:s=14;break e;case w:s=16,o=null;break e;case D:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Vl(s,n,t,i)).elementType=e,t.type=o,t.lanes=r,t}function Hl(e,t,n,o){return(e=Vl(7,e,o,t)).lanes=n,e}function Kl(e,t,n,o){return(e=Vl(23,e,o,t)).elementType=F,e.lanes=n,e}function Yl(e,t,n){return(e=Vl(6,e,null,t)).lanes=n,e}function Wl(e,t,n){return(t=Vl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function ql(e,t,n,o){var i=t.current,r=ll(),s=cl(i);e:if(n){t:{if(ze(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(fi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(fi(c)){n=gi(n,c,l);break e}}n=l}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=ar(r,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),sr(i,t),ul(i,s,r),s}function Xl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ql(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function $l(e,t,n){var o=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new zl(e,t,null!=n&&!0===n.hydrate),t=Vl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ir(t),e[Xo]=n.current,ko(8===e.nodeType?e.parentNode:e),o)for(e=0;e<o.length;e++){var i=(t=o[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ec(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tc(e,t,n,o,i){var r=n._reactRootContainer;if(r){var a=r._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Xl(a);s.call(e)}}ql(t,a,e,i)}else{if(r=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new $l(e,0,t?{hydrate:!0}:void 0)}(n,o),a=r._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Xl(a);l.call(e)}}vl((function(){ql(t,a,e,i)}))}return Xl(a)}function nc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ec(t))throw Error(a(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Hs=function(e,t,n){var o=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)Na=!0;else{if(0==(n&o)){switch(Na=!1,t.tag){case 3:Ja(t),jr();break;case 5:Ir(t);break;case 1:fi(t.type)&&vi(t);break;case 4:Rr(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var i=t.type._context;si(zi,i._currentValue),i._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?za(e,t,n):(si(wr,1&wr.current),null!==(t=ts(e,t,n))?t.sibling:null);si(wr,1&wr.current);break;case 19:if(o=0!=(n&t.childLanes),0!=(64&e.flags)){if(o)return es(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),si(wr,wr.current),o)break;return null;case 23:case 24:return t.lanes=0,Fa(e,t,n)}return ts(e,t,n)}Na=0!=(16384&e.flags)}else Na=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=pi(t,ci.current),tr(t,n),i=na(null,t,o,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fi(o)){var r=!0;vi(t)}else r=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ir(t);var s=o.getDerivedStateFromProps;"function"==typeof s&&pr(t,o,s,e),i.updater=fr,t.stateNode=i,i._reactInternals=t,vr(t,o,e,n),t=Ga(null,t,o,!0,r,n)}else t.tag=0,wa(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"==typeof e)return Gl(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===N)return 14}return 2}(i),e=Wi(i,e),r){case 0:t=Ba(null,t,i,e,n);break e;case 1:t=Va(null,t,i,e,n);break e;case 11:t=Da(null,t,i,e,n);break e;case 14:t=Ma(null,t,i,Wi(i.type,e),o,n);break e}throw Error(a(306,i,""))}return t;case 0:return o=t.type,i=t.pendingProps,Ba(e,t,o,i=t.elementType===o?i:Wi(o,i),n);case 1:return o=t.type,i=t.pendingProps,Va(e,t,o,i=t.elementType===o?i:Wi(o,i),n);case 3:if(Ja(t),o=t.updateQueue,null===e||null===o)throw Error(a(282));if(o=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,rr(e,t),cr(t,o,null,n),(o=t.memoizedState.element)===i)jr(),t=ts(e,t,n);else{if((r=(i=t.stateNode).hydrate)&&(xr=Ho(t.stateNode.containerInfo.firstChild),Mr=t,r=Fr=!0),r){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(r=e[i])._workInProgressVersionPrimary=e[i+1],Hr.push(r);for(n=Ar(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else wa(e,t,o,n),jr();t=t.child}return t;case 5:return Ir(t),null===e&&Vr(t),o=t.type,i=t.pendingProps,r=null!==e?e.memoizedProps:null,s=i.children,Vo(o,i)?s=null:null!==r&&Vo(o,r)&&(t.flags|=16),Ua(e,t),wa(e,t,s,n),t.child;case 6:return null===e&&Vr(t),null;case 13:return za(e,t,n);case 4:return Rr(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Er(t,null,o,n):wa(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,Da(e,t,o,i=t.elementType===o?i:Wi(o,i),n);case 7:return wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,i=t.pendingProps,s=t.memoizedProps,r=i.value;var l=t.type._context;if(si(zi,l._currentValue),l._currentValue=r,null!==s)if(l=s.value,0===(r=ro(l,r)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,r):1073741823))){if(s.children===i.children&&!ui.current){t=ts(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===o&&0!=(u.observedBits&r)){1===l.tag&&((u=ar(-1,n&-n)).tag=2,sr(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),er(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}wa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=(r=t.pendingProps).children,tr(t,n),o=o(i=nr(i,r.unstable_observedBits)),t.flags|=1,wa(e,t,o,n),t.child;case 14:return r=Wi(i=t.type,t.pendingProps),Ma(e,t,i,r=Wi(i.type,r),o,n);case 15:return xa(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Wi(o,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,fi(o)?(e=!0,vi(t)):e=!1,tr(t,n),mr(t,o,i),vr(t,o,i,n),Ga(null,t,o,!0,e,n);case 19:return es(e,t,n);case 23:case 24:return Fa(e,t,n)}throw Error(a(156,t.tag))},$l.prototype.render=function(e){ql(e,this._internalRoot,null,null)},$l.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ql(null,e,null,(function(){t[Xo]=null}))},$e=function(e){13===e.tag&&(ul(e,4,ll()),Ql(e,4))},et=function(e){13===e.tag&&(ul(e,67108864,ll()),Ql(e,67108864))},tt=function(e){if(13===e.tag){var t=ll(),n=cl(e);ul(e,n,t),Ql(e,n)}},nt=function(e,t){return t()},Pe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=ti(o);if(!i)throw Error(a(90));Z(o),ne(o,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ie=gl,Ne=function(e,t,n,o,i){var r=ks;ks|=4;try{return Ji(98,e.bind(null,t,n,o,i))}finally{0===(ks=r)&&(js(),Hi())}},we=function(){0==(49&ks)&&(function(){if(null!==el){var e=el;el=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,pl(e,Bi())}))}Hi()}(),Il())},De=function(e,t){var n=ks;ks|=2;try{return e(t)}finally{0===(ks=n)&&(js(),Hi())}};var oc={Events:[$o,ei,ti,Re,Le,Il,{current:!1}]},ic={findFiberByHostInstance:Qo,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},rc={bundleType:ic.bundleType,version:ic.version,rendererPackageName:ic.rendererPackageName,rendererConfig:ic.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:ic.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{_i=ac.inject(rc),bi=ac}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,t.createPortal=nc,Spicetify.ReactDOM=t,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=ks;if(0!=(48&n))return e(t);ks|=1;try{if(e)return Ji(99,e.bind(null,t))}finally{ks=n,Hi()}},t.hydrate=function(e,t,n){if(!ec(t))throw Error(a(200));return tc(null,e,t,!0,n)},t.render=function(e,t,n){if(!ec(t))throw Error(a(200));return tc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ec(e))throw Error(a(40));return!!e._reactRootContainer&&(vl((function(){tc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xo]=null}))})),!0)},t.unstable_batchedUpdates=gl,t.unstable_createPortal=function(e,t){return nc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!ec(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return tc(e,t,n,!1,o)},t.version="17.0.2"},87995:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(17439)},30999:(e,t,n)=>{"use strict";e.exports=n(85145)},46146:(e,t,n)=>{"use strict";n.d(t,{SV:()=>s});var o=n(59496);function i(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}i({},"ErrorBoundary",(()=>s));i({},"ErrorBoundaryContext",(()=>r));const r=(0,o.createContext)(null),a={didCatch:!1,error:null};class s extends o.Component{state=a;static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary=(...e)=>{const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(a))};componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:o}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,o)&&(this.props.onReset?.({next:o,prev:e.resetKeys,reason:"keys"}),this.setState(a))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:s}=this.state;let l=e;if(a){const e={error:s,resetErrorBoundary:this.resetErrorBoundary};if((0,o.isValidElement)(i))l=i;else if("function"==typeof t)l=t(e);else{if(!n)throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");l=(0,o.createElement)(n,e)}}return(0,o.createElement)(r.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},l)}}function l(e){if(null==e||"boolean"!=typeof e.didCatch||"function"!=typeof e.resetErrorBoundary)throw new Error("ErrorBoundaryContext not found");return!0}function c(){const e=(0,o.useContext)(r);l(e);const[t,n]=(0,o.useState)({error:null,hasError:!1}),i=(0,o.useMemo)((()=>({resetBoundary:()=>{e?.resetErrorBoundary(),n({error:null,hasError:!1})},showBoundary:e=>n({error:e,hasError:!0})})),[e?.resetErrorBoundary]);if(t.hasError)throw t.error;return i}i({},"useErrorBoundary",(()=>c));function u(e,t){const n=(0,o.forwardRef)(((n,i)=>(0,o.createElement)(s,t,(0,o.createElement)(e,{...n,ref:i})))),i=e.displayName||e.name||"Unknown";return n.displayName=`withErrorBoundary(${i})`,n}i({},"withErrorBoundary",(()=>u))},61970:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function r(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!r(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!r(l.value[1],a.get(l.value[0])))return!1;return!0}if(o&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!r(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return r(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},48657:(e,t,n)=>{"use strict";n.d(t,{$3:()=>z,U5:()=>Y});var o=n(59496);function i(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;if(6===e.length){var t=r();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function r(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function a(e,t){for(var n=i(e),o=i(t),r=[],a=0;a<4;a++)for(var s=[n[a],n[a+4],n[a+8],n[a+12]],l=0;l<4;l++){var c=4*l,u=[o[c],o[c+1],o[c+2],o[c+3]],d=s[0]*u[0]+s[1]*u[1]+s[2]*u[2]+s[3]*u[3];r[a+c]=d}return r}var s=function(e){return"number"==typeof e},l=function(e){return"function"==typeof e},c=function(e){return"[object Object]"===Object.prototype.toString.call(e)},u=function(e){return Array.prototype.slice.apply(e)},d=function(e){var t=e.reduce((function(e,t){return e[t]=(e[t]||0)+1,e}),{});return Object.keys(t).filter((function(e){return t[e]>1}))};function p(e){return[].slice.call(arguments,1).forEach((function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}var f,h=function(e,t,n){return e+(t-e)*n},m={__proto__:null,isNumber:s,isFunction:l,isObject:c,toArray:u,getDuplicateValsAsStrings:d,assign:p,tweenProp:h},g="data-flip-id",v="data-inverse-flip-id",y="data-flip-config",_="data-portal-key",b={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},S=function(e){return c(e)?e:Object.keys(b).indexOf(e)>-1?b[e]:{}};"undefined"!=typeof window&&(f=window.requestAnimationFrame);var E=f=f||function(e){window.setTimeout(e,1e3/60)},A=Date.now(),T="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()-A};function P(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var O=function(){function e(){}return e.prototype.run=function(){var e=this;E((function(){e.springSystem.loop(T())}))},e}(),C=function(){this.position=0,this.velocity=0},k=0,R=function(){function e(e){this._id="s"+k++,this._springSystem=e,this.listeners=[],this._startValue=0,this._currentState=new C,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new C,this._restSpeedThreshold=.001,this._tempState=new C,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(e){return this._springConfig=e,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(e){return Math.abs(this._endValue-e.position)},t.setEndValue=function(e){if(e===this._endValue)return this;if(this.prevEndValue=e,this._endValue===e&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=e,this._springSystem.activateSpring(this.getId());for(var t=0,n=this.listeners.length;t<n;t++){var o=this.listeners[t].onSpringEndStateChange;o&&o(this)}return this},t.setVelocity=function(e){return e===this._currentState.velocity||(this._currentState.velocity=e,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(e){this._startValue=e,this._currentState.position=e;for(var t=0,n=this.listeners.length;t<n;t++){var o=this.listeners[t];o.onSpringUpdate&&o.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(e){return this._overshootClampingEnabled=e,this},t.isOvershooting=function(){var e=this._startValue,t=this._endValue;return this._springConfig.tension>0&&(e<t&&this.getCurrentValue()>t||e>t&&this.getCurrentValue()<t)},t.advance=function(e,t){var n=this.isAtRest();if(!n||!this._wasAtRest){var o=t;t>.064&&(o=.064),this._timeAccumulator+=o;for(var i,r,a,s,l,c,u=this._springConfig.tension,d=this._springConfig.friction,p=this._currentState.position,f=this._currentState.velocity,h=this._tempState.position,m=this._tempState.velocity;this._timeAccumulator>=.001;)this._timeAccumulator-=.001,this._timeAccumulator<.001&&(this._previousState.position=p,this._previousState.velocity=f),r=u*(this._endValue-h)-d*f,s=u*(this._endValue-(h=p+.001*(i=f)*.5))-d*(m=f+.001*r*.5),c=u*(this._endValue-(h=p+.001*(a=m)*.5))-d*(m=f+.001*s*.5),h=p+.001*(l=m),p+=1/6*(i+2*(a+l)+(m=f+.001*c))*.001,f+=1/6*(r+2*(s+c)+(u*(this._endValue-h)-d*m))*.001;this._tempState.position=h,this._tempState.velocity=m,this._currentState.position=p,this._currentState.velocity=f,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/.001),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),n=!0);var g=!1;this._wasAtRest&&(this._wasAtRest=!1,g=!0);var v=!1;n&&(this._wasAtRest=!0,v=!0),this.notifyPositionUpdated(g,v)}},t.notifyPositionUpdated=function(e,t){var n=this;this.listeners.filter(Boolean).forEach((function(o){e&&o.onSpringActivate&&!n._onActivateCalled&&(o.onSpringActivate(n),n._onActivateCalled=!0),o.onSpringUpdate&&o.onSpringUpdate(n),t&&o.onSpringAtRest&&o.onSpringAtRest(n)}))},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||0===this._springConfig.tension)},t._interpolate=function(e){this._currentState.position=this._currentState.position*e+this._previousState.position*(1-e),this._currentState.velocity=this._currentState.velocity*e+this._previousState.velocity*(1-e)},t.addListener=function(e){return this.listeners.push(e),this},t.addOneTimeListener=function(e){var t=this;return Object.keys(e).forEach((function(n){var o;e[n]=(o=e[n],function(){o.apply(void 0,[].slice.call(arguments)),t.removeListener(e)})})),this.listeners.push(e),this},t.removeListener=function(e){return P(this.listeners,e),this},e}(),L=function(){function e(e){this.looper=e||new O,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(e,t){return this.createSpringWithConfig({tension:e,friction:t})},t.createSpringWithConfig=function(e){var t=new R(this);return this.registerSpring(t),t.setSpringConfig(e),t},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(e){this._springRegistry[e.getId()]=e},t.deregisterSpring=function(e){P(this._activeSprings,e),delete this._springRegistry[e.getId()]},t.advance=function(e,t){for(var n=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach((function(o){o.systemShouldAdvance()?o.advance(e/1e3,t/1e3):n._idleSpringIndices.push(n._activeSprings.indexOf(o))}));this._idleSpringIndices.length>0;){var o=this._idleSpringIndices.pop();o>=0&&this._activeSprings.splice(o,1)}},t.loop=function(e){var t;-1===this._lastTimeMillis&&(this._lastTimeMillis=e-1);var n=e-this._lastTimeMillis;this._lastTimeMillis=e;var o=0,i=this.listeners.length;for(o=0;o<i;o++)(t=this.listeners[o]).onBeforeIntegrate&&t.onBeforeIntegrate(this);for(this.advance(e,n),0===this._activeSprings.length&&(this._isIdle=!0,this._lastTimeMillis=-1),o=0;o<i;o++)(t=this.listeners[o]).onAfterIntegrate&&t.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(e){var t=this._springRegistry[e];-1===this._activeSprings.indexOf(t)&&this._activeSprings.push(t),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e}(),I=new L,N=function(e){var t=e.springConfig,n=t.overshootClamping,o=e.getOnUpdateFunc,i=e.onAnimationEnd,r=e.onSpringActivate,a=I.createSpring(t.stiffness,t.damping);a.setOvershootClampingEnabled(!!n);var s={onSpringActivate:r,onSpringAtRest:function(){a.destroy(),i()},onSpringUpdate:o({spring:a,onAnimationEnd:i})};return a.addListener(s),a},w=function(e){var t=N(e);return t.setEndValue(1),t},D=function(e,t){if(void 0===t&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,o="number"!=typeof(n=t.speed)?1.1:1+Math.min(Math.max(5*n,0),5),i=1/Math.max(Math.min(e.length,100),10),r=e.map((function(e,t){var n=e.getOnUpdateFunc;return e.getOnUpdateFunc=function(e){var a=n(e);return function(e){var n=e.getCurrentValue();(n=n<.01?0:n>.99?1:n)>=i&&r[t+1]&&r[t+1](Math.max(Math.min(n*o,1),0)),a(e)}},e})).map((function(e){var t=N(e);if(t)return t.setEndValue.bind(t)})).filter(Boolean);r[0]&&r[0](1)}},M=function(e){return[0,1,4,5,12,13].map((function(t){return e[t]}))},x=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function F(e){return JSON.parse(e.dataset.flipConfig||"{}")}var U=function(e,t){var n;return p(e,((n={})[t[0]]=t[1],n))},B=function(e,t){return u(t?document.querySelectorAll('[data-portal-key="'+t+'"]'):e.querySelectorAll("[data-flip-id]"))},V=function(e){return e.map((function(e){return[e,e.getBoundingClientRect()]}))},G=function(e){var t,n,o=e.cachedOrderedFlipIds,c=void 0===o?[]:o,f=e.inProgressAnimations,m=void 0===f?{}:f,g=e.flippedElementPositionsBeforeUpdate,v=void 0===g?{}:g,y=e.flipCallbacks,_=void 0===y?{}:y,E=e.containerEl,A=e.applyTransformOrigin,T=e.spring,P=e.debug,O=e.portalKey,C=e.staggerConfig,k=void 0===C?{}:C,R=e.decisionData,L=void 0===R?{}:R,I=e.handleEnterUpdateDelete,N=e.onComplete,G=e.onStart,J=V(B((t={element:E,portalKey:O}).element,t.portalKey)).map((function(e){var t=e[0],n=e[1],o=window.getComputedStyle(t);return[t.dataset.flipId,{element:t,rect:n,opacity:parseFloat(o.opacity),transform:o.transform}]})).reduce(U,{}),j=function(e){var t=e.containerEl,n=e.portalKey;return n?function(e){return function(t){return u(document.querySelectorAll('[data-portal-key="'+e+'"]'+t))}}(n):t?function(e){var t=Math.random().toFixed(5);return e.dataset.flipperId=t,function(n){return u(e.querySelectorAll('[data-flipper-id="'+t+'"] '+n))}}(t):function(){return[]}}({containerEl:E,portalKey:O}),H=(n=j,function(e){return n('[data-flip-id="'+e+'"]')[0]}),K=function(e){return v[e]&&J[e]},Y=Object.keys(v).concat(Object.keys(J)).filter((function(e){return!K(e)})),W={flipCallbacks:_,getElement:H,flippedElementPositionsBeforeUpdate:v,flippedElementPositionsAfterUpdate:J,inProgressAnimations:m,decisionData:L},z=function(e){var t,n=e.unflippedIds,o=e.flipCallbacks,i=e.getElement,r=e.flippedElementPositionsBeforeUpdate,a=e.flippedElementPositionsAfterUpdate,s=e.inProgressAnimations,l=e.decisionData,c=n.filter((function(e){return a[e]})).filter((function(e){return o[e]&&o[e].onAppear})),u=n.filter((function(e){return r[e]&&o[e]&&o[e].onExit})),d=new Promise((function(e){t=e})),p=[],f=0,h=u.map((function(e,n){var i=r[e].domDataForExitAnimations,a=i.element,c=i.parent,u=i.childPosition,d=u.top,h=u.left,m=u.width,g=u.height;"static"===getComputedStyle(c).position&&(c.style.position="relative"),a.style.transform="matrix(1, 0, 0, 1, 0, 0)",a.style.position="absolute",a.style.top=d+"px",a.style.left=h+"px",a.style.height=g+"px",a.style.width=m+"px";var v=p.filter((function(e){return e[0]===c}))[0];v||(v=[c,document.createDocumentFragment()],p.push(v)),v[1].appendChild(a),f+=1;var y=function(){try{c.removeChild(a)}catch(e){}finally{0==(f-=1)&&t()}};return s[e]={stop:y},function(){return o[e].onExit(a,n,y,l)}}));return p.forEach((function(e){e[0].appendChild(e[1])})),h.length||t(),{hideEnteringElements:function(){c.forEach((function(e){var t=i(e);t&&(t.style.opacity="0")}))},animateEnteringElements:function(){c.forEach((function(e,t){var n=i(e);n&&o[e].onAppear(n,t,l)}))},animateExitingElements:function(){return h.forEach((function(e){return e()})),d}}}(p({},W,{unflippedIds:Y})),q=z.hideEnteringElements,X=z.animateEnteringElements,Z=z.animateExitingElements,Q=p({},W,{containerEl:E,flippedIds:c.filter(K),applyTransformOrigin:A,spring:T,debug:P,staggerConfig:k,scopedSelector:j,onComplete:N});G&&G(E,L);var $=function(e){var t,n=e.flippedIds,o=e.flipCallbacks,c=e.inProgressAnimations,f=e.flippedElementPositionsBeforeUpdate,m=e.flippedElementPositionsAfterUpdate,g=e.applyTransformOrigin,v=e.spring,y=e.getElement,_=e.debug,E=e.staggerConfig,A=void 0===E?{}:E,T=e.decisionData,P=void 0===T?{}:T,O=e.onComplete,C=e.containerEl,k=new Promise((function(e){t=e}));if(O&&k.then((function(){return O(C,P)})),!n.length)return function(){return t([]),k};var R=[],L=y(n[0]),I=L?L.ownerDocument.querySelector("body"):document.querySelector("body"),N=(d(n),n.map((function(e){var n=f[e].rect,d=m[e].rect,y=f[e].opacity,_=m[e].opacity,E=d.width<1||d.height<1,A=m[e].element;if(!x(n)&&!x(d))return!1;if(!A)return!1;var T,O,C,k=F(A),L=(C=(O=void 0===(T={flipperSpring:v,flippedSpring:k.spring})?{}:T).flippedSpring,p({},b.noWobble,S(O.flipperSpring),S(C))),w=!0===k.stagger?"default":k.stagger,D={element:A,id:e,stagger:w,springConfig:L};if(o[e]&&o[e].shouldFlip&&!o[e].shouldFlip(P.previous,P.current))return!1;var U=Math.abs(n.left-d.left)+Math.abs(n.top-d.top),B=Math.abs(n.width-d.width)+Math.abs(n.height-d.height),V=Math.abs(_-y);if(0===n.height&&0===d.height||0===n.width&&0===d.width||U<.5&&B<.5&&V<.01)return!1;var G,J,j=function(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return i(t[2].split(", ").map(parseFloat))}return r()}(m[e].transform),H={matrix:j},K={matrix:[]},Y=[j];k.translate&&(Y.push((G=n.left-d.left,(J=r())[12]=G,J)),Y.push(function(e){var t=r();return t[13]=e,t}(n.top-d.top))),k.scale&&(Y.push(function(e){var t=r();return t[0]=e,t}(Math.max(n.width,1)/Math.max(d.width,1))),Y.push(function(e){var t=r();return t[5]=e,t}(Math.max(n.height,1)/Math.max(d.height,1)))),k.opacity&&(K.opacity=y,H.opacity=_);var W=[];if(!o[e]||!o[e].shouldInvert||o[e].shouldInvert(P.previous,P.current)){var z=function(e,t){return u(e.querySelectorAll('[data-inverse-flip-id="'+t+'"]'))}(A,e);W=z.map((function(e){return[e,F(e)]}))}K.matrix=M(Y.reduce(a)),H.matrix=M(H.matrix);var q,X=function(e){var t=e.element,n=e.invertedChildren,o=e.body;return function(e){var i=e.matrix,r=e.opacity,a=e.forceMinVals;if(s(r)&&(t.style.opacity=r+""),a&&(t.style.minHeight="1px",t.style.minWidth="1px"),i){var l=function(e){return"matrix("+e.join(", ")+")"}(i);t.style.transform=l,n&&function(e){var t=e.matrix,n=e.body;e.invertedChildren.forEach((function(e){var o=e[0],i=e[1];if(n.contains(o)){var r=t[0],a=t[3],s=t[5],l={translateX:0,translateY:0,scaleX:1,scaleY:1},c="";i.translate&&(l.translateX=-t[4]/r,l.translateY=-s/a,c+="translate("+l.translateX+"px, "+l.translateY+"px)"),i.scale&&(l.scaleX=1/r,l.scaleY=1/a,c+=" scale("+l.scaleX+", "+l.scaleY+")"),o.style.transform=c}}))}({invertedChildren:n,matrix:i,body:o})}}}({element:A,invertedChildren:W,body:I});if(o[e]&&o[e].onComplete){var Z=o[e].onComplete;q=function(){return Z(A,P)}}var Q=s(K.opacity)&&s(H.opacity)&&K.opacity!==H.opacity,$=!1;return p({},D,{stagger:w,springConfig:L,getOnUpdateFunc:function(t){var n=t.spring,i=t.onAnimationEnd;return c[e]={destroy:n.destroy.bind(n),onAnimationEnd:i},function(t){o[e]&&o[e].onSpringUpdate&&o[e].onSpringUpdate(t.getCurrentValue()),$||($=!0,o[e]&&o[e].onStart&&o[e].onStart(A,P));var n=t.getCurrentValue();if(I.contains(A)){var i={matrix:[]};i.matrix=K.matrix.map((function(e,t){return h(e,H.matrix[t],n)})),Q&&(i.opacity=h(K.opacity,H.opacity,n)),X(i)}else t.destroy()}},initializeFlip:function(){X({matrix:K.matrix,opacity:Q?K.opacity:void 0,forceMinVals:E}),o[e]&&o[e].onStartImmediate&&o[e].onStartImmediate(A,P),k.transformOrigin?A.style.transformOrigin=k.transformOrigin:g&&(A.style.transformOrigin="0 0"),W.forEach((function(e){var t=e[0],n=e[1];n.transformOrigin?t.style.transformOrigin=n.transformOrigin:g&&(t.style.transformOrigin="0 0")}))},onAnimationEnd:function(n){delete c[e],l(q)&&q(),A.style.transform="",W.forEach((function(e){e[0].style.transform=""})),E&&A&&(A.style.minHeight="",A.style.minWidth=""),n||(R.push(e),R.length>=N.length&&t(R))},delayUntil:k.delayUntil})})).filter(Boolean));if(N.forEach((function(e){return(0,e.initializeFlip)()})),_)return function(){};var U=N.filter((function(e){return e.delayUntil&&(t=e.delayUntil,N.filter((function(e){return e.id===t})).length);var t})),B={},V={},G={};U.forEach((function(e){e.stagger?(G[e.stagger]=!0,V[e.delayUntil]?V[e.delayUntil].push(e.stagger):V[e.delayUntil]=[e.stagger]):B[e.delayUntil]?B[e.delayUntil].push(e):B[e.delayUntil]=[e]}));var J=N.filter((function(e){return e.stagger})).reduce((function(e,t){return e[t.stagger]?e[t.stagger].push(t):e[t.stagger]=[t],e}),{}),j=N.filter((function(e){return-1===U.indexOf(e)}));return j.forEach((function(e){e.onSpringActivate=function(){B[e.id]&&B[e.id].forEach(w),V[e.id]&&Object.keys(V[e.id].reduce((function(e,t){var n;return p(e,((n={})[t]=!0,n))}),{})).forEach((function(e){D(J[e],A[e])}))}})),function(){return N.length||t([]),j.filter((function(e){return!e.stagger})).forEach(w),Object.keys(J).forEach((function(e){G[e]||D(J[e],A[e])})),k}}(Q);I?I({hideEnteringElements:q,animateEnteringElements:X,animateExitingElements:Z,animateFlippedElements:$}):(q(),Z().then(X),$())},J=function(e){var t=e.element,n=e.flipCallbacks,o=void 0===n?{}:n,i=e.inProgressAnimations,r=void 0===i?{}:i,a=B(t,e.portalKey),s=u(t.querySelectorAll("[data-inverse-flip-id]")),l={},c=[],d={};a.filter((function(e){return o&&o[e.dataset.flipId]&&o[e.dataset.flipId].onExit})).forEach((function(e){var t=e.parentNode;if(e.closest){var n=e.closest("[data-exit-container]");n&&(t=n)}var o=c.findIndex((function(e){return e[0]===t}));-1===o&&(c.push([t,t.getBoundingClientRect()]),o=c.length-1),l[e.dataset.flipId]=c[o][1],d[e.dataset.flipId]=t}));var f=V(a),h=f.map((function(e){var t=e[0],n=e[1],i={};if(o&&o[t.dataset.flipId]&&o[t.dataset.flipId].onExit){var r=l[t.dataset.flipId];p(i,{element:t,parent:d[t.dataset.flipId],childPosition:{top:n.top-r.top,left:n.left-r.left,width:n.width,height:n.height}})}return[t.dataset.flipId,{rect:n,opacity:parseFloat(window.getComputedStyle(t).opacity||"1"),domDataForExitAnimations:i}]})).reduce(U,{});return function(e,t){Object.keys(e).forEach((function(t){e[t].destroy&&e[t].destroy(),e[t].onAnimationEnd&&e[t].onAnimationEnd(!0),delete e[t]})),t.forEach((function(e){e.style.transform="",e.style.opacity=""}))}(r,a.concat(s)),{flippedElementPositions:h,cachedOrderedFlipIds:f.map((function(e){return e[0].dataset.flipId}))}};(function(){function e(e){this.applyTransformOrigin=!0,p(this,e),this.inProgressAnimations={},this.flipCallbacks={},this.recordBeforeUpdate=this.recordBeforeUpdate.bind(this),this.update=this.update.bind(this),this.addFlipped=this.addFlipped.bind(this),this.addInverted=this.addInverted.bind(this)}var t=e.prototype;t.recordBeforeUpdate=function(){this.snapshot=J({element:this.element,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations})},t.update=function(e,t){this.snapshot&&(G({flippedElementPositionsBeforeUpdate:this.snapshot.flippedElementPositions,cachedOrderedFlipIds:this.snapshot.cachedOrderedFlipIds,containerEl:this.element,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.applyTransformOrigin,spring:this.spring,debug:this.debug,staggerConfig:this.staggerConfig,handleEnterUpdateDelete:this.handleEnterUpdateDelete,decisionData:{previous:e,current:t},onComplete:this.onComplete,onStart:this.onStart}),delete this.snapshot)},t.addFlipped=function(e){var t=e.element,n=e.flipId,o=e.opacity,i=e.translate,r=e.scale,a=e.transformOrigin,s=e.spring,l=e.stagger,c=e.delayUntil,u=e.onAppear,d=e.onStart,f=e.onSpringUpdate,h=e.onComplete,m=e.onExit,g=e.shouldFlip,v=e.shouldInvert;if(!t)throw new Error("no element provided");if(!n)throw new Error("No flipId provided");var y={scale:r,translate:i,opacity:o,transformOrigin:a,spring:s,stagger:l,delayUntil:c};y.scale||y.translate||y.opacity||p(y,{translate:!0,scale:!0,opacity:!0}),n&&(t.dataset.flipId=String(n)),t.dataset.flipConfig=JSON.stringify(y),this.flipCallbacks[n]={shouldFlip:g,shouldInvert:v,onAppear:u,onStart:d,onSpringUpdate:f,onComplete:h,onExit:m}},t.addInverted=function(e){var t=e.element,n=e.parent,o=e.opacity,i=e.translate,r=e.scale,a=e.transformOrigin;if(!t)throw new Error("no element provided");if(!n)throw new Error("parent must be provided");var s=n.dataset.flipId,l={scale:r,translate:i,opacity:o,transformOrigin:a};l.scale||l.translate||l.opacity||p(l,{translate:!0,scale:!0,opacity:!0}),t.dataset.inverseFlipId=s,t.dataset.flipConfig=JSON.stringify(l)}})(),new L;function j(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)t.indexOf(n=r[o])>=0||(i[n]=e[n]);return i}var H=(0,o.createContext)({}),K=(0,o.createContext)("portal"),Y=function(e){var t,n;function i(){var t;return(t=e.apply(this,arguments)||this).inProgressAnimations={},t.flipCallbacks={},t.el=void 0,t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getSnapshotBeforeUpdate=function(e){return e.flipKey!==this.props.flipKey&&this.el?J({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},r.componentDidUpdate=function(e,t,n){this.props.flipKey!==e.flipKey&&this.el&&G({flippedElementPositionsBeforeUpdate:n.flippedElementPositions,cachedOrderedFlipIds:n.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:e.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},r.render=function(){var e=this,t=this.props,n=t.portalKey,i=o.createElement(H.Provider,{value:this.flipCallbacks},o.createElement(t.element,{className:t.className,ref:function(t){return e.el=t}},this.props.children));return n&&(i=o.createElement(K.Provider,{value:n},i)),i},i}(o.Component);Y.defaultProps={applyTransformOrigin:!0,element:"div"};var W=function(e){var t,n=e.children,i=e.flipId,r=e.inverseFlipId,a=e.portalKey,s=j(e,["children","flipId","inverseFlipId","portalKey"]),l=n,c=function(e){return"function"==typeof e}(l);if(!c)try{l=o.Children.only(n)}catch(e){throw new Error("Each Flipped component must wrap a single child")}s.scale||s.translate||s.opacity||m.assign(s,{translate:!0,scale:!0,opacity:!0});var u=((t={})[y]=JSON.stringify(s),t);return void 0!==i?u[g]=String(i):r&&(u[v]=String(r)),void 0!==a&&(u[_]=a),c?l(u):(0,o.cloneElement)(l,u)},z=function(e){var t=e.children,n=e.flipId,i=e.shouldFlip,r=e.shouldInvert,a=e.onAppear,s=e.onStart,l=e.onStartImmediate,c=e.onComplete,u=e.onExit,d=e.onSpringUpdate,p=j(e,["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"]);return t?p.inverseFlipId?o.createElement(W,Object.assign({},p),t):o.createElement(K.Consumer,null,(function(e){return o.createElement(H.Consumer,null,(function(f){return m.isObject(f)&&n&&(f[n]={shouldFlip:i,shouldInvert:r,onAppear:a,onStart:s,onStartImmediate:l,onComplete:c,onExit:u,onSpringUpdate:d}),o.createElement(W,Object.assign({flipId:n},p,{portalKey:e}),t)}))})):null};z.displayName="Flipped"},87903:(e,t,n)=>{"use strict";n.d(t,{q:()=>fe});var o,i,r,a,s=n(40507),l=n.n(s),c=n(57773),u=n.n(c),d=n(61970),p=n.n(d),f=n(59496),h=n(22767),m=n.n(h),g="bodyAttributes",v="htmlAttributes",y="titleAttributes",_={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},b=(Object.keys(_).map((function(e){return _[e]})),"charset"),S="cssText",E="href",A="http-equiv",T="innerHTML",P="itemprop",O="name",C="property",k="rel",R="src",L="target",I={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},N="defaultTitle",w="defer",D="encodeSpecialCharacters",M="onChangeClientState",x="titleTemplate",F=Object.keys(I).reduce((function(e,t){return e[I[t]]=t,e}),{}),U=[_.NOSCRIPT,_.SCRIPT,_.STYLE],B="data-react-helmet",V="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},G=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},j=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},H=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},K=function(e){var t=X(e,_.TITLE),n=X(e,x);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var o=X(e,N);return t||o||void 0},Y=function(e){return X(e,M)||function(){}},W=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return J({},e,t)}),{})},z=function(e,t){return t.filter((function(e){return void 0!==e[_.BASE]})).map((function(e){return e[_.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var o=Object.keys(n),i=0;i<o.length;i++){var r=o[i].toLowerCase();if(-1!==e.indexOf(r)&&n[r])return t.concat(n)}return t}),[])},q=function(e,t,n){var o={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+V(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,r=Object.keys(e),a=0;a<r.length;a++){var s=r[a],l=s.toLowerCase();-1===t.indexOf(l)||n===k&&"canonical"===e[n].toLowerCase()||l===k&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==T&&s!==S&&s!==P||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return o[n]||(o[n]={}),i[n]||(i[n]={}),!o[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var r=Object.keys(i),a=0;a<r.length;a++){var s=r[a],l=m()({},o[s],i[s]);o[s]=l}return e}),[]).reverse()},X=function(e,t){for(var n=e.length-1;n>=0;n--){var o=e[n];if(o.hasOwnProperty(t))return o[t]}return null},Z=(o=Date.now(),function(e){var t=Date.now();t-o>16?(o=t,e(t)):setTimeout((function(){Z(e)}),0)}),Q=function(e){return clearTimeout(e)},$="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Z:n.g.requestAnimationFrame||Z,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:n.g.cancelAnimationFrame||Q,te=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ne=null,oe=function(e,t){var n=e.baseTag,o=e.bodyAttributes,i=e.htmlAttributes,r=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,p=e.titleAttributes;ae(_.BODY,o),ae(_.HTML,i),re(d,p);var f={baseTag:se(_.BASE,n),linkTags:se(_.LINK,r),metaTags:se(_.META,a),noscriptTags:se(_.NOSCRIPT,s),scriptTags:se(_.SCRIPT,c),styleTags:se(_.STYLE,u)},h={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,o=t.oldTags;n.length&&(h[e]=n),o.length&&(m[e]=f[e].oldTags)})),t&&t(),l(e,h,m)},ie=function(e){return Array.isArray(e)?e.join(""):e},re=function(e,t){void 0!==e&&document.title!==e&&(document.title=ie(e)),ae(_.TITLE,t)},ae=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var o=n.getAttribute(B),i=o?o.split(","):[],r=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===i.indexOf(l)&&i.push(l);var u=r.indexOf(l);-1!==u&&r.splice(u,1)}for(var d=r.length-1;d>=0;d--)n.removeAttribute(r[d]);i.length===r.length?n.removeAttribute(B):n.getAttribute(B)!==a.join(",")&&n.setAttribute(B,a.join(","))}},se=function(e,t){var n=document.head||document.querySelector(_.HEAD),o=n.querySelectorAll(e+"["+B+"]"),i=Array.prototype.slice.call(o),r=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var o in t)if(t.hasOwnProperty(o))if(o===T)n.innerHTML=t.innerHTML;else if(o===S)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[o]?"":t[o];n.setAttribute(o,s)}n.setAttribute(B,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):r.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),r.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:r}},le=function(e){return Object.keys(e).reduce((function(t,n){var o=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+o:o}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[I[n]||n]=e[n],t}),t)},ue=function(e,t,n){switch(e){case _.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(o={key:e})[B]=!0,i=ce(n,o),[f.createElement(_.TITLE,i,e)];var e,n,o,i},toString:function(){return function(e,t,n,o){var i=le(n),r=ie(t);return i?"<"+e+" "+B+'="true" '+i+">"+H(r,o)+"</"+e+">":"<"+e+" "+B+'="true">'+H(r,o)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case g:case v:return{toComponent:function(){return ce(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var o,i=((o={key:n})[B]=!0,o);return Object.keys(t).forEach((function(e){var n=I[e]||e;if(n===T||n===S){var o=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:o}}else i[n]=t[e]})),f.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,o){var i=Object.keys(o).filter((function(e){return!(e===T||e===S)})).reduce((function(e,t){var i=void 0===o[t]?t:t+'="'+H(o[t],n)+'"';return e?e+" "+i:i}),""),r=o.innerHTML||o.cssText||"",a=-1===U.indexOf(e);return t+"<"+e+" "+B+'="true" '+i+(a?"/>":">"+r+"</"+e+">")}),"")}(e,t,n)}}}},de=function(e){var t=e.baseTag,n=e.bodyAttributes,o=e.encode,i=e.htmlAttributes,r=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:ue(_.BASE,t,o),bodyAttributes:ue(g,n,o),htmlAttributes:ue(v,i,o),link:ue(_.LINK,r,o),meta:ue(_.META,a,o),noscript:ue(_.NOSCRIPT,s,o),script:ue(_.SCRIPT,l,o),style:ue(_.STYLE,c,o),title:ue(_.TITLE,{title:d,titleAttributes:p},o)}},pe=u()((function(e){return{baseTag:z([E,L],e),bodyAttributes:W(g,e),defer:X(e,w),encode:X(e,D),htmlAttributes:W(v,e),linkTags:q(_.LINK,[k,E],e),metaTags:q(_.META,[O,b,A,C,P],e),noscriptTags:q(_.NOSCRIPT,[T],e),onChangeClientState:Y(e),scriptTags:q(_.SCRIPT,[R,T],e),styleTags:q(_.STYLE,[S],e),title:K(e),titleAttributes:W(y,e)}}),(function(e){ne&&ee(ne),e.defer?ne=$((function(){oe(e,(function(){ne=null}))})):(oe(e),ne=null)}),de)((function(){return null})),fe=(i=pe,a=r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case _.SCRIPT:case _.NOSCRIPT:return{innerHTML:t};case _.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,o=e.arrayTypeChildren,i=e.newChildProps,r=e.nestedChildren;return J({},o,((t={})[n.type]=[].concat(o[n.type]||[],[J({},i,this.mapNestedChildrenToProps(n,r))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,o=e.child,i=e.newProps,r=e.newChildProps,a=e.nestedChildren;switch(o.type){case _.TITLE:return J({},i,((t={})[o.type]=a,t.titleAttributes=J({},r),t));case _.BODY:return J({},i,{bodyAttributes:J({},r)});case _.HTML:return J({},i,{htmlAttributes:J({},r)})}return J({},i,((n={})[o.type]=J({},r),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=J({},t);return Object.keys(e).forEach((function(t){var o;n=J({},n,((o={})[t]=e[t],o))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,o={};return f.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,r=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[F[n]||n]=e[n],t}),t)}(j(i,["children"]));switch(n.warnOnInvalidChildren(e,r),e.type){case _.LINK:case _.META:case _.NOSCRIPT:case _.SCRIPT:case _.STYLE:o=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:a,nestedChildren:r});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:r})}}})),t=this.mapArrayTypeChildrenToProps(o,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=j(e,["children"]),o=J({},n);return t&&(o=this.mapChildrenToProps(t,o)),f.createElement(i,o)},G(t,null,[{key:"canUseDOM",set:function(e){i.canUseDOM=e}}]),t}(f.Component),r.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=i.peek,r.rewind=function(){var e=i.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);fe.renderStatic=fe.rewind},9237:(e,t,n)=>{e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(2),r=(o=i)&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function i(e){return e&&e.__esModule?e:{default:e}}t.default=c;var r=n(3),a=i(n(4)),s=n(14),l=i(n(15));function c(e){var t=e.activeClassName,n=void 0===t?"":t,i=e.activeIndex,a=void 0===i?-1:i,c=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,p=void 0!==d&&d,f=e.className,h=e.findChunks,m=e.highlightClassName,g=void 0===m?"":m,v=e.highlightStyle,y=void 0===v?{}:v,_=e.highlightTag,b=void 0===_?"mark":_,S=e.sanitize,E=e.searchWords,A=e.textToHighlight,T=e.unhighlightTag,P=void 0===T?"span":T,O=e.unhighlightClassName,C=void 0===O?"":O,k=e.unhighlightStyle,R=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),L=(0,r.findAll)({autoEscape:u,caseSensitive:p,findChunks:h,sanitize:S,searchWords:E,textToHighlight:A}),I=b,N=-1,w="",D=void 0,M=(0,l.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",o({className:f},R,{children:L.map((function(e,t){var o=A.substr(e.start,e.end-e.start);if(e.highlight){N++;var i=void 0;i="object"==typeof g?p?g[o]:(g=M(g))[o.toLowerCase()]:g;var r=N===+a;w=i+" "+(r?n:""),D=!0===r&&null!=c?Object.assign({},y,c):y;var l={children:o,className:w,key:t,style:D};return"string"!=typeof I&&(l.highlightIndex=N),(0,s.createElement)(I,l)}return(0,s.createElement)(P,{children:o,className:C,key:t,style:k})}))}))}c.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return o.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return o.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return o.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return o.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,r=e.caseSensitive,a=void 0!==r&&r,s=e.findChunks,l=void 0===s?o:s,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return i({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var o=Math.max(n.end,t.end);e.push({start:n.start,end:o})}else e.push(n,t);return e}),[])},o=function(e){var t=e.autoEscape,n=e.caseSensitive,o=e.sanitize,i=void 0===o?r:o,a=e.searchWords,s=e.textToHighlight;return s=i(s),a.filter((function(e){return e})).reduce((function(e,o){o=i(o),t&&(o=o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var r=new RegExp(o,n?"g":"gi"),a=void 0;a=r.exec(s);){var l=a.index,c=r.lastIndex;c>l&&e.push({start:l,end:c}),a.index==r.lastIndex&&r.lastIndex++}return e}),[])};t.findChunks=o;var i=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,o=[],i=function(e,t,n){t-e>0&&o.push({start:e,end:t,highlight:n})};if(0===t.length)i(0,n,!1);else{var r=0;t.forEach((function(e){i(r,e.start,!1),i(e.start,e.end,!0),r=e.end})),i(r,n,!1)}return o};function r(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,o,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var o=n(7),i=n(8),r=n(9),a=n(10),s=n(11),l=n(12);e.exports=function(e,n){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";var d="<<anonymous>>",p={array:g("array"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(o.thatReturnsNull),arrayOf:function(e){return m((function(t,n,o,i,r){if("function"!=typeof e)return new h("Property `"+r+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+i+" `"+r+"` of type `"+y(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,r+"["+l+"]",s);if(c instanceof Error)return c}return null}))},element:m((function(t,n,o,i,r){var a=t[n];return e(a)?null:new h("Invalid "+i+" `"+r+"` of type `"+y(a)+"` supplied to `"+o+"`, expected a single ReactElement.")})),instanceOf:function(e){return m((function(t,n,o,i,r){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+r+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `")+o+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(e,t,n,o,i){return v(e[t])?null:new h("Invalid "+o+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,n,o,i,r){if("function"!=typeof e)return new h("Property `"+r+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var a=t[n],l=y(a);if("object"!==l)return new h("Invalid "+i+" `"+r+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var u=e(a,c,o,i,r+"."+c,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&r(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull;return m((function(t,n,o,i,r){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;return new h("Invalid "+i+" `"+r+"` of value `"+a+"` supplied to `"+o+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&r(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!=typeof i)return r(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(i),n),o.thatReturnsNull}return m((function(t,n,o,i,r){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,o,i,r,s))return null;return new h("Invalid "+i+" `"+r+"` supplied to `"+o+"`.")}))},shape:function(e){return m((function(t,n,o,i,r){var a=t[n],l=y(a);if("object"!==l)return new h("Invalid "+i+" `"+r+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var d=u(a,c,o,i,r+"."+c,s);if(d)return d}}return null}))},exact:function(e){return m((function(t,n,o,i,r){var l=t[n],c=y(l);if("object"!==c)return new h("Invalid "+i+" `"+r+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");var u=a({},t[n],e);for(var d in u){var p=e[d];if(!p)return new h("Invalid "+i+" `"+r+"` key `"+d+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=p(l,d,o,i,r+"."+d,s);if(f)return f}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function m(e){if("production"!==t.env.NODE_ENV)var o={},a=0;function l(l,c,u,p,f,m,g){if(p=p||d,m=m||u,g!==s)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+u;!o[v]&&a<3&&(r(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,p),o[v]=!0,a++)}return null==c[u]?l?null===c[u]?new h("The "+f+" `"+m+"` is marked as required in `"+p+"`, but its value is `null`."):new h("The "+f+" `"+m+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(c,u,p,f,m)}var c=l.bind(null,!1);return c.isRequired=l.bind(null,!0),c}function g(e){return m((function(t,n,o,i,r,a){var s=t[n];return y(s)!==e?new h("Invalid "+i+" `"+r+"` of type `"+_(s)+"` supplied to `"+o+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!v(o.value))return!1}else for(;!(o=i.next()).done;){var r=o.value;if(r&&!v(r[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function _(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=_(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,p.checkPropTypes=l,p.PropTypes=p,p}}).call(t,n(5))},function(e,t){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,o,i,r,a,s,l){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,i,r,a,s,l],d=0;(c=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(5))},function(e,t,n){(function(t){"use strict";var o=n(7);if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=0,r="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,o=Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];i.apply(void 0,[t].concat(o))}}}e.exports=o}).call(t,n(5))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))o.call(r,c)&&(s[c]=r[c]);if(n){a=n(r);for(var u=0;u<a.length;u++)i.call(r,a[u])&&(s[a[u]]=r[a[u]])}}return s}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var o=n(8),i=n(9),r=n(11),a={};e.exports=function(e,n,s,l,c){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{o("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",l||"React class",s,u,typeof e[u]),d=e[u](n,u,l,s,null,r)}catch(e){d=e}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var p=c?c():"";i(!1,"Failed %s type: %s%s",s,d.message,null!=p?p:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var o=n(7),i=n(8),r=n(11);e.exports=function(){function e(e,t,n,o,a,s){s!==r&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t){e.exports=n(59496)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=void 0,i=[],r=void 0,a=!1,s=function(e,n){return t(e,i[n])};return function(){for(var t=arguments.length,n=Array(t),l=0;l<t;l++)n[l]=arguments[l];return a&&o===this&&n.length===i.length&&n.every(s)?r:(a=!0,o=this,i=n,r=e.apply(this,n))}}}])},60198:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case d:case r:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=r,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||S(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===r},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v)},t.typeOf=S},56237:(e,t,n)=>{"use strict";e.exports=n(60198)},61841:(e,t)=>{"use strict";var n=60103,o=60106,i=60107,r=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,f=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;n=_("react.element"),o=_("react.portal"),i=_("react.fragment"),r=_("react.strict_mode"),a=_("react.profiler"),s=_("react.provider"),l=_("react.context"),c=_("react.forward_ref"),u=_("react.suspense"),d=_("react.suspense_list"),p=_("react.memo"),f=_("react.lazy"),h=_("react.block"),m=_("react.server.block"),g=_("react.fundamental"),v=_("react.debug_trace_mode"),y=_("react.legacy_hidden")}function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case a:case r:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case o:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===v||e===r||e===u||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||e.$$typeof===h||e[0]===m)},t.typeOf=b},97679:(e,t,n)=>{"use strict";e.exports=n(61841)},74663:(e,t)=>{"use strict";var n,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case r:case s:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},78006:(e,t,n)=>{"use strict";e.exports=n(74663)},63534:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function r(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},99544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(59496),a=h(r),s=h(n(87995)),l=h(n(40507)),c=h(n(23379)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(18815)),d=n(63065),p=h(d),f=n(63534);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",y=d.canUseDOM&&void 0!==s.default.createPortal,_=function(e){return document.createElement(e)},b=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function S(e){return e()}var E=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,l=Array(r),u=0;u<r;u++)l[u]=arguments[u];return n=i=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){!y&&s.default.unmountComponentAtNode(i.node);var e=S(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=b()(i,a.default.createElement(c.default,o({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},m(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=_("div")),this.node.className=this.props.portalClassName,S(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:S(e.parentSelector),nextParent:S(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var o=this.props,i=o.isOpen,r=o.portalClassName;e.portalClassName!==r&&(this.node.className=r);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&y?(!this.node&&y&&(this.node=_("div")),b()(a.default.createElement(c.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(r.Component);E.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},E.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(E),t.default=E},23379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},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},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(59496),s=g(n(40507)),l=m(n(68402)),c=g(n(28145)),u=m(n(18815)),d=m(n(38636)),p=n(63065),f=g(p),h=g(n(28720));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(51720);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,_=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,i=e.htmlOpenClassName,r=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;r&&d.remove(s.body,r),i&&d.remove(s.getElementsByTagName("html")[0],i),o&&y>0&&0===(y-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":i(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},r=o.base;return n.state.afterOpen&&(r=r+" "+o.afterOpen),n.state.beforeClose&&(r=r+" "+o.beforeClose),"string"==typeof t&&t?r+" "+t:r},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,r=e.parentSelector,a=r&&r().ownerDocument||document;i&&d.add(a.body,i),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(y+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,r=e.defaultStyles,a=e.children,s=n?{}:r.content,l=i?{}:r.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);_.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},_.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=_,e.exports=t.default},18815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var i,r=c(e)[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){i.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var i,r=c(e)[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){i.value.removeAttribute("aria-hidden")}}catch(e){n=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,i=n(91190),r=(o=i)&&o.__esModule?o:{default:o},a=n(63065);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},51720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,i=n(28720),r=(o=i)&&o.__esModule?o:{default:o};var a=void 0,s=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}r.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",c),(s=a.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},38636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)i(e,n[t]);var r=document.body;for(var a in o)i(r,o[a]);n={},o={}},t.log=function(){0};var n={},o={};function i(e,t){e.classList.remove(t)}t.add=function(e,t){return i=e.classList,r="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(r,e),i.add(e)}));var i,r},t.remove=function(e,t){return i=e.classList,r="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(r,e),0===r[e]&&i.remove(e)}));var i,r}},68402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var o,i=n(99731),r=(o=i)&&o.__esModule?o:{default:o};var a=[],s=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()}),0)}}},28720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},63065:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,i=n(65936);var r=((o=i)&&o.__esModule?o:{default:o}).default,a=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM;t.default=a},28145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,i=t.shiftKey,s=n[0],l=n[n.length-1],c=a();if(e===c){if(!i)return;o=l}l!==c||i||(o=s);s===c&&i&&(o=l);if(o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(c);d>-1&&(d+=i?-1:1);if(void 0===(o=n[d]))return t.preventDefault(),void(o=i?l:s).focus();t.preventDefault(),o.focus()};var o,i=n(99731),r=(o=i)&&o.__esModule?o:{default:o};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},99731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var n="none",o="contents",i=/input|select|textarea|button|object|iframe/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var i=window.getComputedStyle(e),r=i.getPropertyValue("display");return t?r!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,i):r===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var n=e.nodeName.toLowerCase();return(i.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default},76316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(99544),r=(o=i)&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},26509:(e,t,n)=>{"use strict";function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}Object.defineProperty(t,"__esModule",{value:!0});var r=2,a=3,s=4;function l(e,t,n,o,i,l,c){this.acceptsBooleans=t===r||t===a||t===s,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=c}var c={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){c[e]=new l(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=o(e,2),n=t[0],i=t[1];c[n]=new l(n,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){c[e]=new l(e,r,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){c[e]=new l(e,r,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){c[e]=new l(e,a,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){c[e]=new l(e,a,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){c[e]=new l(e,s,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){c[e]=new l(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){c[e]=new l(e,5,!1,e.toLowerCase(),null,!1,!1)}));var u=/[\-\:]([a-z])/g,d=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(u,d);c[t]=new l(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){c[e]=new l(e,1,!1,e.toLowerCase(),null,!1,!1)}));c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){c[e]=new l(e,1,!1,e.toLowerCase(),null,!0,!0)}));var p=n(72529),f=p.CAMELCASE,h=p.SAME,m=p.possibleStandardNames,g=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),v=Object.keys(m).reduce((function(e,t){var n=m[t];return n===h?e[t]=t:n===f?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=a,t.BOOLEANISH_STRING=r,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=s,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return c.hasOwnProperty(e)?c[e]:null},t.isCustomAttribute=g,t.possibleStandardNames=v},72529:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},89934:e=>{e.exports={ReactQueryDevtools:function(){return null},ReactQueryDevtoolsPanel:function(){return null}}},41925:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var o=n(95502),i=n(3240),r=n(1894),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!r.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,o.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},76823:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>o.S});var o=n(19362),i=n(1289);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useInfiniteQuery")&&n.d(t,{useInfiniteQuery:function(){return i.useInfiniteQuery}}),n.o(i,"useMutation")&&n.d(t,{useMutation:function(){return i.useMutation}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}}),n.o(i,"useQueryClient")&&n.d(t,{useQueryClient:function(){return i.useQueryClient}})},90685:(e,t,n)=>{"use strict";n.d(t,{Gm:()=>r,Qy:()=>l,ZF:()=>c});var o=n(83259),i=n(1894);function r(){return{onFetch:function(e){e.fetchFn=function(){var t,n,r,l,c,u,d,p=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,f=null==(r=e.fetchOptions)||null==(l=r.meta)?void 0:l.fetchMore,h=null==f?void 0:f.pageParam,m="forward"===(null==f?void 0:f.direction),g="backward"===(null==f?void 0:f.direction),v=(null==(c=e.state.data)?void 0:c.pages)||[],y=(null==(u=e.state.data)?void 0:u.pageParams)||[],_=(0,i.G9)(),b=null==_?void 0:_.signal,S=y,E=!1,A=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},T=function(e,t,n,o){return S=o?[t].concat(S):[].concat(S,[t]),o?[n].concat(e):[].concat(e,[n])},P=function(t,n,i,r){if(E)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:b,pageParam:i,meta:e.meta},s=A(a),l=Promise.resolve(s).then((function(e){return T(t,i,e,r)}));(0,o.LE)(s)&&(l.cancel=s.cancel);return l};if(v.length)if(m){var O=void 0!==h,C=O?h:a(e.options,v);d=P(v,O,C)}else if(g){var k=void 0!==h,R=k?h:s(e.options,v);d=P(v,k,R,!0)}else!function(){S=[];var t=void 0===e.options.getNextPageParam,n=!p||!v[0]||p(v[0],0,v);d=n?P([],t,y[0]):Promise.resolve(T([],y[0],v[0]));for(var o=function(n){d=d.then((function(o){if(!p||!v[n]||p(v[n],n,v)){var i=t?y[n]:a(e.options,o);return P(o,t,i)}return Promise.resolve(T(o,y[n],v[n]))}))},i=1;i<v.length;i++)o(i)}();else d=P([]);var L=d.then((function(e){return{pages:e,pageParams:S}}));return L.cancel=function(){E=!0,null==_||_.abort(),(0,o.LE)(d)&&d.cancel()},L}}}}function a(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function s(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function l(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=a(e,t);return null!=n&&!1!==n}}function c(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=s(e,t);return null!=n&&!1!==n}}},3581:(e,t,n)=>{"use strict";n.d(t,{E:()=>r,j:()=>i});var o=console;function i(){return o}function r(e){o=e}},36404:(e,t,n)=>{"use strict";n.d(t,{R:()=>c,m:()=>l});var o=n(51163),i=n(3581),r=n(65190),a=n(83259),s=n(1894),l=function(){function e(e){this.options=(0,o.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.ZT).catch(s.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,o=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),o.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,i.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,o.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,o.Z)({},e,{isPaused:!0});case"continue":return(0,o.Z)({},e,{isPaused:!1});case"loading":return(0,o.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,o.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,o.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,o.Z)({},e,t.state);default:return e}}(this.state,e),r.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},65190:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var o=n(1894),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,o.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];t.schedule((function(){e.apply(void 0,o)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,o.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},86727:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var o=n(95502),i=n(3240),r=n(1894),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!r.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,o.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},19362:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var o=n(51163),i=n(1894),r=n(95502),a=n(65190),s=n(3581),l=n(83259),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,o.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,o,r=this.state.data,a=(0,i.SE)(e,r);return(null==(n=(o=this.options).isDataEqual)?void 0:n.call(o,r,a))?a=r:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(r,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,o,r,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,i.mc)(this.queryKey),p=(0,i.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,m,g={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(g));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(o=g.fetchOptions)?void 0:o.meta))||this.dispatch({type:"fetch",meta:null==(m=g.fetchOptions)?void 0:m.meta});return this.retryer=new l.m4({fn:g.fetchFn,abort:null==p||null==(r=p.abort)?void 0:r.bind(p),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,l.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,l.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,o=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:o?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:o?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,o.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,o.Z)({},e,{isPaused:!0});case"continue":return(0,o.Z)({},e,{isPaused:!1});case"fetch":return(0,o.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,o.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var r=t.error;return(0,l.DV)(r)&&r.revert&&this.revertState?(0,o.Z)({},this.revertState):(0,o.Z)({},e,{error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,o.Z)({},e,{isInvalidated:!0});case"setState":return(0,o.Z)({},e,t.state);default:return e}},e}(),u=n(3240),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,r.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var o,r=t.queryKey,a=null!=(o=t.queryHash)?o:(0,i.Rm)(r,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,i._x)(n,e)}))},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.l),p=n(36404),f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,r.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var o=new p.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(o),o},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(u.l),h=n(41925),m=n(86727),g=n(90685),v=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.N.subscribe((function(){h.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,o.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var o=(0,i._v)(e),r=this.defaultQueryOptions(o);return this.queryCache.build(this,r).setData(t,n)},t.setQueriesData=function(e,t,n){var o=this;return a.V.batch((function(){return o.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,o.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],o=this.queryCache;a.V.batch((function(){o.findAll(n).forEach((function(e){o.remove(e)}))}))},t.resetQueries=function(e,t,n){var r=this,s=(0,i.I6)(e,t,n),l=s[0],c=s[1],u=this.queryCache,d=(0,o.Z)({},l,{active:!0});return a.V.batch((function(){return u.findAll(l).forEach((function(e){e.reset()})),r.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,n){var o=this,r=(0,i.I6)(e,t,n),s=r[0],l=r[1],c=void 0===l?{}:l;void 0===c.revert&&(c.revert=!0);var u=a.V.batch((function(){return o.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(u).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var r,s,l,c=this,u=(0,i.I6)(e,t,n),d=u[0],p=u[1],f=(0,o.Z)({},d,{active:null==(r=null!=(s=d.refetchActive)?s:d.active)||r,inactive:null!=(l=d.refetchInactive)&&l});return a.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,n){var r=this,s=(0,i.I6)(e,t,n),l=s[0],c=s[1],u=a.V.batch((function(){return r.queryCache.findAll(l).map((function(e){return e.fetch(void 0,(0,o.Z)({},c,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))}))})),d=Promise.all(u).then(i.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(i.ZT)),d},t.fetchQuery=function(e,t,n){var o=(0,i._v)(e,t,n),r=this.defaultQueryOptions(o);void 0===r.retry&&(r.retry=!1);var a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var o=(0,i._v)(e,t,n);return o.behavior=(0,g.Gm)(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,o.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,o.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},83259:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,LE:()=>s,m4:()=>u});var o=n(41925),i=n(86727),r=n(1894);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof l}var u=function(e){var t,n,c,u,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,u=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),u(t))};!function c(){if(!d.isResolved){var u;try{u=e.fn()}catch(e){u=Promise.reject(e)}t=function(e){if(!d.isResolved&&(h(new l(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(e){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(f).catch((function(t){var s,l;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,f=null!=(l=e.retryDelay)?l:a,m="function"==typeof f?f(d.failureCount,t):f,g=!0===u||"number"==typeof u&&d.failureCount<u||"function"==typeof u&&u(d.failureCount,t);!p&&g?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,r.Gh)(m).then((function(){if(!o.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?h(t):c()}))):h(t)}}))}}()}},3240:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var o=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},1289:()=>{},1894:(e,t,n)=>{"use strict";n.d(t,{A4:()=>P,G9:()=>O,Gh:()=>T,I6:()=>p,Kp:()=>c,PN:()=>s,Q$:()=>_,Rm:()=>m,SE:()=>a,VS:()=>b,X7:()=>h,ZT:()=>r,_v:()=>u,_x:()=>f,lV:()=>d,mc:()=>l,sk:()=>i,to:()=>v,yF:()=>g});var o=n(51163),i="undefined"==typeof window;function r(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,n){return A(e)?"function"==typeof t?(0,o.Z)({},n,{queryKey:e,queryFn:t}):(0,o.Z)({},t,{queryKey:e}):e}function d(e,t,n){return A(e)?"function"==typeof t?(0,o.Z)({},n,{mutationKey:e,mutationFn:t}):(0,o.Z)({},t,{mutationKey:e}):"function"==typeof e?(0,o.Z)({},t,{mutationFn:e}):(0,o.Z)({},e)}function p(e,t,n){return A(e)?[(0,o.Z)({},t,{queryKey:e}),n]:[e||{},t]}function f(e,t){var n=e.active,o=e.exact,i=e.fetching,r=e.inactive,a=e.predicate,s=e.queryKey,l=e.stale;if(A(s))if(o){if(t.queryHash!==m(s,t.options))return!1}else if(!v(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,r);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function h(e,t){var n=e.exact,o=e.fetching,i=e.predicate,r=e.mutationKey;if(A(r)){if(!t.options.mutationKey)return!1;if(n){if(g(t.options.mutationKey)!==g(r))return!1}else if(!v(t.options.mutationKey,r))return!1}return("boolean"!=typeof o||"loading"===t.state.status===o)&&!(i&&!i(t))}function m(e,t){return((null==t?void 0:t.queryKeyHashFn)||g)(e)}function g(e){var t,n=l(e);return t=n,JSON.stringify(t,(function(e,t){return S(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function v(e,t){return y(l(e),l(t))}function y(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!y(e[n],t[n])})))}function _(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||S(e)&&S(t)){for(var o=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),r=i.length,a=n?[]:{},s=0,l=0;l<r;l++){var c=n?l:i[l];a[c]=_(e[c],t[c]),a[c]===e[c]&&s++}return o===r&&s===o?e:a}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function S(e){if(!E(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!E(n)&&!!n.hasOwnProperty("isPrototypeOf")}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function A(e){return"string"==typeof e||Array.isArray(e)}function T(e){return new Promise((function(t){setTimeout(t,e)}))}function P(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function O(){if("function"==typeof AbortController)return new AbortController}},9102:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>o.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useInfiniteQuery:()=>i.useInfiniteQuery,useMutation:()=>i.useMutation,useQuery:()=>i.useQuery,useQueryClient:()=>i.useQueryClient});var o=n(76823);n.o(o,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return o.QueryClientProvider}}),n.o(o,"useInfiniteQuery")&&n.d(t,{useInfiniteQuery:function(){return o.useInfiniteQuery}}),n.o(o,"useMutation")&&n.d(t,{useMutation:function(){return o.useMutation}}),n.o(o,"useQuery")&&n.d(t,{useQuery:function(){return o.useQuery}}),n.o(o,"useQueryClient")&&n.d(t,{useQueryClient:function(){return o.useQueryClient}});var i=n(29800)},29800:(e,t,n)=>{"use strict";n.d(t,{QueryClientProvider:()=>p,useInfiniteQuery:()=>M,useMutation:()=>b,useQuery:()=>N,useQueryClient:()=>d});var o=n(65190),i=n(87995).unstable_batchedUpdates;o.V.setBatchNotifyFunction(i);var r=n(3581),a=console;(0,r.E)(a);var s=n(59496),l=s.createContext(void 0),c=s.createContext(!1);function u(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=function(){var e=s.useContext(u(s.useContext(c)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},p=function(e){var t=e.client,n=e.contextSharing,o=void 0!==n&&n,i=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var r=u(o);return s.createElement(c.Provider,{value:o},s.createElement(r.Provider,{value:t},i))},f=n(51163),h=n(1894),m=n(95502),g=n(36404),v=n(3240),y=function(e){function t(t,n){var o;return(o=e.call(this)||this).client=t,o.setOptions(n),o.bindMethods(),o.updateResult(),o}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,f.Z)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,g.R)(),t=(0,f.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;o.V.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(v.l);function _(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function b(e,t,n){var i=s.useRef(!1),r=s.useState(0)[1],a=(0,h.lV)(e,t,n),l=d(),c=s.useRef();c.current?c.current.setOptions(a):c.current=new y(l,a);var u=c.current.getCurrentResult();s.useEffect((function(){i.current=!0;var e=c.current.subscribe(o.V.batchCalls((function(){i.current&&r((function(e){return e+1}))})));return function(){i.current=!1,e()}}),[]);var p=s.useCallback((function(e,t){c.current.mutate(e,t).catch(h.ZT)}),[]);if(u.error&&_(void 0,c.current.options.useErrorBoundary,[u.error]))throw u.error;return(0,f.Z)({},u,{mutate:p,mutateAsync:u.mutate})}var S=n(41925),E=n(83259),A=function(e){function t(t,n){var o;return(o=e.call(this)||this).client=t,o.options=n,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(n),o}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),T(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return P(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return P(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&O(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var r=this.computeRefetchInterval();!i||this.currentQuery===o&&this.options.enabled===n.enabled&&r===this.currentRefetchInterval||this.updateRefetchInterval(r)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,o={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(o,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),o},n.getNextResult=function(e){var t=this;return new Promise((function(n,o){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?o(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,f.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),o=this.client.getQueryCache().build(this.client,n);return o.fetch().then((function(){return t.createResult(o,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(h.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!h.sk&&!this.currentResult.isStale&&(0,h.PN)(this.options.staleTime)){var t=(0,h.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!h.sk&&!1!==this.options.enabled&&(0,h.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||S.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,o=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,c=e!==o,u=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,m=p.error,g=p.errorUpdatedAt,v=p.isFetching,y=p.status,_=!1,b=!1;if(t.optimisticResults){var S=this.hasListeners(),E=!S&&T(e,t),A=S&&O(e,o,t,i);(E||A)&&(v=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,f=d.dataUpdatedAt,y=d.status,_=!0;else if(t.select&&void 0!==p.data)if(a&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,h.Q$)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,r.j)().error(e),this.selectError=e}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===y||"idle"===y)){var P;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))P=a.data;else if(P="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==P)try{P=t.select(P),!1!==t.structuralSharing&&(P=(0,h.Q$)(null==a?void 0:a.data,P)),this.selectError=null}catch(e){(0,r.j)().error(e),this.selectError=e}void 0!==P&&(y="success",n=P,b=!0)}return this.selectError&&(m=this.selectError,n=this.selectResult,g=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:f,error:m,errorUpdatedAt:g,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:b,isPreviousData:_,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:C(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,o=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!o&&!i)return!0;if("tracked"===o&&!this.trackedProps.length)return!0;var r="tracked"===o?this.trackedProps:o;return Object.keys(e).some((function(n){var o=n,a=e[o]!==t[o],s=null==r?void 0:r.some((function(e){return e===n})),l=null==i?void 0:i.some((function(e){return e===n}));return a&&!l&&(!r||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,h.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,f.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,E.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;o.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(v.l);function T(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&P(e,t,t.refetchOnMount)}function P(e,t,n){if(!1!==t.enabled){var o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&C(e,t)}return!1}function O(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&C(e,n)}function C(e,t){return e.isStaleByTime(t.staleTime)}function k(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var R=s.createContext(k()),L=function(){return s.useContext(R)};function I(e,t){var n=s.useRef(!1),i=s.useState(0)[1],r=d(),a=L(),l=r.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=o.V.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=o.V.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=o.V.batchCalls(l.onSettled)),l.suspense&&("number"!=typeof l.staleTime&&(l.staleTime=1e3),0===l.cacheTime&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(a.isReset()||(l.retryOnMount=!1));var c=s.useState((function(){return new t(r,l)}))[0],u=c.getOptimisticResult(l);if(s.useEffect((function(){n.current=!0,a.clearReset();var e=c.subscribe(o.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return c.updateResult(),function(){n.current=!1,e()}}),[a,c]),s.useEffect((function(){c.setOptions(l,{listeners:!1})}),[l,c]),l.suspense&&u.isLoading)throw c.fetchOptimistic(l).then((function(e){var t=e.data;null==l.onSuccess||l.onSuccess(t),null==l.onSettled||l.onSettled(t,null)})).catch((function(e){a.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)}));if(u.isError&&!a.isReset()&&!u.isFetching&&_(l.suspense,l.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return"tracked"===l.notifyOnChangeProps&&(u=c.trackResult(u,l)),u}function N(e,t,n){return I((0,h._v)(e,t,n),A)}var w=n(90685),D=function(e){function t(t,n){return e.call(this,t,n)||this}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t,n){e.prototype.setOptions.call(this,(0,f.Z)({},t,{behavior:(0,w.Gm)()}),n)},n.getOptimisticResult=function(t){return t.behavior=(0,w.Gm)(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var o,i,r,a,s,l,c=t.state,u=e.prototype.createResult.call(this,t,n);return(0,f.Z)({},u,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,w.Qy)(n,null==(o=c.data)?void 0:o.pages),hasPreviousPage:(0,w.ZF)(n,null==(i=c.data)?void 0:i.pages),isFetchingNextPage:c.isFetching&&"forward"===(null==(r=c.fetchMeta)||null==(a=r.fetchMore)?void 0:a.direction),isFetchingPreviousPage:c.isFetching&&"backward"===(null==(s=c.fetchMeta)||null==(l=s.fetchMore)?void 0:l.direction)})},t}(A);function M(e,t,n){return I((0,h._v)(e,t,n),D)}},61740:(e,t,n)=>{"use strict";n.d(t,{zt:()=>B,$j:()=>U,I0:()=>j,v9:()=>m,oR:()=>G});var o=n(74241),i=n(28688),r=n(87995);let a=function(e){e()};const s=()=>a;var l=n(59496);const c=(0,l.createContext)(null);function u(){return(0,l.useContext)(c)}const d=()=>{throw new Error("uSES not initialized!")};let p=d;const f=(e,t)=>e===t;function h(e=c){const t=e===c?u:()=>(0,l.useContext)(e);return function(e,n=f){const{store:o,subscription:i,getServerState:r}=t(),a=p(i.addNestedSub,o.getState,r||o.getState,e,n);return(0,l.useDebugValue)(a),a}}const m=h();var g=n(51163),v=n(40574),y=n(72535),_=n.n(y),b=n(78006);const S=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function E(e,t,n,o,{areStatesEqual:i,areOwnPropsEqual:r,areStatePropsEqual:a}){let s,l,c,u,d,p=!1;function f(p,f){const h=!r(f,l),m=!i(p,s,f,l);return s=p,l=f,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(o,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(o,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),o=!a(t,c);return c=t,o&&(d=n(c,u,l)),d}():d}return function(i,r){return p?f(i,r):(s=i,l=r,c=e(s,l),u=t(o,l),d=n(c,u,l),p=!0,d)}}function A(e){return function(t){const n=e(t);function o(){return n}return o.dependsOnOwnProps=!1,o}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,{displayName:n}){const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=T(e);let i=o(t,n);return"function"==typeof i&&(o.mapToProps=i,o.dependsOnOwnProps=T(i),i=o(t,n)),i},o}}function O(e,t){return(n,o)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}function C(e,t,n){return(0,g.Z)({},n,e,t)}const k={notify(){},get:()=>[]};function R(e,t){let n,o=k;function i(){a.onStateChange&&a.onStateChange()}function r(){n||(n=t?t.addNestedSub(i):e.subscribe(i),o=function(){const e=s();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let o=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){o&&null!==t&&(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}const a={addNestedSub:function(e){return r(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:r,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=k)},getListeners:()=>o};return a}const L=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?l.useLayoutEffect:l.useEffect;function I(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function N(e,t){if(I(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!I(e[n[o]],t[n[o]]))return!1;return!0}const w=["reactReduxForwardedRef"];let D=d;const M=[null,null];function x(e,t,n,o,i,r){e.current=o,n.current=!1,i.current&&(i.current=null,r())}function F(e,t){return e===t}const U=function(e,t,n,{pure:o,areStatesEqual:i=F,areOwnPropsEqual:r=N,areStatePropsEqual:a=N,areMergedPropsEqual:s=N,forwardRef:u=!1,context:d=c}={}){const p=d,f=function(e){return e?"function"==typeof e?P(e):O(e,"mapStateToProps"):A((()=>({})))}(e),h=function(e){return e&&"object"==typeof e?A((t=>function(e,t){const n={};for(const o in e){const i=e[o];"function"==typeof i&&(n[o]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"==typeof e?P(e):O(e,"mapDispatchToProps"):A((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:o}){let i,r=!1;return function(t,n,a){const s=e(t,n,a);return r?o(s,i)||(i=s):(r=!0,i=s),i}}}(e):O(e,"mergeProps"):()=>C}(n),y=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:y,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:r,areMergedPropsEqual:s};function c(t){const[n,i,r]=(0,l.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,n=(0,v.Z)(t,w);return[t.context,e,n]}),[t]),a=(0,l.useMemo)((()=>n&&n.Consumer&&(0,b.isContextConsumer)(l.createElement(n.Consumer,null))?n:p),[n,p]),s=(0,l.useContext)(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const d=c?t.store:s.store,f=u?s.getServerState:d.getState,h=(0,l.useMemo)((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:o,initMergeProps:i}=t,r=(0,v.Z)(t,S);return E(n(e,r),o(e,r),i(e,r),e,r)}(d.dispatch,o)),[d]),[m,_]=(0,l.useMemo)((()=>{if(!y)return M;const e=R(d,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,s]),A=(0,l.useMemo)((()=>c?s:(0,g.Z)({},s,{subscription:m})),[c,s,m]),T=(0,l.useRef)(),P=(0,l.useRef)(r),O=(0,l.useRef)(),C=(0,l.useRef)(!1),k=((0,l.useRef)(!1),(0,l.useRef)(!1)),I=(0,l.useRef)();L((()=>(k.current=!0,()=>{k.current=!1})),[]);const N=(0,l.useMemo)((()=>()=>O.current&&r===P.current?O.current:h(d.getState(),r)),[d,r]),F=(0,l.useMemo)((()=>e=>m?function(e,t,n,o,i,r,a,s,l,c,u){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!s.current)return;const e=t.getState();let n,f;try{n=o(e,i.current)}catch(e){f=e,p=e}f||(p=null),n===r.current?a.current||c():(r.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(y,d,m,h,P,T,C,k,O,_,e):()=>{}),[m]);var U,B,V;let G;U=x,B=[P,T,C,r,O,_],L((()=>U(...B)),V);try{G=D(F,N,f?()=>h(f(),r):N)}catch(e){throw I.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${I.current.stack}\n\n`),e}L((()=>{I.current=void 0,O.current=void 0,T.current=G}));const J=(0,l.useMemo)((()=>l.createElement(e,(0,g.Z)({},G,{ref:i}))),[i,e,G]);return(0,l.useMemo)((()=>y?l.createElement(a.Provider,{value:A},J):J),[a,J,A])}const d=l.memo(c);if(d.WrappedComponent=e,d.displayName=c.displayName=n,u){const t=l.forwardRef((function(e,t){return l.createElement(d,(0,g.Z)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,_()(t,e)}return _()(d,e)}};const B=function({store:e,context:t,children:n,serverState:o}){const i=(0,l.useMemo)((()=>{const t=R(e);return{store:e,subscription:t,getServerState:o?()=>o:void 0}}),[e,o]),r=(0,l.useMemo)((()=>e.getState()),[e]);L((()=>{const{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),r!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[i,r]);const a=t||c;return l.createElement(a.Provider,{value:i},n)};function V(e=c){const t=e===c?u:()=>(0,l.useContext)(e);return function(){const{store:e}=t();return e}}const G=V();function J(e=c){const t=e===c?G:V(e);return function(){return t().dispatch}}const j=J();var H,K;H=i.useSyncExternalStoreWithSelector,p=H,(e=>{D=e})(o.useSyncExternalStore),K=r.unstable_batchedUpdates,a=K},33103:(e,t,n)=>{"use strict";n.d(t,{OL:()=>h,lr:()=>v,rU:()=>f});var o=n(59496),i=n(89605),r=n(92999);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}function l(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map((e=>[n,e])):[[n,o]])}),[]))}const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],u=["aria-current","caseSensitive","className","end","style","to","children"];const d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f=o.forwardRef((function(e,t){let n,{onClick:l,relative:u,reloadDocument:f,replace:h,state:m,target:g,to:v,preventScrollReset:y}=e,_=s(e,c),{basename:b}=o.useContext(i.Us),S=!1;if("string"==typeof v&&p.test(v)&&(n=v,d)){let e=new URL(window.location.href),t=v.startsWith("//")?new URL(e.protocol+v):new URL(v),n=(0,r.Zn)(t.pathname,b);t.origin===e.origin&&null!=n?v=n+t.search+t.hash:S=!0}let E=(0,i.oQ)(v,{relative:u}),A=function(e,t){let{target:n,replace:a,state:s,preventScrollReset:l,relative:c}=void 0===t?{}:t,u=(0,i.s0)(),d=(0,i.TH)(),p=(0,i.WU)(e,{relative:c});return o.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==a?a:(0,r.Ep)(d)===(0,r.Ep)(p);u(e,{replace:n,state:s,preventScrollReset:l,relative:c})}}),[d,u,p,a,s,n,e,l,c])}(v,{replace:h,state:m,target:g,preventScrollReset:y,relative:u});return o.createElement("a",a({},_,{href:n||E,onClick:S||f?l:function(e){l&&l(e),e.defaultPrevented||A(e)},ref:t,target:g}))}));const h=o.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:l="",end:c=!1,style:d,to:p,children:h}=e,m=s(e,u),g=(0,i.WU)(p,{relative:m.relative}),v=(0,i.TH)(),y=o.useContext(i.FR),{navigator:_}=o.useContext(i.Us),b=_.encodeLocation?_.encodeLocation(g).pathname:g.pathname,S=v.pathname,E=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;r||(S=S.toLowerCase(),E=E?E.toLowerCase():null,b=b.toLowerCase());let A,T=S===b||!c&&S.startsWith(b)&&"/"===S.charAt(b.length),P=null!=E&&(E===b||!c&&E.startsWith(b)&&"/"===E.charAt(b.length)),O=T?n:void 0;A="function"==typeof l?l({isActive:T,isPending:P}):[l,T?"active":null,P?"pending":null].filter(Boolean).join(" ");let C="function"==typeof d?d({isActive:T,isPending:P}):d;return o.createElement(f,a({},m,{"aria-current":O,className:A,ref:t,style:C,to:p}),"function"==typeof h?h({isActive:T,isPending:P}):h)}));var m,g;function v(e){let t=o.useRef(l(e)),n=o.useRef(!1),r=(0,i.TH)(),a=o.useMemo((()=>function(e,t){let n=l(e);if(t)for(let e of t.keys())n.has(e)||t.getAll(e).forEach((t=>{n.append(e,t)}));return n}(r.search,n.current?null:t.current)),[r.search]),s=(0,i.s0)(),c=o.useCallback(((e,t)=>{const o=l("function"==typeof e?e(a):e);n.current=!0,s("?"+o,t)}),[s,a]);return[a,c]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(m||(m={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(g||(g={}))},89605:(e,t,n)=>{"use strict";var o;n.d(t,{AW:()=>x,F0:()=>F,FR:()=>f,Fg:()=>M,TH:()=>S,UO:()=>P,Us:()=>h,WU:()=>O,Z5:()=>U,bS:()=>A,oQ:()=>_,s0:()=>T,ur:()=>E});var i=n(92999),r=n(59496);const a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:s,useEffect:l,useLayoutEffect:c,useDebugValue:u}=o||(o=n.t(r,2));function d(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!a(n,e)}catch(e){return!0}}"undefined"==typeof window||void 0===window.document||window.document.createElement;const p=r.createContext(null);const f=r.createContext(null);const h=r.createContext(null);const m=r.createContext(null);const g=r.createContext({outlet:null,matches:[]});const v=r.createContext(null);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},y.apply(this,arguments)}function _(e,t){let{relative:n}=void 0===t?{}:t;b()||(0,i.J0)(!1);let{basename:o,navigator:a}=r.useContext(h),{hash:s,pathname:l,search:c}=O(e,{relative:n}),u=l;return"/"!==o&&(u="/"===l?o:(0,i.RQ)([o,l])),a.createHref({pathname:u,search:c,hash:s})}function b(){return null!=r.useContext(m)}function S(){return b()||(0,i.J0)(!1),r.useContext(m).location}function E(){return r.useContext(m).navigationType}function A(e){b()||(0,i.J0)(!1);let{pathname:t}=S();return r.useMemo((()=>(0,i.LX)(e,t)),[t,e])}function T(){b()||(0,i.J0)(!1);let{basename:e,navigator:t}=r.useContext(h),{matches:n}=r.useContext(g),{pathname:o}=S(),a=JSON.stringify((0,i.Zq)(n).map((e=>e.pathnameBase))),s=r.useRef(!1);return r.useEffect((()=>{s.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!s.current)return;if("number"==typeof n)return void t.go(n);let l=(0,i.pC)(n,JSON.parse(a),o,"path"===r.relative);"/"!==e&&(l.pathname="/"===l.pathname?e:(0,i.RQ)([e,l.pathname])),(r.replace?t.replace:t.push)(l,r.state,r)}),[e,t,a,o])}function P(){let{matches:e}=r.useContext(g),t=e[e.length-1];return t?t.params:{}}function O(e,t){let{relative:n}=void 0===t?{}:t,{matches:o}=r.useContext(g),{pathname:a}=S(),s=JSON.stringify((0,i.Zq)(o).map((e=>e.pathnameBase)));return r.useMemo((()=>(0,i.pC)(e,JSON.parse(s),a,"path"===n)),[e,s,a,n])}function C(){let e=function(){var e;let t=r.useContext(v),n=w(N.UseRouteError),o=D(N.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[o]}(),t=(0,i.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}class k extends r.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?r.createElement(g.Provider,{value:this.props.routeContext},r.createElement(v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function R(e){let{routeContext:t,match:n,children:o}=e,i=r.useContext(p);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(g.Provider,{value:t},o)}function L(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let o=e,a=null==n?void 0:n.errors;if(null!=a){let e=o.findIndex((e=>e.route.id&&(null==a?void 0:a[e.route.id])));e>=0||(0,i.J0)(!1),o=o.slice(0,Math.min(o.length,e+1))}return o.reduceRight(((e,i,s)=>{let l=i.route.id?null==a?void 0:a[i.route.id]:null,c=null;n&&(c=i.route.ErrorBoundary?r.createElement(i.route.ErrorBoundary,null):i.route.errorElement?i.route.errorElement:r.createElement(C,null));let u=t.concat(o.slice(0,s+1)),d=()=>{let t=e;return l?t=c:i.route.Component?t=r.createElement(i.route.Component,null):i.route.element&&(t=i.route.element),r.createElement(R,{match:i,routeContext:{outlet:e,matches:u},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===s)?r.createElement(k,{location:n.location,component:c,error:l,children:d(),routeContext:{outlet:null,matches:u}}):d()}),null)}var I,N;function w(e){let t=r.useContext(f);return t||(0,i.J0)(!1),t}function D(e){let t=function(e){let t=r.useContext(g);return t||(0,i.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.J0)(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(I||(I={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(N||(N={}));function M(e){let{to:t,replace:n,state:o,relative:a}=e;b()||(0,i.J0)(!1);let s=r.useContext(f),l=T();return r.useEffect((()=>{s&&"idle"!==s.navigation.state||l(t,{replace:n,state:o,relative:a})})),null}function x(e){(0,i.J0)(!1)}function F(e){let{basename:t="/",children:n=null,location:o,navigationType:a=i.aU.Pop,navigator:s,static:l=!1}=e;b()&&(0,i.J0)(!1);let c=t.replace(/^\/*/,"/"),u=r.useMemo((()=>({basename:c,navigator:s,static:l})),[c,s,l]);"string"==typeof o&&(o=(0,i.cP)(o));let{pathname:d="/",search:p="",hash:f="",state:g=null,key:v="default"}=o,y=r.useMemo((()=>{let e=(0,i.Zn)(d,c);return null==e?null:{location:{pathname:e,search:p,hash:f,state:g,key:v},navigationType:a}}),[c,d,p,f,g,v,a]);return null==y?null:r.createElement(h.Provider,{value:u},r.createElement(m.Provider,{children:n,value:y}))}function U(e){let{children:t,location:n}=e,o=r.useContext(p);return function(e,t){b()||(0,i.J0)(!1);let{navigator:n}=r.useContext(h),o=r.useContext(f),{matches:a}=r.useContext(g),s=a[a.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=S();if(t){var p;let e="string"==typeof t?(0,i.cP)(t):t;"/"===c||(null==(p=e.pathname)?void 0:p.startsWith(c))||(0,i.J0)(!1),u=e}else u=d;let v=u.pathname||"/",_="/"===c?v:v.slice(c.length)||"/",E=(0,i.fp)(e,{pathname:_}),A=L(E&&E.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:(0,i.RQ)([c,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:(0,i.RQ)([c,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,o||void 0);return t&&A?r.createElement(m.Provider,{value:{location:y({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:i.aU.Pop}},A):A}(o&&!t?o.router.routes:G(t),n)}var B;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(B||(B={}));new Promise((()=>{}));class V extends r.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,o=null,i=B.pending;if(n instanceof Promise)if(this.state.error){B.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>e})}else n._tracked?(n,void 0!==o._error?B.error:void 0!==o._data?B.success:B.pending):(B.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else B.success,Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>n});if(i===B.error&&o._error instanceof AbortedDeferredError)throw neverSettledPromise;if(i===B.error&&!t)throw o._error;if(i===B.error)return React.createElement(AwaitContext.Provider,{value:o,children:t});if(i===B.success)return React.createElement(AwaitContext.Provider,{value:o,children:e});throw o}}function G(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let a=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,G(e.props.children,a));e.type!==x&&(0,i.J0)(!1),e.props.index&&e.props.children&&(0,i.J0)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=G(e.props.children,a)),n.push(s)})),n}},57773:(e,t,n)=>{"use strict";var o,i=n(59496),r=(o=i)&&"object"==typeof o&&"default"in o?o.default:o;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(o){if("function"!=typeof o)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return l},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},a.render=function(){return r.createElement(o,this.props)},i}(i.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(o)+")"),a(d,"canUseDOM",s),d}}},49823:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(51163),i=n(40574),r=n(95502);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(59496),l=n(82961),c=n(36106),u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=a(n.className,o):n.setAttribute("class",a(n.className&&n.className.baseVal||"",o)));var n,o}))},d=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),i=o[0],r=o[1];t.removeClasses(i,"exit"),t.addClass(i,r?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),i=o[0],r=o[1]?"appear":"enter";t.addClass(i,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),i=o[0],r=o[1]?"appear":"enter";t.removeClasses(i,r),t.addClass(i,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,i=o?""+(o&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:o?i+"-active":n[e+"Active"],doneClassName:o?i+"-done":n[e+"Done"]}},t}(0,r.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(o+=" "+i),"active"===n&&e&&(0,c.Q)(e),o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach((function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o}))}(e,o))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,i=n.active,r=n.done;this.appliedClasses[t]={},o&&u(e,o),i&&u(e,i),r&&u(e,r)},n.render=function(){var e=this.props,t=(e.classNames,(0,i.Z)(e,["classNames"]));return s.createElement(l.ZP,(0,o.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);d.defaultProps={classNames:""},d.propTypes={};const p=d},82961:(e,t,n)=>{"use strict";n.d(t,{cn:()=>f,d0:()=>p,Ix:()=>h,ZP:()=>v});var o=n(40574),i=n(95502),r=n(59496),a=n(87995);const s=!1;var l=n(26799),c=n(36106),u="unmounted",d="exited",p="entering",f="entered",h="exiting",m=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var i,r=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?r?(i=d,o.appearStatus=p):i=f:i=t.unmountOnExit||t.mountOnEnter?u:d,o.state={status:i},o.nextCallback=null,o}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==f&&(t=p):n!==p&&n!==f||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&(0,c.Q)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[a.findDOMNode(this),o],r=i[0],l=i[1],c=this.getTimeouts(),u=o?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(r)})):(this.props.onEnter(r,l),this.safeSetState({status:p},(function(){t.props.onEntering(r,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(r,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(o),this.safeSetState({status:h},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(o)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],s=i[1];this.props.addEndListener(r,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(l.Z.Provider,{value:null},"function"==typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function g(){}m.contextType=l.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=u,m.EXITED=d,m.ENTERING=p,m.ENTERED=f,m.EXITING=h;const v=m},91633:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(40574),i=n(51163);var r=n(95502),a=n(59496),s=n(26799);function l(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}function u(e,t,n){var o=l(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,i=Object.create(null),r=[];for(var a in e)a in t?r.length&&(i[a]=r,r=[]):r.push(a);var s={};for(var l in t){if(i[l])for(o=0;o<i[l].length;o++){var c=i[l][o];s[i[l][o]]=n(c)}s[l]=n(l)}for(o=0;o<r.length;o++)s[r[o]]=n(r[o]);return s}(t,o);return Object.keys(i).forEach((function(r){var s=i[r];if((0,a.isValidElement)(s)){var l=r in t,u=r in o,d=t[r],p=(0,a.isValidElement)(d)&&!d.props.in;!u||l&&!p?u||!l||p?u&&l&&(0,a.isValidElement)(d)&&(i[r]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:d.props.in,exit:c(s,"exit",e),enter:c(s,"enter",e)})):i[r]=(0,a.cloneElement)(s,{in:!1}):i[r]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:c(s,"exit",e),enter:c(s,"enter",e)})}})),i}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},p=function(e){function t(t,n){var o,i=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},o}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,r=t.handleExited;return{children:t.firstRender?(n=e,o=r,l(n.children,(function(e){return(0,a.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:c(e,"appear",n),enter:c(e,"enter",n),exit:c(e,"exit",n)})}))):u(e,i,r),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,i.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=(0,o.Z)(e,["component","childFactory"]),r=this.state.contextValue,l=d(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?a.createElement(s.Z.Provider,{value:r},l):a.createElement(s.Z.Provider,{value:r},a.createElement(t,i,l))},t}(a.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};const f=p},26799:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o=n(59496).createContext(null)},36106:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var o=function(e){return e.scrollTop}},82945:(e,t,n)=>{"use strict";n(22767);var o=n(59496),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;i=r("react.element"),t.Fragment=r("react.fragment")}var a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,r={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===r[o]&&(r[o]=t[o]);return{$$typeof:i,type:e,key:c,ref:u,props:r,_owner:a.current}}t.jsx=c,t.jsxs=c},51288:(e,t,n)=>{"use strict";var o=n(22767),i=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),r=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var _=y.prototype=new v;_.constructor=y,o(_,g.prototype),_.isPureReactComponent=!0;var b={current:null},S=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var o,r={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!E.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];r.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===r[o]&&(r[o]=l[o]);return{$$typeof:i,type:e,key:a,ref:s,props:r,_owner:b.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case r:l=!0}}if(l)return a=a(l=e),e=""===o?"."+O(l,0):o,Array.isArray(a)?(n="",null!=e&&(n=e.replace(P,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=o+O(s=e[c],c);l+=C(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,u=o+O(s,c++),a);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function k(e,t,n){if(null==e)return e;var o=[],i=0;return C(e,o,"","",(function(e){return t.call(n,e,i++)})),o}function R(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function I(){var e=L.current;if(null===e)throw Error(f(321));return e}var N={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:k,forEach:function(e,t,n){k(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return k(e,(function(){t++})),t},toArray:function(e){return k(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error(f(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(f(267,e));var r=o({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=b.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!E.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];r.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:r,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return I().useCallback(e,t)},t.useContext=function(e,t){return I().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return I().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return I().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return I().useLayoutEffect(e,t)},t.useMemo=function(e,t){return I().useMemo(e,t)},t.useReducer=function(e,t,n){return I().useReducer(e,t,n)},t.useRef=function(e){return I().useRef(e)},t.useState=function(e){return I().useState(e)},t.version="17.0.2"},59496:(e,t,n)=>{"use strict";e.exports=n(51288)},4637:(e,t,n)=>{"use strict";e.exports=n(82945)},60874:(e,t,n)=>{"use strict";function o(e){return function(t){var n=t.dispatch,o=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,o,e):t(i)}}}}n.d(t,{Z:()=>r});var i=o();i.withExtraArgument=o;const r=i},44385:(e,t,n)=>{"use strict";n.d(t,{md:()=>h,UY:()=>p,qC:()=>f,MT:()=>d});var o=n(60901);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(a(2));var i=e,r=t,l=[],p=l,f=!1;function h(){p===l&&(p=l.slice())}function m(){if(f)throw new Error(a(3));return r}function g(e){if("function"!=typeof e)throw new Error(a(4));if(f)throw new Error(a(5));var t=!0;return h(),p.push(e),function(){if(t){if(f)throw new Error(a(6));t=!1,h();var n=p.indexOf(e);p.splice(n,1),l=null}}}function v(e){if(!u(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(f)throw new Error(a(9));try{f=!0,r=i(r,e)}finally{f=!1}for(var t=l=p,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:c.INIT}),(o={dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));i=e,v({type:c.REPLACE})}})[s]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e},o}function p(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var i=t[o];0,"function"==typeof e[i]&&(n[i]=e[i])}var r,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){r=e}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var o=!1,i={},l=0;l<s.length;l++){var c=s[l],u=n[c],d=e[c],p=u(d,t);if(void 0===p){t&&t.type;throw new Error(a(14))}i[c]=p,o=o||p!==d}return(o=o||s.length!==Object.keys(e).length)?i:e}}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),o=function(){throw new Error(a(15))},i={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return o=f.apply(void 0,s)(n.dispatch),r(r({},n),{},{dispatch:o})}}}},23055:(e,t,n)=>{"use strict";n.d(t,{P1:()=>s});var o="NOT_FOUND";var i=function(e,t){return e===t};function r(e,t){var n,r,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=void 0===s?i:s,c=a.maxSize,u=void 0===c?1:c,d=a.resultEqualityCheck,p=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,i=0;i<o;i++)if(!e(t[i],n[i]))return!1;return!0}}(l),f=1===u?(n=p,{get:function(e){return r&&n(r.key,e)?r.value:o},put:function(e,t){r={key:e,value:t}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}):function(e,t){var n=[];function i(e){var i=n.findIndex((function(n){return t(e,n.key)}));if(i>-1){var r=n[i];return i>0&&(n.splice(i,1),n.unshift(r)),r.value}return o}return{get:i,put:function(t,r){i(t)===o&&(n.unshift({key:t,value:r}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(u,p);function h(){var t=f.get(arguments);if(t===o){if(t=e.apply(null,arguments),d){var n=f.getEntries().find((function(e){return d(e.value,t)}));n&&(t=n.value)}f.put(arguments,t)}return t}return h.clearCache=function(){return f.clear()},h}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var r,a=0,s={memoizeOptions:void 0},l=o.pop();if("object"==typeof l&&(s=l,l=o.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(o),f=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return r=f.apply(null,e)}));return Object.assign(h,{resultFunc:l,memoizedResultFunc:f,dependencies:p,lastResult:function(){return r},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}var s=a(r)},73023:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var i=o[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},s=2;var l=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,i=0;function r(){n&&(n=!1,e()),o&&c()}function l(){a(r)}function c(){var e=Date.now();if(n){if(e-i<s)return;o=!0}else n=!0,o=!1,setTimeout(l,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},f=_(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var o=p(e).getComputedStyle(e),i=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var i=o[n],r=e["padding-"+i];t[i]=h(r)}return t}(o),r=i.left+i.right,a=i.top+i.bottom,s=h(o.width),l=h(o.height);if("border-box"===o.boxSizing&&(Math.round(s+r)!==t&&(s-=m(o,"left","right")+r),Math.round(l+a)!==n&&(l-=m(o,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var c=Math.round(s+r)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return _(i.left,i.top,s,l)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return i?v(e)?function(e){var t=e.getBBox();return _(0,0,t.width,t.height)}(e):g(e):f}function _(e,t,n,o){return{x:e,y:t,width:n,height:o}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),S=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,i=e.height,r="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(r.prototype);return d(a,{x:t,y:n,width:o,height:i,top:n,right:t+o,bottom:i+n,left:t}),a}(t);d(this,{target:e,contentRect:n})},E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new S(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A="undefined"!=typeof WeakMap?new WeakMap:new o,T=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),o=new E(t,n,this);A.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));const P=void 0!==r.ResizeObserver?r.ResizeObserver:T},19787:(e,t)=>{"use strict";var n,o,i,r;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},o=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},r=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var b=new MessageChannel,S=b.port2;b.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+y;try{g(!0,e)?S.postMessage(null):(m=!1,g=null)}catch(e){throw S.postMessage(null),e}}else m=!1},n=function(e){g=e,m||(m=!0,S.postMessage(null))},o=function(e,n){v=p((function(){e(t.unstable_now())}),n)},i=function(){f(v),v=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,i=e[o];if(!(void 0!==i&&0<P(i,t)))break e;e[o]=t,e[n]=i,n=o}}function A(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,i=e.length;o<i;){var r=2*(o+1)-1,a=e[r],s=r+1,l=e[s];if(void 0!==a&&0>P(a,n))void 0!==l&&0>P(l,a)?(e[o]=l,e[s]=n,o=s):(e[o]=a,e[r]=n,o=r);else{if(!(void 0!==l&&0>P(l,n)))break e;e[o]=l,e[s]=n,o=s}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],C=[],k=1,R=null,L=3,I=!1,N=!1,w=!1;function D(e){for(var t=A(C);null!==t;){if(null===t.callback)T(C);else{if(!(t.startTime<=e))break;T(C),t.sortIndex=t.expirationTime,E(O,t)}t=A(C)}}function M(e){if(w=!1,D(e),!N)if(null!==A(O))N=!0,n(x);else{var t=A(C);null!==t&&o(M,t.startTime-e)}}function x(e,n){N=!1,w&&(w=!1,i()),I=!0;var r=L;try{for(D(n),R=A(O);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=R.callback;if("function"==typeof a){R.callback=null,L=R.priorityLevel;var s=a(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?R.callback=s:R===A(O)&&T(O),D(n)}else T(O);R=A(O)}if(null!==R)var l=!0;else{var c=A(C);null!==c&&o(M,c.startTime-n),l=!1}return l}finally{R=null,L=r,I=!1}}var F=r;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||I||(N=!0,n(x))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return A(O)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,r,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:k++,callback:r,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,E(C,e),null===A(O)&&e===A(C)&&(w?i():w=!0,o(M,a-s))):(e.sortIndex=l,E(O,e),N||I||(N=!0,n(x))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},58051:(e,t,n)=>{"use strict";e.exports=n(19787)},75561:e=>{"use strict";e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e})},22947:(e,t,n)=>{!function(){var e="undefined"!=typeof window?window:n.g,o={};for(var i in function(e,t,n){var o;function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var a=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var o=0;o<n.length;++o){var i=n[o];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{var n=a;e=e.split(".");for(var o=0;o<e.length-1;o++){var i=e[o];if(!(i in n))break e;n=n[i]}(t=t(o=n[e=e[e.length-1]]))!=o&&null!=t&&r(n,e,{configurable:!0,writable:!0,value:t})}}function l(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function c(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}function u(e){if(!(e instanceof Array)){e=c(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",(function(e){function t(e,t){this.g=e,r(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",o=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(i||"")+"_"+o++,i)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var o=a[t[n]];"function"==typeof o&&"function"!=typeof o.prototype[e]&&r(o.prototype,e,{configurable:!0,writable:!0,value:function(){return l(i(this))}})}return e}));var d,p="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)d=Object.setPrototypeOf;else{var f;e:{var h={};try{h.__proto__={a:!0},f=h.a;break e}catch(e){}f=!1}d=f?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var m=d;function g(e,t){if(e.prototype=p(t.prototype),e.prototype.constructor=e,m)m(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var o=Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(e,n,o)}else e[n]=t[n];e.xh=t.prototype}function v(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.u=this.i=null}function y(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}function _(e,t){e.i={Ee:t,Le:!0},e.g=e.m||e.j}function b(e,t,n){return e.g=n,{value:t}}function S(e){e.g=0}function E(e,t,n){e.m=t,null!=n&&(e.j=n)}function A(e){e.m=0,e.j=2}function T(e,t){e.g=t,e.m=0}function P(e){e.m=0;var t=e.i.Ee;return e.i=null,t}function O(e){e.u=[e.i],e.m=0,e.j=0}function C(e,t){var n=e.u.splice(0)[0];(n=e.i=e.i||n)?n.Le?e.g=e.m||e.j:null!=n.A&&e.j<n.A?(e.g=n.A,e.i=null):e.g=e.j:e.g=t}function k(e){this.g=new v,this.h=e}function R(e,t,n,o){try{var i=t.call(e.g.l,n);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");if(!i.done)return e.g.o=!1,i;var r=i.value}catch(t){return e.g.l=null,_(e.g,t),L(e)}return e.g.l=null,o.call(e.g,r),L(e)}function L(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,_(e.g,t)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.Le)throw t.Ee;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function I(e){this.next=function(t){return y(e.g),e.g.l?t=R(e,e.g.l.next,t,e.g.s):(e.g.s(t),t=L(e)),t},this.throw=function(t){return y(e.g),e.g.l?t=R(e,e.g.l.throw,t,e.g.s):(_(e.g,t),t=L(e)),t},this.return=function(t){return function(e,t){y(e.g);var n=e.g.l;return n?R(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),L(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function N(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise((function(o,i){!function e(r){r.done?o(r.value):Promise.resolve(r.value).then(t,n).then(e,i)}(e.next())}))}(new I(new k(e)))}function w(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M(e,t,n){e instanceof String&&(e=String(e));for(var o=e.length,i=0;i<o;i++){var r=e[i];if(t.call(n,r,i,e))return{Je:i,v:r}}return{Je:-1,v:void 0}}function x(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}function F(e,t){e instanceof String&&(e+="");var n=0,o=!1,i={next:function(){if(!o&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return o=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}v.prototype.s=function(e){this.h=e},v.prototype.return=function(e){this.i={return:e},this.g=this.j},v.prototype.A=function(e){this.g=e},s("Promise",(function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.o=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function o(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i((function(){t.l()}))}this.g.push(e)};var i=a.setTimeout;n.prototype.i=function(e){i(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i((function(){throw e}))},t.prototype.j=function(){function e(e){return function(o){n||(n=!0,e.call(t,o))}}var t=this,n=!1;return{resolve:e(this.F),reject:e(this.l)}},t.prototype.F=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.H(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.D(e):this.m(e)}},t.prototype.D=function(e){var t=void 0;try{t=e.then}catch(e){return void this.l(e)}"function"==typeof t?this.J(t,e):this.m(e)},t.prototype.l=function(e){this.s(2,e)},t.prototype.m=function(e){this.s(1,e)},t.prototype.s=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.G(),this.u()},t.prototype.G=function(){var e=this;i((function(){if(e.B()){var t=a.console;void 0!==t&&t.error(e.i)}}),1)},t.prototype.B=function(){if(this.o)return!1;var e=a.CustomEvent,t=a.Event,n=a.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=a.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.u=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)r.h(this.g[e]);this.g=null}};var r=new n;return t.prototype.H=function(e){var t=this.j();e.Lc(t.resolve,t.reject)},t.prototype.J=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function o(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(e){r(e)}}:t}var i,r,a=new t((function(e,t){i=e,r=t}));return this.Lc(o(e,i),o(n,r)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Lc=function(e,t){function n(){switch(o.h){case 1:e(o.i);break;case 2:t(o.i);break;default:throw Error("Unexpected state: "+o.h)}}var o=this;null==this.g?r.h(n):this.g.push(n),this.o=!0},t.resolve=o,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=c(e),r=i.next();!r.done;r=i.next())o(r.value).Lc(t,n)}))},t.all=function(e){var n=c(e),i=n.next();return i.done?o([]):new t((function(e,t){function r(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,o(i.value).Lc(r(a.length-1),t),i=n.next()}while(!i.done)}))},t})),s("WeakMap",(function(e){function t(e){if(this.g=(l+=Math.random()+1).toString(),e){e=c(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function o(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function i(e){if(!D(e,s)){var t=new n;r(e,s,{value:t})}}function a(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&i(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),o=new e([[t,2],[n,3]]);return 2==o.get(t)&&3==o.get(n)&&(o.delete(t),o.set(n,4),!o.has(t)&&4==o.get(n))}catch(e){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();a("freeze"),a("preventExtensions"),a("seal");var l=0;return t.prototype.set=function(e,t){if(!o(e))throw Error("Invalid WeakMap key");if(i(e),!D(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return o(e)&&D(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return o(e)&&D(e,s)&&D(e[s],this.g)},t.prototype.delete=function(e){return!!(o(e)&&D(e,s)&&D(e[s],this.g))&&delete e[s][this.g]},t})),s("Map",(function(e){function t(){var e={};return e.Qa=e.next=e.head=e}function n(e,t){var n=e.g;return l((function(){if(n){for(;n.head!=e.g;)n=n.Qa;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}}))}function o(e,t){var n=t&&typeof t;"object"==n||"function"==n?r.has(t)?n=r.get(t):(n=""+ ++a,r.set(t,n)):n="p_"+t;var o=e.h[n];if(o&&D(e.h,n))for(e=0;e<o.length;e++){var i=o[e];if(t!=t&&i.key!=i.key||t===i.key)return{id:n,list:o,index:e,ga:i}}return{id:n,list:o,index:-1,ga:void 0}}function i(e){if(this.h={},this.g=t(),this.size=0,e){e=c(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var o=n.entries(),i=o.next();return!i.done&&i.value[0]==t&&"s"==i.value[1]&&!((i=o.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!o.next().done)}catch(e){return!1}}())return e;var r=new WeakMap;i.prototype.set=function(e,t){var n=o(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.ga?n.ga.value=t:(n.ga={next:this.g,Qa:this.g.Qa,head:this.g,key:e,value:t},n.list.push(n.ga),this.g.Qa.next=n.ga,this.g.Qa=n.ga,this.size++),this},i.prototype.delete=function(e){return!(!(e=o(this,e)).ga||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.ga.Qa.next=e.ga.next,e.ga.next.Qa=e.ga.Qa,e.ga.head=null,this.size--,!0)},i.prototype.clear=function(){this.h={},this.g=this.g.Qa=t(),this.size=0},i.prototype.has=function(e){return!!o(this,e).ga},i.prototype.get=function(e){return(e=o(this,e).ga)&&e.value},i.prototype.entries=function(){return n(this,(function(e){return[e.key,e.value]}))},i.prototype.keys=function(){return n(this,(function(e){return e.key}))},i.prototype.values=function(){return n(this,(function(e){return e.value}))},i.prototype.forEach=function(e,t){for(var n,o=this.entries();!(n=o.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},i.prototype[Symbol.iterator]=i.prototype.entries;var a=0;return i})),s("Set",(function(e){function t(e){if(this.g=new Map,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var o=n.entries(),i=o.next();return!i.done&&i.value[0]==t&&i.value[1]==t&&(!(i=o.next()).done&&i.value[0]!=t&&4==i.value[0].x&&i.value[1]==i.value[0]&&o.next().done)}catch(e){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach((function(o){return e.call(t,o,o,n)}))},t)})),s("Array.prototype.findIndex",(function(e){return e||function(e,t){return M(this,e,t).Je}})),s("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),s("Array.prototype.includes",(function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var o=n.length;for(0>(t=t||0)&&(t=Math.max(t+o,0));t<o;t++){var i=n[t];if(i===e||Object.is(i,e))return!0}return!1}})),s("String.prototype.includes",(function(e){return e||function(e,t){return-1!==x(this,e,"includes").indexOf(e,t||0)}})),s("Array.prototype.find",(function(e){return e||function(e,t){return M(this,e,t).v}})),s("String.prototype.startsWith",(function(e){return e||function(e,t){var n=x(this,e,"startsWith"),o=n.length,i=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var r=0;r<i&&t<o;)if(n[t++]!=e[r++])return!1;return r>=i}})),s("Array.prototype.keys",(function(e){return e||function(){return F(this,(function(e){return e}))}}));var U="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var o=arguments[n];if(o)for(var i in o)D(o,i)&&(e[i]=o[i])}return e};s("Object.assign",(function(e){return e||U})),s("Array.from",(function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var o=[],i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof i){e=i.call(e);for(var r=0;!(i=e.next()).done;)o.push(t.call(n,i.value,r++))}else for(i=e.length,r=0;r<i;r++)o.push(t.call(n,e[r],r));return o}})),s("Array.prototype.values",(function(e){return e||function(){return F(this,(function(e,t){return t}))}})),s("Promise.prototype.finally",(function(e){return e||function(e){return this.then((function(t){return Promise.resolve(e()).then((function(){return t}))}),(function(t){return Promise.resolve(e()).then((function(){throw t}))}))}})),s("Array.prototype.entries",(function(e){return e||function(){return F(this,(function(e,t){return[e,t]}))}})),s("String.prototype.repeat",(function(e){return e||function(e){var t=x(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}})),s("Number.isNaN",(function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)D(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Math.trunc",(function(e){return e||function(e){if(e=Number(e),isNaN(e)||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return 0>e?-t:t}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)D(e,t)&&n.push([t,e[t]]);return n}}));var B=this||self;function V(e,t){e=e.split(".");var n,o=B;e[0]in o||void 0===o.execScript||o.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===t?o=o[n]&&o[n]!==Object.prototype[n]?o[n]:o[n]={}:o[n]=t}function G(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function J(e){return e.h/(1-Math.pow(e.g,e.i))}function j(){this.h=new G(2),this.j=new G(5),this.g=0,this.i=128e3,this.l=16e3}function H(){}function K(){}function Y(){}function W(e){var t=w.apply(1,arguments);q.has(e)||(q.add(e),Y.apply(H,u(t)))}function z(){}G.prototype.sample=function(e,t){var n=Math.pow(this.g,e);t=t*(1-n)+n*this.h,isNaN(t)||(this.h=t,this.i+=e)},j.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},j.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e;e/=1e3,this.g+=t,this.h.sample(e,n),this.j.sample(e,n)}},j.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(J(this.h),J(this.j))};var q=new Set;if(e.console&&e.console.log.bind){var X={},Z=(X[1]=console.error.bind(console),X[2]=console.warn.bind(console),X[3]=console.info.bind(console),X[4]=console.log.bind(console),X[5]=console.debug.bind(console),X[6]=console.debug.bind(console),X);Y=Z[2],K=Z[1]}function Q(e){if($.has(e))return $.get(e);var t=MediaSource.isTypeSupported(e);return $.set(e,t),t}var $=new Map;function ee(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function te(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function ne(e,t,n){if(n||(n=ee),e.length!=t.length)return!1;t=t.slice();for(var o={},i=(e=c(e)).next();!i.done;o={md:o.md},i=e.next()){if(o.md=i.value,-1==(i=t.findIndex(function(e){return function(t){return n(e.md,t)}}(o))))return!1;t[i]=t[t.length-1],t.pop()}return 0==t.length}function oe(e,t,n){if(n||(n=ee),e.length!=t.length)return!1;for(var o=0;o<e.length;o++)if(!n(e[o],t[o]))return!1;return!0}function ie(e,t,n){this.startTime=e,this.direction=de,this.endTime=t,this.payload=n,this.region=new Se,this.position=null,this.positionAlign=ae,this.size=0,this.textAlign=se,this.writingMode=pe,this.lineInterpretation=fe,this.line=null,this.lineHeight="",this.lineAlign=he,this.displayAlign=ce,this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=ye,this.fontStyle=_e,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.cellResolution={columns:32,rows:15}}function re(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!oe(e.nestedCues,t.nestedCues,re))return!1}else if("region"==n||"cellResolution"==n){for(var o in e[n])if(e[n][o]!=t[n][o])return!1}else if(Array.isArray(e[n])){if(!oe(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}ie.prototype.clone=function(){var e,t=new ie(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},V("shaka.text.Cue",ie);var ae="auto";ie.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:ae};var se="center",le={LEFT:"left",RIGHT:"right",CENTER:se,START:"start",END:"end"};ie.textAlign=le;var ce="after",ue={BEFORE:"before",CENTER:"center",AFTER:ce};ie.displayAlign=ue;var de="ltr";ie.direction={HORIZONTAL_LEFT_TO_RIGHT:de,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var pe="horizontal-tb";ie.writingMode={HORIZONTAL_TOP_TO_BOTTOM:pe,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var fe=0;ie.lineInterpretation={LINE_NUMBER:fe,PERCENTAGE:1};var he="start",me={CENTER:"center",START:he,END:"end"};ie.lineAlign=me;var ge={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};ie.defaultTextColor=ge;var ve={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};ie.defaultTextBackgroundColor=ve;var ye=400;ie.fontWeight={NORMAL:ye,BOLD:700};var _e="normal",be={NORMAL:_e,ITALIC:"italic",OBLIQUE:"oblique"};function Se(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ee,this.scroll=Ae}ie.fontStyle=be,ie.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},V("shaka.text.CueRegion",Se);var Ee=1;Se.units={PX:0,PERCENTAGE:Ee,LINES:2};var Ae="";function Te(){}function Pe(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(Oe(e)==Oe(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=ke(e);t=ke(t);for(var o=0;o<e.byteLength;o++)if(n[o]!=t[o])return!1;return!0}function Oe(e){return e instanceof ArrayBuffer?e:e.buffer}function Ce(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function ke(e,t,n){return Le(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function Re(e,t,n){return Le(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Le(e,t,n,o){var i=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,i)),new o(Oe(e),t,Math.min(t+Math.max(n,0),i)-t)}function Ie(e,t,n){var o=w.apply(3,arguments);this.severity=e,this.category=t,this.code=n,this.data=o,this.handled=!1}Se.scrollMode={NONE:Ae,UP:"up"},V("shaka.util.BufferUtils",Te),Te.toDataView=Re,Te.toUint8=ke,Te.toArrayBuffer=Ce,Te.equal=Pe,Ie.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},V("shaka.util.Error",Ie),Ie.Severity={RECOVERABLE:1,CRITICAL:2},Ie.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},Ie.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};var Ne=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function we(e){var t;e instanceof we?(De(this,e.Ea),this.pb=e.pb,this.Ha=e.Ha,Me(this,e.Kb),this.qa=e.qa,xe(this,e.g.clone()),this.fb=e.fb):e&&(t=String(e).match(Ne))?(De(this,t[1]||"",!0),this.pb=Fe(t[2]||""),this.Ha=Fe(t[3]||"",!0),Me(this,t[4]),this.qa=Fe(t[5]||"",!0),xe(this,t[6]||"",!0),this.fb=Fe(t[7]||"")):this.g=new Ke(null)}function De(e,t,n){e.Ea=n?Fe(t,!0):t,e.Ea&&(e.Ea=e.Ea.replace(/:$/,""))}function Me(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.Kb=t}else e.Kb=null}function xe(e,t,n){t instanceof Ke?e.g=t:(n||(t=Ue(t,je)),e.g=new Ke(t))}function Fe(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Ue(e,t,n){return null!=e?(e=encodeURI(e).replace(t,Be),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Be(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(o=we.prototype).Ea="",o.pb="",o.Ha="",o.Kb=null,o.qa="",o.fb="",o.toString=function(){var e=[],t=this.Ea;if(t&&e.push(Ue(t,Ve,!0),":"),t=this.Ha){e.push("//");var n=this.pb;n&&e.push(Ue(n,Ve,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Kb)&&e.push(":",String(t))}return(t=this.qa)&&(this.Ha&&"/"!=t.charAt(0)&&e.push("/"),e.push(Ue(t,"/"==t.charAt(0)?Je:Ge,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.fb)&&e.push("#",Ue(t,He)),e.join("")},o.resolve=function(e){var t=this.clone();"data"===t.Ea&&(t=new we);var n=!!e.Ea;n?De(t,e.Ea):n=!!e.pb,n?t.pb=e.pb:n=!!e.Ha,n?t.Ha=e.Ha:n=null!=e.Kb;var o=e.qa;if(n)Me(t,e.Kb);else if(n=!!e.qa){if("/"!=o.charAt(0))if(this.Ha&&!this.qa)o="/"+o;else{var i=t.qa.lastIndexOf("/");-1!=i&&(o=t.qa.substr(0,i+1)+o)}if(".."==o||"."==o)o="";else if(-1!=o.indexOf("./")||-1!=o.indexOf("/.")){i=0==o.lastIndexOf("/",0),o=o.split("/");for(var r=[],a=0;a<o.length;){var s=o[a++];"."==s?i&&a==o.length&&r.push(""):".."==s?((1<r.length||1==r.length&&""!=r[0])&&r.pop(),i&&a==o.length&&r.push("")):(r.push(s),i=!0)}o=r.join("/")}}return n?t.qa=o:n=""!==e.g.toString(),n?xe(t,e.g.clone()):n=!!e.fb,n&&(t.fb=e.fb),t},o.clone=function(){return new we(this)};var Ve=/[#\/\?@]/g,Ge=/[#\?:]/g,Je=/[#\?]/g,je=/[#\?@]/g,He=/#/g;function Ke(e){this.g=e||null}function Ye(e){if(!e.la&&(e.la={},e.Oc=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var o=t[n].indexOf("="),i=null;if(0<=o){var r=t[n].substring(0,o);i=t[n].substring(o+1)}else r=t[n];r=decodeURIComponent(r.replace(/\+/g," ")),i=i||"",e.add(r,decodeURIComponent(i.replace(/\+/g," ")))}}function We(e,t){return e.concat(t)}function ze(){}function qe(e){return null!=e}function Xe(e,t){if(0==t.length)return e;var n=t.map((function(e){return new we(e)}));return e.map((function(e){return new we(e)})).map((function(e){return n.map((function(t){return e.resolve(t)}))})).reduce(We,[]).map((function(e){return e.toString()}))}function Ze(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function Qe(e,t){if(1==t.length)return t[0];if(null!=(e=$e(e,t)))return e;throw new Ie(2,4,4025,t)}function $e(e,t){for(var n=c(nt[e]),o=n.next();!o.done;o=n.next()){o=o.value;for(var i=c(t),r=i.next();!r.done;r=i.next())if(r=r.value,o.test(r.trim()))return r.trim()}return e==et?"":null}(o=Ke.prototype).la=null,o.Oc=null,o.add=function(e,t){Ye(this),this.g=null;var n=this.la.hasOwnProperty(e)?this.la[e]:null;return n||(this.la[e]=n=[]),n.push(t),this.Oc++,this},o.set=function(e,t){return Ye(this),this.g=null,this.la.hasOwnProperty(e)?this.la[e]=[t]:this.add(e,t),this},o.toString=function(){if(this.g)return this.g;if(!this.la)return"";var e,t=[];for(e in this.la)for(var n=encodeURIComponent(e),o=this.la[e],i=0;i<o.length;i++){var r=n;""!==o[i]&&(r+="="+encodeURIComponent(o[i])),t.push(r)}return this.g=t.join("&")},o.clone=function(){var e=new Ke;if(e.g=this.g,this.la){var t,n={};for(t in this.la)n[t]=this.la[t].concat();e.la=n,e.Oc=this.Oc}return e};var et="text",tt={va:"video",Hc:"audio",X:et,Wb:"image",Gg:"application"},nt={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cx]$/,/^[du]dts$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function ot(){var e,t,n=new Promise((function(n,o){e=n,t=o}));return n.resolve=e,n.reject=t,n}function it(e){this.h=e,this.g=void 0}function rt(e){this.h=e,this.g=null}function at(e){this.h=e,this.g=null}function st(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function lt(e){return""!=vt().canPlayType(e)}function ct(){return!!navigator.userAgent.match(/Edge?\//)}function ut(){return gt("Xbox One")}function dt(){return gt("Tizen")}function pt(){return gt("Web0S")&&gt("Chrome/38.0.2125.122 Safari/537.36")}function ft(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!dt()&&!gt("PC=EOS")&&!gt("VirginMedia")&&!ht()&&!gt("AFT")}function ht(){return gt("PlayStation 4")}function mt(){if(!ft())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function gt(e){return(navigator.userAgent||"").includes(e)}function vt(){return _t||(yt||(yt=new at((function(){_t=null}))),(_t=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(_t=document.createElement("video")),yt.N(1),_t)}ot.prototype.resolve=function(){},ot.prototype.reject=function(){},it.prototype.value=function(){return null==this.g&&(this.g=this.h()),this.g},rt.prototype.N=function(t){var n=this;this.stop();var o=!0,i=null;return this.g=function(){e.clearTimeout(i),o=!1},i=e.setTimeout((function(){o&&n.h()}),1e3*t),this},rt.prototype.stop=function(){this.g&&(this.g(),this.g=null)},at.prototype.Mb=function(){return this.stop(),this.h(),this},at.prototype.N=function(e){var t=this;return this.stop(),this.g=new rt((function(){t.h()})).N(e),this},at.prototype.Ca=function(e){var t=this;return this.stop(),this.g=new rt((function(){t.g.N(e),t.h()})).N(e),this},at.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},V("shaka.util.Timer",at),at.prototype.stop=at.prototype.stop,at.prototype.tickEvery=at.prototype.Ca,at.prototype.tickAfter=at.prototype.N,at.prototype.tickNow=at.prototype.Mb;var yt=null,_t=null;function bt(){}function St(t){if(!t)return"";if(239==(t=ke(t))[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),e.TextDecoder&&!ht())return(t=(new TextDecoder).decode(t)).includes("<22>")&&K('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),t;for(var n="",o=0;o<t.length;++o){var i=65533;if(0==(128&t[o])?i=t[o]:t.length>=o+2&&192==(224&t[o])&&128==(192&t[o+1])?(i=(31&t[o])<<6|63&t[o+1],o+=1):t.length>=o+3&&224==(240&t[o])&&128==(192&t[o+1])&&128==(192&t[o+2])?(i=(15&t[o])<<12|(63&t[o+1])<<6|63&t[o+2],o+=2):t.length>=o+4&&240==(241&t[o])&&128==(192&t[o+1])&&128==(192&t[o+2])&&128==(192&t[o+3])&&(i=(7&t[o])<<18|(63&t[o+1])<<12|(63&t[o+2])<<6|63&t[o+3],o+=3),65535>=i)n+=String.fromCharCode(i);else{var r=1023&(i-=65536);n+=String.fromCharCode(55296+(i>>10)),n+=String.fromCharCode(56320+r)}}return n}function Et(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new Ie(2,2,2004);n=Math.floor(e.byteLength/2);var o=new Uint16Array(n);e=Re(e);for(var i=0;i<n;i++)o[i]=e.getUint16(2*i,t);return Ot.value()(o)}function At(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=ke(e);if(239==n[0]&&187==n[1]&&191==n[2])return St(n);if(254==n[0]&&255==n[1])return Et(n.subarray(2),!1);if(255==n[0]&&254==n[1])return Et(n.subarray(2),!0);if(0==n[0]&&0==n[2])return Et(e,!1);if(0==n[1]&&0==n[3])return Et(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return St(e);throw new Ie(2,2,2003)}function Tt(t){if(e.TextEncoder&&!ht()){var n=new TextEncoder;return Ce(n.encode(t))}t=encodeURIComponent(t),t=unescape(t),n=new Uint8Array(t.length);for(var o=0;o<t.length;o++)n[o]=t[o].charCodeAt(0);return Ce(n)}function Pt(e,t){for(var n=new ArrayBuffer(2*e.length),o=new DataView(n),i=0;i<e.length;++i)o.setUint16(2*i,e.charCodeAt(i),t);return n}V("shaka.util.StringUtils",bt),bt.resetFromCharCode=function(){Ot.g=void 0},bt.toUTF16=Pt,bt.toUTF8=Tt,bt.fromBytesAutoDetect=At,bt.fromUTF16=Et,bt.fromUTF8=St;var Ot=new it((function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}for(var t={Ua:65536};0<t.Ua;(t={Ua:t.Ua}).Ua/=2)if(e(t.Ua))return function(e){return function(t){for(var n="",o=0;o<t.length;o+=e.Ua)n+=String.fromCharCode.apply(null,t.subarray(o,o+e.Ua));return n}}(t);return null}));function Ct(){}function kt(e){return e=ke(e),e=Ot.value()(e),btoa(e)}function Rt(e,t){return t=null==t||t,e=kt(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function Lt(t){t=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(t.length),o=0;o<t.length;++o)n[o]=t.charCodeAt(o);return n}function It(t){for(var n=t.length/2,o=new Uint8Array(n),i=0;i<n;i++)o[i]=e.parseInt(t.substr(2*i,2),16);return o}function Nt(e){var t=ke(e);e="";for(var n=(t=c(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function wt(){for(var e=w.apply(0,arguments),t=0,n=c(e),o=n.next();!o.done;o=n.next())t+=o.value.byteLength;for(t=new Uint8Array(t),n=0,o=(e=c(e)).next();!o.done;o=e.next())o=o.value,t.set(ke(o),n),n+=o.byteLength;return t}function Dt(){}V("shaka.util.Uint8ArrayUtils",Ct),Ct.concat=wt,Ct.toHex=Nt,Ct.fromHex=It,Ct.fromBase64=Lt,Ct.toBase64=Rt,Ct.toStandardBase64=kt,V("shaka.dependencies",Dt),Dt.has=function(e){return xt.has(e)},Dt.add=function(e,t){if(!Mt[e])throw Error(e+" is not supported");xt.set(e,(function(){return t}))};var Mt={muxjs:"muxjs"};Dt.Allowed=Mt;var xt=new Map([["muxjs",function(){return e.muxjs}]]);function Ft(e){var t=this;this.o=e,this.m=xt.get("muxjs")(),this.h=this.g=null,this.l=[],this.i=[],this.j=!1,this.m&&(this.g=new this.m.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",(function(e){t.i=e.captions,t.l.push(wt(e.initSegment,e.data))})),this.g.on("done",(function(){var e={data:wt.apply(Ct,u(t.l)),captions:t.i};t.h.resolve(e),t.j=!1})))}function Ut(e,t){var n=Bt(e),o="audio/aac"==e.toLowerCase().split(";")[0];return!(!xt.get("muxjs")()||!n&&!o)&&(o?Q('audio/mp4; codecs="mp4a.40.2"'):t?Q(Gt(t,e)):(t=Gt("audio",e),e=Gt("video",e),Q(t)||Q(e)))}function Bt(e){return"mp2t"==e.toLowerCase().split(";")[0].split("/")[1]}function Vt(e,t){return"audio/aac"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':Bt(t)?Gt(e,t):t}function Gt(e,t){if(t=t.replace(/mp2t/i,"mp4"),"audio"==e&&(t=t.replace("video","audio")),e=/avc1\.(66|77|100)\.(\d+)/.exec(t)){var n="avc1.",o=e[1],i=Number(e[2]);n=("66"==o?n+"4200":"77"==o?n+"4d00":n+"6400")+(i>>4).toString(16),n+=(15&i).toString(16),t=t.replace(e[0],n)}return t}function Jt(){}function jt(e,t){return t&&(e+='; codecs="'+t+'"'),e}function Ht(e,t,n){return Ut(t=jt(e,t),n)?Vt(n,t):"video/mp2t"!=e&&"audio"==n?t.replace("video","audio"):t}function Kt(e){var t=Wt(e);switch(e=t[0],t=t[1].toLowerCase(),!0){case"mp4a"===e&&"69"===t:case"mp4a"===e&&"6b"===t:return"mp3";case"mp4a"===e&&"66"===t:case"mp4a"===e&&"67"===t:case"mp4a"===e&&"68"===t:case"mp4a"===e&&"40.2"===t:case"mp4a"===e&&"40.02"===t:case"mp4a"===e&&"40.5"===t:case"mp4a"===e&&"40.05"===t:case"mp4a"===e&&"40.29"===t:case"mp4a"===e&&"40.42"===t:return"aac";case"mp4a"===e&&"a5"===t:return"ac-3";case"mp4a"===e&&"a6"===t:return"ec-3";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";case"avc1"===e:case"avc3"===e:return"avc";case"hvc1"===e:case"hev1"===e:return"hevc";case"dvh1"===e:case"dvhe"===e:return"dovi"}return e}function Yt(e){return(e=e.split(/ *; */)).shift(),(e=e.find((function(e){return e.startsWith("codecs=")})))?e.split("=")[1].replace(/^"|"$/g,""):""}function Wt(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}function zt(e){this.j=null,this.i=e,this.u=!1,this.l=this.s=0,this.m=1/0,this.h=this.g=null,this.B="",this.o=new Map}function qt(e){return!(!$t[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function Xt(e,t,n){if(e.B=t,t=e.o.get(t))for(var o=c(t.keys()),i=o.next();!i.done;i=o.next())(i=t.get(i.value).filter((function(e){return e.endTime<=n})))&&e.i.append(i)}function Zt(e,t,n){t.startTime+=n,t.endTime+=n;for(var o=(t=c(t.nestedCues)).next();!o.done;o=t.next())Zt(e,o.value,n)}function Qt(e,t,n,o,i){for(var r=n+" "+o,a=new Map,s=(t=c(t)).next();!s.done;s=t.next()){var l=s.value;s=l.stream,l=l.cue,a.has(s)||a.set(s,new Map),a.get(s).has(r)||a.get(s).set(r,[]),Zt(e,l,i),l.startTime>=e.l&&l.startTime<e.m&&(a.get(s).get(r).push(l),s==e.B&&e.i.append([l]))}for(r=(i=c(a.keys())).next();!r.done;r=i.next())for(r=r.value,e.o.has(r)||e.o.set(r,new Map),s=(t=c(a.get(r).keys())).next();!s.done;s=t.next())s=s.value,l=a.get(r).get(s),e.o.get(r).set(s,l);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(o,e.m))}Ft.prototype.destroy=function(){return this.g&&this.g.dispose(),this.g=null,Promise.resolve()},V("shaka.util.MimeUtils",Jt),Jt.getFullType=jt,(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),zt.prototype.destroy=function(){return this.i=this.j=null,this.o.clear(),Promise.resolve()},zt.prototype.remove=function(e,t){var n=this;return N((function(o){if(1==o.g)return b(o,Promise.resolve(),2);!n.i||!n.i.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),S(o)}))},V("shaka.text.TextEngine",zt),zt.prototype.destroy=zt.prototype.destroy,zt.findParser=function(e){return $t[e]},zt.unregisterParser=function(e){delete $t[e]},zt.registerParser=function(e,t){$t[e]=t};var $t={};function en(){}function tn(e,t){return e=rn(e),t=rn(t),e.split("-")[0]==t.split("-")[0]}function nn(e,t){return e=rn(e),t=rn(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function on(e,t){return e=rn(e),t=rn(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function rn(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=un.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function an(e,t){return e=rn(e),(t=rn(t))==e?4:nn(t,e)?3:on(t,e)?2:nn(e,t)?1:0}function sn(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),un.get(e)||e}function ln(e){return e.language?rn(e.language):e.audio&&e.audio.language?rn(e.audio.language):e.video&&e.video.language?rn(e.video.language):"und"}function cn(e,t){e=rn(e);var n=new Set,o=c(t);for(t=o.next();!t.done;t=o.next())n.add(rn(t.value));for(t=(o=c(n)).next();!t.done;t=o.next())if((t=t.value)==e)return t;for(t=(o=c(n)).next();!t.done;t=o.next())if(nn(t=t.value,e))return t;for(t=(o=c(n)).next();!t.done;t=o.next())if(on(t=t.value,e))return t;for(t=(n=c(n)).next();!t.done;t=n.next())if(nn(e,t=t.value))return t;return null}V("shaka.util.LanguageUtils",en),en.findClosestLocale=cn,en.getLocaleForVariant=ln,en.getLocaleForText=function(e){return rn(e.language||"und")},en.getBase=sn,en.relatedness=an,en.areSiblings=function(e,t){var n=sn(e),o=sn(t);return e!=n&&t!=o&&n==o},en.normalize=rn,en.isSiblingOf=on,en.isParentOf=nn,en.areLanguageCompatible=tn,en.areLocaleCompatible=function(e,t){return(e=rn(e))==(t=rn(t))};var un=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function dn(){this.g={}}function pn(e,t,n,o,i){var r=e.variants;(t.length||n.length)&&(r=function(e,t,n){for(var o={},i=(t=c(t)).next();!i.done;o={xd:o.xd},i=t.next())if(o.xd=i.value,i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.xd)}}(o)),i.length){e=i;break}for(o={},n=c(n),t=n.next();!t.done;o={jd:o.jd},t=n.next())if(o.jd=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.jd)}}(o)),t.length){e=t;break}return e}(r,t,n)),t=function(e){for(var t=new dn,n=(e=c(e)).next();!n.done;n=e.next()){var o=hn(n=n.value);t.push(o,n)}return t}(r=wn(r,o)),t=function(e){var t=0,n=new Map,o=e.size();return e.forEach((function(e,i){for(var r=(i=c(i)).next();!r.done;r=i.next()){var a=(r=r.value).video;if(a&&a.width&&a.height){a=a.width*a.height*(a.frameRate||1),n.has(a)||n.set(a,new dn);var s=n.get(a);s.push(e,r),s.size()===o&&(t=Math.max(t,a))}}})),t?n.get(t):e}(t);var a=function(e,t){for(var n=(t=c(t)).next();!n.done;n=t.next())if((n=n.value)==Bn||n==Vn){if(1==(e=fn(e,n)).size())return e.keys()[0]}else if(n==Gn)break;return function(e){var t="",n=1/0;return e.forEach((function(e,o){for(var i=0,r=0,a=(o=c(o)).next();!a.done;a=o.next())i+=a.value.bandwidth||0,++r;(i/=r)<n&&(t=e,n=i)})),t}(e)}(t,i);e.variants=e.variants.filter((function(e){return hn(e)==a}))}function fn(e,t){var n=0,o=new dn;return e.forEach((function(e,i){for(var r=0,a=0,s=c(i),l=s.next();!l.done;l=s.next())(l=l.value).decodingInfos.length&&(r+=l.decodingInfos[0][t]?1:0,a++);(r/=a)>n?(o.g={},o.push(e,i),n=r):r==n&&o.push(e,i)})),o}function hn(e){var t="";e.video&&(t=Kt(e.video.codecs));var n="";return e.audio&&(n=Kt(e.audio.codecs)),t+"-"+n}function mn(e,t,n){function o(e,t,n){return e>=t&&e<=n}var i=e.video;if(0!=e.disabledUntilTime){if(e.disabledUntilTime>Date.now()/1e3)return!1;e.disabledUntilTime=0}return!(i&&i.width&&i.height&&(!o(i.width,t.minWidth,Math.min(t.maxWidth,n.width))||!o(i.height,t.minHeight,Math.min(t.maxHeight,n.height))||!o(i.width*i.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!o(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!o(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function gn(e,t,n){for(var o=!1,i=(e=c(e)).next();!i.done;i=e.next()){var r=(i=i.value).allowedByApplication;i.allowedByApplication=mn(i,t,n),r!=i.allowedByApplication&&(o=!0)}return o}function vn(e,t){return N((function(n){return 1==n.g?b(n,yn(t,0<t.offlineSessionIds.length),2):(An(e,t),function(e){e.textStreams=e.textStreams.filter((function(e){return qt(jt(e.mimeType,e.codecs))}))}(t),b(n,function(e){var t,n,o,i,r,a,s;return N((function(l){switch(l.g){case 1:t=[],n=c(e.imageStreams),o=n.next();case 2:if(o.done){l.A(4);break}if(i=o.value,r=i.mimeType,Jn.has(r)){l.A(5);break}if(!(a=jn.get(r))){Jn.set(r,!1),l.A(5);break}return b(l,function(e){return new Promise((function(t){var n=new Image;n.src=e,"decode"in n?n.decode().then((function(){t(!0)})).catch((function(){t(!1)})):n.onload=n.onerror=function(){t(2===n.height)}}))}(a),7);case 7:s=l.h,Jn.set(r,s);case 5:Jn.get(r)&&t.push(i),o=n.next(),l.A(2);break;case 4:e.imageStreams=t,S(l)}}))}(t),0))}))}function yn(e,t){return N((function(n){if(1==n.g)return b(n,_n(e.variants,t,!1),2);e.variants=e.variants.filter((function(e){var t=e.video;if(t){var n=En(t.codecs);if(t.codecs.includes(",")){var o=t.codecs.split(",");n=En(n=Qe("video",o)),o=Sn(o=Qe("audio",o));var i=Ht(t.mimeType,o,"audio");if(!Q(i))return!1;n=[n,o].join()}if(!Q(o=Ht(t.mimeType,n,"video")))return!1;t.codecs=n}if(n=e.audio){if(o=Sn(n.codecs),!Q(i=Ht(n.mimeType,o,"audio")))return!1;n.codecs=o}return ut()&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&(t.codecs.includes("avc1.")||t.codecs.includes("avc3."))?(xn(e),!1):((t=e.decodingInfos.some((function(e){return e.supported})))||xn(e),t)})),S(n)}))}function _n(e,t,n){var o,i,r,a,s,l,u,d,p,f;return N((function(h){if(e.some((function(e){return e.decodingInfos.length})))return h.return();for(o=navigator.mediaCapabilities,i=[],r=function(e,t){var n;return N((function(i){return 1==i.g?(E(i,2),b(i,o.decodingInfo(t),4)):2!=i.g?(n=i.h,e.decodingInfos.push(n),T(i,0)):(P(i),JSON.stringify(t),void S(i))}))},a=c(e),s=a.next();!s.done;s=a.next())for(l=s.value,u=bn(l,t,n),d=c(u),p=d.next();!p.done;p=d.next())f=p.value,i.push(r(l,f));return b(h,Promise.all(i),0)}))}function bn(e,t,n){var o=e.audio,i=e.video;if(n={type:n?"file":"media-source"},i){var r=i.codecs;if(i.codecs.includes(",")){var a=i.codecs.split(",");r=En(r=Qe("video",a)),a=Qe("audio",a),a=Ht(i.mimeType,a,"audio"),n.audio={contentType:a,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(r=En(r),r=Ht(i.mimeType,r,"video"),n.video={contentType:r,width:i.width||64,height:i.height||64,bitrate:i.bandwidth||e.bandwidth||1,framerate:i.frameRate||1},i.hdr)switch(i.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(o&&(r=Sn(o.codecs),r=Ht(o.mimeType,r,"audio"),n.audio={contentType:r,channels:o.channelsCount||2,bitrate:o.bandwidth||e.bandwidth||1,samplerate:o.audioSamplingRate||1,spatialRendering:o.spatialAudio}),!(a=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],r=new Map;for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=s.value;r.get(l.keySystem)||r.set(l.keySystem,[]),r.get(l.keySystem).push(l)}a=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var u=(l=c(r.keys())).next();!u.done;u=l.next()){var d=u.value;u=Object.assign({},n);var p=r.get(d);for(d={keySystem:d,initDataType:"cenc",persistentState:a,distinctiveIdentifier:"optional",sessionTypes:t},s=(p=c(p)).next();!s.done;s=p.next()){if((s=s.value).initData&&s.initData.length){for(var f=new Set,h=c(s.initData),m=h.next();!m.done;m=h.next())f.add(m.value.initDataType);d.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(d.distinctiveIdentifier="required"),s.persistentStateRequired&&(d.persistentState="required"),s.sessionType&&(d.sessionTypes=[s.sessionType]),o&&(""!=s.audioRobustness?d.audio?d.audio.robustness=d.audio.robustness||s.audioRobustness:d.audio={robustness:s.audioRobustness}:d.audio||(d.audio={})),i&&(""!=s.videoRobustness?d.video?d.video.robustness=d.video.robustness||s.videoRobustness:d.video={robustness:s.videoRobustness}:d.video||(d.video={}))}u.keySystemConfiguration=d,e.push(u)}return e}function Sn(e){return dt()&&"ac-3"==e.toLowerCase()?"ec-3":e}function En(e){if(e.includes("avc1")){var t=e.split(".");if(3==t.length)return e=t.shift()+".",(e+=parseInt(t.shift(),10).toString(16))+("000"+parseInt(t.shift(),10).toString(16)).slice(-4)}else if("vp9"==e)return"vp09.00.41.08";return e}function An(e,t){t.variants=t.variants.filter((function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!Tn(n,e.audio)||t&&e&&e.video&&!Tn(t,e.video))}))}function Tn(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function Pn(e){var t=e.audio,n=e.video,o=t?t.mimeType:null,i=n?n.mimeType:null,r=t?t.codecs:null,a=n?n.codecs:null,s=[];a&&s.push(a),r&&s.push(r);var l=[];n&&l.push(n.mimeType),t&&l.push(t.mimeType),l=l[0]||null;var u=[];t&&u.push(t.kind),n&&u.push(n.kind),u=u[0]||null;var d=new Set;if(t)for(var p=c(t.roles),f=p.next();!f.done;f=p.next())d.add(f.value);if(n)for(f=(p=c(n.roles)).next();!f.done;f=p.next())d.add(f.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:u,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:l,audioMimeType:o,videoMimeType:i,codecs:s.join(", "),audioCodec:r,videoCodec:a,primary:e.primary,roles:Array.from(d),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.spatialAudio=t.spatialAudio,e.label=t.label,e.audioRoles=t.roles),e}function On(e){return{id:e.id,active:!1,type:et,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null}}function Cn(e){var t=e.width||null,n=e.height||null,o=null;e.segmentIndex&&(o=e.segmentIndex.get(0));var i=e.tilesLayout;return o&&(i=o.tilesLayout||i),i&&null!=t&&(t/=Number(i.split("x")[0])),i&&null!=n&&(n/=Number(i.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:i||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId}}function kn(e){return e.__shaka_id||(e.__shaka_id=Un++),e.__shaka_id}function Rn(e){var t=In(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Ln(e){var t=In(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function In(e){return{id:kn(e),active:!1,type:"",bandwidth:0,language:rn(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}function Nn(e){return e.allowedByApplication&&e.allowedByKeySystem}function wn(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),o=new Map,i=(n=c(n)).next();!i.done;i=n.next()){var r=(i=i.value).audio.channelsCount;o.has(r)||o.set(r,[]),o.get(r).push(i)}return 0==(n=Array.from(o.keys())).length?e:(e=n.filter((function(e){return e<=t}))).length?o.get(Math.max.apply(Math,u(e))):o.get(Math.min.apply(Math,u(n)))}function Dn(e,t,n,o){var i=e,r=e.filter((function(e){return e.primary}));r.length&&(i=r);var a=i.length?i[0].language:"";if(i=i.filter((function(e){return e.language==a})),t){var s=cn(rn(t),e.map((function(e){return e.language})));s&&(i=e.filter((function(e){return rn(e.language)==s})))}if(i=i.filter((function(e){return e.forced==o})),n){if((e=Mn(i,n)).length)return e}else if(e=i.filter((function(e){return 0==e.roles.length})),e.length)return e;return e=i.map((function(e){return e.roles})).reduce(We,[]),e.length?Mn(i,e[0]):i}function Mn(e,t){return e.filter((function(e){return e.roles.includes(t)}))}function xn(e){var t=[];return e.audio&&t.push(Fn(e.audio)),e.video&&t.push(Fn(e.video)),t.join(", ")}function Fn(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}(o=dn.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},o.get=function(e){return(e=this.g[e])?e.slice():null},o.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter((function(e){return e!=t})),0==this.g[e].length&&delete this.g[e])},o.forEach=function(e){for(var t in this.g)e(t,this.g[t])},o.size=function(){return Object.keys(this.g).length},o.keys=function(){return Object.keys(this.g)};var Un=0,Bn="smooth",Vn="powerEfficient",Gn="bandwidth",Jn=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),jn=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Hn(){var e=this;this.l=null,this.o=!1,this.i=new j,navigator.connection&&navigator.connection.addEventListener("change",(function(){if(e.g.useNetworkInformation&&e.o){e.i=new j,e.g&&e.i.configure(e.g.advanced);var t=e.chooseVariant();t&&e.l(t)}})),this.m=[],this.u=1,this.B=!1,this.h=this.j=this.g=this.s=null,this.D=new at((function(){if(e.g.restrictToElementSize){var t=e.chooseVariant();t&&e.l(t)}}))}function Kn(e){var t=e.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.g.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function Yn(e,t,n,o){return e&&(t=t.filter((function(t){return mn(t,e,{width:o,height:n})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}(o=Hn.prototype).stop=function(){this.l=null,this.o=!1,this.m=[],this.u=1,this.j=this.s=null,this.h&&(this.h.disconnect(),this.h=null),this.D.stop()},o.init=function(e){this.l=e},o.chooseVariant=function(){var t=1/0,n=1/0;this.g.restrictToScreenSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=e.screen.height*n,n*=e.screen.width),this.h&&this.g.restrictToElementSize&&(n=this.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,t=this.j.clientWidth*n,n*=this.j.clientHeight),t=Yn(this.g.restrictions,this.m,t,n),n=this.i.getBandwidthEstimate(Kn(this)),this.m.length&&!t.length&&(t=[(t=Yn(null,this.m,1/0,1/0))[0]]);for(var o=t[0]||null,i=0;i<t.length;i++){for(var r=t[i],a=isNaN(this.u)?1:Math.abs(this.u),s=a*r.bandwidth/this.g.bandwidthDowngradeTarget,l={bandwidth:1/0},c=i+1;c<t.length;c++)if(r.bandwidth!=t[c].bandwidth){l=t[c];break}a=a*l.bandwidth/this.g.bandwidthUpgradeTarget,n>=s&&n<=a&&o.bandwidth!=r.bandwidth&&(o=r)}return this.s=Date.now(),o},o.enable=function(){this.o=!0},o.disable=function(){this.o=!1},o.segmentDownloaded=function(e,t){if(this.i.sample(e,t),null!=this.s&&this.o)e:{if(this.B){if(Date.now()-this.s<1e3*this.g.switchInterval)break e}else{if(!((e=this.i).g>=e.i))break e;this.B=!0}e=this.chooseVariant(),this.i.getBandwidthEstimate(Kn(this)),e&&this.l(e)}},o.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Kn(this))},o.setVariants=function(e){this.m=e},o.playbackRateChanged=function(e){this.u=e},o.setMediaElement=function(t){var n=this;this.j=t,this.h&&(this.h.disconnect(),this.h=null),this.j&&"ResizeObserver"in e&&(this.h=new ResizeObserver((function(){n.D.N(Wn)})),this.h.observe(this.j))},o.configure=function(e){this.g=e,this.i&&this.g&&this.i.configure(this.g.advanced)},V("shaka.abr.SimpleAbrManager",Hn),Hn.prototype.configure=Hn.prototype.configure,Hn.prototype.setMediaElement=Hn.prototype.setMediaElement,Hn.prototype.playbackRateChanged=Hn.prototype.playbackRateChanged,Hn.prototype.setVariants=Hn.prototype.setVariants,Hn.prototype.getBandwidthEstimate=Hn.prototype.getBandwidthEstimate,Hn.prototype.segmentDownloaded=Hn.prototype.segmentDownloaded,Hn.prototype.disable=Hn.prototype.disable,Hn.prototype.enable=Hn.prototype.enable,Hn.prototype.chooseVariant=Hn.prototype.chooseVariant,Hn.prototype.init=Hn.prototype.init,Hn.prototype.stop=Hn.prototype.stop;var Wn=1;function zn(e,t){this.g=e,this.h=t}function qn(e,t){var n=new zn(5,0),o=Qn,i=o.g,r=n.h-i.h;(0<(n.g-i.g||r)?o.i:o.h)(o.g,n,e,t)}function Xn(e,t,n,o){Y([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",o].join(" "))}function Zn(e,t,n,o){K([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",o].join(""))}zn.prototype.toString=function(){return"v"+this.g+"."+this.h};var Qn=null;function $n(e,t){for(this.h=e,this.g=new Set([e]),t=(e=c(t=t||[])).next();!t.done;t=e.next())this.add(t.value)}function eo(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var o=t.audio;n=!((!(!n.channelsCount||!o.channelsCount||2<n.channelsCount||2<o.channelsCount)||n.channelsCount==o.channelsCount)&&to(n,o)&&no(n.roles,o.roles))}return!n&&(n=e.video&&t.video)&&(n=!(to(e=e.video,t=t.video)&&no(e.roles,t.roles))),!n}function to(e,t){if(e.mimeType!=t.mimeType)return!1;if(e=e.codecs.split(",").map((function(e){return Wt(e)[0]})),t=t.codecs.split(",").map((function(e){return Wt(e)[0]})),e.length!=t.length)return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function no(e,t){if(e=new Set(e),t=new Set(t),e.delete("main"),t.delete("main"),e.size!=t.size)return!1;for(var n=(e=c(e)).next();!n.done;n=e.next())if(!t.has(n.value))return!1;return!0}function oo(e){this.g=e,this.h=new io(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function io(e,t,n,o){this.i=e,this.j=t,this.g=n,this.h=void 0===o?"":o}function ro(){this.g=lo,this.h=(new Map).set(lo,2).set(so,1)}function ao(e,t,n){e.h.set(lo,n).set(so,t)}V("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3}),$n.prototype.add=function(e){return!!eo(this.h,e)&&(this.g.add(e),!0)},$n.prototype.values=function(){return this.g.values()},oo.prototype.create=function(e){var t=this,n=e.filter((function(e){return eo(t.g,e)}));return n.length?new $n(n[0],n):this.h.create(e)},io.prototype.create=function(e){var t=[];t=function(e,t){t=rn(t);var n=cn(t,e.map((function(e){return ln(e)})));return n?e.filter((function(e){return n==ln(e)})):[]}(e,this.i);var n=e.filter((function(e){return e.primary}));for(e=function(e,t){return e.filter((function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)}))}(t=t.length?t:n.length?n:e,this.j),e.length&&(t=e),this.g&&((e=wn(t,this.g)).length&&(t=e)),this.h&&(e=function(e,t){return e.filter((function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()}))}(t,this.h),e.length&&(t=e)),e=new $n(t[0]),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,eo(e.h,n)&&e.add(n);return e};var so=0,lo=1;function co(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.o=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function uo(e){var t,n;return N((function(o){if(1==o.g){if(e.g>=e.l){if(!e.i)throw new Ie(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?o.return():(n=e.h*(1+(2*Math.random()-1)*e.o),b(o,new Promise((function(e){new at(e).N(n/1e3)})),2))}e.h*=e.m,S(o)}))}function po(e,t){this.promise=e,this.i=t,this.g=!1}function fo(e){return new po(Promise.reject(e),(function(){return Promise.resolve()}))}function ho(){var e=Promise.reject(new Ie(2,7,7001));return e.catch((function(){})),new po(e,(function(){return Promise.resolve()}))}function mo(e){return new po(Promise.resolve(e),(function(){return Promise.resolve()}))}function go(e){return new po(e,(function(){return e.catch((function(){}))}))}function vo(e){return new po(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function yo(t,n){if(n)if(n instanceof Map)for(var o=c(n.keys()),i=o.next();!i.done;i=o.next())i=i.value,Object.defineProperty(this,i,{value:n.get(i),writable:!0,enumerable:!0});else for(o in n)Object.defineProperty(this,o,{value:n[o],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function _o(e){var t,n=new yo(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}po.prototype.abort=function(){return this.g=!0,this.i()},po.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},po.prototype.Y=function(e,t){function n(n){return function(s){if(i.g&&n)r.reject(a);else{var l=n?e:t;l?o=function(e,t,n){try{var o=e(t);return o&&o.promise&&o.abort?(n.resolve(o.promise),function(){return o.abort()}):(n.resolve(o),function(){return Promise.resolve(o).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(l,s,r):(n?r.resolve:r.reject)(s)}}}function o(){return r.reject(a),i.abort()}var i=this,r=new ot,a=new Ie(2,7,7001);return this.promise.then(n(!0),n(!1)),new po(r,(function(){return o()}))},V("shaka.util.AbortableOperation",po),po.prototype.chain=po.prototype.Y,po.prototype.finally=po.prototype.finally,po.all=vo,po.prototype.abort=po.prototype.abort,po.notAbortable=go,po.completed=mo,po.aborted=ho,po.failed=fo,yo.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},yo.prototype.stopImmediatePropagation=function(){this.g=!0},yo.prototype.stopPropagation=function(){},V("shaka.util.FakeEvent",yo);var bo={Ig:"abrstatuschanged",Jg:"adaptation",Kg:"buffering",Lg:"downloadfailed",Mg:"downloadheadersreceived",Ng:"drmsessionupdate",Pg:"emsg",ah:"prft",Error:"error",Qg:"expirationupdated",Rg:"gapjumped",Tg:"loaded",Ug:"loading",Wg:"manifestparsed",Xg:"mediaqualitychanged",Metadata:"metadata",Zg:"onstatechange",$g:"onstateidle",bh:"ratechange",eh:"segmentappended",fh:"sessiondata",gh:"stalldetected",hh:"streaming",ih:"textchanged",jh:"texttrackvisibility",kh:"timelineregionadded",lh:"timelineregionenter",mh:"timelineregionexit",nh:"trackschanged",ph:"unloading",qh:"variantchanged"};function So(){this.da=new dn,this.Wc=this}function Eo(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var o=n.constructor==Array;if(n.constructor!=Object&&!o)return null;t.add(n);var i,r=o?[]:{};for(i in n)r[i]=e(n[i]);return o&&(r.length=n.length),r}}(e)}function Ao(e){var t,n={};for(t in e)n[t]=e[t];return n}function To(){this.g=[]}function Po(e,t){e.g.push(t.finally((function(){te(e.g,t)})))}function Oo(e,t,n){So.call(this),this.i=!1,this.m=new To,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.s=n||null,this.o=!1}function Co(e,t,n,o){n=n||wo;var i=Do[e];(!i||n>=i.priority)&&(Do[e]={priority:n,jg:t,kg:void 0!==o&&o})}function ko(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function Ro(e,t,n,o,i,r,a){e.o&&(n.uris[i]=n.uris[i].replace("http://","https://"));var s=new we(n.uris[i]),l=s.Ea,c=!1;l||(De(s,l=(l=location.protocol).slice(0,-1)),n.uris[i]=s.toString()),l=l.toLowerCase();var u=(l=Do[l])?l.jg:null;if(!u)return fo(new Ie(2,1,1e3,s));var d,p=l.kg,f=null,h=null,m=!1,g=!1;return go(uo(o)).Y((function(){if(e.i)return ho();d=Date.now();var o=u(n.uris[i],n,t,(function(n,o,i){f&&f.stop(),h&&h.N(s/1e3),e.l&&t==No&&(e.l(n,o),c=!0,a.g=i)}),(function(o){e.j&&e.j(o,n,t),g=!0}));if(!p)return o;var r=n.retryParameters.connectionTimeout;r&&(f=new at((function(){m=!0,o.abort()}))).N(r/1e3);var s=n.retryParameters.stallTimeout;return s&&(h=new at((function(){m=!0,o.abort()}))),o})).Y((function(o){f&&f.stop(),h&&h.stop(),null==o.timeMs&&(o.timeMs=Date.now()-d);var i={response:o,Yf:c};return!g&&e.j&&e.j(o.headers,n,t),i}),(function(s){if(f&&f.stop(),h&&h.stop(),e.s){var l=null,c=0;s instanceof Ie&&(l=s,1001==s.code&&(c=s.data[1])),e.s(n,l,c,m)}if(e.i)return ho();if(m&&(s=new Ie(1,1,1003,n.uris[i],t)),s instanceof Ie){if(7001==s.code)throw s;if(1010==s.code)throw r;if(1==s.severity)return l=new yo("retry",l=(new Map).set("error",s)),e.dispatchEvent(l),i=(i+1)%n.uris.length,Ro(e,t,n,o,i,s,a)}throw s}))}function Lo(){this.g=0}function Io(e,t,n){po.call(this,e,t),this.h=n}So.prototype.addEventListener=function(e,t){this.da&&this.da.push(e,t)},So.prototype.removeEventListener=function(e,t){this.da&&this.da.remove(e,t)},So.prototype.dispatchEvent=function(e){if(!this.da)return!0;var t=this.da.get(e.type)||[],n=this.da.get("All");for(n&&(t=t.concat(n)),n=(t=c(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.Wc,e.currentTarget=this.Wc;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},So.prototype.release=function(){this.da=null},To.prototype.destroy=function(){for(var e=[],t=c(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.g=[],Promise.all(e)},g(Oo,So),(o=Oo.prototype).je=function(e){this.o=e},o.lg=function(e){this.g.add(e)},o.Bg=function(e){this.g.delete(e)},o.rf=function(){this.g.clear()},o.mg=function(e){this.h.add(e)},o.Cg=function(e){this.h.delete(e)},o.tf=function(){this.h.clear()},o.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),So.prototype.release.call(this),this.m.destroy()},o.request=function(e,t){var n=this,o=new Lo;if(this.i){var i=Promise.reject(new Ie(2,7,7001));return i.catch((function(){})),new Io(i,(function(){return Promise.resolve()}),o)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?Eo(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=Eo(t.uris),i=function(e,t,n){for(var o=mo(void 0),i={},r=(e=c(e.g)).next();!r.done;i={sd:i.sd},r=e.next())i.sd=r.value,o=o.Y(function(e){return function(){return n.body&&(n.body=Ce(n.body)),e.sd(t,n)}}(i));return o.Y(void 0,(function(e){if(e instanceof Ie&&7001==e.code)throw e;throw new Ie(2,1,1006,e)}))}(this,e,t);var r=i.Y((function(){return Ro(n,e,t,new co(t.retryParameters,!1),0,null,o)})),a=r.Y((function(t){return function(e,t,n){for(var o=mo(void 0),i={},r=(e=c(e.h)).next();!r.done;i={td:i.td},r=e.next())i.td=r.value,o=o.Y(function(e){return function(){var o=n.response;return o.data&&(o.data=Ce(o.data)),e.td(t,o)}}(i));return o.Y((function(){return n}),(function(e){var t=2;if(e instanceof Ie){if(7001==e.code)throw e;t=e.severity}throw new Ie(t,1,1007,e)}))}(n,e,t)})),s=Date.now(),l=0;i.promise.then((function(){l=Date.now()-s}),(function(){}));var u=0;r.promise.then((function(){u=Date.now()}),(function(){}));var d=a.Y((function(t){var o=Date.now()-u,i=t.response;return i.timeMs+=l,i.timeMs+=o,t.Yf||!n.l||i.fromCache||e!=No||n.l(i.timeMs,i.data.byteLength),i}),(function(e){throw e&&(e.severity=2),e}));return i=new Io(d.promise,(function(){return d.abort()}),o),Po(this.m,i),i},V("shaka.net.NetworkingEngine",Oo),Oo.prototype.request=Oo.prototype.request,Oo.prototype.destroy=Oo.prototype.destroy,Oo.makeRequest=ko,Oo.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},Oo.prototype.clearAllResponseFilters=Oo.prototype.tf,Oo.prototype.unregisterResponseFilter=Oo.prototype.Cg,Oo.prototype.registerResponseFilter=Oo.prototype.mg,Oo.prototype.clearAllRequestFilters=Oo.prototype.rf,Oo.prototype.unregisterRequestFilter=Oo.prototype.Bg,Oo.prototype.registerRequestFilter=Oo.prototype.lg,Oo.unregisterScheme=function(e){delete Do[e]},Oo.registerScheme=Co,Oo.prototype.setForceHTTPS=Oo.prototype.je,Oo.NumBytesRemainingClass=Lo,g(Io,po),Oo.PendingRequest=Io;var No=1;Oo.RequestType={MANIFEST:0,SEGMENT:No,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var wo=3;Oo.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:wo};var Do={};function Mo(e){this.g=!1,this.h=new ot,this.i=e}function xo(e,t){if(e.g){if(t instanceof Ie&&7003==t.code)throw t;throw new Ie(2,7,7003,t)}}function Fo(){this.g=new dn}function Uo(e,t,n,o){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter((function(e){return!n.has(e)})),function(e){var t=Bo;if(null==t){t=!1;try{var n={},o={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",o),Object.defineProperty(n,"capture",o),o=function(){},e.addEventListener("test",o,n),e.removeEventListener("test",o,n)}catch(e){t=!1}Bo=t}return t||!1}(e)?t:t.capture||!1}(e,o),this.target.addEventListener(t,n,this.g)}Mo.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then((function(){e.h.resolve()}),(function(){e.h.resolve()})))},(o=Fo.prototype).release=function(){this.nb(),this.g=null},o.C=function(e,t,n,o){this.g&&(e=new Uo(e,t,n,o),this.g.push(t,e))},o.ma=function(e,t,n,o){var i=this;this.C(e,t,(function o(r){i.zc(e,t,o),n(r)}),o)},o.zc=function(e,t,n){if(this.g)for(var o=this.g.get(t)||[],i=(o=c(o)).next();!i.done;i=o.next())(i=i.value).target!=e||n!=i.listener&&n||(i.zc(),this.g.remove(t,i))},o.nb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,u(t.g[e]));for(n=(t=c(n)).next();!n.done;n=t.next())n.value.zc();this.g.g={}}},V("shaka.util.EventManager",Fo),Fo.prototype.removeAll=Fo.prototype.nb,Fo.prototype.unlisten=Fo.prototype.zc,Fo.prototype.listenOnce=Fo.prototype.ma,Fo.prototype.listen=Fo.prototype.C,Fo.prototype.release=Fo.prototype.release,Uo.prototype.zc=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Bo=void 0;function Vo(e,t){for(var n=[],o=(e=c(e)).next();!o.done;o=e.next())n.push(t(o.value));return n}function Go(e){for(var t=new Map,n=c(Object.keys(e)),o=n.next();!o.done;o=n.next())o=o.value,t.set(o,e[o]);return t}function Jo(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function jo(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=(e=c(e)).next();!n.done;n=e.next()){var o=c(n.value);if(n=o.next().value,o=o.next().value,!t.has(n))return!1;if((n=t.get(n))!=o||null==n)return!1}return!0}function Ho(e,t){this.S=Re(e),this.h=t==Yo,this.g=0}function Ko(){return new Ie(2,3,3e3)}(o=Ho.prototype).ha=function(){return this.g<this.S.byteLength},o.Z=function(){return this.g},o.Gf=function(){return this.S.byteLength},o.Ra=function(){try{var e=this.S.getUint8(this.g);return this.g+=1,e}catch(e){throw Ko()}},o.$d=function(){try{var e=this.S.getUint16(this.g,this.h);return this.g+=2,e}catch(e){throw Ko()}},o.K=function(){try{var e=this.S.getUint32(this.g,this.h);return this.g+=4,e}catch(e){throw Ko()}},o.Pe=function(){try{var e=this.S.getInt32(this.g,this.h);return this.g+=4,e}catch(e){throw Ko()}},o.$a=function(){try{if(this.h)var e=this.S.getUint32(this.g,!0),t=this.S.getUint32(this.g+4,!0);else t=this.S.getUint32(this.g,!1),e=this.S.getUint32(this.g+4,!1)}catch(e){throw Ko()}if(2097151<t)throw new Ie(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},o.Za=function(e){if(this.g+e>this.S.byteLength)throw Ko();var t=ke(this.S,this.g,e);return this.g+=e,t},o.skip=function(e){if(this.g+e>this.S.byteLength)throw Ko();this.g+=e},o.sg=function(e){if(this.g<e)throw Ko();this.g-=e},o.seek=function(e){if(0>e||e>this.S.byteLength)throw Ko();this.g=e},o.sc=function(){for(var e=this.g;this.ha()&&0!=this.S.getUint8(this.g);)this.g+=1;return e=ke(this.S,e,this.g-e),this.g+=1,St(e)},V("shaka.util.DataViewReader",Ho),Ho.prototype.readTerminatedString=Ho.prototype.sc,Ho.prototype.seek=Ho.prototype.seek,Ho.prototype.rewind=Ho.prototype.sg,Ho.prototype.skip=Ho.prototype.skip,Ho.prototype.readBytes=Ho.prototype.Za,Ho.prototype.readUint64=Ho.prototype.$a,Ho.prototype.readInt32=Ho.prototype.Pe,Ho.prototype.readUint32=Ho.prototype.K,Ho.prototype.readUint16=Ho.prototype.$d,Ho.prototype.readUint8=Ho.prototype.Ra,Ho.prototype.getLength=Ho.prototype.Gf,Ho.prototype.getPosition=Ho.prototype.Z,Ho.prototype.hasMoreData=Ho.prototype.ha;var Yo=1;function Wo(){this.i=[],this.h=[],this.g=!1}function zo(e){for(var t=ei(e);e.reader.ha()&&!e.parser.g;)e.parser.qc(e.start+t,e.reader,e.partialOkay)}function qo(e){for(var t=ei(e),n=e.reader.K(),o=0;o<n&&(e.parser.qc(e.start+t,e.reader,e.partialOkay),!e.parser.g);o++);}function Xo(e){var t=ei(e);for(e.reader.skip(78);e.reader.ha()&&!e.parser.g;)e.parser.qc(e.start+t,e.reader,e.partialOkay)}function Zo(e){return function(t){e(t.reader.Za(t.reader.S.byteLength-t.reader.Z()))}}function Qo(e){for(var t=0,n=(e=c(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function $o(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function ei(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}Ho.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Yo},(o=Wo.prototype).box=function(e,t){return e=Qo(e),this.i[e]=ti,this.h[e]=t,this},o.P=function(e,t){return e=Qo(e),this.i[e]=ni,this.h[e]=t,this},o.stop=function(){this.g=!0},o.parse=function(e,t,n){for(e=new Ho(e,0),this.g=!1;e.ha()&&!this.g;)this.qc(0,e,t,n)},o.qc=function(e,t,n,o){var i=t.Z();if(o&&i+8>t.S.byteLength)this.g=!0;else{var r=t.K(),a=t.K(),s=$o(a),l=!1;switch(r){case 0:r=t.S.byteLength-i;break;case 1:if(o&&t.Z()+8>t.S.byteLength)return void(this.g=!0);r=t.$a(),l=!0}var c=this.h[a];if(c){var u=null,d=null;if(this.i[a]==ni){if(o&&t.Z()+4>t.S.byteLength)return void(this.g=!0);u=(d=t.K())>>>24,d&=16777215}a=i+r,n&&a>t.S.byteLength&&(a=t.S.byteLength),o&&a>t.S.byteLength?this.g=!0:(o=a-t.Z(),c({name:s,parser:this,partialOkay:n||!1,version:u,flags:d,reader:t=new Ho(t=0<o?t.Za(o):new Uint8Array(0),0),size:r,start:i+e,has64BitSize:l}))}else t.skip(Math.min(i+r-t.Z(),t.S.byteLength-t.Z()))}},V("shaka.util.Mp4Parser",Wo),Wo.headerSize=ei,Wo.typeToString=$o,Wo.allData=Zo,Wo.visualSampleEntry=Xo,Wo.sampleDescription=qo,Wo.children=zo,Wo.prototype.parseNext=Wo.prototype.qc,Wo.prototype.parse=Wo.prototype.parse,Wo.prototype.stop=Wo.prototype.stop,Wo.prototype.fullBox=Wo.prototype.P,Wo.prototype.box=Wo.prototype.box;var ti=0,ni=1;function oi(e){var t=this;this.g=[],this.h=[],this.data=[],(new Wo).box("moov",zo).box("moof",zo).P("pssh",(function(e){if(!(1<e.version)){var n=ke(e.reader.S,-12,e.size);if(t.data.push(n),t.g.push(Nt(e.reader.Za(16))),0<e.version){n=e.reader.K();for(var o=0;o<n;o++){var i=Nt(e.reader.Za(16));t.h.push(i)}}}})).parse(e)}function ii(e,t,n,o){var i=e.length,r=t.length+16+i;0<o&&(r+=4+16*n.size);var a=new Uint8Array(r),s=Re(a),l=0;if(s.setUint32(l,r),l+=4,s.setUint32(l,1886614376),l+=4,1>o?s.setUint32(l,0):s.setUint32(l,16777216),l+=4,a.set(t,l),l+=t.length,0<o)for(s.setUint32(l,n.size),l+=4,n=(t=c(n)).next();!n.done;n=t.next())n=It(n.value),a.set(n,l),l+=n.length;return s.setUint32(l,i),a.set(e,l+4),a}function ri(e,t){return 1!=(e=si(e,t)).length?null:e[0]}function ai(e,t,n){return 1!=(e=li(e,t,n)).length?null:e[0]}function si(e,t){for(var n=[],o=(e=c(e.childNodes)).next();!o.done;o=e.next())(o=o.value)instanceof Element&&o.tagName==t&&n.push(o);return n}function li(e,t,n){for(var o=[],i=(e=c(e.childNodes)).next();!i.done;i=e.next())(i=i.value)instanceof Element&&i.localName==n&&i.namespaceURI==t&&o.push(i);return o}function ci(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function ui(e,t,n){for(var o=(t=c(t)).next();!o.done;o=t.next())if(o=o.value,e.hasAttributeNS(o,n))return e.getAttributeNS(o,n);return null}function di(e){return Array.from(e.childNodes).every(pi)?e.textContent.trim():null}function pi(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function fi(e,t,n,o){o=void 0===o?null:o;var i=null;return null!=(e=e.getAttribute(t))&&(i=n(e)),null==i?o:i}function hi(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function mi(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function gi(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function vi(e){return 0==(e=Number(e))%1?e:null}function yi(e){return 0==(e=Number(e))%1&&0<e?e:null}function _i(e){return 0==(e=Number(e))%1&&0<=e?e:null}function bi(e){return e=Number(e),isNaN(e)?null:e}function Si(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function Ei(e,t){var n=new DOMParser,o=Ti.value()(e);e=null;try{e=n.parseFromString(o,"text/xml")}catch(e){return null}if(!(n=e.documentElement)||n.getElementsByTagName("parsererror").length||n.tagName!=t)return null;for(t=document.createNodeIterator(e,NodeFilter.SHOW_ALL);e=t.nextNode();)if(e instanceof HTMLElement||e instanceof SVGElement)return null;return n}function Ai(e,t){try{return Ei(St(e),t)}catch(e){return null}}var Ti=new it((function(){if("undefined"!=typeof trustedTypes){var e=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(e){return e}});return function(t){return e.createHTML(t)}}return function(e){return e}}));function Pi(e,t){var n=this;t=void 0===t?1:t,this.D=e,this.G=new Set,this.l=this.u=null,this.da=this.W=!1,this.H=0,this.g=null,this.s=new Fo,this.i=new Map,this.B=[],this.o=new ot,this.h=null,this.m=function(t){n.o.reject(t),e.onError(t)},this.ea=new Map,this.ba=new Map,this.O=new at((function(){return function(e){var t=e.ea,n=e.ba;n.clear(),t.forEach((function(e,t){return n.set(t,e)})),t=Array.from(n.values()),t.length&&t.every((function(e){return"expired"==e}))&&e.m(new Ie(2,6,6014)),e.D.cd(Jo(n))}(n)})),this.L=!1,this.J=[],this.M=!1,this.ca=new at((function(){!function(e){e.i.forEach((function(t,n){var o=t.Vd,i=n.expiration;isNaN(i)&&(i=1/0),i!=o&&(e.D.onExpirationUpdated(n.sessionId,i),t.Vd=i)}))}(n)})).Ca(t),this.o.catch((function(){})),this.j=new Mo((function(){return function(e){return N((function(t){switch(t.g){case 1:return e.s.release(),e.s=null,e.o.reject(),e.ca.stop(),e.ca=null,e.O.stop(),e.O=null,b(t,Ui(e),2);case 2:if(!e.l){t.A(3);break}return E(t,4),b(t,e.l.setMediaKeys(null),6);case 6:T(t,5);break;case 4:P(t);case 5:e.l=null;case 3:e.g=null,e.G.clear(),e.u=null,e.B=[],e.h=null,e.m=function(){},e.D=null,e.V=!1,e.F=null,S(t)}}))}(n)})),this.V=!1,this.F=null}function Oi(e,t,n){return e.B=n,e.L=0<n.length,Ci(e,t)}function Ci(t,n){var o,i,r,a,s,l,u,d,p,f,h,m;return N((function(g){if(1==g.g){if(o=function(t){if(t=Go(t.h.clearKeys),0==t.size)return null;var n=[],o=[];t.forEach((function(e,t){var i=t;22!=i.length&&(i=Rt(It(t),!1)),22!=(t=e).length&&(t=Rt(It(e),!1)),e={kty:"oct",kid:i,k:t},n.push(e),o.push(e.kid)})),t=JSON.stringify({keys:n});var i=JSON.stringify({kids:o});return i=[{initData:ke(Tt(i)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:i,keyIds:new Set(o)}}(t))for(i=c(n),r=i.next();!r.done;r=i.next())(a=r.value).video&&(a.video.drmInfos=[o]),a.audio&&(a.audio.drmInfos=[o]);for((s=n.some((function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)})))||(l=Go(t.h.servers),function(e,t){var n=[];for(t.forEach((function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})})),e=c(e),t=e.next();!t.done;t=e.next())(t=t.value).video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}(n,l)),u=c(n),r=u.next();!r.done;r=u.next())for(d=r.value,p=Vi(d),f=c(p),h=f.next();!h.done;h=f.next())ji(h.value,Go(t.h.servers),Go(t.h.advanced||{}),t.h.keySystemsMapping);return b(g,_n(n,t.L,t.V),2)}return s||Object.keys(t.h.servers).length?(m=Di(t,void 0,n),g.return(s?m:m.catch((function(){})))):(t.W=!0,g.return(Promise.resolve()))}))}function ki(e){var t;return N((function(n){switch(n.g){case 1:if(e.l.mediaKeys)return n.return();if(!e.F){n.A(2);break}return b(n,e.F,3);case 3:return xo(e.j),n.return();case 2:return E(n,4),e.F=e.l.setMediaKeys(e.u),b(n,e.F,6);case 6:T(n,5);break;case 4:t=P(n),e.m(new Ie(2,6,6003,t.message));case 5:xo(e.j),S(n)}}))}function Ri(e){var t,n;return N((function(o){switch(o.g){case 1:if(!e.u||!e.g)return o.return();if(!e.g.serverCertificateUri||e.g.serverCertificate&&e.g.serverCertificate.length){o.A(2);break}return t=ko([e.g.serverCertificateUri],e.h.retryParameters),E(o,3),b(o,e.D.kb.request(5,t).promise,5);case 5:n=o.h,e.g.serverCertificate=ke(n.data),T(o,4);break;case 3:throw new Ie(2,6,6017,P(o));case 4:if(e.j.g)return o.return();case 2:return e.g.serverCertificate&&e.g.serverCertificate.length?(E(o,6),b(o,e.u.setServerCertificate(e.g.serverCertificate),8)):o.return();case 8:T(o,0);break;case 6:throw new Ie(2,6,6004,P(o).message)}}))}function Li(e){for(var t=(e.g?e.g.initData:[])||[],n=c(t),o=n.next();!o.done;o=n.next())Ii(e,(o=o.value).initDataType,o.initData);for(o=(n=c(e.B)).next();!o.done;o=n.next())Mi(e,o.value);return t.length||e.B.length||e.o.resolve(),e.o}function Ii(e,t,n){if(n.length){for(var o=e.i.values(),i=(o=c(o)).next();!i.done;i=o.next())if(Pe(n,i.value.initData)&&!gt("Tizen 2"))return;0<e.i.size&&Gi(e)&&(e.o.resolve(),e.o=new ot,e.o.catch((function(){}))),function(e,t,n,o){try{var i=e.u.createSession(o)}catch(t){return void e.m(new Ie(2,6,6005,t.message))}e.s.C(i,"message",(function(t){e.l&&e.h.delayLicenseRequestUntilPlayed&&e.l.paused&&!e.M?e.J.push(t):xi(e,t)})),e.s.C(i,"keystatuseschange",(function(t){return Fi(e,t)})),e.i.set(i,{initData:n,initDataType:t,loaded:!1,Vd:1/0,Ja:null,type:o});try{n=e.h.initDataTransform(n,t,e.g)}catch(n){return t=n,n instanceof Ie||(t=new Ie(2,6,6016,n)),void e.m(t)}e.h.logLicenseExchange&&Rt(n),i.generateRequest(t,n).catch((function(t){if(!e.j.g){e.i.delete(i);var n=t.errorCode;if(n&&n.systemCode){var o=n.systemCode;0>o&&(o+=Math.pow(2,32)),o="0x"+o.toString(16)}e.m(new Ie(2,6,6006,t.message,t,o))}}))}(e,t,n,e.g.sessionType)}}function Ni(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function wi(e){return e=Vo(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function Di(e,t,n){var o,i,r,a,s,l,u,d,p,f,h,m,g;return N((function(v){switch(v.g){case 1:if(o=new Map,n.length){i=function(e,t,n){for(var o=c(t),i=o.next();!i.done;i=o.next()){var r=c(Vi(i.value));for(i=r.next();!i.done;i=r.next())i=i.value,n.has(i.keySystem)||n.set(i.keySystem,[]),n.get(i.keySystem).push(i)}if(1==n.size&&n.has(""))throw new Ie(2,6,6e3);for(o={},e=c(e.h.preferredKeySystems),i=e.next();!i.done;o={qd:o.qd},i=e.next())for(o.qd=i.value,r=c(t),i=r.next();!i.done;i=r.next())if(i=i.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.qd}}(o)))return i.keySystemAccess;for(e=c([!0,!1]),i=e.next();!i.done;i=e.next())for(o=i.value,r=c(t),i=r.next();!i.done;i=r.next()){var a=c(i.value.decodingInfos);for(i=a.next();!i.done;i=a.next()){var s=i.value;if(s.supported&&s.keySystemAccess){var l=c(i=n.get(s.keySystemAccess.keySystem));for(i=l.next();!i.done;i=l.next())if(!!i.value.licenseServerUri==o)return s.keySystemAccess}}}return null}(e,n,o),v.A(2);break}return b(v,function(e,t){var n,o,i,r,a,s,l,u,d,p,f,h,m,g,v;return N((function(y){switch(y.g){case 1:if(1==t.size&&t.has(""))throw new Ie(2,6,6e3);for(o=c(t.values()),i=o.next();!i.done;i=o.next())0==(r=i.value).audioCapabilities.length&&delete r.audioCapabilities,0==r.videoCapabilities.length&&delete r.videoCapabilities;a=c(e.h.preferredKeySystems),s=a.next();case 2:if(s.done){y.A(4);break}if(l=s.value,!t.has(l)){y.A(3);break}return u=t.get(l),E(y,6),b(y,navigator.requestMediaKeySystemAccess(l,[u]),8);case 8:return n=y.h,y.return(n);case 6:P(y);case 7:xo(e.j);case 3:s=a.next(),y.A(2);break;case 4:d=c([!0,!1]),p=d.next();case 9:if(p.done){y.A(11);break}f=p.value,h=c(t.keys()),s=h.next();case 12:if(s.done){p=d.next(),y.A(9);break}if(m=s.value,g=t.get(m),v=g.drmInfos.some((function(e){return!!e.licenseServerUri})),v!=f){y.A(13);break}return E(y,15),b(y,navigator.requestMediaKeySystemAccess(m,[g]),17);case 17:return n=y.h,y.return(n);case 15:P(y);case 16:xo(e.j);case 13:s=h.next(),y.A(12);break;case 11:return y.return(n)}}))}(e,t),3);case 3:i=v.h;case 2:if(!(r=i))throw new Ie(2,6,6001);for(xo(e.j),E(v,4),e.G.clear(),a=r.getConfiguration(),s=a.audioCapabilities||[],l=a.videoCapabilities||[],u=c(s),d=u.next();!d.done;d=u.next())p=d.value,e.G.add(p.contentType.toLowerCase());for(f=c(l),d=f.next();!d.done;d=f.next())h=d.value,e.G.add(h.contentType.toLowerCase());if(n.length){var y=r.keySystem,_=o.get(r.keySystem),S=[],A=[],O=[],C=[],k=new Set;Ji(_,S,O,A,C,k);var R=e.L?"persistent-license":"temporary";for(y={keySystem:y,licenseServerUri:S[0],distinctiveIdentifierRequired:_[0].distinctiveIdentifierRequired,persistentStateRequired:_[0].persistentStateRequired,sessionType:_[0].sessionType||R,audioRobustness:_[0].audioRobustness||"",videoRobustness:_[0].videoRobustness||"",serverCertificate:O[0],serverCertificateUri:A[0],initData:C,keyIds:k},S=(_=c(_)).next();!S.done;S=_.next())(S=S.value).distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=S.distinctiveIdentifierRequired),S.persistentStateRequired&&(y.persistentStateRequired=S.persistentStateRequired);_=y}else _=r.keySystem,y=t.get(r.keySystem),S=[],A=[],O=[],C=[],k=new Set,Ji(y.drmInfos,S,O,A,C,k),_={keySystem:_,licenseServerUri:S[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities?y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:O[0],serverCertificateUri:A[0],initData:C,keyIds:k};if(e.g=_,!e.g.licenseServerUri)throw new Ie(2,6,6012,e.g.keySystem);return b(v,r.createMediaKeys(),6);case 6:return m=v.h,xo(e.j),e.u=m,e.W=!0,b(v,Ri(e),7);case 7:xo(e.j),T(v,0);break;case 4:if(g=P(v),xo(e.j,g),e.g=null,e.G.clear(),g instanceof Ie)throw g;throw new Ie(2,6,6002,g.message)}}))}function Mi(e,t){var n,o,i,r,a;return N((function(s){switch(s.g){case 1:try{n=e.u.createSession("persistent-license")}catch(t){return o=new Ie(2,6,6005,t.message),e.m(o),s.return(Promise.reject(o))}return e.s.C(n,"message",(function(t){e.l&&e.h.delayLicenseRequestUntilPlayed&&e.l.paused&&!e.M?e.J.push(t):xi(e,t)})),e.s.C(n,"keystatuseschange",(function(t){return Fi(e,t)})),i={initData:null,initDataType:null,loaded:!1,Vd:1/0,Ja:null,type:"persistent-license"},e.i.set(n,i),E(s,2),b(s,n.load(t),4);case 4:return r=s.h,xo(e.j),r?(i.loaded=!0,Gi(e)&&e.o.resolve(),s.return(n)):(e.i.delete(n),e.m(new Ie(2,6,6013)),s.return(Promise.resolve()));case 2:a=P(s),xo(e.j,a),e.i.delete(n),e.m(new Ie(2,6,6005,a.message));case 3:return s.return(Promise.resolve())}}))}function xi(e,t){var n,o,i,r,a,s,l,u,d,p,f,h;N((function(m){switch(m.g){case 1:return n=t.target,e.h.logLicenseExchange&&Rt(t.message),o=e.i.get(n),i=e.g.licenseServerUri,r=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&r&&r.individualizationServer&&(i=r.individualizationServer),(a=ko([i],e.h.retryParameters)).body=t.message,a.method="POST",a.licenseRequestType=t.messageType,a.sessionId=n.sessionId,a.drmInfo=e.g,o&&(a.initData=o.initData,a.initDataType=o.initDataType),Ni(e.g.keySystem)&&function(e){var t=Et(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=c((t=Ei(t,"PlayReadyKeyMessage")).getElementsByTagName("HttpHeader")),o=n.next();!o.done;o=n.next())o=o.value,e.headers[o.getElementsByTagName("name")[0].textContent]=o.getElementsByTagName("value")[0].textContent;e.body=Lt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(a),s=Date.now(),E(m,2),b(m,e.D.kb.request(2,a).promise,4);case 4:l=m.h,T(m,3);break;case 2:return u=P(m),d=new Ie(2,6,6007,u),e.m(d),o&&o.Ja&&o.Ja.reject(d),m.return();case 3:return e.j.g?m.return():(e.H+=(Date.now()-s)/1e3,e.h.logLicenseExchange&&Rt(l.data),E(m,5),b(m,n.update(l.data),7));case 7:T(m,6);break;case 5:return p=P(m),f=new Ie(2,6,6008,p.message),e.m(f),o&&o.Ja&&o.Ja.reject(f),m.return();case 6:if(e.j.g)return m.return();h=new yo("drmsessionupdate"),e.D.onEvent(h),o&&(o.Ja&&o.Ja.resolve(),new at((function(){o.loaded=!0,Gi(e)&&e.o.resolve()})).N(Ki)),S(m)}}))}function Fi(e,t){t=t.target;var n=e.i.get(t),o=!1;t.keyStatuses.forEach((function(t,i){if("string"==typeof i){var r=i;i=t,t=r}if(Ni(e.g.keySystem)&&16==i.byteLength&&(ct()||ht())){var a=(r=Re(i)).getUint32(0,!0),s=r.getUint16(4,!0),l=r.getUint16(6,!0);r.setUint32(0,a,!1),r.setUint16(4,s,!1),r.setUint16(6,l,!1)}"status-pending"!=t&&(n.loaded=!0),"expired"==t&&(o=!0),i=Nt(i).slice(0,32),e.ea.set(i,t)}));var i=t.expiration-Date.now();(0>i||o&&1e3>i)&&n&&!n.Ja&&(e.i.delete(t),t.close().catch((function(){}))),Gi(e)&&(e.o.resolve(),e.O.N(Yi))}function Ui(e){var t;return N((function(n){return t=Array.from(e.i.entries()),e.i.clear(),b(n,Promise.all(t.map((function(t){var n=(t=c(t)).next().value,o=t.next().value;return N((function(t){return 1==t.g?(E(t,2),e.da||e.B.includes(n.sessionId)||"persistent-license"!==o.type?b(t,function(e){var t;return N((function(n){return 1==n.g?(t=new Promise((function(e,t){new at(t).N(Hi)})),E(n,2),b(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?T(n,0):(P(n),void S(n))}))}(n),5):b(t,n.remove(),5)):2!=t.g?T(t,0):(P(t),void S(t))}))}))),0)}))}function Bi(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],o=(e=c(e)).next();!o.done;o=e.next()){o=o.value;for(var i={},r=c(t),a=r.next();!a.done;i={Da:i.Da},a=r.next())if(a=a.value,o.keySystem==a.keySystem){i.Da=[],i.Da=i.Da.concat(o.initData||[]),i.Da=i.Da.concat(a.initData||[]),i.Da=i.Da.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Da.findIndex((function(e){return e.keyId===t.keyId}))}}(i)),r=o.keyIds&&a.keyIds?new Set([].concat(u(o.keyIds),u(a.keyIds))):o.keyIds||a.keyIds,n.push({keySystem:o.keySystem,licenseServerUri:o.licenseServerUri||a.licenseServerUri,distinctiveIdentifierRequired:o.distinctiveIdentifierRequired||a.distinctiveIdentifierRequired,persistentStateRequired:o.persistentStateRequired||a.persistentStateRequired,videoRobustness:o.videoRobustness||a.videoRobustness,audioRobustness:o.audioRobustness||a.audioRobustness,serverCertificate:o.serverCertificate||a.serverCertificate,serverCertificateUri:o.serverCertificateUri||a.serverCertificateUri,initData:i.Da,keyIds:r});break}}return n}function Vi(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function Gi(e){return function(e,t){for(var n=(e=c(e)).next();!n.done;n=e.next())if(!t(n.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function Ji(e,t,n,o,i,r){for(var a={},s=(e=c(e)).next();!s.done;a={oa:a.oa},s=e.next()){if(a.oa=s.value,t.includes(a.oa.licenseServerUri)||t.push(a.oa.licenseServerUri),o.includes(a.oa.serverCertificateUri)||o.push(a.oa.serverCertificateUri),a.oa.serverCertificate&&(n.some(function(e){return function(t){return Pe(t,e.oa.serverCertificate)}}(a))||n.push(a.oa.serverCertificate)),a.oa.initData){s={};for(var l=c(a.oa.initData),u=l.next();!u.done;s={Dc:s.Dc},u=l.next())s.Dc=u.value,i.some(function(e){return function(t){var n=e.Dc;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&Pe(t.initData,n.initData)}}(s))||i.push(s.Dc)}if(a.oa.keyIds)for(l=(s=c(a.oa.keyIds)).next();!l.done;l=s.next())r.add(l.value)}}function ji(t,n,o,i){var r=t.keySystem;!r||"org.w3.clearkey"==r&&t.licenseServerUri||(n.size&&(n=n.get(r)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(o=o.get(r))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=o.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=o.persistentStateRequired),t.videoRobustness||(t.videoRobustness=o.videoRobustness),t.audioRobustness||(t.audioRobustness=o.audioRobustness),t.serverCertificate||(t.serverCertificate=o.serverCertificate),o.sessionType&&(t.sessionType=o.sessionType),t.serverCertificateUri||(t.serverCertificateUri=o.serverCertificateUri)),i[r]&&(t.keySystem=i[r]),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==r&&(t.keySystem="com.chromecast.playready"))}(o=Pi.prototype).destroy=function(){return this.j.destroy()},o.configure=function(e){this.h=e},o.Yb=function(e){var t,n=this;return N((function(o){if(1==o.g)return n.u?(n.l=e,n.s.ma(n.l,"play",(function(){for(var e=c(n.J),t=e.next();!t.done;t=e.next())xi(n,t.value);n.M=!0,n.J=[]})),"webkitCurrentPlaybackTargetIsWireless"in n.l&&n.s.C(n.l,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return Ui(n)})),(t=n.g?n.g.initData.find((function(e){return 0<e.initData.length})):null)||"com.apple.fps"!==n.g.keySystem||n.B.length?b(o,ki(n),2):o.A(2)):(n.s.ma(e,"encrypted",(function(){n.m(new Ie(2,6,6010))})),o.return());Li(n),t||n.B.length||n.h.parseInbandPsshEnabled||n.s.C(n.l,"encrypted",(function(e){return function(e,t){return N((function(n){if(1==n.g)return b(n,ki(e),2);Ii(e,t.initDataType,ke(t.initData)),S(n)}))}(n,e)})),S(o)}))},o.ic=function(){for(var e=1/0,t=this.i.keys(),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},o.Qc=function(){return Jo(this.ba)};var Hi=1,Ki=5,Yi=.5,Wi=new it((function(){return Ce(new Uint8Array([0]))}));function zi(){}function qi(e,t,n,o){var i,r,a,s;return N((function(l){if(1==l.g)return o&&(i=Qi[o.toLowerCase()])?l.return(i):(r=Zi(e))&&(a=$i[r])?l.return(a):o?l.A(2):b(l,Xi(e,t,n),3);if(2!=l.g&&(o=l.h)&&(s=Qi[o]))return l.return(s);throw new Ie(2,4,4e3,e)}))}function Xi(e,t,n){var o,i,r;return N((function(a){return 1==a.g?((o=ko([e],n)).method="HEAD",b(a,t.request(0,o).promise,2)):(i=a.h,r=i.headers["content-type"],a.return(r?r.toLowerCase().split(";").shift():""))}))}function Zi(e){return 1==(e=new we(e).qa.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}V("shaka.media.ManifestParser",zi),zi.unregisterParserByMime=function(e){delete Qi[e]},zi.registerParserByMime=function(e,t){Qi[e]=t},zi.registerParserByExtension=function(e,t){$i[e]=t};var Qi={},$i={};function er(e,t,n,o,i){var r=nr.value(),a=e.subarray(n.start,n.start+n.size),s=Re(a),l=new Uint8Array(n.size+r.byteLength);for(l.set(a,0),(a=Re(l)).setUint32(4,i),l.set(r,n.size),i=s.getUint32(4),a.setUint32(n.size+16,i),tr(l,0,l.byteLength),i=new Uint8Array(e.byteLength+l.byteLength),n=ut()?n.start:n.start+n.size,r=e.subarray(n),i.set(e.subarray(0,n)),i.set(l,n),i.set(r,n+l.byteLength),o=(e=c(o)).next();!o.done;o=e.next())tr(i,(o=o.value).start,o.size+l.byteLength);return l=Re(i,t.start),t=ei(t),e=l.getUint32(t),l.setUint32(t,e+1),i}function tr(e,t,n){0!=(t=(e=Re(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var nr=new it((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function or(e,t,n,o,i){if(o>=i)return null;for(var r=-1,a=-1,s=0;s<n.length;s++)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){r=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){a=s;break}if(-1===r||-1===a)return null;for(var l=s=!1,c="white",u="black",d=ir(o,i,s,l,c,u);r<=a;r++){for(var p=n[r],f=-1,h=-1,m=0;m<p.length;m++)if(null!=p[m]&&""!==p[m].g.trim()){f=m;break}for(m=p.length-1;0<=m;m--)if(null!=p[m]&&""!==p[m].g.trim()){h=m;break}if(-1===f||-1===h)p=rr(o,i),e.nestedCues.push(p);else{for(;f<=h;f++)if(m=p[f]){var g=m.l,v=m.i,y=m.j,_=m.h;g==s&&v==l&&y==c&&_==u||(d.payload&&e.nestedCues.push(d),d=ir(o,i,g,v,y,_),s=g,l=v,c=y,u=_),d.payload+=m.g}else d.payload+=" ";d.payload&&e.nestedCues.push(d),r!==a&&(d=rr(o,i),e.nestedCues.push(d)),d=ir(o,i,s,l,c,u)}}return e.nestedCues.length?{cue:e,stream:t}:null}function ir(e,t,n,o,i,r){return e=new ie(e,t,""),n&&e.textDecoration.push("underline"),o&&(e.fontStyle="italic"),e.color=i,e.backgroundColor=r,e}function rr(e,t){return(e=new ie(e,t,"")).lineBreak=!0,e}function ar(e,t,n,o,i){this.g=e,this.l=t,this.i=n,this.h=o,this.j=i}function sr(e,t){this.i=[],this.g=1,this.h=0,this.u=e,this.s=t,this.j=this.m=!1,this.l="white",this.o="black",cr(this)}function lr(e,t,n){return or(new ie(t,n,""),"CC"+(e.u<<1|e.s+1),e.i,t,n)}function cr(e){pr(e,0,15),e.g=1}function ur(e,t,n){if(!(32>n||127<n)){var o="";switch(t){case fr:o=vr.has(n)?vr.get(n):String.fromCharCode(n);break;case hr:o=yr.get(n);break;case mr:e.i[e.g].pop(),o=_r.get(n);break;case gr:e.i[e.g].pop(),o=br.get(n)}o&&e.i[e.g].push(new ar(o,e.m,e.j,e.o,e.l))}}function dr(e,t,n,o){if(!(0>n||0>t))if(t>=n)for(--o;0<=o;o--)e.i[t+o]=e.i[n+o].map((function(e){return e}));else for(var i=0;i<o;i++)e.i[t+i]=e.i[n+i].map((function(e){return e}))}function pr(e,t,n){for(var o=0;o<=n;o++)e.i[t+o]=[]}var fr=0,hr=1,mr=2,gr=3,vr=new Map([[39,""],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),yr=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57,""],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),_r=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,""],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),br=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]);function Sr(e,t){this.h=Pr,this.o=new sr(e,t),this.i=new sr(e,t),this.l=new sr(e,t),this.g=this.i,this.j=0,this.m=null}function Er(e,t,n){e.g=e.i;var o=e.g,i=null;return e.h!==Cr&&e.h!==kr&&(i=lr(o,e.j,n),(n=e.i).g=0<n.h?n.h:0,pr(n,0,15),(n=e.l).g=0<n.h?n.h:0,pr(n,0,15),o.g=15),e.h=Cr,o.h=t,i}function Ar(e){e.h=Or,e.g=e.l,e.g.h=0}function Tr(e){W("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.o,e.h=kr}var Pr=0,Or=1,Cr=3,kr=4,Rr="black green blue cyan red yellow magenta black".split(" "),Lr="white green blue cyan red yellow magenta white_italics".split(" ");function Ir(){this.l=!1,this.B=this.F=0,this.D=Br,this.i=[],this.g=this.h=this.j=0,this.u=this.o=!1,this.s="white",this.m="black",Nr(this)}function Nr(e){e.i=[];for(var t=0;16>t;t++)e.i.push(wr())}function wr(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function Dr(e,t){Mr(e)&&(e.i[e.h][e.g]=new ar(t,e.u,e.o,e.m,e.s),e.g++)}function Mr(e){var t=e.g<e.B&&0<=e.g;return e.h<e.F&&0<=e.h&&t}function xr(e,t,n){var o=new ie(e.j,t,"");return o.textAlign=e.D===Fr?"left":e.D===Ur?"right":se,(n=or(o,"svc"+n,e.i,e.j,t))&&(e.j=t),n}Ir.prototype.isVisible=function(){return this.l};var Fr=0,Ur=1,Br=2;function Vr(){this.i=[],this.h=null,this.g=0}function Gr(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new Jr(e.h)),e.h=null,e.g=0))}function Jr(e){this.g=0,this.h=e}function jr(e){if(!e.ha())throw new Ie(2,2,3e3);return e.h[e.g++]}function Hr(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function Kr(e,t,n,o){if(128<=n&&135>=n)o=7&n,e.h[o]&&(e.g=e.h[o]);else{if(136===n){n=jr(t).value,t=null;for(var i=(n=c(Yr(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=xr(i,o,e.i)),Nr(i);return t}if(137===n)for(n=(t=c(Yr(e,t=jr(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=o),n.l=!0;else{if(138===n){for(n=jr(t).value,t=null,i=(n=c(Yr(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=xr(i,o,e.i)),i.l=!1;return t}if(139===n){for(n=jr(t).value,t=null,i=(n=c(Yr(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()?t=xr(i,o,e.i):i.j=o,i.l=!i.l;return t}if(140===n)return Wr(e,t=jr(t).value,o);if(143===n)return o=Wr(e,255,o),zr(e),o;if(144===n)t.skip(1),o=jr(t).value,e.g&&(e.g.o=0<(128&o),e.g.u=0<(64&o));else if(145===n)o=jr(t).value,n=jr(t).value,t.skip(1),e.g&&(t=qr((48&n)>>4,(12&n)>>2,3&n),e.g.s=qr((48&o)>>4,(12&o)>>2,3&o),e.g.m=t);else if(146===n)o=jr(t).value,t=jr(t).value,e.g&&((e=e.g).h=15&o,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),o=jr(t).value,t.skip(1),e.g&&(e.g.D=3&o);else if(152<=n&&159>=n){if(n=(15&n)-8,!(i=null!==e.h[n])){var r=new Ir;r.j=o,e.h[n]=r}o=jr(t).value,jr(t),jr(t),r=jr(t).value;var a=jr(t).value;t=jr(t).value,i&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.u=!1,t.o=!1,t.s="white",t.m="black"),(t=e.h[n]).l=0<(32&o),t.F=1+(15&r),t.B=1+(63&a),e.g=e.h[n]}}}return null}function Yr(e,t){for(var n=[],o=0;8>o;o++)1==(1&t)&&e.h[o]&&n.push(o),t>>=1;return n}function Wr(e,t,n){for(var o=null,i=(t=c(Yr(e,t))).next();!i.done;i=t.next()){i=i.value;var r=e.h[i];r.isVisible()&&(o=xr(r,n,e.i)),e.h[i]=null}return o}function zr(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function qr(e,t,n){var o={0:0,1:0,2:1,3:1};return Zr[(e=o[e])<<2|(t=o[t])<<1|(n=o[n])]}Jr.prototype.ha=function(){return this.g<this.h.length},Jr.prototype.Z=function(){return this.g},Jr.prototype.skip=function(e){if(this.g+e>this.h.length)throw new Ie(2,2,3e3);this.g+=e};var Xr=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,""],[50,""],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Zr="black blue green cyan red magenta yellow white".split(" ");function Qr(){this.h=[],this.g=[],this.i=new Vr,this.l=0,this.s=new Map([["CC1",new Sr(0,0)],["CC2",new Sr(0,1)],["CC3",new Sr(1,0)],["CC4",new Sr(1,1)]]),this.o=this.m=0,this.j=new Map,$r(this)}function $r(e){e.m=0,e.o=0;for(var t=(e=c(e.s.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.m=null,cr(t.i),cr(t.l),cr(t.o)}function ea(e,t){var n=t.type;if(16==(112&t.xa)){var o=t.xa>>3&1;0===n?e.m=o:e.o=o}if(n=e.s.get("CC"+(n<<1|(n?e.o:e.m)+1)),255===t.xa&&255===t.La||!t.xa&&!t.La||!na(t.xa)||!na(t.La))return 45<=++e.l&&$r(e),null;if(e.l=0,t.xa&=127,t.La&=127,!t.xa&&!t.La)return null;if(e=null,16==(112&t.xa))e:{if(o=t.xa,e=t.La,n.m===(o<<8|e))n.m=null;else if(n.m=o<<8|e,16==(240&o)&&64==(192&e)){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&o)<<1|e>>5&1];var i=(30&e)>>1;o="white";var r=!1;if(7>i?o=Lr[i]:7===i&&(r=!0),e=1==(1&e),n.h!==kr){if(i=n.g,n.h===Cr&&t!==i.g){var a=1+t-i.h;dr(i,a,1+i.g-i.h,i.h),pr(i,0,a-1),pr(i,t+1,15-t)}i.g=t,n.g.m=e,n.g.j=r,n.g.l=o,n.g.o="black"}}else if(17==(247&o)&&32==(240&e))n.g.m=!1,n.g.j=!1,n.g.l="white",ur(n.g,fr,32),o=!1,"white_italics"===(t=Lr[(14&e)>>1])&&(t="white",o=!0),n.g.m=1==(1&e),n.g.j=o,n.g.l=t;else if(16==(247&o)&&32==(240&e)||23==(247&o)&&45==(255&e))t="black",0==(7&o)&&(t=Rr[(14&e)>>1]),n.g.o=t;else if(17==(247&o)&&48==(240&e))ur(n.g,hr,e);else if(18==(246&o)&&32==(224&e))ur(n.g,1&o?gr:mr,e);else if(20==(246&o)&&32==(240&e)){switch(e=t.pts,o=null,t.La){case 32:Ar(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:o=Er(n,2,e);break;case 38:o=Er(n,3,e);break;case 39:o=Er(n,4,e);break;case 40:ur(n.g,fr,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=e;break;case 42:cr(n.o),Tr(n);break;case 43:Tr(n);break;case 44:t=n.i,o=null,n.h!==kr&&(o=lr(t,n.j,e)),pr(t,0,15);break;case 45:t=n.g,n.h!==Cr?o=null:(o=lr(t,n.j,e),dr(t,(r=t.g-t.h+1)-1,r,t.h),pr(t,0,r-1),pr(t,t.g,15-t.g),n.j=e);break;case 46:pr(n.l,0,15);break;case 47:t=null,n.h!==kr&&(t=lr(n.i,n.j,e)),o=n.l,n.l=n.i,n.i=o,Ar(n),n.j=e,o=t}e=o;break e}e=null}else o=t.La,ur(n.g,fr,t.xa),ur(n.g,fr,o);return e}function ta(e,t){var n=[];try{for(;t.ha();){var o=jr(t).value,i=(224&o)>>5,r=31&o;if(7===i&&0!=r&&(i=63&jr(t).value),0!=i){e.j.has(i)||e.j.set(i,new Hr(i));for(var a=e.j.get(i),s=t.Z();t.Z()-s<r;){var l=jr(i=t),c=l.value,u=l.pts;if(16===c)c=c<<16|jr(i).value;if(0<=c&&31>=c){var d=u;if(a.g){var p=a.g;switch(i=null,c){case 8:!Mr(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.B-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:if(p.isVisible()&&(i=xr(p,d,a.i)),p.h+1>=p.F){d=p;for(var f=0,h=1;16>h;h++,f++)d.i[f]=d.i[h];for(h=0;1>h;h++,f++)d.i[f]=wr()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(i=xr(p,d,a.i)),p.i[p.h]=wr(),p.g=0;break;case 12:p.isVisible()&&(i=xr(p,d,a.i)),Nr(p),(d=p).h=0,d.g=0}var m=i}else m=null}else if(128<=c&&159>=c)m=Kr(a,i,c,u);else{if(4096<=c&&4127>=c)8<=(d=255&c)&&15>=d?i.skip(1):16<=d&&23>=d?i.skip(2):24<=d&&31>=d&&i.skip(3);else if(4224<=c&&4255>=c)128<=(d=255&c)&&135>=d?i.skip(4):136<=d&&143>=d&&i.skip(5);else if(32<=c&&127>=c)i=c,a.g&&Dr(a.g,127===i?"♪":String.fromCharCode(i));else if(160<=c&&255>=c)a.g&&Dr(a.g,String.fromCharCode(c));else if(4128<=c&&4223>=c){if(i=255&c,a.g)if(Xr.has(i)){var g=Xr.get(i);Dr(a.g,g)}else Dr(a.g,"_")}else 4256<=c&&4351>=c&&a.g&&Dr(a.g,160!=(255&c)?"_":"[CC]");m=null}(i=m)&&n.push(i)}}}}catch(e){if(!(e instanceof Ie&&3e3===e.code))throw e;W("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function na(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function oa(){}function ia(e,t){var n=null,o=null,i=null,r=e.K();return 1&t&&(i=e.$a()),2&t&&e.skip(4),8&t&&(n=e.K()),16&t&&(o=e.K()),{trackId:r,Ce:n,xf:o,rh:i}}function ra(e,t){return{we:1==t?e.$a():e.K()}}function aa(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.K()}}function sa(e,t,n){var o=e.K(),i=[],r=null;1&n&&(r=e.K()),4&n&&e.skip(4);for(var a=0;a<o;a++){var s={ee:null,sampleSize:null,ed:null};256&n&&(s.ee=e.K()),512&n&&(s.sampleSize=e.K()),1024&n&&e.skip(4),2048&n&&(s.ed=0==t?e.K():e.Pe()),i.push(s)}return{wh:o,Re:i,wf:r}}function la(){this.j=new Map,this.i=this.h=0,this.g=ca}oa.prototype.init=function(){},oa.prototype.parse=function(){return[]},la.prototype.init=function(e){function t(e){(e=e.name)in pa&&(n.g=pa[e])}var n=this,o=[],i=[];if((new Wo).box("moov",zo).box("mvex",zo).P("trex",(function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.K(),t=t.K(),n.h=e,n.i=t})).box("trak",zo).P("tkhd",(function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.K(),o.push(e)})).box("mdia",zo).P("mdhd",(function(e){e=aa(e.reader,e.version),i.push(e.timescale)})).box("minf",zo).box("stbl",zo).P("stsd",qo).box("avc1",t).box("avc3",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("encv",Xo).box("sinf",zo).box("frma",(function(e){(e=$o(e=e.reader.K()))in pa&&(n.g=pa[e])})).parse(e,!0),!o.length||!i.length||o.length!=i.length)throw new Ie(2,2,2010);this.g==ca&&Y("Unable to determine bitstream format for CEA parsing!"),o.forEach((function(e,t){n.j.set(e,i[t])}))},la.prototype.parse=function(e){var t=this;if(this.g==ca)return[];var n=[],o=this.h,i=this.i,r=[],a=null,s=null,l=null,d=9e4;return(new Wo).box("moof",(function(e){a=e.start,zo(e)})).box("traf",zo).P("trun",(function(e){e=sa(e.reader,e.version,e.flags),r=e.Re,s=e.wf})).P("tfhd",(function(e){e=ia(e.reader,e.flags),o=e.Ce||t.h,i=e.xf||t.i,e=e.trackId,t.j.has(e)&&(d=t.j.get(e))})).P("tfdt",(function(e){l=ra(e.reader,e.version).we})).box("mdat",(function(e){if(null===l)throw new Ie(2,2,2010);e:{var p=e.reader,f=l,h=d,m=o,g=i,v=r,y=0,_=g;for(v.length&&(_=v[0].sampleSize||g),p.skip((a||0)+(s||0)-e.start-8);p.ha();){e=p.K();var b=p.Ra();switch(t.g){case ua:b=6==(b&=31);break;case da:b=39==(b=b>>1&63)||40==b;break;default:break e}if(b){b=0,v.length>y&&(b=v[y].ed||0),b=(f+b)/h;for(var S,E=[],A=p.Za(e-1),T=S=0;T<A.length;)2==S&&3==A[T]?(S=0,(A=[].concat(u(A))).splice(T,1),A=new Uint8Array(A)):0==A[T]?S++:S=0,T++;for(S=A,T=0;T<S.length;){for(A=0;255==S[T];)A+=255,T++;A+=S[T++];for(var P=0;255==S[T];)P+=255,T++;P+=S[T++],4==A&&E.push(S.subarray(T,T+P)),T+=P}for(S=(E=c(E)).next();!S.done;S=E.next())n.push({ig:S.value,pts:b})}else try{p.skip(e-1)}catch(e){break}0==(_-=e+4)&&(f=v.length>y?f+(v[y].ee||m):f+m,y++,_=v.length>y&&v[y].sampleSize||g)}}})).parse(e,!1),n};var ca=0,ua=1,da=2,pa={avc1:ua,avc3:ua,hev1:da,hvc1:da,dvh1:da,dvhe:da};function fa(e){this.h=new oa,e.includes("video/mp4")&&(this.h=new la),this.g=new Qr}function ha(e,t){for(var n=(t=c(t=e.h.parse(t))).next();!n.done;n=t.next()){var o=n.value,i=ke(o.ig);if(0<i.length&&(n=e.g,o=o.pts,181===(i=new Ho(i,0)).Ra()&&49===i.$d()&&1195456820===i.K()&&3===i.Ra())){var r=i.Ra();if(0!=(64&r)){r&=31,i.skip(1);for(var a=0;a<r;a++){var s=i.Ra(),l=(4&s)>>2,d=i.Ra(),p=i.Ra();l&&(0===(s&=3)||1===s?n.h.push({pts:o,type:s,xa:d,La:p,order:n.h.length}):(n.g.push({pts:o,type:s,value:d,order:n.g.length}),n.g.push({pts:o,type:2,value:p,order:n.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var o=c(e.h),i=o.next();!i.done;i=o.next())(i=ea(e,i.value))&&n.push(i);for(i=(o=c(e.g)).next();!i.done;i=o.next())Gr(e.i,i.value);for(i=(o=c(e.i.i)).next();!i.done;i=o.next())i=ta(e,i.value),n.push.apply(n,u(i));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function ma(e,t,n,o,i){this.ya=e,this.Ba=t,this.ka=n,this.Od=void 0===o?null:o,this.timescale=i}function ga(e,t,n,o,i,r,a,s,l,c,u,d,p,f,h){c=void 0===c?[]:c,f=void 0===f?va:f,this.startTime=e,this.j=this.endTime=t,this.u=n,this.Ba=o,this.ka=i,this.h=r,this.timestampOffset=a,this.appendWindowStart=s,this.appendWindowEnd=l,this.i=c,this.tilesLayout=void 0===u?"":u,this.s=void 0===d?null:d,this.g=void 0===p?null:p,this.status=f,this.l=void 0===h?null:h,this.o=null,this.m=0}fa.prototype.init=function(e){this.h.init(e)},ma.prototype.lc=function(){return this.Ba},ma.prototype.hc=function(){return this.ka},V("shaka.media.InitSegmentReference",ma),ma.prototype.getEndByte=ma.prototype.hc,ma.prototype.getStartByte=ma.prototype.lc,(o=ga.prototype).ya=function(){return this.u()},o.getStartTime=function(){return this.startTime},o.Ef=function(){return this.endTime},o.lc=function(){return this.Ba},o.hc=function(){return this.ka},o.Vf=function(){return this.tilesLayout},o.Uf=function(){return this.s},o.Eb=function(){return this.status},o.bg=function(){this.status=ya},o.Ye=function(e){this.o=e},o.Sf=function(){return this.o},o.offset=function(e){this.startTime+=e,this.endTime+=e,this.j+=e;for(var t=c(this.i),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.j+=e},o.oe=function(e){null==this.g?K("Sync attempted without sync time!"):(e=this.g-e-this.startTime,.001<=Math.abs(e)&&this.offset(e))},V("shaka.media.SegmentReference",ga),ga.prototype.syncAgainst=ga.prototype.oe,ga.prototype.offset=ga.prototype.offset,ga.prototype.getThumbnailSprite=ga.prototype.Sf,ga.prototype.setThumbnailSprite=ga.prototype.Ye,ga.prototype.markAsUnavailable=ga.prototype.bg,ga.prototype.getStatus=ga.prototype.Eb,ga.prototype.getTileDuration=ga.prototype.Uf,ga.prototype.getTilesLayout=ga.prototype.Vf,ga.prototype.getEndByte=ga.prototype.hc,ga.prototype.getStartByte=ga.prototype.lc,ga.prototype.getEndTime=ga.prototype.Ef,ga.prototype.getStartTime=ga.prototype.getStartTime,ga.prototype.getUris=ga.prototype.ya;var va=0,ya=1;function _a(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null}function ba(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Sa(e,t){return!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t>=e.start(0)}function Ea(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,o=(e=c(Aa(e))).next();!o.done;o=e.next()){var i=o.value;o=i.start,(i=i.end)>t&&(n+=i-Math.max(o,t))}return n}function Aa(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function Ta(){}function Pa(e,t){var n=(127&e[t])<<21;return n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]}function Oa(e){var t={key:e.type,description:"",data:""};if("TXXX"===e.type){if(2>e.size||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var o=St(ke(e.data,1,n));return e=St(ke(e.data,2+n)).replace(/\0*$/,""),t.description=o,t.data=e,t}return"WXXX"===e.type?2>e.size||3!==e.data[0]||-1===(n=e.data.subarray(1).indexOf(0))?null:(o=St(ke(e.data,1,n)),e=St(ke(e.data,2+n)).replace(/\0*$/,""),t.description=o,t.data=e,t):"PRIV"===e.type?2>e.size||-1===(o=e.data.indexOf(0))?null:(o=St(ke(e.data,0,o)),e=Ce(e.data.subarray(o.length+1)),t.description=o,t.data=e,t):"T"===e.type[0]?2>e.size||3!==e.data[0]?null:(e=St(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):"W"===e.type[0]?(e=St(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=Ce(e.data),t):null}function Ca(e){for(var t=0,n=[];t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9];){var o=Pa(e,t+6);for(e[t+5]>>6&1&&(t+=10),o=(t+=10)+o;t+10<o;){var i=e.subarray(t),r=Pa(i,4);(r=Oa(i={type:String.fromCharCode(i[0],i[1],i[2],i[3]),size:r,data:i.subarray(10,10+r)}))&&n.push(r),t+=i.size+10}t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]&&(t+=10)}return n}function ka(){this.o=null,this.s=!1,this.l=this.m=null,this.B=[],this.g=this.h=null,this.u=[],this.j=null,this.i=[]}function Ra(e){if(1!=(e[0]<<16|e[1]<<8|e[2]))return null;var t={data:new Uint8Array(0),vh:6+(e[4]<<8|e[5]),pts:null,dts:null},n=e[7];return 192&n&&(t.pts=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,t.dts=t.pts,64&n&&(t.dts=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)),t.data=e.subarray(9+e[8]),t}function La(e){for(var t=Math.min(1e3,e.length-564),n=0;n<t;){if(71===e[n]&&71===e[n+188]&&71===e[n+376])return n;n++}return-1}function Ia(e,t,n){this.g=null,this.i=-1,this.j=e,this.h=t,this.l=n,"undefined"==typeof libDPIModule&&Y("Could not Find LCEVC Library dependencies on this page"),"undefined"==typeof LcevcDil?Y("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Y(LcevcDil.SupportObject.SupportError),"undefined"!=typeof LcevcDil&&"undefined"!=typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&(this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}function Na(e,t){var n=wa;switch(t.mimeType){case"video/webm":n=Da;break;case"video/mp4":n=Ma}e.g&&(e.i=t.id,e.g.setLevelSwitching(t.id,!0),e.g.setContainerFormat(n))}ga.Status={Hg:va,oh:ya,Vg:2},V("shaka.util.Id3Utils",Ta),Ta.getID3Frames=Ca,ka.prototype.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,La(e)),n=e.length-(e.length+t)%188,o=!1,i=t;i<n;i+=188)if(71===e[i]){var r=!!(64&e[i+1]),a=((31&e[i+1])<<8)+e[i+2];if(1<(48&e[i+3])>>4){var s=i+5+e[i+4];if(s===i+188)continue}else s=i+4;switch(a){case 0:r&&(s+=e[s]+1),this.o=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.o:r&&(s+=e[s]+1),a={audio:-1,video:-1,Ed:-1,audioCodec:"",videoCodec:""};var l=s+3+((15&(r=e)[s+1])<<8|r[s+2])-4;for(s+=12+((15&r[s+10])<<8|r[s+11]);s<l;){var c=(31&r[s+1])<<8|r[s+2];switch(r[s]){case 15:-1===a.audio&&(a.audio=c,a.audioCodec="aac");break;case 21:-1===a.Ed&&(a.Ed=c);break;case 27:-1===a.video&&(a.video=c,a.videoCodec="avc");break;case 3:case 4:-1===a.audio&&(a.audio=c,a.audioCodec="mp3");break;case 36:-1===a.video&&(a.video=c,a.videoCodec="hvc")}s+=5+((15&r[s+3])<<8|r[s+4])}r=a,null==this.l&&(this.l=r.video),null==this.g&&(this.g=r.audio),null==this.j&&(this.j=r.Ed),o&&!this.s&&(o=!1,i=t-188),this.s=!0;break;case this.l:r=e.subarray(s,i+188),null==this.m&&(s=Ra(r))&&null!=s.pts&&(this.m=s.pts/9e4),this.B.push(r);break;case this.g:r=e.subarray(s,i+188),null==this.h&&(s=Ra(r))&&null!=s.pts&&(this.h=s.pts/9e4),this.u.push(r);break;case this.j:this.i.push(e.subarray(s,i+188));break;default:o=!0}}return this},ka.prototype.getStartTime=function(){return{audio:this.h,video:this.m}},V("shaka.util.TsParser",ka),Ia.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},V("shaka.lcevc.Dil",Ia),Ia.prototype.release=Ia.prototype.release;var wa=0,Da=1,Ma=2;function xa(e,t,n,o){var i=this;this.j=e,this.F=null,this.m=t,this.h={},this.L={},this.O={},this.g=null,this.H=!1,this.V=n||function(){},this.D=o||null,this.i={},this.u=new Fo,this.o={},this.s=null,this.J=new ot,this.l=function(e,t){var n=new MediaSource;return e.u.ma(n,"sourceopen",(function(){URL.revokeObjectURL(e.M),t.resolve()})),e.M=$a(n),e.j.src=e.M,n}(this,this.J),this.G=new Mo((function(){return function(e){var t,n,o,i,r,a,s;return N((function(l){if(1==l.g){for(n in t=[],e.i)for(o=e.i[n],i=o[0],e.i[n]=o.slice(0,1),i&&t.push(i.p.catch(ze)),r=c(o.slice(1)),a=r.next();!a.done;a=r.next())a.value.p.reject(new Ie(2,7,7003,void 0));for(s in e.g&&t.push(e.g.destroy()),e.m&&t.push(e.m.destroy()),e.o)t.push(e.o[s].destroy());return b(l,Promise.all(t),2)}e.u&&(e.u.release(),e.u=null),e.j&&(e.j.removeAttribute("src"),e.j.load(),e.j=null),e.F=null,e.l=null,e.g=null,e.m=null,e.h={},e.o={},e.s=null,e.i={},e.D=null,S(l)}))}(i)})),this.M="",this.B=!1,this.W=new ot}function Fa(e,t,n){e.g||(e.g=new zt(e.m));var o=e.g;e=e.H,"application/cea-608"!=t&&"application/cea-708"!=t&&(o.j=(0,$t[t])(),o.j.setSequenceMode?o.j.setSequenceMode(n):Y('Text parsers should have a "setSequenceMode" method!'),o.u=e)}function Ua(e){return!e.l||"ended"==e.l.readyState}function Ba(e,t){return t==et?e.g.g:_a(Ga(e,t))}function Va(e,t){return t==et?e.g.h:ba(Ga(e,t))}function Ga(e,t){try{return e.h[t].buffered}catch(e){return null}}function Ja(e,t,n,o,i,r,a){var s,l,u,d,p,f,h,m,g,v,y,_,E,A,T,P,O,C,k,R,L,I;return r=void 0!==r&&r,a=void 0!==a&&a,N((function(w){switch(w.g){case 1:if(t!=(s=tt).X){w.A(2);break}if(!e.B){w.A(3);break}return b(w,e.W,4);case 4:l=w.h,e.g.s=l;case 3:return b(w,function(e,t,n,o){var i,r,a,s;return N((function(l){return 1==l.g?b(l,Promise.resolve(),2):e.j&&e.i?null==n||null==o?(e.j.parseInit(ke(t)),l.return()):(i=e.u?n:e.s,r={periodStart:e.s,segmentStart:n,segmentEnd:o,vttOffset:i},a=e.j.parseMedia(ke(t),r),s=a.filter((function(t){return t.startTime>=e.l&&t.startTime<e.m})),e.i.append(s),null==e.g&&(e.g=Math.max(n,e.l)),e.h=Math.min(o,e.m),void S(l)):l.return()}))}(e.g,n,o?o.startTime:null,o?o.endTime:null),5);case 5:return w.return();case 2:if(u=ke(n),d=e.L[t],e.o[t]&&(d=e.o[t].o),0>La(u)?ts.includes(d)&&((m=Ca(u)).length&&o&&(g={cueTime:o.startTime,data:u,frames:m,dts:o.startTime,pts:o.startTime},e.V([g],0,o.endTime))):(p=(new ka).parse(u),f=o.startTime-(p.getStartTime()[t]||0),h=function(e){for(var t=[],n=new Uint8Array(0),o=e.i.length-1;0<=o;o--){var i=Ra(n=wt(e.i[o],n));i&&(t.unshift({cueTime:i.pts?i.pts/9e4:null,data:i.data,frames:Ca(i.data),dts:i.dts,pts:i.pts}),n=new Uint8Array(0))}return t}(p),h.length&&e.V(h,f,o?o.endTime:null)),!e.o[t]){i&&t==s.va&&(e.g||Fa(e,"text/vtt",e.B),e.s||(e.s=new fa(d)),o?(v=ha(e.s,n)).length&&(y=e.h[s.va].timestampOffset,Qt(e.g,v,o.startTime,o.endTime,y)):e.s.init(n)),w.A(6);break}return r&&e.o[t].g.resetCaptions(),b(w,function(e,t){return e.j=!0,e.h=new ot,e.l=[],e.i=[],t=ke(t),e.g.push(t),e.g.flush(),e.j&&e.h.reject(new Ie(2,3,3018)),e.h}(e.o[t],n),7);case 7:_=w.h,e.g||Fa(e,"text/vtt",e.B),_.captions&&_.captions.length&&(E=e.h[s.va].timestampOffset,A=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new ie(n.startTime,n.endTime,n.text)});return t}(_.captions),Qt(e.g,A,o?o.startTime:null,o?o.endTime:null,E)),n=_.data;case 6:if(n=function(e,t,n,o){var i=e.O[o];return null==n&&i&&(dt()||ut())&&"mp4"==e.L[o].split(";")[0].split("/")[1]&&(t=function(e){function t(){i=!0}function n(e){r.push(e),zo(e)}e=ke(e);var o,i=!1,r=[],a=[];if((new Wo).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).P("stsd",(function(e){o=e,r.push(e),qo(e)})).P("encv",t).P("enca",t).P("hev1",(function(e){a.push({box:e,lb:1701733238})})).P("hvc1",(function(e){a.push({box:e,lb:1701733238})})).P("avc1",(function(e){a.push({box:e,lb:1701733238})})).P("avc3",(function(e){a.push({box:e,lb:1701733238})})).P("ac-3",(function(e){a.push({box:e,lb:1701733217})})).P("ec-3",(function(e){a.push({box:e,lb:1701733217})})).P("mp4a",(function(e){a.push({box:e,lb:1701733217})})).parse(e),i)return e;if(0==a.length||!o)throw Nt(e),new Ie(2,3,3019);a.reverse();for(var s=c(a),l=s.next();!l.done;l=s.next())l=l.value,e=er(e,o,l.box,r,l.lb);return e}(t)),t}(e,n,o?o.startTime:null,t),T=e.h[t],P=es,!e.B||T.mode==P||!o){w.A(8);break}if(O=e.l.duration,!(t==s.va||!(s.va in e.h))){w.A(9);break}return C=[T.appendWindowStart,T.appendWindowEnd],T.appendWindowStart=0,T.appendWindowEnd=1/0,k=T.timestampOffset,T.timestampOffset=0,b(w,qa(e,t,(function(){return Ha(e,t,n)})),10);case 10:return b(w,qa(e,t,(function(){return Ya(e,t)})),11);case 11:return T.timestampOffset=k,T.appendWindowStart=C[0],T.appendWindowEnd=C[1],R=_a(Ga(e,t)),L=(o.startTime||0)-(R||0),e.W.resolve(L),b(w,qa(e,t,(function(){return Ka(e,t,0,O)})),12);case 12:if(t!=s.va){w.A(9);break}return b(w,qa(e,t,(function(){e.j.currentTime-=.001,za(e,t)})),9);case 9:return T.mode=P,b(w,e.Aa(O),8);case 8:return o&&e.B&&t!=s.X&&(r||a)&&(I=o.startTime,qa(e,t,(function(){return Ya(e,t)})),qa(e,t,(function(){return Wa(e,t,I)}))),b(w,qa(e,t,(function(){Ha(e,t,n)})),16);case 16:S(w)}}))}function ja(e,t){return N((function(n){return t==tt.X?e.g?b(n,e.g.remove(0,1/0),0):n.return():b(n,qa(e,t,(function(){return Ka(e,t,0,e.l.duration)})),0)}))}function Ha(e,t,n){if("video"==t&&e.D){var o=e.D;o.g&&o.g.appendBuffer(n,"video",o.i)}e.h[t].appendBuffer(n)}function Ka(e,t,n,o){o<=n?za(e,t):e.h[t].remove(n,o)}function Ya(e,t){var n=e.h[t].appendWindowStart,o=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=o,za(e,t)}function Wa(e,t,n){0>n&&(n+=.001),e.h[t].timestampOffset=n,za(e,t)}function za(e,t){var n=e.i[t][0];n&&(n.p.resolve(),Za(e,t))}function qa(e,t,n){return xo(e.G),n={start:n,p:new ot},e.i[t].push(n),1==e.i[t].length&&Qa(e,t),n.p}function Xa(e,t){var n,o,i,r,a;return N((function(s){switch(s.g){case 1:for(i in xo(e.G),n=[],o={},e.h)o.Ub=new ot,r={start:function(e){return function(){return e.Ub.resolve()}}(o),p:o.Ub},e.i[i].push(r),n.push(o.Ub),1==e.i[i].length&&r.start(),o={Ub:o.Ub};return E(s,2),b(s,Promise.all(n),4);case 4:T(s,3);break;case 2:throw P(s);case 3:try{t()}catch(e){throw new Ie(2,3,3015,e)}finally{for(a in e.h)Za(e,a)}S(s)}}))}function Za(e,t){e.i[t].shift(),Qa(e,t)}function Qa(e,t){var n=e.i[t][0];if(n)try{n.start()}catch(o){"QuotaExceededError"==o.name?n.p.reject(new Ie(2,3,3017,t)):n.p.reject(new Ie(2,3,3015,o)),Za(e,t)}}(o=xa.prototype).destroy=function(){return this.G.destroy()},o.init=function(e,t,n){n=void 0!==n&&n;var o,i,r,a,s,l,u,d,p=this;return N((function(f){if(1==f.g)return o=tt,b(f,p.J,2);for(p.B=n,i={},r=c(e.keys()),a=r.next();!a.done;i={na:i.na},a=r.next())i.na=a.value,s=e.get(i.na),l=jt(s.mimeType,s.codecs),i.na==o.X?Fa(p,l,n):(!t&&Q(l)||!Ut(l,i.na)||(p.o[i.na]=new Ft(l),l=Vt(i.na,l)),u=l+p.F.sourceBufferExtraFeatures,d=p.l.addSourceBuffer(u),p.u.C(d,"error",function(e){return function(){p.i[e.na][0].p.reject(new Ie(2,3,3014,p.j.error?p.j.error.code:0))}}(i)),p.u.C(d,"updateend",function(e){return function(){return za(p,e.na)}}(i)),p.h[i.na]=d,p.L[i.na]=l,p.i[i.na]=[],p.O[i.na]=!!s.drmInfos.length);S(f)}))},o.configure=function(e){this.F=e},o.Na=function(){var e={total:Aa(this.j.buffered),audio:Aa(Ga(this,"audio")),video:Aa(Ga(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},o.remove=function(e,t,n){var o=this;return N((function(i){return e==tt.X?b(i,o.g.remove(t,n),0):b(i,qa(o,e,(function(){return Ka(o,e,t,n)})),0)}))},o.flush=function(e){var t=this;return N((function(n){return e==tt.X?n.return():b(n,qa(t,e,(function(){t.j.currentTime-=.001,za(t,e)})),0)}))},o.endOfStream=function(e){var t=this;return N((function(n){return b(n,Xa(t,(function(){Ua(t)||(e?t.l.endOfStream(e):t.l.endOfStream())})),0)}))},o.Aa=function(e){var t=this;return N((function(n){return b(n,Xa(t,(function(){if(e<t.l.duration)for(var n in t.h){var o={start:function(){},p:new ot};t.i[n].unshift(o)}t.l.duration=e})),0)}))},o.getDuration=function(){return this.l.duration};var $a=e.URL.createObjectURL,es="sequence",ts=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function ns(e,t,n){this.i=e,this.m=t,this.o=this.j=1/0,this.g=1,this.h=this.l=null,this.s=0,this.u=!0,this.B=0,this.D=void 0===n||n,this.F=0,this.G=!1}function os(e,t,n){this.l=n,this.j=e,this.s=rs(e),this.g=e.g.currentTime,this.m=Date.now()/1e3,this.h=!1,this.o=0,this.u=t,this.i=function(){}}function is(e){this.g=e}function rs(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=c(Aa(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function as(e,t,n,o,i){var r=this;this.o=i,this.g=e,this.s=t,this.D=n,this.i=new Fo,this.m=!1,this.B=e.readyState,this.u=0,this.h=o,this.l=!1,this.i.C(e,"waiting",(function(){return ss(r)})),this.j=new at((function(){ss(r)})).Ca(.25)}function ss(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.m)return}else e.m=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.B&&(e.B=e.g.readyState),!(t=!e.h)){var n=(t=e.h).j,o=rs(n),i=n.g.currentTime,r=Date.now()/1e3;t.g==i&&t.s==o||(t.m=r,t.g=i,t.s=o,t.h=!1),(o=(i=r-t.m)>=t.u&&o&&!t.h)&&(t.i(t.g,i),t.h=!0,t.g=n.g.currentTime,t.o++,t.l(new yo("stalldetected"))),t=!o}t&&(t=e.g.currentTime,o=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=Aa(e).findIndex((function(e,o,i){return e.start>t&&(0==o||i[o-1].end-t<=n)})))?e:null}(n=e.g.buffered,t,e.D.gapDetectionThreshold),null==o||0==o&&!e.l||((i=n.start(o))>=e.s.Oa()||.001>i-t||(0!=o&&n.end(o-1),e.g.currentTime=i,e.u++,e.o(new yo("gapjumped")))))}}}function ls(e,t,n,o){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?o():(t=cs.value().get(t),n.ma(e,t,o))}(o=ns.prototype).getDuration=function(){return this.j},o.Kf=function(){return this.g},o.Xe=function(e){this.i=e},o.Aa=function(e){this.j=e},o.Pf=function(){return this.i},o.Ve=function(e){this.s=e},o.yc=function(e){this.u=e},o.me=function(e){this.o=e},o.We=function(e){this.m=e},o.Df=function(){return this.m},o.Ib=function(e){if(0!=e.length){for(var t=e[0].startTime,n=e[0].endTime,o=(e=c(e)).next();!o.done;o=e.next())o=o.value,t=Math.min(t,o.startTime),n=Math.max(n,o.endTime),this.g=Math.max(this.g,o.endTime-o.startTime);this.Td(t),this.h=Math.max(this.h,n),null!=this.i&&this.D&&!this.G&&(this.i=(Date.now()+this.s)/1e3-this.h-this.g)}},o.Md=function(){this.G=!0},o.Td=function(e){this.l=null==this.l?e:Math.min(this.l,e)},o.Sd=function(e){this.g=Math.max(this.g,e)},o.offset=function(e){null!=this.l&&(this.l+=e),null!=this.h&&(this.h+=e)},o.U=function(){return 1/0==this.j&&!this.u},o.jb=function(){return 1/0!=this.j&&!this.u},o.Pa=function(){return Math.max(this.B,this.gb()-this.o)},o.Ze=function(e){this.B=e},o.gb=function(){return this.U()||this.jb()?Math.min(Math.max(0,(Date.now()+this.s)/1e3-this.g-this.i)+this.F,this.j):this.h?Math.min(this.h,this.j):this.j},o.kc=function(e){var t=Math.max(this.l,this.B);return 1/0==this.o?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.gb()-this.o+e,this.Oa()))},o.Db=function(){return this.kc(0)},o.Oa=function(){return Math.max(0,this.gb()-(this.U()||this.jb()?this.m:0))},o.df=function(){return!(null==this.i||null!=this.h&&this.D)},o.Ue=function(e){this.F=e},V("shaka.media.PresentationTimeline",ns),ns.prototype.setAvailabilityTimeOffset=ns.prototype.Ue,ns.prototype.usingPresentationStartTime=ns.prototype.df,ns.prototype.getSeekRangeEnd=ns.prototype.Oa,ns.prototype.getSeekRangeStart=ns.prototype.Db,ns.prototype.getSafeSeekRangeStart=ns.prototype.kc,ns.prototype.getSegmentAvailabilityEnd=ns.prototype.gb,ns.prototype.setUserSeekStart=ns.prototype.Ze,ns.prototype.getSegmentAvailabilityStart=ns.prototype.Pa,ns.prototype.isInProgress=ns.prototype.jb,ns.prototype.isLive=ns.prototype.U,ns.prototype.offset=ns.prototype.offset,ns.prototype.notifyMaxSegmentDuration=ns.prototype.Sd,ns.prototype.notifyMinSegmentStartTime=ns.prototype.Td,ns.prototype.lockStartTime=ns.prototype.Md,ns.prototype.notifySegments=ns.prototype.Ib,ns.prototype.getDelay=ns.prototype.Df,ns.prototype.setDelay=ns.prototype.We,ns.prototype.setSegmentAvailabilityDuration=ns.prototype.me,ns.prototype.setStatic=ns.prototype.yc,ns.prototype.setClockOffset=ns.prototype.Ve,ns.prototype.getPresentationStartTime=ns.prototype.Pf,ns.prototype.setDuration=ns.prototype.Aa,ns.prototype.setPresentationStartTime=ns.prototype.Xe,ns.prototype.getMaxSegmentDuration=ns.prototype.Kf,ns.prototype.getDuration=ns.prototype.getDuration,os.prototype.release=function(){this.l=this.j=null,this.i=function(){}},as.prototype.release=function(){this.i&&(this.i.release(),this.i=null),null!=this.j&&(this.j.stop(),this.j=null),this.h&&(this.h.release(),this.h=null),this.g=this.s=this.o=null},as.prototype.Wd=function(){this.l=!0,ss(this)};var cs=new it((function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])}));function us(e,t,n){var o=this;this.g=e,this.l=t,this.j=n,this.m=!1,this.h=new Fo,this.i=new ms(e),ls(this.g,HTMLMediaElement.HAVE_METADATA,this.h,(function(){fs(o,o.j)}))}function ds(e){return e.m?e.g.currentTime:e.j}function ps(e,t){0<e.g.readyState?gs(e.i,t):ls(e.g,HTMLMediaElement.HAVE_METADATA,e.h,(function(){fs(e,e.j)}))}function fs(e,t){.001>Math.abs(e.g.currentTime-t)?hs(e):(e.h.ma(e.g,"seeking",(function(){hs(e)})),gs(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function hs(e){e.m=!0,e.h.C(e.g,"seeking",(function(){return e.l()}))}function ms(e){var t=this;this.h=e,this.m=10,this.l=this.j=this.i=0,this.g=new at((function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)}))}function gs(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.m,e.h.currentTime=t,e.g.Ca(.1)}function vs(e){this.g=e,this.j=!1,this.h=null,this.i=new Fo}function ys(e,t,n,o,i,r){var a=this;this.i=e,this.g=t.presentationTimeline,this.B=t.minBufferTime||0,this.l=n,this.u=i,this.s=null,this.o=function(e,t,n){if(!t.stallEnabled)return null;var o=t.stallSkip;return t=new os(new is(e),t.stallThreshold,n),function(e,t){e.i=t}(t,(function(){o?e.currentTime+=o:(e.pause(),e.play())})),t}(e,n,r),this.j=new as(e,t.presentationTimeline,n,this.o,r),this.h=new us(e,(function(){var e=a.j;e.m=!0,e.l=!1;var t=ds(a.h);return e=bs(a,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!a.s||a.s<t-1)?(a.s=t,ps(a.h,e),e=void 0):(a.u(),e=void 0),e}),function(e,t){return null==t?t=1/0>e.g.getDuration()?e.g.Db():e.g.Oa():0>t&&(t=e.g.Oa()+t),_s(e,Ss(e,t))}(this,o)),this.m=new at((function(){if(0!=a.i.readyState&&!a.i.paused){var e=ds(a.h),t=a.g.Db(),n=a.g.Oa();3>n-t&&(t=n-3),e<t&&(e=bs(a,e),a.i.currentTime=e)}}))}function _s(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function bs(e,t){var n=Math.max(e.B,e.l.rebufferingGoal),o=e.l.safeSeekOffset,i=e.g.Db(),r=e.g.Oa(),a=e.g.getDuration();3>r-i&&(i=r-3);var s=e.g.kc(n),l=e.g.kc(o);return n=e.g.kc(n+o),t>=a?_s(e,t):t>r?r:t<i?Sa(e.i.buffered,l)?l:n:t>=s||Sa(e.i.buffered,t)?t:n}function Ss(e,t){var n=e.g.Db();return t<n?n:t>(e=e.g.Oa())?e:t}function Es(e){this.g=e,this.h=null,this.i=0,this.j=!1}function As(e,t){for(var n=(e=c(e.g)).next();!n.done;n=e.next())t(n.value)}function Ts(e,t,n){return new Es([new ga(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function Ps(e,t,n){this.i=e,this.g=t,this.h=n}function Os(){Es.call(this,[]),this.l=[]}function Cs(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Tc(),this.h=new at((function(){t.g.Me(.25*t.i)}))}function ks(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.Tc()!=t&&e.g.le(t))}catch(e){}e.h.Ca(.25),0!=e.g.Tc()&&e.g.le(0)}function Rs(e){var t=this;this.h=e,this.g=new Set,this.i=new at((function(){Ls(t,!1)})).Ca(.25)}function Ls(e,t){for(var n=c(e.g),o=n.next();!o.done;o=n.next())o.value.j(e.h.currentTime,t)}function Is(e){So.call(this),this.g=new Map,this.h=e}function Ns(e){So.call(this);var t=this;this.g=new Set,this.i=e,this.h=new at((function(){for(var e=t.i(),n=c(t.g),o=n.next();!o.done;o=n.next())(o=o.value).endTime<e.start&&(t.g.delete(o),o=new yo("regionremove",new Map([["region",o]])),t.dispatchEvent(o))})).Ca(2)}function ws(e){So.call(this);var t=this;this.i=e,this.g=new Map,this.l=[{rb:null,qb:xs,ib:function(e,n){return Ds(t,"enter",e,n)}},{rb:Ms,qb:xs,ib:function(e,n){return Ds(t,"enter",e,n)}},{rb:Fs,qb:xs,ib:function(e,n){return Ds(t,"enter",e,n)}},{rb:xs,qb:Ms,ib:function(e,n){return Ds(t,"exit",e,n)}},{rb:xs,qb:Fs,ib:function(e,n){return Ds(t,"exit",e,n)}},{rb:Ms,qb:Fs,ib:function(e,n){return Ds(t,"skip",e,n)}},{rb:Fs,qb:Ms,ib:function(e,n){return Ds(t,"skip",e,n)}}],this.h=new Fo,this.h.C(this.i,"regionremove",(function(e){t.g.delete(e.region)}))}function Ds(e,t,n,o){t=new yo(t,new Map([["region",n],["seeking",o]])),e.dispatchEvent(t)}us.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.l=function(){},this.g=null},ms.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},(o=vs.prototype).yd=function(){var e=this;ls(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){null==e.h||0==e.h?e.j=!0:(e.i.ma(e.g,"seeking",(function(){e.j=!0})),e.g.currentTime=Math.max(0,e.g.currentTime+e.h))}))},o.release=function(){this.i&&(this.i.release(),this.i=null),this.g=null},o.zd=function(e){this.h=this.j?this.h:e},o.Ic=function(){return(this.j?this.g.currentTime:this.h)||0},o.ue=function(){return 0},o.te=function(){return 0},o.Ne=function(){},(o=ys.prototype).yd=function(){this.m.Ca(.25)},o.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.u=function(){}},o.zd=function(e){ps(this.h,e)},o.Ic=function(){var e=ds(this.h);return 0<this.i.readyState&&!this.i.paused?Ss(this,e):e},o.ue=function(){return this.o?this.o.o:0},o.te=function(){return this.j.u},o.Ne=function(){this.j.Wd()},(o=Es.prototype).release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)},o.cg=function(){this.j=!0},o.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var o=this.g[n],i=n<t?this.g[n+1].startTime:o.endTime;if(e>=o.startTime&&e<i)return n+this.i}return this.g.length&&e<this.g[0].startTime?this.i:null},o.get=function(e){return 0==this.g.length||0>(e-=this.i)||e>=this.g.length?null:this.g[e]},o.offset=function(e){if(!this.j)for(var t=c(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},o.pc=function(e){if(!this.j&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter((function(e){return Math.round(1e3*e.startTime)/1e3<t})),this.g.push.apply(this.g,u(e))}},o.Hb=function(e,t){var n=this;e=e.filter((function(e){return e.endTime>t&&(0==n.g.length||e.endTime>n.g[0].startTime)})),this.pc(e),this.eb(t)},o.eb=function(e){if(!this.j){var t=this.g.length;this.g=this.g.filter((function(t){return t.endTime>e})),this.i+=t-this.g.length}},o.Wa=function(e,t,n){if(n=void 0!==n&&n,!this.j){for(;this.g.length&&this.g[this.g.length-1].startTime>=t;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=e;)this.g.shift(),n||this.i++;0!=this.g.length&&(e=this.g[this.g.length-1],this.g[this.g.length-1]=new ga(e.startTime,t,e.u,e.Ba,e.ka,e.h,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.i,e.tilesLayout,e.s,e.g,e.status,e.l))}},o.fd=function(e,t){var n=this;this.j||(this.h&&this.h.stop(),this.h=new at((function(){var e=t();e?n.g.push.apply(n.g,u(e)):(n.h.stop(),n.h=null)})),this.h.Ca(e))},Es.prototype[Symbol.iterator]=function(){return this.Cb(0)},Es.prototype.Cb=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),o=-1;if(n&&0<n.i.length)for(var i=n.i.length-1;0<=i;--i){var r=n.i[i];if(e>=r.startTime&&e<r.endTime){t++,o=i-1;break}}return new Ps(this,t,o)},V("shaka.media.SegmentIndex",Es),Es.forSingleSegment=Ts,Es.prototype.getIteratorForTime=Es.prototype.Cb,Es.prototype.updateEvery=Es.prototype.fd,Es.prototype.fit=Es.prototype.Wa,Es.prototype.evict=Es.prototype.eb,Es.prototype.mergeAndEvict=Es.prototype.Hb,Es.prototype.offset=Es.prototype.offset,Es.prototype.get=Es.prototype.get,Es.prototype.find=Es.prototype.find,Es.prototype.markImmutable=Es.prototype.cg,Es.prototype.release=Es.prototype.release,Ps.prototype.vf=function(){return this.g},Ps.prototype.current=function(){var e=this.i.get(this.g);return e&&0<e.i.length&&e.ya().length&&this.h>=e.i.length&&(this.g++,this.h=0,e=this.i.get(this.g)),e&&0<e.i.length?e.i[this.h]:e},Ps.prototype.next=function(){var e=this.i.get(this.g);return e&&0<e.i.length?(this.h++,e.ya().length&&this.h==e.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0),{value:e=this.current(),done:!e}},V("shaka.media.SegmentIterator",Ps),Ps.prototype.next=Ps.prototype.next,Ps.prototype.current=Ps.prototype.current,Ps.prototype.currentPosition=Ps.prototype.vf,g(Os,Es),(o=Os.prototype).clone=function(){var e=new Os;return e.l=this.l.slice(),e},o.release=function(){for(var e=c(this.l),t=e.next();!t.done;t=e.next())t.value.release();this.l=[]},o.find=function(e){for(var t=0,n=c(this.l),o=n.next();!o.done;o=n.next()){var i=(o=o.value).find(e);if(null!=i)return i+t;t+=o.i+o.g.length}return null},o.get=function(e){for(var t=0,n=c(this.l),o=n.next();!o.done;o=n.next()){var i=(o=o.value).get(e-t);if(i)return i;t+=o.i+o.g.length}return null},o.offset=function(){},o.pc=function(){},o.eb=function(){},o.Hb=function(){},o.Wa=function(){},o.fd=function(){},V("shaka.media.MetaSegmentIndex",Os),Os.prototype.updateEvery=Os.prototype.fd,Os.prototype.fit=Os.prototype.Wa,Os.prototype.mergeAndEvict=Os.prototype.Hb,Os.prototype.evict=Os.prototype.eb,Os.prototype.merge=Os.prototype.pc,Os.prototype.offset=Os.prototype.offset,Os.prototype.get=Os.prototype.get,Os.prototype.find=Os.prototype.find,Os.prototype.release=Os.prototype.release,Cs.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Cs.prototype.set=function(e){this.i=e,ks(this)},Cs.prototype.Pc=function(){return this.g.Pc()},Rs.prototype.release=function(){this.i.stop();for(var e=c(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},g(Is,So),Is.prototype.release=function(){this.g.clear(),So.prototype.release.call(this)},Is.prototype.j=function(e){for(var t=c(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var o=(n=n.value).rc,i=o.length-1;0<=i;i--){var r=o[i];if(r.position<=e){o=r.Od;break e}}o=null}if((i=o)&&(i=!((i=n.Ae)===o||i&&o&&i.bandwidth==o.bandwidth&&i.audioSamplingRate==o.audioSamplingRate&&i.codecs==o.codecs&&i.contentType==o.contentType&&i.frameRate==o.frameRate&&i.height==o.height&&i.mimeType==o.mimeType&&i.channelsCount==o.channelsCount&&i.pixelAspectRatio==o.pixelAspectRatio&&i.width==o.width)),i)e:{if(i=e,r=o.contentType,(r=this.h()[r])&&0<r.length){var a=r[r.length-1].end;if(i>=r[0].start&&i<a){i=!0;break e}}i=!1}i&&(n.Ae=o,JSON.stringify(o),n=new yo("qualitychange",new Map([["quality",o],["position",e]])),this.dispatchEvent(n))}},g(Ns,So),Ns.prototype.release=function(){this.g.clear(),this.h.stop(),So.prototype.release.call(this)},g(ws,So),ws.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,So.prototype.release.call(this)},ws.prototype.j=function(e,t){for(var n=c(this.i.g),o=n.next();!o.done;o=n.next()){o=o.value;var i=this.g.get(o),r=e<o.startTime?Ms:e>o.endTime?Fs:xs;this.g.set(o,r);for(var a=c(this.l),s=a.next();!s.done;s=a.next())(s=s.value).rb==i&&s.qb==r&&s.ib(o,t)}};var Ms=1,xs=2,Fs=3;function Us(e,t,n,o,i){return e=ko(e,o,i),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Bs(e,t){var n=this;this.g=t,this.m=e,this.i=null,this.u=1,this.o=this.l=null,this.D=!1,this.j=new Map,this.B=!1,this.F=null,this.s=!1,this.h=new Mo((function(){return function(e){var t,n,o,i;return N((function(r){if(1==r.g){for(t=[],n=c(e.j.values()),o=n.next();!o.done;o=n.next())Qs(i=o.value),t.push($s(i));return b(r,Promise.all(t),2)}e.j.clear(),e.g=null,e.m=null,e.i=null,S(r)}))}(n)}))}function Vs(e,t){var n=e.j.get("video");if(n){var o=n.stream;o&&(t?(t=o.trickModeVideo)&&!n.ob&&(js(e,t,!1,0,!1),n.ob=o):(o=n.ob)&&(n.ob=null,js(e,o,!0,0,!1)))}}function Gs(e,t,n,o,i,r){n=void 0!==n&&n,o=void 0===o?0:o,i=void 0!==i&&i,r=void 0!==r&&r,e.l=t,e.B&&(t.video&&js(e,t.video,n,o,i,r),t.audio&&js(e,t.audio,n,o,i,r))}function Js(e,t){e.o=t,e.B&&js(e,t,!0,0,!1)}function js(e,t,n,o,i,r){var a=e.j.get(t.type);a||t.type!=et?a&&(a.ob&&(t.trickModeVideo?(a.ob=t,t=t.trickModeVideo):a.ob=null),a.stream!=t||i)&&(t.type==et&&Fa(e.g.R,jt(t.mimeType,t.codecs),e.m.sequenceMode),a.stream.closeSegmentIndex&&a.stream.closeSegmentIndex(),a.stream=t,a.aa=null,a.ve=!!r,n&&(a.ac?a.hd=!0:a.ra?(a.bb=!0,a.Nc=o,a.hd=!0):(Qs(a),Xs(e,a,!0,o).catch((function(t){e.g&&e.g.onError(t)})))),function(e,t){var n,o;return N((function(i){if(1==i.g)return t.ta?(n=t.stream,o=t.ta,n.segmentIndex?i.A(2):b(i,n.createSegmentIndex(),2)):i.return();if(t.ta!=o||t.stream!=n)return i.return();var r=e.g.Sc(),a=Va(e.g.R,t.type),s=t.stream.segmentIndex.find(t.pa?t.pa.endTime:r),l=null==s?null:t.stream.segmentIndex.get(s);s=l&&l.ka?l.ka-l.Ba:null,l&&!s&&(s=(l.endTime-l.getStartTime())*(t.stream.bandwidth||0)/8),s?((l=l.h)&&(s+=(l.ka?l.ka-l.Ba:null)||0),r=8*s/(l=e.g.getBandwidthEstimate())<(a||0)-r-Math.max(e.m.minBufferTime||0,e.i.rebufferingGoal)||t.ta.h.g>s):r=!1,r&&t.ta.abort(),S(i)}))}(e,a).catch((function(t){e.g&&e.g.onError(t)}))):function(e,t){var n,o,i,r;N((function(a){switch(a.g){case 1:return n=tt,E(a,2),b(a,ja(e.g.R,n.X),4);case 4:T(a,3);break;case 2:o=P(a),e.g&&e.g.onError(o);case 3:i=jt(t.mimeType,t.codecs),Fa(e.g.R,i,e.m.sequenceMode),(e.g.R.m.isTextVisible()||e.i.alwaysStreamText)&&(r=Ks(t),e.j.set(n.X,r),Zs(e,r,0)),S(a)}}))}(e,t)}function Hs(e,t){t.ac||t.bb||(t.ra?(t.bb=!0,t.Nc=0):null==Ba(e.g.R,t.type)?null==t.Ka&&Zs(e,t,0):(Qs(t),Xs(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function Ks(e){return{stream:e,type:e.type,aa:null,pa:null,Zc:null,Kd:null,Jd:null,Id:null,ob:null,endOfStream:!1,ra:!1,Ka:null,bb:!1,Nc:0,hd:!1,ac:!1,vc:!0,Rd:!1,be:!1,nc:!1,ta:null}}function Ys(t,n){var o,i,r,a,s;return N((function(l){switch(l.g){case 1:if(xo(t.h),n.ra||null==n.Ka||n.ac)return l.return();if(n.Ka=null,!n.bb){l.A(2);break}return b(l,Xs(t,n,n.hd,n.Nc),3);case 3:return l.return();case 2:if(n.stream.segmentIndex){l.A(4);break}return o=n.stream,b(l,n.stream.createSegmentIndex(),5);case 5:if(o!=n.stream)return o.closeSegmentIndex&&o.closeSegmentIndex(),n.ra||n.Ka||Zs(t,n,0),l.return();case 4:E(l,6),i=function(t,n){if(zs(n))return function(e,t){var n=Va(e,"video")||0;Xt(e.g,t,n)}(t.g.R,n.stream.originalId||""),null;n.type==et&&function(e){e.g&&Xt(e.g,"",0)}(t.g.R);var o=t.g.Sc(),i=n.pa?n.pa.endTime:o,r=function(e,t,n){return t==et?null==(e=e.g).h||e.h<n?0:e.h-Math.max(n,e.g):Ea(e=Ga(e,t),n)}(t.g.R,n.type,o),a=Math.max(t.m.minBufferTime||0,t.i.rebufferingGoal,t.i.bufferingGoal)*t.u,s=t.m.presentationTimeline.getDuration()-i,l=Va(t.g.R,n.type);if(1e-6>s&&l)return n.endOfStream=!0,"video"==n.type&&(t=t.j.get(et))&&zs(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,r>=a)return t.i.updateIntervalSeconds/2;if(r=function(e,t,n,o){if(t.aa)return t.aa.current();if(t.pa||o)return n=t.pa?t.pa.endTime:o,t.Rd=!0,t.aa=t.stream.segmentIndex.Cb(n),t.aa&&t.aa.next().value;e=e.i.inaccurateManifestTolerance,o=Math.max(n-e,0);var i=null;return e&&(t.aa=t.stream.segmentIndex.Cb(o),i=t.aa&&t.aa.next().value),i||(t.aa=t.stream.segmentIndex.Cb(n),i=t.aa&&t.aa.next().value),i}(t,n,o,l),!r)return t.i.updateIntervalSeconds;for(a=1/0,s=c(s=Array.from(t.j.values())),l=s.next();!l.done;l=s.next())zs(l=l.value)||l.aa&&!l.aa.current()||(a=Math.min(a,l.pa?l.pa.endTime:o));return i>=a+t.m.presentationTimeline.g?t.i.updateIntervalSeconds:(function(t,n,o,i){var r,a,s,l,c,u,d,p,f,h,m,g,v,y;return N((function(_){switch(_.g){case 1:if(r=tt,a=n.stream,s=n.aa,n.ra=!0,E(_,2),2==i.Eb())throw new Ie(1,1,1011);return b(_,function(e,t,n){var o,i,r,a,s,l,c,u;return N((function(d){return o=[],i=Math.max(0,n.appendWindowStart-.1),r=n.appendWindowEnd+.01,(a=n.timestampOffset)==t.Kd&&i==t.Jd&&r==t.Id||(s=function(){var n;return N((function(o){if(1==o.g)return E(o,2),t.Jd=i,t.Id=r,t.Kd=a,b(o,function(e,t,n,o,i,r){return N((function(a){return t==tt.X?(r||(e.g.s=n),function(e,t,n){e.l=t,e.m=n}(e.g,o,i),a.return()):b(a,Promise.all([qa(e,t,(function(){return Ya(e,t)})),r?Promise.resolve():qa(e,t,(function(){return Wa(e,t,n)})),qa(e,t,(function(){e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=i,e.h[t].appendWindowStart=o,za(e,t)}))]),0)}))}(e.g.R,t.type,a,i,r,e.m.sequenceMode),4);if(2!=o.g)return T(o,0);throw n=P(o),t.Jd=null,t.Id=null,t.Kd=null,n}))},o.push(s())),!function(e,t){return e&&t?e.lc()==t.lc()&&e.hc()==t.hc()&&oe(e.ya(),t.ya()):e==t}(n.h,t.Zc)&&(t.Zc=n.h)&&(l=qs(e,t,n.h),c=function(){var o,i,r;return N((function(a){switch(a.g){case 1:return E(a,2),b(a,l,4);case 4:return o=a.h,xo(e.h),(new Wo).box("moov",zo).box("trak",zo).box("mdia",zo).P("mdhd",(function(e){e=aa(e.reader||0,e.version||0),n.h.timescale=e.timescale})).parse(o),i=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,b(a,e.g.xe(t.type,o),5);case 5:return b(a,Ja(e.g.R,t.type,o,null,i),6);case 6:T(a,0);break;case 2:throw r=P(a),t.Zc=null,r}}))},e.g.fg(n.startTime,n.h),o.push(c())),e.m.sequenceMode&&(u=t.pa?t.pa.m:null,n.m!=u||t.Rd)&&(t.Rd=!1,o.push(function(e,t,n){return N((function(o){return t==tt.X?o.return():(qa(e,t,(function(){return Ya(e,t)})),b(o,qa(e,t,(function(){return Wa(e,t,n)})),0))}))}(e.g.R,t.type,n.startTime))),b(d,Promise.all(o),0)}))}(t,n,i),4);case 4:return xo(t.h),t.s?_.return():(l="video/mp4"==a.mimeType||"audio/mp4"==a.mimeType,c=e.ReadableStream,t.i.lowLatencyMode&&c&&l&&!i.l?(d=new Uint8Array(0),f=p=!1,h=function(e){var r,s,l;return N((function(c){return p?c.return():(f=!0,xo(t.h),t.s?c.return():(d=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(d,e),r=!1,s=0,(new Wo).box("mdat",(function(e){s=e.size+e.start,r=!0})).parse(d,!1,!0),r?(l=d.subarray(0,s),d=d.subarray(s),b(c,Ws(t,n,o,a,i,l),0)):c.A(0)))}))},b(_,qs(t,n,i,h),11)):b(_,qs(t,n,i),7));case 7:if(u=_.h,xo(t.h),t.s)return _.return();if(!i.l){_.A(8);break}return b(_,function(t,n,o){var i,r,a,s;return N((function(l){if(1==l.g)return(i=n.l).cryptoKey?l.A(2):b(l,i.fetchKey(),3);if(!(r=i.iv))for(r=ke(new ArrayBuffer(16)),a=i.firstMediaSequenceNumber+o.g,s=r.byteLength-1;0<=s;s--)r[s]=255&a,a>>=8;return l.return(e.crypto.subtle.decrypt({name:"AES-CBC",iv:r},i.cryptoKey,t))}))}(u,i,s),9);case 9:u=_.h;case 8:return xo(t.h),n.bb?(n.ra=!1,Zs(t,n,0),_.return()):b(_,Ws(t,n,o,a,i,u),6);case 11:if(m=_.h,f){_.A(6);break}return p=!0,xo(t.h),t.s?_.return():n.bb?(n.ra=!1,Zs(t,n,0),_.return()):b(_,Ws(t,n,o,a,i,m),6);case 6:if(xo(t.h),t.s)return _.return();n.pa=i,s.next(),n.ra=!1,n.be=!1,g=t.g.R.Na(),v=g[n.type],JSON.stringify(v),n.bb||t.g.Wd(i.startTime,i.endTime,n.type),Zs(t,n,0),T(_,0);break;case 2:if(y=P(_),xo(t.h,y),t.s)return _.return();if(n.ra=!1,7001==y.code)n.ra=!1,Qs(n),Zs(t,n,0),_.A(0);else if(n.type==r.X&&t.i.ignoreTextStreamFailures)t.j.delete(r.X),_.A(0);else{if(3017!=y.code)return n.nc=!0,y.severity=2,b(_,el(t,y),0);(function(e,t,n){if(!Array.from(e.j.values()).some((function(e){return e!=t&&e.be}))){var o=Math.round(100*e.u);if(20<o)e.u-=.2;else{if(!(4<o))return t.nc=!0,e.s=!0,void e.g.onError(n);e.u-=.04}t.be=!0}Zs(e,t,4)})(t,n,y),_.A(0)}}}))}(t,n,o,r).catch((function(){})),null)}(t,n),null!=i&&(Zs(t,n,i),n.nc=!1),T(l,7);break;case 6:return r=P(l),b(l,el(t,r),8);case 8:return l.return();case 7:if(a=Array.from(t.j.values()),!t.B||!a.every((function(e){return e.endOfStream}))){l.A(0);break}return b(l,t.g.R.endOfStream(),10);case 10:xo(t.h),0!=(s=t.g.R.getDuration())&&s<t.m.presentationTimeline.getDuration()&&t.m.presentationTimeline.Aa(s),S(l)}}))}function Ws(e,t,n,o,i,r){var a,s,l,c,u,d;return N((function(p){switch(p.g){case 1:return a=o.closedCaptions&&0<o.closedCaptions.size,l=null!=o.emsgSchemeIdUris&&0<o.emsgSchemeIdUris.length||e.i.dispatchAllEmsgBoxes,c=e.i.parsePrftBox&&!e.D,(l||c)&&(s=new Wo),l&&s.P("emsg",(function(t){var n=o.emsgSchemeIdUris;if(0===t.version)var r=t.reader.sc(),a=t.reader.sc(),s=t.reader.K(),l=t.reader.K(),c=t.reader.K(),u=t.reader.K(),d=i.startTime+l/s;else s=t.reader.K(),l=(d=t.reader.$a()/s+i.timestampOffset)-i.startTime,c=t.reader.K(),u=t.reader.K(),r=t.reader.sc(),a=t.reader.sc();t=t.reader.Za(t.reader.S.byteLength-t.reader.Z()),(n&&n.includes(r)||e.i.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==r?e.g.gg():"https://aomedia.org/emsg/ID3"==r?(n=Ca(t)).length&&i&&e.g.hg([{cueTime:i.startTime,data:t,frames:n,dts:i.startTime,pts:i.startTime}],0,i.endTime):(n=new yo("emsg",n=(new Map).set("detail",{startTime:d,endTime:d+c/s,schemeIdUri:r,value:a,timescale:s,presentationTimeDelta:l,eventDuration:c,id:u,messageData:t})),e.g.onEvent(n)))})),c&&s.P("prft",(function(t){e:{if(!e.D&&i.h.timescale){t.reader.K();var n=t.reader.K();if(n=1e3*n+t.reader.K()/Math.pow(2,32)*1e3,0===t.version)var o=t.reader.K();else try{o=t.reader.$a()}catch(t){e.D=!0,o=void 0;break e}t=new Date(new Date(Date.UTC(1900,0,1,0,0,0)).getTime()+n).getTime(),o=new yo("prft",o=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-o/i.h.timescale*1e3)})),e.g.onEvent(o),e.D=!0}o=void 0}return o})),(l||c)&&s.parse(r),b(p,function(e,t,n){var o,i,r;return N((function(a){if(1==a.g)return o=Math.max(e.i.bufferBehind,e.m.presentationTimeline.g),null==(i=Ba(e.g.R,t.type))||.01>=(r=n-i-o)?a.return():b(a,e.g.R.remove(t.type,i,i+r),2);xo(e.h),S(a)}))}(e,t,n),2);case 2:return xo(e.h),u=t.vc,t.vc=!1,d=t.ve,t.ve=!1,b(p,e.g.xe(t.type,r),3);case 3:return b(p,Ja(e.g.R,t.type,r,i,a,u,d),4);case 4:xo(e.h),S(p)}}))}function zs(e){return e&&e.type==et&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function qs(e,t,n,o){var i,r,a,s,l;return N((function(c){return 1==c.g?(i=No,r=Us(n.ya(),n.Ba,n.ka,e.i.retryParameters,o),a=t.stream,e.g.modifySegmentRequest(r,{type:a.type,init:n instanceof ma,duration:n.endTime-n.startTime,mimeType:a.mimeType,codecs:a.codecs,bandwidth:a.bandwidth}),s=e.g.kb.request(i,r),t.ta=s,b(c,s.promise,2)):(l=c.h,t.ta=null,c.return(l.data))}))}function Xs(e,t,n,o){var i,r;return N((function(a){return 1==a.g?(t.bb=!1,t.hd=!1,t.Nc=0,t.ac=!0,t.pa=null,t.Zc=null,t.aa=null,o?(i=e.g.Sc(),r=e.g.R.getDuration(),b(a,e.g.R.remove(t.type,i+o,r),3)):b(a,ja(e.g.R,t.type),4)):3!=a.g?(xo(e.h),n?b(a,e.g.R.flush(t.type),3):a.A(3)):(xo(e.h),t.ac=!1,t.endOfStream=!1,t.ra||t.Ka||Zs(e,t,0),void S(a))}))}function Zs(e,t,n){var o=t.type;(o!=et||e.j.has(o))&&(t.Ka=new rt((function(){var n;return N((function(o){return 1==o.g?(E(o,2),b(o,Ys(e,t),4)):2!=o.g?T(o,0):(n=P(o),e.g&&e.g.onError(n),void S(o))}))})).N(n))}function Qs(e){null!=e.Ka&&(e.Ka.stop(),e.Ka=null)}function $s(e){return N((function(t){return e.ta?b(t,e.ta.abort(),0):t.A(0)}))}function el(e,t){return N((function(n){if(1==n.g)return b(n,uo(e.F),2);xo(e.h),e.g.onError(t),t.handled||e.i.failureCallback(t),S(n)}))}function tl(e,t){var n=Jc(),o=this;this.j=t,this.i=e,this.l=n,this.o=null,this.m=[],this.h=this.g=null,this.u=Promise.resolve().then((function(){return function(e){return N((function(t){if(e.s.g)t=t.A(0);else{if(0==e.m.length||e.g&&!e.g.hb)var n=!1;else{e.g&&(e.g.Ia.mb(),e.g=null);var o=(n=e.m.shift()).create(e.l);o?(n.Ia.Jb(),e.g={node:o.node,payload:o.payload,hb:o.hb,Ia:n.Ia}):n.Ia.dd(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return N((function(o){switch(o.g){case 1:return e.i=e.j.Mf(e.i,e.l,e.g.node,e.g.payload),E(o,2),e.h=e.j.yf(e.i,e.l,e.g.payload),b(o,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.Ia.bd(),e.g=null),T(o,0);break;case 2:return 7001==(t=P(o)).code?e.g.Ia.mb():e.g.Ia.onError(t),e.g=null,e.h=null,n=e,b(o,e.j.handleError(e.l,t),5);case 5:n.i=o.h,S(o)}}))}(e):(e.j.eg(e.i),e.o=new ot,n=e.o),t=b(t,n,1)}return t}))}(o)})),this.s=new Mo((function(){return function(e){var t,n;return N((function(o){if(1==o.g)return e.h&&e.h.abort(),ol(e),b(o,e.u,2);for(e.g&&e.g.Ia.mb(),t=c(e.m),n=t.next();!n.done;n=t.next())n.value.Ia.mb();e.g=null,e.m=[],e.j=null,S(o)}))}(o)}))}function nl(e,t){var n={Jb:function(){},bd:function(){},mb:function(){},onError:function(){},dd:function(){},uh:function(){}};return e.m.push({create:t,Ia:n}),e.h&&e.h.abort(),ol(e),n}function ol(e){e.o&&(e.o.resolve(),e.o=null)}function il(e){var t=[],n=700<=e.fontWeight,o="italic"==e.fontStyle,i=e.textDecoration.includes("underline");return n&&t.push("b"),o&&t.push("i"),i&&t.push("u"),n=t.reduce((function(e,t){return e+"<"+t+">"}),""),t=t.reduceRight((function(e,t){return e+"</"+t+">"}),""),e.lineBreak?"\n":e.nestedCues.length?e.nestedCues.map(il).join(""):n+e.payload+t}function rl(e,t){for(var n=(e=c(e)).next();!n.done;n=e.next())if((n=n.value).isContainer)rl(n.nestedCues,t);else{var o=n.clone();o.nestedCues=[],o.payload=il(n),t.push(o)}return t}function al(e){this.g=null;for(var t=c(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function sl(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function ll(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var o=c(Array.from(e.cues)),i=o.next();!i.done;i=o.next())(i=i.value)&&t(i)&&e.removeCue(i);e.mode=n}function cl(){}function ul(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function dl(t,n){var o=this;this.j=!1,this.i=[],this.B=t,this.m=n,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.m.appendChild(this.g),this.u=new at((function(){hl(o)})).Ca(.25),this.h=new Map,this.s=new Fo,this.s.C(document,"fullscreenchange",(function(){hl(o,!0)})),this.l=null,"ResizeObserver"in e&&(this.l=new ResizeObserver((function(){hl(o,!0)})),this.l.observe(this.g)),this.o=new Map}function pl(e,t){for(;null!=t;){if(t==e.g)return!0;t=t.parentElement}return!1}function fl(e,t,n,o,i){for(var r=!1,a=[],s=[],l=(t=c(t)).next();!l.done;l=t.next()){l=l.value,i.push(l);var u=e.h.get(l),d=l.startTime<=o&&l.endTime>o,p=u?u.ef:null;u&&(a.push(u.Bd),u.tc&&a.push(u.tc),d||(r=!0,e.h.delete(l),u=null)),d&&(s.push(l),u?pl(e,p)||(r=!0):(ml(e,l,i),p=(u=e.h.get(l)).ef,r=!0)),0<l.nestedCues.length&&p&&fl(e,l.nestedCues,p,o,i),i.pop()}if(r){for(i=(o=c(a)).next();!i.done;i=o.next())(i=i.value).parentElement&&i.parentElement.removeChild(i);for(s.sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})),l=(s=c(s)).next();!l.done;l=s.next())(o=e.h.get(l.value)).tc?(n.appendChild(o.tc),o.tc.appendChild(o.Bd)):n.appendChild(o.Bd)}}function hl(e,t){if(e.g){var n=e.B.currentTime;if(!e.j||void 0!==t&&t){for(var o=(t=c(e.o.values())).next();!o.done;o=t.next())ul(o.value);ul(e.g),e.h.clear(),e.o.clear()}if(e.j){t=new Map;for(var i=(o=c(e.h.keys())).next();!i.done;i=o.next())i=i.value,t.set(i,e.h.get(i));fl(e,e.i,e.g,n,[])}}}function ml(e,t,n){var o=1<n.length,i=o?"span":"div";t.lineBreak&&(i="br"),o=!o&&0<t.nestedCues.length;var r=document.createElement(i);if("br"!=i&&function(e,t,n,o,i){var r=t.style,a=0==n.nestedCues.length,s=1<o.length;r.whiteSpace="pre-wrap";var l=n.payload.replace(/\s+$/g,(function(e){return" ".repeat(e.length)}));if(r.webkitTextStrokeColor=n.textStrokeColor,r.webkitTextStrokeWidth=n.textStrokeWidth,r.color=n.color,r.direction=n.direction,r.opacity=n.opacity,r.paddingLeft=gl(n.linePadding,n,e.m),r.paddingRight=gl(n.linePadding,n,e.m),r.textShadow=n.textShadow,n.backgroundImage)r.backgroundImage="url('"+n.backgroundImage+"')",r.backgroundRepeat="no-repeat",r.backgroundSize="contain",r.backgroundPosition="center",r.width="100%",r.height="100%";else{if(n.nestedCues.length)var c=t;else c=document.createElement("span"),t.appendChild(c);n.border&&(c.style.border=n.border),i||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var o=t(e[n]);if(o||0===o)return o}return null}(o,(function(e){return e.backgroundColor})))?c.style.backgroundColor=t:l&&(c.style.backgroundColor="rgba(0, 0, 0, 0.8)")),l&&(c.textContent=l)}s&&!o[o.length-1].isContainer?r.display="inline":(r.display="flex",r.flexDirection="column",r.alignItems="center",r.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),a||(r.margin="0"),r.fontFamily=n.fontFamily,r.fontWeight=n.fontWeight.toString(),r.fontStyle=n.fontStyle,r.letterSpacing=n.letterSpacing,r.fontSize=gl(n.fontSize,n,e.m),null!=n.line&&1==n.lineInterpretation&&(r.position="absolute",n.writingMode==pe?(r.width="100%",n.lineAlign==he?r.top=n.line+"%":"end"==n.lineAlign&&(r.bottom=100-n.line+"%")):"vertical-lr"==n.writingMode?(r.height="100%",n.lineAlign==he?r.left=n.line+"%":"end"==n.lineAlign&&(r.right=100-n.line+"%")):(r.height="100%",n.lineAlign==he?r.right=n.line+"%":"end"==n.lineAlign&&(r.left=100-n.line+"%"))),r.lineHeight=n.lineHeight,null!=n.position&&(n.writingMode==pe?r.paddingLeft=n.position:r.paddingTop=n.position),"line-left"==n.positionAlign?r.cssFloat="left":"line-right"==n.positionAlign&&(r.cssFloat="right"),r.textAlign=n.textAlign,r.textDecoration=n.textDecoration.join(" "),r.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&r.writingMode==n.writingMode||(r.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==pe?r.width=n.size+"%":r.height=n.size+"%")}(e,r,t,n,o),n=null,t.region&&t.region.id)if(i=(n=t.region).id+"_"+n.width+"x"+n.height+(n.heightUnits==Ee?"%":"px")+"-"+n.viewportAnchorX+"x"+n.viewportAnchorY+(n.viewportAnchorUnits==Ee?"%":"px"),e.o.has(i))n=e.o.get(i);else{var a=document.createElement("span"),s=n.heightUnits==Ee?"%":"px",l=n.widthUnits==Ee?"%":"px",c=n.viewportAnchorUnits==Ee?"%":"px";a.id="shaka-text-region---"+i,a.classList.add("shaka-text-region"),a.style.height=n.height+s,a.style.width=n.width+l,a.style.position="absolute",a.style.top=n.viewportAnchorY+c,a.style.left=n.viewportAnchorX+c,a.style.display="flex",a.style.flexDirection="column",a.style.alignItems="center",a.style.justifyContent="before"==t.displayAlign?"flex-start":"center"==t.displayAlign?"center":"flex-end",e.o.set(i,a),n=a}i=r,o&&((i=document.createElement("span")).classList.add("shaka-text-wrapper"),i.style.backgroundColor=t.backgroundColor,i.style.lineHeight="normal",r.appendChild(i)),e.h.set(t,{Bd:r,ef:i,tc:n})}function gl(e,t,n){var o=(o=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(o[1]),unit:o[2]}:null;if(!o)return e;var i=o.value;switch(o.unit){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return e}}function vl(e,t){this.h=e,this.g=t,this.j="",this.o=void 0,this.i=!1,this.m=!0,this.l=!1}function yl(e,t,n){try{if(e.g.enabled){var o={d:1e3*n.duration,st:e.h.U()?Il:Ll};o.ot=function(e){var t=e.type;if(e.init)return Cl;if("video"==t)return e.codecs.includes(",")?Ol:Pl;if("audio"==t)return Tl;if("text"==t)return"application/mp4"===e.mimeType?Rl:kl}(n);var i=o.ot===Pl||o.ot===Tl||o.ot===Ol||o.ot===Rl;i&&(o.bl=function(e,t){if(t=e.h.Na()[t],!t.length)return NaN;var n=e.h.getCurrentTime();return(e=t.find((function(e){return e.start<=n&&e.end>=n})))?1e3*(e.end-n):NaN}(e,n.type)),n.bandwidth&&(o.br=n.bandwidth/1e3),i&&o.ot!==Rl&&(o.tb=function(e,t){var n=e.h.Xa();if(!n.length)return NaN;e=n[0];for(var o=(n=c(n)).next();!o.done;o=n.next())"variant"===(o=o.value).type&&o.bandwidth>e.bandwidth&&(e=o);switch(t){case Pl:return e.videoBandwidth||NaN;case Tl:return e.audioBandwidth||NaN;default:return e.bandwidth}}(e,o.ot)/1e3),bl(e,t,o)}}catch(e){W("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}}function _l(t){return t.j||(t.j=t.g.sessionId||e.crypto.randomUUID()),{v:1,sf:t.o,sid:t.j,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function bl(e,t,n){n=void 0===n?{}:n;var o=void 0===o?e.g.useHeaders:o;if(e.g.enabled){Object.assign(n,_l(e)),n.pr=e.h.Rc();var i=n.ot===Pl||n.ot===Ol;if(e.l&&i&&(n.bs=!0,n.su=!0,e.l=!1),null==n.su&&(n.su=e.m),o)e=function(e){for(var t=Object.keys(e),n={},o=["Object","Request","Session","Status"],i=[{},{},{},{}],r={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},a=(t=c(t)).next();!a.done;a=t.next())a=a.value,i[null!=r[a]?r[a]:1][a]=e[a];for(e=0;e<i.length;e++)(r=Sl(i[e]))&&(n["CMCD-"+o[e]]=r);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var r=Sl(n);r&&(t.uris=t.uris.map((function(e){return El(e,r)})))}}}function Sl(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}for(var o,i=[],r={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},a=Object.keys(e||{}).sort(),s=(a=c(a)).next();!s.done;s=a.next()){var l=e[s=s.value];if(!(o=l,Number.isNaN(o)||null==o||""===o||!1===o||"v"===s&&1===l||"pr"==s&&1===l)){var u=r[s];u&&(l=u(l));var d;d="string"===(u=typeof l)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(l):"boolean"===u?s:"symbol"===u?s+"="+l.description:s+"="+l,i.push(d)}}return i.join(",")}function El(e,t){return!t||e.includes("offline:")?e:((e=new we(e)).g.set("CMCD",t),e.toString())}(o=Bs.prototype).destroy=function(){return this.h.destroy()},o.configure=function(e){this.i=e,this.F=new co({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)},o.start=function(){var e=this;return N((function(t){if(1==t.g)return b(t,function(e){var t,n,o,i,r,a,s,l,u,d;return N((function(p){if(1==p.g){if(t=tt,!e.l)throw new Ie(2,5,5006);return n=new Map,o=new Set,e.l.audio&&(n.set(t.Hc,e.l.audio),o.add(e.l.audio)),e.l.video&&(n.set(t.va,e.l.video),o.add(e.l.video)),e.o&&(n.set(t.X,e.o),o.add(e.o)),i=e.g.R,r=e.i.forceTransmux,b(p,i.init(n,r,e.m.sequenceMode),2)}for(xo(e.h),e.updateDuration(),a=c(n.keys()),s=a.next();!s.done;s=a.next())l=s.value,u=n.get(l),e.j.has(l)||(d=Ks(u),e.j.set(l,d),Zs(e,d,0));S(p)}))}(e),2);xo(e.h),e.B=!0,S(t)}))},o.vc=function(){if(this.g)for(var e=this.g.Sc(),t=c(this.j.keys()),n=t.next();!n.done;n=t.next()){var o=n.value;(n=this.j.get(o)).aa=null;var i=this.g.R;if(o==et?i=null!=(i=i.g).g&&null!=i.h&&(e>=i.g&&e<i.h):i=Sa(i=Ga(i,o),e),!i){if((null!=Va(this.g.R,o)||n.ra)&&Hs(this,n),n.ta&&(n.ta.abort(),n.ta=null),o===et&&(o=this.g.R).s)for((o=o.s.g).l=0,o.h=[],o.g=[],(i=o.i).i=[],i.h=[],i.g=0,$r(o),i=(o=c(o.j.values())).next();!i.done;i=o.next())zr(i.value);n.vc=!0}}},o.updateDuration=function(){var e=this.m.presentationTimeline.getDuration();1/0>e?this.g.R.Aa(e):this.g.R.Aa(Math.pow(2,32))},tl.prototype.destroy=function(){return this.s.destroy()},(o=al.prototype).remove=function(e,t){return!!this.g&&(ll(this.g,(function(n){return n.startTime<t&&n.endTime>e})),!0)},o.append=function(e){var t=rl(e,[]),n=[];e=this.g.cues?Array.from(this.g.cues):[];for(var o={},i=(t=c(t)).next();!i.done;o={sb:o.sb},i=t.next())o.sb=i.value,e.some(function(e){return function(t){return t.startTime==e.sb.startTime&&t.endTime==e.sb.endTime&&t.text==e.sb.payload}}(o))||(i=sl(o.sb))&&n.push(i);for(o=(e=c(e=n.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)})))).next();!o.done;o=e.next())this.g.addCue(o.value)},o.destroy=function(){return this.g&&(ll(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},o.isTextVisible=function(){return"showing"==this.g.mode},o.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},V("shaka.text.SimpleTextDisplayer",al),al.prototype.setTextVisibility=al.prototype.setTextVisibility,al.prototype.isTextVisible=al.prototype.isTextVisible,al.prototype.destroy=al.prototype.destroy,al.prototype.append=al.prototype.append,al.prototype.remove=al.prototype.remove,V("shaka.util.Dom",cl),cl.removeAllChildren=ul,(o=dl.prototype).append=function(e){for(var t=[].concat(u(this.i)),n={},o=(e=c(e)).next();!o.done;n={Cc:n.Cc},o=e.next())n.Cc=o.value,t.some(function(e){return function(t){return re(t,e.Cc)}}(n))||this.i.push(n.Cc);hl(this)},o.destroy=function(){this.m.removeChild(this.g),this.g=null,this.j=!1,this.i=[],this.u&&this.u.stop(),this.h.clear(),this.s&&(this.s.release(),this.s=null),this.l&&(this.l.disconnect(),this.l=null)},o.remove=function(e,t){if(!this.g)return!1;var n=this.i.length;return this.i=this.i.filter((function(n){return n.startTime<e||n.endTime>=t})),hl(this,n>this.i.length),!0},o.isTextVisible=function(){return this.j},o.setTextVisibility=function(e){this.j=e},V("shaka.text.UITextDisplayer",dl),dl.prototype.setTextVisibility=dl.prototype.setTextVisibility,dl.prototype.isTextVisible=dl.prototype.isTextVisible,dl.prototype.remove=dl.prototype.remove,dl.prototype.destroy=dl.prototype.destroy,dl.prototype.append=dl.prototype.append,V("shaka.text.WebVttGenerator",(function(){}));var Al="m",Tl="a",Pl="v",Ol="av",Cl="i",kl="c",Rl="tt",Ll="v",Il="l";function Nl(){}function wl(e,t,n,o,i){var r,a=i in o,s=!0;for(r in t){var l=i+"."+r,c=a?o[i]:n[r];a||r in n?void 0===t[r]?void 0===c||a?delete e[r]:e[r]=Eo(c):c.constructor==Object&&t[r]&&t[r].constructor==Object?(e[r]||(e[r]=Eo(c)),l=wl(e[r],t[r],c,o,l),s=s&&l):typeof t[r]!=typeof c||null==t[r]||"function"!=typeof t[r]&&t[r].constructor!=c.constructor?(K("Invalid config, wrong type for "+l),s=!1):("function"==typeof n[r]&&n[r].length!=t[r].length&&Y("Unexpected number of arguments for "+l),e[r]=t[r]):(K("Invalid config, unrecognized key "+l),s=!1)}return s}function Dl(e,t){for(var n={},o=n,i=0,r=0;!(0>(i=e.indexOf(".",i)));)0!=i&&"\\"==e[i-1]||(o[r=e.substring(r,i).replace(/\\\./g,".")]={},o=o[r],r=i+1),i+=1;return o[e.substring(r).replace(/\\\./g,".")]=t,n}function Ml(e,t){return e&&t}function xl(){}function Fl(e){return new we(e=At(e)).Ha}function Ul(e,t,n){function o(e){Re(r).setUint32(a,e.byteLength,!0),a+=4,r.set(ke(e),a),a+=e.byteLength}if(!n||!n.byteLength)throw new Ie(2,6,6015);var i;i="string"==typeof t?Pt(t,!0):t,e=Pt(e=At(e),!0);var r=new Uint8Array(12+e.byteLength+i.byteLength+n.byteLength),a=0;return o(e),o(i),o(n),r}function Bl(){}function Vl(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(e,t,n){return"com.apple.fps.1_0"==n.keySystem&&"skd"==t&&(t=n.serverCertificate,e=Ul(e,n=Fl(e),t)),e},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:ut()},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return Ml([e],e)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3}},o={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return Ml([e])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmux:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1};(gt("Web0S")||dt()||gt("CrKey"))&&(o.stallSkip=0);var i={trackSelectionCallback:function(e){return N((function(t){return t.return(e)}))},downloadSizeCallback:function(e){var t;return N((function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?b(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))}))},progressCallback:function(e,t){return Ml([e,t])},usePersistentLicense:!0,numberOfParallelDownloads:5},r={drm:t,manifest:n,streaming:o,mediaSource:{sourceBufferExtraFeatures:""},offline:i,abrFactory:function(){return new Hn},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1},autoShowText:3,preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1}};return i.trackSelectionCallback=function(e){return N((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),o=[],i=cn(t,n.map((function(e){return e.language})));i&&(o=n.filter((function(e){return rn(e.language)==i}))),0==o.length&&(o=n.filter((function(e){return e.primary}))),0==o.length&&(n.map((function(e){return e.language})),o=n);var r=o.filter((function(e){return e.height&&480>=e.height}));for(r.length&&(r.sort((function(e,t){return t.height-e.height})),o=r.filter((function(e){return e.height==r[0].height}))),t=[],o.length&&(n=Math.floor(o.length/2),o.sort((function(e,t){return e.bandwidth-t.bandwidth})),t.push(o[n])),e=c(e),o=e.next();!o.done;o=e.next())(o=o.value).type!=et&&"image"!=o.type||t.push(o);return t}(e,r.preferredAudioLanguage))}))},r}function Gl(e,t,n){var o={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return wl(e,t,n||Vl(),o,"")}function Jl(){this.g=null,this.h=[]}function jl(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Hl(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var o=(e=c(e.h)).next();!o.done;o=e.next())n+=(o=o.value).state==t?o.duration:0;return n}function Kl(){this.i=this.h=null,this.g=[]}function Yl(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function Wl(){this.u=this.B=this.G=this.D=this.s=this.j=this.F=this.m=this.i=this.M=this.O=this.H=this.J=this.L=this.l=this.o=NaN,this.g=new Jl,this.h=new Kl}function zl(t,n){So.call(this);var o=this;this.l=Kc,this.Uc=this.g=null,this.ca=!1,this.Xc=new Fo,this.Xb=new Fo,this.s=new Fo,this.Nb=this.i=this.Yc=this.J=this.j=this.ua=this.L=this.cf=this.V=this.Fa=this.M=this.Vc=this.H=this.xb=this.B=this.G=this.m=this.D=null,this.dc=!1,this.Nd=this.u=null,this.Yd=1e9,this.h=dc(this),this.ec={width:1/0,height:1/0},this.o=null,this.ub=new io(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount),this.vb=this.h.preferredTextLanguage,this.cc=this.h.preferredTextRole,this.$b=this.h.preferForcedSubs,this.Zb=[],this.fc=null,n&&n(this),this.D=function(e){return new Oo((function(t,n){e.u&&e.u.segmentDownloaded(t,n)}),(function(t,n,o){t=(new Map).set("headers",t).set("request",n).set("requestType",o),e.dispatchEvent(Xl("downloadheadersreceived",t))}),(function(t,n,o,i){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",o).set("aborted",i),e.dispatchEvent(Xl("downloadfailed",t))}))}(this),this.D.je(this.h.streaming.forceHTTPS),this.F=null,Zc&&(this.F=Zc()),this.Xc.C(e,"online",(function(){o.ce()})),this.O={name:"detach"},this.W={name:"attach"},this.ea={name:"unload"},this.Zd={name:"manifest-parser"},this.Xd={name:"manifest"},this.wb={name:"media-source"},this.Qd={name:"drm-engine"},this.ba={name:"load"},this.de={name:"src-equals-drm-engine"},this.yb={name:"src-equals"};var i=new Map;i.set(this.W,(function(e,t){return go(function(e,t,n){return null==t.mediaElement&&(t.mediaElement=n.mediaElement,e.Xb.C(t.mediaElement,"error",(function(){var t=Ic(e);t&&Rc(e,t)}))),e.g=t.mediaElement,Promise.resolve()}(o,e,t))})),i.set(this.O,(function(e){return e.mediaElement&&(o.Xb.nb(),e.mediaElement=null),o.F&&o.F.release(),o.g=null,go(e=Promise.resolve())})),i.set(this.ea,(function(e){return go(Zl(o,e))})),i.set(this.wb,(function(e){return e=function(e,t){var n,o,i,r,a;return N((function(s){if(1==s.g)return n=e.h.textDisplayFactory,o=n(),e.Ud=n,i=function(e,t,n,o){return new xa(e,t,n,o)}(t.mediaElement,o,(function(t,n,o){Ql(e,t,n,o)}),e.L),i.configure(e.h.mediaSource),r=e.h.manifest,a=r.segmentRelativeVttTiming,i.H=a,b(s,i.J,2);e.G=i,S(s)}))}(o,e),go(e)})),i.set(this.Zd,(function(e,t){return e=function(e,t,n){var o,i,r,a;return N((function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,o=t.uri,i=e.D,e.Nb=o,r=e,b(s,qi(o,i,e.h.manifest.retryParameters,t.mimeType),2);r.Yc=s.h,e.J=e.Yc(),a=Eo(e.h.manifest),n.mediaElement&&"AUDIO"===n.mediaElement.nodeName&&(a.disableVideo=!0),e.J.configure(a),S(s)}))}(o,e,t),go(e)})),i.set(this.Xd,(function(e){return function(e,t){var n=t.uri;t=e.D,e.Fa=new Ns((function(){return e.uc()})),e.Fa.addEventListener("regionadd",(function(t){t=t.region,Lc(e,"timelineregionadded",t),e.F&&e.F.onDashTimedMetadata(t)})),e.ua=null,e.h.streaming.observeQualityChanges&&(e.ua=new Is((function(){return e.Na()})),e.ua.addEventListener("qualitychange",(function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.codecs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent(Xl("mediaqualitychanged",n))})));var o={networkingEngine:t,modifyManifestRequest:function(t,n){var o=e.V;try{o.g.enabled&&(o.o=n.format,bl(o,t,{ot:Al,su:!o.i}))}catch(e){W("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}},modifySegmentRequest:function(t,n){yl(e.V,t,n)},filter:function(t){return pc(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,o=c(t.textStreams),i=o.next();!i.done;i=o.next())"application/cea-608"!=(i=i.value).mimeType&&"application/cea-708"!=i.mimeType||n.add(i.originalId);for(o=c(t.variants),i=o.next();!i.done;i=o.next())if((i=i.value.video)&&i.closedCaptions)for(var r=c(i.closedCaptions.keys()),a=r.next();!a.done;a=r.next())if(a=a.value,!n.has(a)){var s=a.startsWith("CC")?"application/cea-608":"application/cea-708",l=new Os;s={id:e.Yd++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:l,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:i.closedCaptions.get(a),label:null,type:et,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:i.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(a)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Fa;e:{for(var o=c(n.g),i=o.next();!i.done;i=o.next())if((i=i.value).schemeIdUri==t.schemeIdUri&&i.id==t.id&&i.startTime==t.startTime&&i.endTime==t.endTime){o=i;break e}o=null}null==o&&(n.g.add(t),t=new yo("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Rc(e,t)},isLowLatencyMode:function(){return e.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){e.j&&e.j.updateDuration()},newDrmInfo:function(t){var n=e.m?e.m.g:null;n&&e.m.u&&hc(e,n.keySystem,t)}},i=Date.now()/1e3;return new po(function(){var t,r,a,s;return N((function(l){if(1==l.g)return t=e,b(l,e.J.start(n,o),2);if(t.i=l.h,r=Xl("manifestparsed"),e.dispatchEvent(r),0==e.i.variants.length)throw new Ie(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.i),a=Date.now()/1e3,s=a-i,e.o.F=s,S(l)}))}(),(function(){return e.J.stop()}))}(o,e)})),i.set(this.Qd,(function(e){return e=function(e,t){var n,o;return N((function(i){return 1==i.g?(n=Date.now()/1e3,o=!0,e.m=tc(e,{kb:e.D,onError:function(t){Rc(e,t)},cd:function(t){Nc(e,t)},onExpirationUpdated:function(t,n){wc(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&o&&(o=!1,e.o.j=Date.now()/1e3-n,e.L&&((t=e.L).g&&t.h.classList.add("shaka-hidden")))}}),e.m.configure(e.h.drm),b(i,Oi(e.m,e.i.variants,e.i.offlineSessionIds),2)):3!=i.g?b(i,e.m.Yb(t.mediaElement),3):b(i,pc(e,e.i),0)}))}(o,e),go(e)})),i.set(this.ba,(function(e,t){return go(function(e,t,n){var o,i,r,a,s,l,u,d,p,f,h,m,g,v,y,_;return N((function(E){switch(E.g){case 1:for(t.startTime=n.startTime,null!=e.fc&&(t.startTime=e.fc,e.fc=null),o=t.mediaElement,i=t.uri,e.Nb=i,e.H=new Cs({Tc:function(){return o.playbackRate},Pc:function(){return o.defaultPlaybackRate},le:function(e){o.playbackRate=e},Me:function(e){o.currentTime+=e}}),r=function(){return vc(e)},a=function(){return gc(e)},e.s.C(o,"playing",r),e.s.C(o,"pause",r),e.s.C(o,"ended",r),e.s.C(o,"ratechange",a),function(e,t){if(t.lcevc.enabled){var n=e.Xa();n&&n[0]&&n[0].videoMimeType==Qc.ts&&(ct()||navigator.userAgent.match(/Edge\//))&&(t.streaming.forceTransmux||Y("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled.")),ql(e),null==e.L&&(e.L=new Ia(e.g,e.cf,t.lcevc),e.G&&(e.G.D=e.L))}else ql(e)}(e,e.h),s=e.h.abrFactory,e.u&&e.Nd==s||(e.Nd=s,e.u=s(),"function"!=typeof e.u.setMediaElement&&(qn("AbrManager","Please use an AbrManager with setMediaElement function."),e.u.setMediaElement=function(){}),e.u.configure(e.h.abr)),e.ub=new io(e.h.preferredAudioLanguage,e.h.preferredVariantRole,e.h.preferredAudioChannelCount),e.vb=e.h.preferredTextLanguage,e.cc=e.h.preferredTextRole,e.$b=e.h.preferForcedSubs,Dc(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd),e.u.init((function(t,n,o){e.j&&t!=e.j.l&&Sc(e,t,!0,void 0!==n&&n,void 0===o?0:o)})),e.u.setMediaElement(o),pn(e.i,e.h.preferredVideoCodecs,e.h.preferredAudioCodecs,e.h.preferredAudioChannelCount,e.h.preferredDecodingAttributes),e.j=function(e){return new Bs(e.i,{Sc:function(){return e.B?e.B.Ic():0},getBandwidthEstimate:function(){return e.u.getBandwidthEstimate()},modifySegmentRequest:function(t,n){yl(e.V,t,n)},R:e.G,kb:e.D,onError:function(t){return Rc(e,t)},onEvent:function(t){return e.dispatchEvent(t)},gg:function(){e.J&&e.J.update&&e.J.update()},Wd:function(t,n,o){e.B&&e.B.Ne(),oc(e),t=(new Map).set("start",t).set("end",n).set("contentType",o),e.dispatchEvent(Xl("segmentappended",t))},fg:function(t,n){(n=n.Od)&&e.ua&&function(e,t,n){var o=function(e,t){var n=e.g.get(t);return n||(n={rc:[],Ae:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){if((e=e.h()[t.contentType])&&0<e.length){var n=e[0].start,o=e[e.length-1].end,i=t.rc;t.rc=i.filter((function(e,t){return!(e.position<=n&&t+1<i.length&&i[t+1].position<=n||e.position>=o)}))}else t.rc=[]}(e,o),e={Od:t,position:n},0<=(t=(o=o.rc).findIndex((function(e){return e.position>=n})))?o.splice(t,o[t].position==n?1:0,e):o.push(e)}(e.ua,n,t)},xe:function(t,n){var o=e.m;if(o.h.parseInbandPsshEnabled&&["audio","video"].includes(t)){var i=0,r=c((n=new oi(ke(n))).data);for(t=r.next();!t.done;t=r.next())i+=t.value.length;if(0==i)o=Promise.resolve();else{for(i=new Uint8Array(i),r=0,t=(n=c(n.data)).next();!t.done;t=n.next())t=t.value,i.set(t,r),r+=t.length;Ii(o,"cenc",i),o=o.o}}else o=Promise.resolve();return o},hg:function(t,n,o){Ql(e,t,n,o)}})}(e),e.j.configure(e.h.streaming),e.l=Yc,o.textTracks&&e.s.C(o.textTracks,"addtrack",(function(t){if(t.track&&"chapters"===(t=t.track).kind)ec(e,t)})),e.dispatchEvent(Xl("streaming")),l=null,(u=e.j.l)||(l=_c(e)),d=[],f=c([(p=u||l).video,p.audio]),h=f.next();!h.done;h=f.next())(m=h.value)&&!m.segmentIndex&&d.push(m.createSegmentIndex());if(!(0<d.length)){E.A(2);break}return b(E,Promise.all(d),2);case 2:if(e.B=function(e,t){return new ys(e.g,e.i,e.h.streaming,t,(function(){e.xb&&Ls(e.xb,!0),e.j&&e.j.vc(),e.M&&oc(e)}),(function(t){return e.dispatchEvent(t)}))}(e,t.startTime),e.xb=function(e){var t=new ws(e.Fa);t.addEventListener("enter",(function(t){Lc(e,"timelineregionenter",t.region)})),t.addEventListener("exit",(function(t){Lc(e,"timelineregionexit",t.region)})),t.addEventListener("skip",(function(t){var n=t.region;t.seeking||(Lc(e,"timelineregionenter",n),Lc(e,"timelineregionexit",n))}));var n=new Rs(e.g);return n.g.add(t),e.ua&&n.g.add(e.ua),n}(e),g=Math.max(e.i.minBufferTime,e.h.streaming.rebufferingGoal),nc(e,g),u){E.A(4);break}if(Sc(e,l,!0,!1,0),!e.h.streaming.startAtSegmentBoundary){E.A(5);break}return v=e.B.Ic(),b(E,function(e,t){var n,o,i,r,a;return N((function(s){return 1==s.g?(n=e.audio,o=e.video,i=function(e,t){var n,o,i;return N((function(r){return 1==r.g?e?b(r,e.createSegmentIndex(),2):r.return(null):(o=(n=e.segmentIndex.Cb(t))?n.next().value:null)?(i=o.startTime,r.return(i)):r.return(null)}))},b(s,i(n,t),2)):3!=s.g?(r=s.h,b(s,i(o,t),3)):null!=(a=s.h)&&null!=r?s.return(Math.max(a,r)):null!=a?s.return(a):null!=r?s.return(r):s.return(t)}))}(l,v),6);case 6:y=E.h,e.B.zd(y);case 5:Ac(e,null,Pn(l));case 4:return e.B.yd(),e.Fb().find((function(e){return e.active}))||((_=Dn(e.i.textStreams,e.vb,e.cc,e.$b)[0]||null)&&Yl(e.o.h,_,!0),l&&(_?(l.audio&&function(e,t,n){if(0==e.h.autoShowText)return!1;if(1==e.h.autoShowText)return!0;var o=rn(e.h.preferredTextLanguage);return n=rn(n.language),2==e.h.autoShowText?tn(n,o):3==e.h.autoShowText?(e=rn(t.language),tn(n,o)&&!tn(e,n)):(Y("Invalid autoShowText setting!"),!1)}(e,l.audio,_)&&(e.ca=!0),e.ca&&e.G.m.setTextVisibility(!0),Cc(e)):e.ca=!1),_&&(e.h.streaming.alwaysStreamText||e.Hd())&&Js(e.j,_)),b(E,e.j.start(),7);case 7:e.h.abr.enabled&&(e.u.enable(),kc(e)),An(e.j?e.j.l:null,e.i),xc(e.i),Tc(e),yc(e),e.i.variants.some((function(e){return e.primary})),e.dc=!0,e.s.ma(o,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.ne})),S(E)}}))}(o,e,t))})),i.set(this.de,(function(e,t){return e=function(e,t,n){var o,i,r,a,s,l,c;return N((function(u){return 1==u.g?(o=tt,i=Date.now()/1e3,r=!0,e.m=tc(e,{kb:e.D,onError:function(t){Rc(e,t)},cd:function(t){Nc(e,t)},onExpirationUpdated:function(t,n){wc(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&r&&(r=!1,e.o.j=Date.now()/1e3-i)}}),e.m.configure(e.h.drm),a=n.uri||"",s=Zi(a),"application/x-mpegurl"==(l=Qc[s])&&ft()&&(l="application/vnd.apple.mpegurl"),l||(l="video/mp4"),c={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:l,codecs:n.mimeType?Yt(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:o.va,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.m.V=!0,b(u,Oi(e.m,[c],[]),2)):b(u,e.m.Yb(t.mediaElement),0)}))}(o,e,t),go(e)})),i.set(this.yb,(function(e,t){return function(e,t,n){function o(){return vc(e)}t.uri=n.uri,t.startTime=n.startTime,e.Nb=t.uri;var i=t.mediaElement;e.B=new vs(i);var r=!1;e.Zb.push((function(){r=!0})),null!=t.startTime&&e.B.zd(t.startTime),e.H=new Cs({Tc:function(){return i.playbackRate},Pc:function(){return i.defaultPlaybackRate},le:function(e){i.playbackRate=e},Me:function(e){i.currentTime+=e}}),nc(e,e.h.streaming.rebufferingGoal),e.s.C(i,"playing",o),e.s.C(i,"pause",o),e.s.C(i,"ended",o),e.s.C(i,"ratechange",(function(){return gc(e)})),"none"!=i.preload&&e.s.ma(i,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.ne})),i.audioTracks&&(e.s.C(i.audioTracks,"addtrack",(function(){return Tc(e)})),e.s.C(i.audioTracks,"removetrack",(function(){return Tc(e)})),e.s.C(i.audioTracks,"change",(function(){return Tc(e)}))),i.textTracks&&(e.s.C(i.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){if("metadata"==t.kind){t.mode="hidden",e.s.C(t,"cuechange",(function(){if(t.activeCues)for(var n=c(t.activeCues),o=n.next();!o.done;o=n.next())o=o.value,$l(e,o.startTime,o.endTime,o.type,o.value),e.F&&e.F.onCueMetadataChange(o.value)}));var n=new at((function(){for(var t=function(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Mb().N(.5);e.Zb.push((function(){n.stop()}))}}(e,t);break;case"chapters":ec(e,t);break;default:Tc(e)}})),e.s.C(i.textTracks,"removetrack",(function(){return Tc(e)})),e.s.C(i.textTracks,"change",(function(){return Tc(e)})));var a=Zi(t.uri);i.src=function(e,t,n){try{if(!e.g.enabled)return t;var o=_l(e);e:{switch(n){case"video/webm":case"video/mp4":var i=Ol;break e;case"application/x-mpegurl":i=Al;break e}i=void 0}return o.ot=i,o.su=!0,El(t,Sl(o))}catch(e){return W("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(e.V,t.uri,Qc[a]),(dt()||gt("Web0S"))&&i.load(),e.l=Wc,e.dispatchEvent(Xl("streaming"));var s=new ot;return ls(i,HTMLMediaElement.HAVE_METADATA,e.s,(function(){e.B.yd(),s.resolve()})),ls(i,HTMLMediaElement.HAVE_CURRENT_DATA,e.s,(function(){var t;return N((function(n){return 1==n.g?(function(e){var t=e.h.preferredAudioLanguage;if(""!=t){e.ge(t);var n=e.h.preferredVariantRole;""!=n&&e.ge(t,n)}}(e),(t=rc(e)).find((function(e){return"disabled"!=e.mode}))?(0<t.length&&(e.ca=!0),n.A(2)):b(n,new Promise((function(t){e.s.ma(i.textTracks,"change",t),new at(t).N(1)})),2)):r?n.return():(function(e){var t=e.h.preferredTextLanguage,n=e.h.preferForcedSubs;if(""!=t){e.he(t,"",n);var o=e.h.preferredTextRole;""!=o&&e.he(t,o,n)}}(e),void S(n))}))})),i.error?s.reject(Ic(e)):"none"==i.preload&&(Y('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),s.resolve()),e.s.ma(i,"error",(function(){s.reject(Ic(e))})),new po(s,(function(){return s.reject(new Ie(2,7,7001)),Promise.resolve()})).Y((function(){e.dc=!0}))}(o,e,t)})),this.Ga=new tl(this.O,{Mf:function(e,t,n,i){var r=null;return e==o.O&&(r=n==o.O?o.O:o.W),e==o.W&&(r=n==o.O||t.mediaElement!=i.mediaElement?o.O:n==o.W?o.W:n==o.wb||n==o.ba?o.wb:n==o.yb?o.de:null),e==o.wb&&(r=n==o.ba&&t.mediaElement==i.mediaElement?o.Zd:o.ea),e==o.Zd&&(r=Gc(o.ba,o.Xd,o.ea,n,t,i)),e==o.Xd&&(r=Gc(o.ba,o.Qd,o.ea,n,t,i)),e==o.Qd&&(r=Gc(o.ba,o.ba,o.ea,n,t,i)),e==o.de&&(r=n==o.yb&&t.mediaElement==i.mediaElement?o.yb:o.ea),e!=o.ba&&e!=o.yb||(r=o.ea),e==o.ea&&(r=i.mediaElement&&t.mediaElement==i.mediaElement?o.W:o.O),r},yf:function(e,t,n){return o.dispatchEvent(Xl("onstatechange",(new Map).set("state",e.name))),i.get(e)(t,n)},handleError:function(e){return N((function(t){return 1==t.g?b(t,Zl(o,e),2):t.return(e.mediaElement?o.W:o.O)}))},eg:function(e){o.dispatchEvent(Xl("onstateidle",(new Map).set("state",e.name)))}}),this.af=new at((function(){gn(o.i.variants,o.h.restrictions,o.ec)&&_c(o)})),t&&this.Yb(t,!0)}function ql(e){null!=e.L&&(e.L.release(),e.L=null)}function Xl(e,t){return new yo(e,t)}function Zl(e,t){var n,o,i,r,a,s,l,u,d;return N((function(p){switch(p.g){case 1:return e.l!=Hc&&(e.l=Kc),n=e.Zb.map((function(e){return e()})),e.Zb=[],b(p,Promise.all(n),2);case 2:if(e.dispatchEvent(Xl("unloading")),t.mimeType=null,t.startTime=null,t.uri=null,e.Fa&&(e.Fa.release(),e.Fa=null),t.mediaElement&&e.s.nb(),e.af.stop(),e.xb&&(e.xb.release(),e.xb=null),e.Vc&&(e.Vc.stop(),e.Vc=null),!e.J){p.A(3);break}return b(p,e.J.stop(),4);case 4:e.J=null,e.Yc=null;case 3:if(!e.u){p.A(5);break}return b(p,e.u.stop(),5);case 5:if(!e.j){p.A(7);break}return b(p,e.j.destroy(),8);case 8:e.j=null;case 7:if(e.H&&(e.H.release(),e.H=null),e.B&&(e.B.release(),e.B=null),!e.G){p.A(9);break}return b(p,e.G.destroy(),10);case 10:e.G=null;case 9:if(e.F&&e.F.onAssetUnload(),!t.mediaElement||!t.mediaElement.src){p.A(11);break}return b(p,new Promise((function(e){return new at(e).N(.1)})),12);case 12:for(t.mediaElement.removeAttribute("src"),t.mediaElement.load();t.mediaElement.lastChild;)t.mediaElement.removeChild(t.mediaElement.firstChild);case 11:if(!e.m){p.A(13);break}return b(p,e.m.destroy(),14);case 14:e.m=null;case 13:if(e.Nb=null,e.M=null,e.i){for(o=c(e.i.variants),i=o.next();!i.done;i=o.next())for(r=i.value,a=c([r.audio,r.video]),s=a.next();!s.done;s=a.next())(l=s.value)&&l.segmentIndex&&l.segmentIndex.release();for(u=c(e.i.textStreams),s=u.next();!s.done;s=u.next())(d=s.value).segmentIndex&&d.segmentIndex.release()}e.i=null,e.o=new Wl,e.Ud=null,mc(e),S(p)}}))}function Ql(e,t,n,o){for(var i=(t=c(t)).next();!i.done;i=t.next())if((i=i.value).data&&i.cueTime&&i.frames){var r=i.cueTime+n,a=o;a&&r>a&&(a=r);for(var s=c(i.frames),l=s.next();!l.done;l=s.next())$l(e,r,a,"org.id3",l.value);e.F&&e.F.onHlsTimedMetadata(i,r)}}function $l(e,t,n,o,i){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",o).set("payload",i),e.dispatchEvent(Xl("metadata",t))}function ec(e,t){if(t&&"chapters"==t.kind){t.mode="hidden";var n=new at((function(){t.mode="hidden"})).Mb().N(.5);e.Zb.push((function(){n.stop()}))}}function tc(e,t){return new Pi(t,e.h.drm.updateExpirationTime)}function nc(e,t){e.M=new ro,e.M.g=so,ao(e.M,t,Math.min(.5,t/2)),mc(e),e.Vc=new at((function(){oc(e)})).Ca(.25)}function oc(e){switch(e.l){case Wc:if(e.g.ended)var t=!0;else{var n=ba(e.g.buffered);t=null!=n&&n>=e.g.duration-1}break;case Yc:e:if(e.g.ended||Ua(e.G))t=!0;else{if(e.i.presentationTimeline.U()){n=e.i.presentationTimeline.gb();var o=ba(e.g.buffered);if(null!=o&&o>=n){t=!0;break e}}t=!1}break;default:t=!1}o=Ea(e.g.buffered,e.g.currentTime);var i=t,r=(n=e.M).h.get(n.g);t=n.g,o=i||o>=r?lo:so,n.g=o,t!=o&&mc(e)}function ic(e){if(e.J){var t=Eo(e.h.manifest);e.g&&"AUDIO"===e.g.nodeName&&(t.disableVideo=!0),e.J.configure(t)}if(e.m&&e.m.configure(e.h.drm),e.j){e.j.configure(e.h.streaming);try{fc(e,e.i)}catch(t){Rc(e,t)}e.u&&yc(e),!(t=e.j.l)||t.allowedByApplication&&t.allowedByKeySystem||bc(e)}if(e.D&&e.D.je(e.h.streaming.forceHTTPS),e.G&&(e.G.configure(e.h.mediaSource),e.G.H=e.h.manifest.segmentRelativeVttTiming,t=e.h.textDisplayFactory,e.Ud!=t)){var n=t(),o=e.G,i=o.m;o.m=n,i&&(n.setTextVisibility(i.isTextVisible()),i.destroy()),o.g&&(o.g.i=n),e.Ud=t,e.j&&((n=(t=e.j).j.get(et))&&js(t,n.stream,!0,0,!0))}e.u&&(e.u.configure(e.h.abr),e.h.abr.enabled?e.u.enable():e.u.disable(),kc(e)),e.M&&(t=e.h.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),ao(e.M,t,Math.min(.5,t/2))),e.i&&Dc(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd)}function rc(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function ac(e){return Array.from(e.g.textTracks).filter((function(e){return"chapters"==e.kind}))}function sc(e,t){var n,o;return N((function(i){switch(i.g){case 1:return n=Zi(t),(o=$c[n])?i.return(o):(E(i,2),b(i,Xi(t,e.D,e.h.streaming.retryParameters),4));case 4:o=i.h,T(i,3);break;case 2:P(i);case 3:if(o)return i.return(o);throw new Ie(1,2,2011,n)}}))}function lc(e,t,n,o,i,r,a){var s,l,c,u;return N((function(d){if(1==d.g)return"text/vtt"!=i||a.length?b(d,cc(e,t,e.D,e.h.streaming.retryParameters),3):d.A(2);2!=d.g&&(s=d.h,l=uc(e,s,i,a),c=new Blob([l],{type:"text/vtt"}),t=$a(c),i="text/vtt"),u=document.createElement("track");var p=e.V,f=t;try{if(p.g.enabled){var h=_l(p);h.ot=kl,h.su=!0;var m=El(f,Sl(h))}else m=f}catch(e){W("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),m=f}return u.src=m,u.label=r,u.kind=o,u.srclang=n,e.g.getAttribute("crossorigin")||e.g.setAttribute("crossorigin","anonymous"),e.g.appendChild(u),d.return(u)}))}function cc(e,t,n,o){var i,r,a;return N((function(s){if(1==s.g){i=No,(r=ko([t],o)).method="GET";var l=e.V;try{l.g.enabled&&bl(l,r,{ot:kl,su:!0})}catch(e){W("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return b(s,n.request(i,r).promise,2)}return a=s.h,s.return(a.data)}))}function uc(e,t,n,o){var i=$t[n];if(i)return n=i(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration,vttOffset:0},t=ke(t),function(e,t){function n(e){for(var n=e,o=c(t),i=o.next();!i.done;i=o.next())(i=i.value).end&&i.start<e&&(n+=i.end-i.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(o=Math.floor(n/60%60))?"0":"")+o+":"+(10>(i=Math.floor(n%60))?"0":"")+i+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}var o=rl(e,[]);e="WEBVTT\n\n";for(var i=(o=c(o)).next();!i.done;i=o.next())e+=n((i=i.value).startTime)+" --\x3e "+n(i.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case se:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(i)+"\n",e+=i.payload+"\n\n";return e}(t=n.parseMedia(t,e),o);throw new Ie(2,2,2014,n)}function dc(e){var t=Vl();return t.streaming.failureCallback=function(t){if(e.U()){var n=null;1001==t.code||1002==t.code?n=1:1003==t.code&&(n=.1),null!=n&&(t.severity=1,e.ce(n))}},t.textDisplayFactory=function(){return e.Uc?new dl(e.g,e.Uc):new al(e.g)},t}function pc(e,t){return N((function(n){if(1==n.g)return b(n,function(e,t){return N((function(n){if(1==n.g)return b(n,vn(e.j?e.j.l:null,t),2);xc(t),S(n)}))}(e,t),2);fc(e,t),S(n)}))}function fc(e,t){if(e.l!=Hc){gn(t.variants,e.h.restrictions,e.ec)&&e.j&&Tc(e);var n=e.m?e.m.g:null;if(n&&e.m.u)for(var o=c(t.variants),i=o.next();!i.done;i=o.next())i=i.value,hc(e,n.keySystem,i.video),hc(e,n.keySystem,i.audio);Mc(e,t)}}function hc(e,t,n){if(n)for(var o=(n=c(n.drmInfos)).next();!o.done;o=n.next())if((o=o.value).keySystem==t)for(var i=(o=c(o.initData||[])).next();!i.done;i=o.next())i=i.value,Ii(e.m,i.initDataType,i.initData)}function mc(e){var t=e.Fd();if(e.o&&e.M&&e.B){var n=e.H;n.j=t,ks(n),e.V&&(n=e.V,t||n.i||(n.i=!0),n.i&&t&&(n.l=!0),n.m=t),vc(e)}t=(new Map).set("buffering",t),e.dispatchEvent(Xl("buffering",t))}function gc(e){var t=e.g.playbackRate;0!=t&&(e.H&&e.H.set(t),t=Xl("ratechange"),e.dispatchEvent(t))}function vc(e){if(e.o&&e.M){var t=e.o.g;e.M.g==so?jl(t,"buffering"):e.g.paused?jl(t,"paused"):e.g.ended?jl(t,"ended"):jl(t,"playing")}}function yc(e){try{Mc(e,e.i)}catch(t){return Rc(e,t),!1}var t=e.i.variants.filter((function(e){return Nn(e)}));return t=e.ub.create(t),e.u.setVariants(Array.from(t.values())),!0}function _c(e){return yc(e)?e.u.chooseVariant():null}function bc(e){var t=_c(e);t&&Sc(e,t,!0,!0,0)}function Sc(e,t,n,o,i){var r=e.j.l;if(t==r)o&&Gs(e.j,t,o,i,!0);else{var a=e.o.h;a.h!=t&&(a.h=t,a.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),Gs(e.j,t,o,i,void 0,n),o=null,r&&(o=Pn(r)),t=Pn(t),n?Ac(e,o,t):Pc(e,o,t)}}function Ec(e,t){var n=Array.from(e.g.audioTracks).find((function(e){return e.enabled}));t.enabled=!0,t.id!==n.id&&(n.enabled=!1),Pc(e,n=Ln(n),t=Ln(t))}function Ac(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&Na(e.L,n),Fc(e,n=Xl("adaptation",t))}function Tc(e){Fc(e,Xl("trackschanged"))}function Pc(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&Na(e.L,n),Fc(e,n=Xl("variantchanged",t))}function Oc(e){Fc(e,Xl("textchanged"))}function Cc(e){Fc(e,Xl("texttrackvisibility"))}function kc(e){Fc(e,Xl("abrstatuschanged",(new Map).set("newStatus",e.h.abr.enabled)))}function Rc(e,t){if(e.l!=Hc)if(function(e,t){if(1002!=t.code&&1011!=t.code||1!=t.category||!navigator.onLine)return!1;var n=e.h.streaming.maxDisabledTime;if(0==n){if(1011!=t.code)return!1;n=1}t=e.Xa().find((function(e){return e.active}));for(var o=e.i,i=c(o.variants),r=i.next();!r.done;r=i.next())(r=r.value).id===t.id&&(r.disabledUntilTime=Date.now()/1e3+n);return gn(o.variants,e.h.restrictions,e.ec),!!(t=_c(e))&&(o=e.Na().video.reduce((function(e,t){return e+t.end-t.start}),0),Sc(e,t,!1,!0,o),e.af.N(n),!0)}(e,t))t.handled=!0;else{var n=Xl("error",(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function Lc(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent(Xl(t,n))}function Ic(e){if(!e.g.error)return null;var t=e.g.error.code;if(1==t)return null;var n=e.g.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new Ie(2,3,3016,t,n,e.g.error.message)}function Nc(e,t){if(e.j){var n=Object.keys(t),o=1==n.length&&"00"==n[0],i=!1;if(n.length)for(var r=(n=c(e.i.variants)).next();!r.done;r=n.next()){var a=[];(r=r.value).audio&&a.push(r.audio),r.video&&a.push(r.video);for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=s.value;if(s=r.allowedByKeySystem,l.keyIds.size){r.allowedByKeySystem=!0;for(var u=(l=c(l.keyIds)).next();!u.done;u=l.next())u=u.value,u=t[o?"00":u],r.allowedByKeySystem=r.allowedByKeySystem&&!!u&&!qc.includes(u)}s!=r.allowedByKeySystem&&(i=!0)}}i&&!yc(e)||((t=e.j.l)&&!t.allowedByKeySystem&&bc(e),i&&Tc(e))}}function wc(e,t,n){e.J&&e.J.onExpirationUpdated&&e.J.onExpirationUpdated(t,n),t=Xl("expirationupdated"),e.dispatchEvent(t)}function Dc(e,t,n){0<t&&(e.U()||e.Ze(t)),n<(t=e.getDuration())&&(e.U()||e.Aa(n))}function Mc(e,t){e=e.m?e.m.Qc():{};var n=Object.keys(e);n=n.length&&"00"==n[0];for(var o=!1,i=!1,r=new Set,a=new Set,s=(t=c(t.variants)).next();!s.done;s=t.next()){var l=[];(s=s.value).audio&&l.push(s.audio),s.video&&l.push(s.video);for(var u=(l=c(l)).next();!u.done;u=l.next())if((u=u.value).keyIds.size)for(var d=(u=c(u.keyIds)).next();!d.done;d=u.next()){d=d.value;var p=e[n?"00":d];p?qc.includes(p)&&a.add(p):r.add(d)}s.allowedByApplication?s.allowedByKeySystem&&(o=!0):i=!0}if(!o)throw new Ie(2,4,4012,e={hasAppRestrictions:i,missingKeys:Array.from(r),restrictedKeyStatuses:Array.from(a)})}function xc(e){if(!e.variants.some(Nn))throw new Ie(2,4,4032)}function Fc(e,t){N((function(n){if(1==n.g)return b(n,Promise.resolve(),2);e.l!=Hc&&e.dispatchEvent(t),S(n)}))}function Uc(e){for(var t=new Set,n=(e=c(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(rn(n.language)):t.add("und");return t}function Bc(e){for(var t=new Map,n=new Map,o=(e=c(e)).next();!o.done;o=e.next()){var i="und",r=[];(o=o.value).language&&(i=rn(o.language)),(r="variant"==o.type?o.audioRoles:o.roles)&&r.length||(r=[""]),t.has(i)||t.set(i,new Set);for(var a=(r=c(r)).next();!a.done;a=r.next())a=a.value,t.get(i).add(a),o.label&&(n.has(i)||n.set(i,new Map),n.get(i).set(a,o.label))}var s=[];return t.forEach((function(e,t){for(var o=(e=c(e)).next();!o.done;o=e.next()){o=o.value;var i=null;n.has(t)&&n.get(t).has(o)&&(i=n.get(t).get(o)),s.push({language:t,role:o,label:i})}})),s}function Vc(){return new Ie(2,7,7e3)}function Gc(e,t,n,o,i,r){return o==e&&i.mediaElement==r.mediaElement&&i.uri==r.uri&&i.mimeType==r.mimeType?t:n}function Jc(){return{mediaElement:null,mimeType:null,startTime:null,ne:NaN,uri:null}}function jc(e){return new Promise((function(t,n){e.mb=function(){return n(Vc())},e.bd=function(){return t()},e.onError=function(e){return n(e)},e.dd=function(){return n(Vc())}}))}V("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",dh:"s",Yg:"o"}),V("shaka.util.ConfigUtils",Nl),Nl.convertToConfigObject=Dl,Nl.mergeConfigObjects=wl,V("shaka.util.FairPlayUtils",xl),xl.commonFairPlayResponse=function(e,t){if(2===e){try{var n=St(t.data)}catch(e){return}e=!1,"<ckc>"===(n=n.trim()).substr(0,5)&&"</ckc>"===n.substr(-6)&&(n=n.slice(5,-6),e=!0);try{var o=JSON.parse(n);o.ckc&&(n=o.ckc,e=!0),o.CkcMessage&&(n=o.CkcMessage,e=!0),o.License&&(n=o.License,e=!0)}catch(e){}e&&(t.data=Ce(Lt(n)))}},xl.conaxFairPlayRequest=function(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")},xl.ezdrmFairPlayRequest=function(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")},xl.verimatrixFairPlayRequest=function(e,t){2===e&&(e=Rt(e=ke(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=Tt("spc="+e))},xl.conaxInitDataTransform=function(t,n,o){if("skd"!==n)return t;n=o.serverCertificate,o=At(t).split("skd://").pop().split("?").shift(),o=e.atob(o);var i=new ArrayBuffer(2*o.length);i=new Uint16Array(i);for(var r=0,a=o.length;r<a;r++)i[r]=o.charCodeAt(r);return Ul(t,i,n)},xl.ezdrmInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,Ul(e,n=At(e).split(";").pop(),t))},xl.verimatrixInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,Ul(e,n=At(e).split("skd://").pop(),t))},xl.initDataTransform=Ul,xl.defaultGetContentId=Fl,xl.isFairPlaySupported=function(){var e;return N((function(t){return 1==t.g?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},E(t,2),b(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):2!=t.g?t.return(!0):(P(t),t.return(!1))}))},V("shaka.util.PlayerConfiguration",Bl),Bl.mergeConfigObjects=Gl,Bl.createDefault=Vl,g(zl,So),(o=zl.prototype).destroy=function(){var e,t=this;return N((function(n){switch(n.g){case 1:return t.l==Hc?n.return():(ql(t),t.l=Hc,e=nl(t.Ga,(function(){return{node:t.O,payload:Jc(),hb:!1}})),b(n,new Promise((function(t){e.Jb=function(){},e.bd=function(){t()},e.mb=function(){t()},e.onError=function(){t()},e.dd=function(){t()}})),2));case 2:return b(n,t.Ga.destroy(),3);case 3:if(t.Xc&&(t.Xc.release(),t.Xc=null),t.Xb&&(t.Xb.release(),t.Xb=null),t.s&&(t.s.release(),t.s=null),t.Nd=null,t.u=null,t.h=null,t.o=null,t.Uc=null,t.V=null,!t.D){n.A(4);break}return b(n,t.D.destroy(),5);case 5:t.D=null;case 4:So.prototype.release.call(t),S(n)}}))},o.Yb=function(e,t){if(t=void 0===t||t,this.l==Hc)return Promise.reject(Vc());var n=Jc();n.mediaElement=e,st()||(t=!1);var o=t?this.wb:this.W;return(e=nl(this.Ga,(function(){return{node:o,payload:n,hb:!1}}))).Jb=function(){},jc(e)},o.lf=function(e){this.cf=e},o.detach=function(){var e=this;if(this.l==Hc)return Promise.reject(Vc());var t=nl(this.Ga,(function(){return{node:e.O,payload:Jc(),hb:!1}}));return t.Jb=function(){},jc(t)},o.re=function(e){var t=this;if(e=void 0===e||e,this.l==Hc)return Promise.reject(Vc());this.dc=!1,st()||(e=!1),ql(this);var n=Jc(),o=nl(this.Ga,(function(o){var i=o.mediaElement&&e?t.wb:o.mediaElement?t.W:t.O;return n.mediaElement=o.mediaElement,{node:i,payload:n,hb:!1}}));return o.Jb=function(){},jc(o)},o.Fg=function(e){this.fc=e},o.load=function(e,t,n){var o=this;if(this.fc=null,this.dc=!1,this.l==Hc)return Promise.reject(Vc());this.dispatchEvent(Xl("loading"));var i=Jc();i.uri=e,i.ne=Date.now()/1e3,n&&(i.mimeType=n),void 0!==t&&(i.startTime=t);var r=function(e,t){if(!st())return!0;var n=t.mimeType,o=t.uri||"";if(n||(n=Zi(o),n=Qc[n]),n){if(""==(t.mediaElement||vt()).canPlayType(n))return!1;if(!st()||!(n in Qi)&&!(Zi(o)in $i)||e.h.streaming.preferNativeHls)return!0;if(ft())return e.h.streaming.useNativeHlsOnSafari}return!1}(this,i)?this.yb:this.ba,a=nl(this.Ga,(function(e){return null==e.mediaElement?null:(i.mediaElement=e.mediaElement,{node:r,payload:i,hb:!0})}));return this.o=new Wl,this.V=function(e){return new vl({getBandwidthEstimate:function(){return e.u?e.u.getBandwidthEstimate():NaN},Na:function(){return e.Na()},getCurrentTime:function(){return e.g?e.g.currentTime:0},Xa:function(){return e.Xa()},Rc:function(){return e.Rc()},U:function(){return e.U()}},e.h.cmcd)}(this),a.Jb=function(){},new Promise((function(e,t){a.dd=function(){return t(new Ie(2,7,7002))},a.bd=function(){e(),o.dispatchEvent(Xl("loaded"))},a.mb=function(){return t(Vc())},a.onError=function(e){return t(e)}}))},o.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Dl(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(qn("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),e.streaming.forceTransmux=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01));var n=Gl(this.h,e,dc(this));return ic(this),n},o.getConfiguration=function(){var e=dc(this);return Gl(e,this.h,dc(this)),e},o.Bf=function(){if(this.g){var e=this.g.buffered.length;e=e?this.g.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.g.currentTime+t,this.uc().end)))return 1;if(!(e<=this.g.currentTime)&&e<t)return(e-this.g.currentTime)/(t-this.g.currentTime)}return 0},o.rg=function(){for(var e in this.h)delete this.h[e];Gl(this.h,dc(this),dc(this)),ic(this)},o.Hf=function(){return this.l},o.Lf=function(){return this.g},o.jc=function(){return this.D},o.Dd=function(){return this.Nb},o.Ge=function(){return this.F?this.F:null},o.U=function(){return this.i?this.i.presentationTimeline.U():!(!this.g||!this.g.src)&&1/0==this.g.duration},o.jb=function(){return!!this.i&&this.i.presentationTimeline.jb()},o.Zf=function(){if(this.i){var e=this.i.variants;return!!e.length&&!e[0].video}return!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},o.uc=function(){if(!this.dc)return{start:0,end:0};if(this.i){var e=this.i.presentationTimeline;return{start:e.Db(),end:e.Oa()}}return this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},o.Xf=function(){this.U()&&(this.g.currentTime=this.uc().end)},o.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},o.drmInfo=function(){return this.m?this.m.g:null},o.ic=function(){return this.m?this.m.ic():1/0},o.Qc=function(){return this.m?this.m.Qc():{}},o.Fd=function(){return!!this.M&&this.M.g==so},o.Rc=function(){return this.g?this.H?this.H.i:1:0},o.Ag=function(e){0==e?Y("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(e),this.l==Yc&&(this.u.playbackRateChanged(e),Vs(this.j,1<Math.abs(e))))},o.pf=function(){var e=this.H.Pc();this.l==Wc&&this.H.set(e),this.l==Yc&&(this.H.set(e),this.u.playbackRateChanged(e),Vs(this.j,!1))},o.Xa=function(){if(this.i){for(var e=this.j?this.j.l:null,t=[],n=0,o=c(this.i.variants),i=o.next();!i.done;i=o.next())if(Nn(i=i.value)){var r=Pn(i);r.active=i==e,r.active||1==n||null==e||i.video!=e.video||i.audio!=e.audio||(r.active=!0),r.active&&n++,t.push(r)}return t}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map((function(e){return Ln(e)})):[]},o.Fb=function(){if(this.i){for(var e=this.j?this.j.o:null,t=[],n=c(this.i.textStreams),o=n.next();!o.done;o=n.next()){var i=On(o=o.value);i.active=o==e,t.push(i)}return t}return this.g&&this.g.src&&this.g.textTracks?rc(this).map((function(e){return Rn(e)})):[]},o.Ff=function(){return this.i?this.i.imageStreams.map((function(e){return Cn(e)})):[]},o.Tf=function(e,t){var n,o,i,r,a,s,l,c,u,d,p,f,h,m,g,v,y,_,S,E,A=this;return N((function(T){return 1==T.g?A.i?(n=A.i.imageStreams.find((function(t){return t.id==e})))?n.segmentIndex?T.A(3):b(T,n.createSegmentIndex(),3):T.return(null):T.A(2):2!=T.g?null==(o=n.segmentIndex.find(t))?T.return(null):(i=n.segmentIndex.get(o),r=i.tilesLayout||n.tilesLayout,(a=/(\d+)x(\d+)/.exec(r))?(s=n.width||0,l=n.height||0,c=parseInt(a[1],10),u=parseInt(a[2],10),d=s/c,p=l/u,f=c*u,h=i.j-i.startTime,m=i.s||h/f,g=i.startTime,y=v=0,1<f&&(_=Math.floor((t-i.startTime)/m),g=i.startTime+_*m,v=_%c*d,y=Math.floor(_/c)*p),S=!1,(E=i.o)&&(S=!0,p=E.height,v=E.positionX,y=E.positionY,d=E.width),T.return({imageHeight:l,imageWidth:s,height:p,positionX:v,positionY:y,startTime:g,duration:m,uris:i.ya(),width:d,sprite:S})):T.return(null)):T.return(null)}))},o.Se=function(e){if(this.i&&this.j){var t=this.i.textStreams.find((function(t){return t.id==e.id}));t&&t!=this.j.o&&(Yl(this.o.h,t,!1),Js(this.j,t),Oc(this),this.vb=t.language)}else if(this.g&&this.g.src&&this.g.textTracks){for(var n=(t=c(t=rc(this))).next();!n.done;n=t.next())kn(n=n.value)==e.id?n.mode=this.ca?"showing":"hidden":n.mode="disabled";Oc(this)}},o.Te=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j){this.h.abr.enabled&&Y("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var o=this.i.variants.find((function(t){return t.id==e.id}));o&&Nn(o)&&(Sc(this,o,!1,t,n),this.ub=new oo(o),yc(this))}else if(this.g&&this.g.audioTracks)for(n=(t=c(t=Array.from(this.g.audioTracks))).next();!n.done;n=t.next())if(kn(n=n.value)==e.id){Ec(this,n);break}},o.Af=function(){return Bc(this.Xa())},o.Rf=function(){return Bc(this.Fb())},o.zf=function(){return Array.from(Uc(this.Xa()))},o.Qf=function(){return Array.from(Uc(this.Fb()))},o.ge=function(e,t,n){if(n=void 0===n?0:n,this.i&&this.B){this.ub=new io(e,t||"",n,""),t=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},e=this.j.l;var o=this.ub.create(this.i.variants);n=null;for(var i=(o=c(o.values())).next();!i.done;i=o.next())i=i.value,(!n||t(n,e)>t(i,e))&&(n=i);n?(t=Pn(n),this.Te(t,!0)):bc(this)}else if(this.g&&this.g.audioTracks){i=Array.from(this.g.audioTracks),e=rn(e),o=n=null;for(var r=(i=c(i)).next();!r.done;r=i.next()){var a=Ln(r=r.value);rn(a.language)==e&&(n=r,t?a.roles.includes(t)&&(o=r):0==a.roles.length&&(o=r))}o?Ec(this,o):n&&Ec(this,n)}},o.he=function(e,t,n){if(n=void 0!==n&&n,this.i&&this.B)this.vb=e,this.cc=t||"",this.$b=n,(e=Dn(this.i.textStreams,this.vb,this.cc,this.$b)[0]||null)&&e!=this.j.o&&(Yl(this.o.h,e,!1),this.h.streaming.alwaysStreamText||this.Hd())&&(Js(this.j,e),Oc(this));else{var o=rn(e);(e=this.Fb().find((function(e){return rn(e.language)==o&&(!t||e.roles.includes(t))&&e.forced==n})))&&this.Se(e)}},o.tg=function(e){if(this.i&&this.B){for(var t=null,n=c(this.i.variants),o=n.next();!o.done;o=n.next())if((o=o.value).audio.label==e){t=o;break}null!=t&&(this.ub=new io(t.language,"",0,e),bc(this))}},o.Hd=function(){var e=this.ca;return this.G?this.G.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?rc(this).some((function(e){return"showing"==e.mode})):e},o.He=function(){return this.g&&this.g.src&&this.g.textTracks?ac(this).map((function(e){return Rn(e)})):[]},o.Cf=function(e){var t=rn(e),n=ac(this).filter((function(e){return rn(e.language)==t}));if(!n||!n.length)return[];e=[];for(var o=new Set,i=(n=c(n)).next();!i.done;i=n.next())if((i=i.value)&&i.cues)for(var r=(i=c(i.cues)).next();!r.done;r=i.next()){var a=r.value;(r=a.id)&&""!=r||(r=a.startTime+"-"+a.endTime+"-"+a.text),a={id:r,title:a.text,startTime:a.startTime,endTime:a.endTime},o.has(r)||(e.push(a),o.add(r))}return e},o.yg=function(e){if(e=!!e,this.ca!=e){if(this.ca=e,this.l==Yc)this.G.m.setTextVisibility(e),this.h.streaming.alwaysStreamText||(e?this.j.o||0<(e=Dn(this.i.textStreams,this.vb,this.cc,this.$b)).length&&(Js(this.j,e[0]),Oc(this)):function(e){var t=e.j.get(et);t&&(Qs(t),$s(t).catch((function(){})),e.j.delete(et)),e.o=null}(this.j));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=rc(this),n=(t=c(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");Cc(this)}},o.Of=function(){if(!this.U())return null;var e=this.Ga.l,t=0;if(this.B)t=this.B.Ic();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.i?new Date(1e3*(this.i.presentationTimeline.i+t)):this.g&&this.g.getStartDate?(e=this.g.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},o.Ie=function(){if(!this.U())return null;if(this.i)return new Date(1e3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var e=this.g.getStartDate();return isNaN(e.getTime())?null:e}return null},o.Na=function(){if(this.l==Yc)return this.G.Na();var e={total:[],audio:[],video:[],text:[]};return this.l==Wc&&(e.total=Aa(this.g.buffered)),e},o.getStats=function(){if(this.l!=Yc&&this.l!=Wc)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};vc(this);var e=this.g,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.o;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.B&&(this.o.M=this.B.te(),this.o.O=this.B.ue()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.o;var o=Number(n.totalVideoFrames);t.L=Number(n.droppedVideoFrames),t.J=o,this.o.H=Number(n.corruptedVideoFrames)}this.m?n=(n=this.m).H?n.H:NaN:n=NaN,this.o.s=n,this.l==Yc&&((n=this.j.l)&&(this.o.B=(this.H?this.H.i:1)*n.bandwidth),n&&n.video&&(t=this.o,o=n.video.height||NaN,t.o=n.video.width||NaN,t.l=o),this.U()&&(n=this.Ie().valueOf()+1e3*this.uc().end,this.o.D=(Date.now()-n)/1e3),this.i&&this.i.presentationTimeline&&(this.o.G=this.i.presentationTimeline.g),n=this.u.getBandwidthEstimate(),this.o.u=n),this.l==Wc&&(n=this.o,t=e.videoHeight||NaN,n.o=e.videoWidth||NaN,n.l=t);var i=this.o;e=i.o,n=i.l,t=i.B,o=i.J;for(var r=i.L,a=i.H,s=i.O,l=i.M,u=i.u,d=i.i,p=i.m,f=i.F,h=i.j,m=Hl(i.g,"playing"),g=Hl(i.g,"paused"),v=Hl(i.g,"buffering"),y=i.s,_=i.D,b=i.G,S=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],o=c(e.h),i=o.next();!i.done;i=o.next())n.push(t(i.value));return e.g&&n.push(t(e.g)),n}(i.g),E=[],A=(i=c(i.h.g)).next();!A.done;A=i.next())A=A.value,E.push({timestamp:A.timestamp,id:A.id,type:A.type,fromAdaptation:A.fromAdaptation,bandwidth:A.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:o,droppedFrames:r,corruptedFrames:a,stallsDetected:s,gapsJumped:l,estimatedBandwidth:u,completionPercent:d,loadLatency:p,manifestTimeSeconds:f,drmTimeSeconds:h,playTime:m,pauseTime:g,bufferingTime:v,licenseTime:y,liveLatency:_,maxSegmentDuration:b,stateHistory:S,switchHistory:E}},o.hf=function(e,t,n,o,i,r,a){a=void 0!==a&&a;var s,l,c,u,d,p,f,h,m,g,v=this;return N((function(y){switch(y.g){case 1:if(v.l!=Yc&&v.l!=Wc)throw new Ie(1,7,7004);if(o){y.A(2);break}return b(y,sc(v,e),3);case 3:o=y.h;case 2:if(s=[],v.F)try{s=v.F.getServerSideCuePoints()}catch(e){}if(v.l!=Wc){y.A(4);break}return a&&(n="forced"),b(y,lc(v,e,t,n,o,r||"",s),5);case 5:if(l=v.Fb(),c=l.find((function(e){return e.language==t&&e.label==(r||"")&&e.kind==n})))return Tc(v),y.return(c);throw new Ie(1,2,2012);case 4:if(u=tt,1/0==(d=v.i.presentationTimeline.getDuration()))throw new Ie(1,4,4033);if(!s.length){y.A(6);break}return b(y,cc(v,e,v.D,v.h.streaming.retryParameters),7);case 7:p=y.h,f=uc(v,p,o,s),h=new Blob([f],{type:"text/vtt"}),e=$a(h),o="text/vtt";case 6:if(m={id:v.Yd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ts(0,d,[e]),mimeType:o||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:r||null,type:u.X,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!a,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},g=jt(m.mimeType,m.codecs),!qt(g))throw new Ie(2,2,2014,o);return v.i.textStreams.push(m),Tc(v),y.return(On(m))}}))},o.jf=function(e,t){var n,o,i,r,a,s,l,u,d,p,f,h,m,g,v,y,_=this;return N((function(S){switch(S.g){case 1:if(_.l!=Yc&&_.l!=Wc)throw new Ie(1,7,7004);if(_.l==Wc)throw new Ie(1,2,2016);if(t){S.A(2);break}return b(S,sc(_,e),3);case 3:t=S.h;case 2:if("text/vtt"!=t)throw new Ie(1,2,2017,e);if(n=tt,1/0==(o=_.i.presentationTimeline.getDuration()))throw new Ie(1,4,4045);return b(S,cc(_,e,_.D,_.h.streaming.retryParameters),4);case 4:if(i=S.h,!(r=$t[t]))throw new Ie(2,2,2014,t);for(a=r(),s={periodStart:0,segmentStart:0,segmentEnd:o,vttOffset:0},l=ke(i),u=a.parseMedia(l,s),d=[],p={},f=c(u),h=f.next();!h.done;p={Rb:p.Rb},h=f.next())m=h.value,p.Rb=Xe([e],[m.payload])[0],g=new ga(m.startTime,m.endTime,function(e){return function(){return[e.Rb]}}(p),0,null,null,0,0,1/0),p.Rb.includes("#xywh")&&(4===(v=p.Rb.split("#xywh=")[1].split(",")).length&&g.Ye({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),d.push(g);return y={id:_.Yd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es(d),mimeType:t||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:n.Wb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1"},_.i.imageStreams.push(y),Tc(_),S.return(Cn(y))}}))},o.gf=function(e,t,n){var o,i,r,a,s=this;return N((function(l){switch(l.g){case 1:if(s.l!=Yc&&s.l!=Wc)throw new Ie(1,7,7004);if(n){l.A(2);break}return b(l,sc(s,e),3);case 3:n=l.h;case 2:if(o=[],s.F)try{o=s.F.getServerSideCuePoints()}catch(e){}return b(l,lc(s,e,t,"chapters",n,"",o),4);case 4:if(i=l.h,r=s.He(),!(a=r.find((function(e){return e.language==t})))){l.A(5);break}return b(l,new Promise((function(e,t){s.s.ma(i,"load",e),s.s.ma(i,"error",(function(){t(new Ie(1,2,2015))}))})),6);case 6:return l.return(a);case 5:throw new Ie(1,2,2012)}}))},o.ke=function(e,t){this.ec.width=e,this.ec.height=t},o.ce=function(e){if(this.l==Yc){var t=this.j;if(e=void 0===e?.1:e,t.h.g)t=!1;else if(t.s)t=!1;else{for(var n=c(t.j.values()),o=n.next();!o.done;o=n.next())!(o=o.value).nc||o.ra||o.Ka||(o.nc=!1,Zs(t,o,e));t=!0}}else t=!1;return t},o.If=function(){return Y("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.i},o.Jf=function(){return this.Yc},o.$e=function(e){this.Uc=e},V("shaka.Player",zl),zl.prototype.setVideoContainer=zl.prototype.$e,zl.prototype.getManifestParserFactory=zl.prototype.Jf,zl.prototype.getManifest=zl.prototype.If,zl.prototype.retryStreaming=zl.prototype.ce,zl.prototype.setMaxHardwareResolution=zl.prototype.ke,zl.prototype.addChaptersTrack=zl.prototype.gf,zl.prototype.addThumbnailsTrack=zl.prototype.jf,zl.prototype.addTextTrackAsync=zl.prototype.hf,zl.prototype.getStats=zl.prototype.getStats,zl.prototype.getBufferedInfo=zl.prototype.Na,zl.prototype.getPresentationStartTimeAsDate=zl.prototype.Ie,zl.prototype.getPlayheadTimeAsDate=zl.prototype.Of,zl.prototype.setTextTrackVisibility=zl.prototype.yg,zl.prototype.getChapters=zl.prototype.Cf,zl.prototype.getChaptersTracks=zl.prototype.He,zl.prototype.isTextTrackVisible=zl.prototype.Hd,zl.prototype.selectVariantsByLabel=zl.prototype.tg,zl.prototype.selectTextLanguage=zl.prototype.he,zl.prototype.selectAudioLanguage=zl.prototype.ge,zl.prototype.getTextLanguages=zl.prototype.Qf,zl.prototype.getAudioLanguages=zl.prototype.zf,zl.prototype.getTextLanguagesAndRoles=zl.prototype.Rf,zl.prototype.getAudioLanguagesAndRoles=zl.prototype.Af,zl.prototype.selectVariantTrack=zl.prototype.Te,zl.prototype.selectTextTrack=zl.prototype.Se,zl.prototype.getThumbnails=zl.prototype.Tf,zl.prototype.getImageTracks=zl.prototype.Ff,zl.prototype.getTextTracks=zl.prototype.Fb,zl.prototype.getVariantTracks=zl.prototype.Xa,zl.prototype.cancelTrickPlay=zl.prototype.pf,zl.prototype.trickPlay=zl.prototype.Ag,zl.prototype.getPlaybackRate=zl.prototype.Rc,zl.prototype.isBuffering=zl.prototype.Fd,zl.prototype.getKeyStatuses=zl.prototype.Qc,zl.prototype.getExpiration=zl.prototype.ic,zl.prototype.drmInfo=zl.prototype.drmInfo,zl.prototype.keySystem=zl.prototype.keySystem,zl.prototype.goToLive=zl.prototype.Xf,zl.prototype.seekRange=zl.prototype.uc,zl.prototype.isAudioOnly=zl.prototype.Zf,zl.prototype.isInProgress=zl.prototype.jb,zl.prototype.isLive=zl.prototype.U,zl.prototype.getAdManager=zl.prototype.Ge,zl.prototype.getAssetUri=zl.prototype.Dd,zl.prototype.getNetworkingEngine=zl.prototype.jc,zl.prototype.getMediaElement=zl.prototype.Lf,zl.prototype.getLoadMode=zl.prototype.Hf,zl.prototype.resetConfiguration=zl.prototype.rg,zl.prototype.getBufferFullness=zl.prototype.Bf,zl.prototype.getConfiguration=zl.prototype.getConfiguration,zl.prototype.configure=zl.prototype.configure,zl.prototype.load=zl.prototype.load,zl.prototype.updateStartTime=zl.prototype.Fg,zl.prototype.unload=zl.prototype.re,zl.prototype.detach=zl.prototype.detach,zl.prototype.attachCanvas=zl.prototype.lf,zl.prototype.attach=zl.prototype.Yb,zl.probeSupport=function(e){var t,n,o,i,r;return e=void 0===e||e,N((function(a){if(1==a.g)return t={},e?b(a,function(){var e,t,n,o,i,r;return N((function(a){return 1==a.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],o=new Map,i=function(e){var t,i,r;return N((function(a){switch(a.g){case 1:if(E(a,2),"org.w3.clearkey"===e&&mt())throw Error("Unsupported keySystem");return b(a,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=a.h,r=!!(i=t.getConfiguration().sessionTypes)&&i.includes("persistent-license"),gt("Tizen 3")&&(r=!1),o.set(e,{persistentState:r}),b(a,t.createMediaKeys(),5);case 5:T(a,0);break;case 2:P(a),o.set(e,null),S(a)}}))},r=e.map((function(e){return i(e)})),b(a,Promise.all(r),2)):a.return(Jo(o))}))}(),3):a.A(2);2!=a.g&&(t=a.h);var s={};if(st()){for(var l in Qi)s[l]=!0;for(var d in $i)s[d]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var p=(d=c(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!p.done;p=d.next())s[p=p.value]=st()?!!Qi[p]:lt(p);for(var f in l)s[f]=st()?!!$i[f]:lt(l[f]);for(n=s,s={},l=(f=c(f='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(u(ts)))).next();!l.done;l=f.next())s[l=l.value]=st()?!!qt(l)||(Q(l)||Ut(l)):lt(l),s[d=l.split(";")[0]]=s[d]||s[l];for(r in o={manifest:n,media:s,drm:t},i=Xc)o[r]=i[r]();return a.return(o)}))},zl.isBrowserSupported=function(){if(e.Promise||Y("A Promise implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||gt("Trident/"))return!1;var t=mt();return!(t&&13>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!st()||lt("application/x-mpegurl"))},zl.setAdManagerFactory=function(e){Zc=e},zl.registerSupportPlugin=function(e,t){Xc[e]=t},zl.prototype.destroy=zl.prototype.destroy;var Hc=0,Kc=1,Yc=2,Wc=3;zl.LoadMode={DESTROYED:Hc,NOT_LOADED:Kc,MEDIA_SOURCE:Yc,SRC_EQUALS:Wc},zl.version="v4.3.5";var zc=["4","3"];Qn=new function(e){this.g=e,this.i=Xn,this.h=Zn}(new zn(Number(zc[0]),Number(zc[1])));var qc=["output-restricted","internal-error"],Xc={},Zc=null,Qc={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},$c={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function eu(){this.h=[],this.j=this.i=this.g=0}function tu(e,t,n){var o=this;this.h=e,this.g=t,this.m=n,this.i=!1,this.l=this.g.getVolume(),this.j=new Fo,this.j.C(this.g,google.ima.AdEvent.Type.PAUSED,(function(){o.i=!0})),this.j.C(this.g,google.ima.AdEvent.Type.RESUMED,(function(){o.i=!1}))}function nu(t,n,o,i){var r=this;this.o=t,this.i=n,this.s=null,this.u=NaN,this.l=i,this.j=null,this.h=new Fo,google.ima.settings.setLocale(o),(t=new google.ima.AdDisplayContainer(this.o,this.i)).initialize(),this.m=new google.ima.AdsLoader(t),this.m.getSettings().setPlayerType("shaka-player"),this.m.getSettings().setPlayerVersion("v4.3.5"),this.g=null,this.h.ma(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){!function(t,n){t.l(new yo("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.u))),t.g=n.getAdsManager(t.i),t.l(new yo("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var o=t.g.getCuePoints();if(o.length){n=[];for(var i=(o=c(o)).next();!i.done;i=o.next())n.push({start:i.value,end:null});t.l(new yo("ad-cue-points-changed",(new Map).set("cuepoints",n)))}!function(e){function t(t,n){t=(new Map).set("originalEvent",t),e.l(new yo(n,t))}e.h.C(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){ou(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(t){ru(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.STARTED,(function(t){ru(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,(function(e){t(e,"ad-first-quartile")})),e.h.C(e.g,google.ima.AdEvent.Type.MIDPOINT,(function(e){t(e,"ad-midpoint")})),e.h.C(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,(function(e){t(e,"ad-third-quartile")})),e.h.C(e.g,google.ima.AdEvent.Type.COMPLETE,(function(e){t(e,"ad-complete")})),e.h.C(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(t){au(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(t){au(e,t)})),e.h.C(e.g,google.ima.AdEvent.Type.SKIPPED,(function(e){t(e,"ad-skipped")})),e.h.C(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,(function(e){t(e,"ad-volume-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,(function(e){t(e,"ad-muted")})),e.h.C(e.g,google.ima.AdEvent.Type.PAUSED,(function(n){e.j&&(e.j.i=!0,t(n,"ad-paused"))})),e.h.C(e.g,google.ima.AdEvent.Type.RESUMED,(function(n){e.j&&(e.j.i=!1,t(n,"ad-resumed"))})),e.h.C(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,(function(n){e.j&&t(n,"ad-skip-state-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.CLICK,(function(e){t(e,"ad-clicked")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_PROGRESS,(function(e){t(e,"ad-progress")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_BUFFERING,(function(e){t(e,"ad-buffering")})),e.h.C(e.g,google.ima.AdEvent.Type.IMPRESSION,(function(e){t(e,"ad-impression")})),e.h.C(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,(function(e){t(e,"ad-duration-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.USER_CLOSE,(function(e){t(e,"ad-closed")})),e.h.C(e.g,google.ima.AdEvent.Type.LOADED,(function(e){t(e,"ad-loaded")})),e.h.C(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(e){t(e,"all-ads-completed")})),e.h.C(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,(function(e){t(e,"ad-linear-changed")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_METADATA,(function(e){t(e,"ad-metadata")})),e.h.C(e.g,google.ima.AdEvent.Type.LOG,(function(e){t(e,"ad-recoverable-error")})),e.h.C(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,(function(e){t(e,"ad-break-ready")})),e.h.C(e.g,google.ima.AdEvent.Type.INTERACTION,(function(e){t(e,"ad-interaction")}))}(t);try{t.g.init(t.i.offsetWidth,t.i.offsetHeight,iu(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.C(t.i,"loadeddata",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,iu(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),"ResizeObserver"in e?(t.s=new ResizeObserver((function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,iu(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.s.observe(t.i)):t.h.C(document,"fullscreenchange",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,iu(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.i.addEventListener("play",(function(){t.g.start()}),{once:!0})}catch(e){au(t,null)}}(r,t)})),this.h.C(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){ou(r,e)})),this.h.C(this.i,"ended",(function(){r.m.contentComplete()}))}function ou(e,t){t.getError(),au(e,null),e.l(new yo("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function iu(e){return document.fullscreenEnabled?!!document.fullscreenElement:!!(e=e.i).webkitSupportsFullscreen&&e.webkitDisplayingFullscreen}function ru(e,t){var n=t.getAd();n?(e.j=new tu(n,e.g,e.i),t=(new Map).set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.l(new yo("ad-started",t)),e.j.isLinear()&&(e.o.setAttribute("ad-active","true"),e.i.pause(),e.j.setVolume(e.i.muted?0:e.i.volume))):Y("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function au(e,t){e.l(new yo("ad-stopped",(new Map).set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.o.removeAttribute("ad-active"),e.i.ended||e.i.play())}function su(e,t){this.i=e,this.h=null,this.g=t}function lu(e,t,n,o){var i=this;this.s=e,this.l=t,this.j=null,this.G=NaN,this.i=o,this.F=!1,this.u=this.m=this.o=null,this.B="",this.D=[],this.h=new Fo,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.s,e),this.i(new yo("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,(function(e){!function(e,t){e.i(new yo("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.G))),t=t.getStreamData().url,e.j.resolve(t),e.j=null,e.F||e.h.C(e.l,"seeked",(function(){var t=e.l.currentTime;if(0!=t){e.g.streamTimeForContentTime(t);var n=e.g.previousCuePointForStreamTime(t);n&&!n.played&&(e.o=t,e.l.currentTime=n.start)}}))}(i,e)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,(function(){i.B.length?i.j.resolve(i.B):i.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),i.j=null})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,(function(){})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,(function(e){e=e.getAd(),i.m=new su(e,i.l),i.u&&(i.m.h=i.u),i.i(new yo("ad-started",(new Map).set("ad",i.m))),i.s.setAttribute("ad-active","true")})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,(function(){i.s.removeAttribute("ad-active");var e=i.l.currentTime;i.o&&i.o>e&&(i.l.currentTime=i.o,i.o=null)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){i.u=e.getStreamData().adProgressData,i.m&&(i.m.h=i.u)})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){i.i(new yo("ad-first-quartile"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){i.i(new yo("ad-midpoint"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){i.i(new yo("ad-third-quartile"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){i.i(new yo("ad-complete")),i.i(new yo("ad-stopped")),i.s.removeAttribute("ad-active"),i.m=null})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){i.i(new yo("ad-skipped")),i.i(new yo("ad-stopped"))})),this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=c(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});i.D=e,i.i(new yo("ad-cue-points-changed",(new Map).set("cuepoints",e)))}))}function cu(){So.call(this),this.g=this.i=null,this.h=new eu,this.j=navigator.language}function uu(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof yo){var n={};for(o in t)(e=t[o])&&"object"==typeof e?"detail"==o&&(n[o]=e):o in Event||(n[o]=e);return n}if(t instanceof Error){var o=new Set(["name","message","stack"]);for(n in t)o.add(n);for(n=(e=c(Object.getOwnPropertyNames(t))).next();!n.done;n=e.next())o.add(n.value);for(e={},n=(o=c(o)).next();!n.done;n=o.next())e[n=n.value]=t[n];t={__type__:"Error",contents:e}}else if(t instanceof TimeRanges){for(o={__type__:"TimeRanges",length:t.length,start:[],end:[]},n=(t=c(Aa(t))).next();!n.done;n=t.next())e=(n=n.value).end,o.start.push(n.start),o.end.push(e);t=o}else t=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return t}}))}function du(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){for(n in e=t.contents,t=Error(e.message),e)t[n]=e[n];n=t}else n=t;return n}))}(o=tu.prototype).getDuration=function(){return this.h.getDuration()},o.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()},o.getRemainingTime=function(){return this.g.getRemainingTime()},o.isPaused=function(){return this.i},o.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()},o.getTimeUntilSkippable=function(){var e=this.h.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},o.canSkipNow=function(){return this.g.getAdSkippableState()},o.skip=function(){return this.g.skip()},o.pause=function(){return this.g.pause()},o.play=function(){return this.g.resume()},o.getVolume=function(){return this.g.getVolume()},o.setVolume=function(e){return this.g.setVolume(e)},o.isMuted=function(){return 0==this.g.getVolume()},o.isLinear=function(){return this.h.isLinear()},o.resize=function(e,t){var n=!1,o=this.m;document.fullscreenEnabled?n=!!document.fullscreenElement:o.webkitSupportsFullscreen&&(n=o.webkitDisplayingFullscreen),this.g.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},o.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},o.getSequenceLength=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getTotalAds()},o.getPositionInSequence=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getAdPosition()},o.getTitle=function(){return this.h.getTitle()},o.getDescription=function(){return this.h.getDescription()},o.release=function(){this.g=this.h=null},V("shaka.ads.ClientSideAd",tu),tu.prototype.release=tu.prototype.release,tu.prototype.getDescription=tu.prototype.getDescription,tu.prototype.getTitle=tu.prototype.getTitle,tu.prototype.getPositionInSequence=tu.prototype.getPositionInSequence,tu.prototype.getSequenceLength=tu.prototype.getSequenceLength,tu.prototype.setMuted=tu.prototype.setMuted,tu.prototype.resize=tu.prototype.resize,tu.prototype.isLinear=tu.prototype.isLinear,tu.prototype.isMuted=tu.prototype.isMuted,tu.prototype.setVolume=tu.prototype.setVolume,tu.prototype.getVolume=tu.prototype.getVolume,tu.prototype.play=tu.prototype.play,tu.prototype.pause=tu.prototype.pause,tu.prototype.skip=tu.prototype.skip,tu.prototype.canSkipNow=tu.prototype.canSkipNow,tu.prototype.getTimeUntilSkippable=tu.prototype.getTimeUntilSkippable,tu.prototype.isSkippable=tu.prototype.isSkippable,tu.prototype.isPaused=tu.prototype.isPaused,tu.prototype.getRemainingTime=tu.prototype.getRemainingTime,tu.prototype.getMinSuggestedDuration=tu.prototype.getMinSuggestedDuration,tu.prototype.getDuration=tu.prototype.getDuration,nu.prototype.stop=function(){this.g&&this.g.stop(),this.o&&ul(this.o)},nu.prototype.release=function(){this.stop(),this.s&&this.s.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.m.destroy()},(o=su.prototype).getDuration=function(){return this.h?this.h.duration:-1},o.getMinSuggestedDuration=function(){return this.getDuration()},o.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},o.isPaused=function(){return this.g.paused},o.isSkippable=function(){return this.i.isSkippable()},o.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},o.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},o.skip=function(){this.g.currentTime+=this.getRemainingTime()},o.pause=function(){return this.g.pause()},o.play=function(){return this.g.play()},o.getVolume=function(){return this.g.volume},o.setVolume=function(e){this.g.volume=e},o.isMuted=function(){return this.g.muted},o.isLinear=function(){return!0},o.resize=function(){},o.setMuted=function(e){this.g.muted=e},o.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},o.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},o.getTitle=function(){return this.i.getTitle()},o.getDescription=function(){return this.i.getDescription()},o.release=function(){this.g=this.h=this.i=null},V("shaka.ads.ServerSideAd",su),su.prototype.release=su.prototype.release,su.prototype.getDescription=su.prototype.getDescription,su.prototype.getTitle=su.prototype.getTitle,su.prototype.getPositionInSequence=su.prototype.getPositionInSequence,su.prototype.getSequenceLength=su.prototype.getSequenceLength,su.prototype.setMuted=su.prototype.setMuted,su.prototype.resize=su.prototype.resize,su.prototype.isLinear=su.prototype.isLinear,su.prototype.isMuted=su.prototype.isMuted,su.prototype.setVolume=su.prototype.setVolume,su.prototype.getVolume=su.prototype.getVolume,su.prototype.play=su.prototype.play,su.prototype.pause=su.prototype.pause,su.prototype.skip=su.prototype.skip,su.prototype.canSkipNow=su.prototype.canSkipNow,su.prototype.getTimeUntilSkippable=su.prototype.getTimeUntilSkippable,su.prototype.isSkippable=su.prototype.isSkippable,su.prototype.isPaused=su.prototype.isPaused,su.prototype.getRemainingTime=su.prototype.getRemainingTime,su.prototype.getMinSuggestedDuration=su.prototype.getMinSuggestedDuration,su.prototype.getDuration=su.prototype.getDuration,lu.prototype.stop=function(){this.B="",this.o=null,this.D=[]},lu.prototype.release=function(){this.stop(),this.h&&this.h.release()},lu.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},g(cu,So),(o=cu.prototype).setLocale=function(e){this.j=e},o.initClientSide=function(t,n){var o=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new Ie(2,10,1e4);this.i&&this.i.release(),this.i=new nu(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":o.h.h.push(e.loadTime);break;case"ad-started":o.h.g++;break;case"ad-complete":o.h.i++;break;case"ad-skipped":o.h.j++}o.dispatchEvent(e)}))},o.release=function(){this.i&&(this.i.release(),this.i=null),this.g&&(this.g.release(),this.g=null),So.prototype.release.call(this)},o.onAssetUnload=function(){this.i&&this.i.stop(),this.g&&this.g.stop(),this.dispatchEvent(new yo("ad-stopped")),this.h=new eu},o.requestClientSideAds=function(e){if(!this.i)throw new Ie(1,10,10001);var t=this.i;t.u=Date.now()/1e3,t.m.requestAds(e)},o.initServerSide=function(t,n){var o=this;if(!e.google||!google.ima||!google.ima.dai)throw new Ie(2,10,10002);this.g&&this.g.release(),this.g=new lu(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":o.h.h.push(e.loadTime);break;case"ad-started":o.h.g++;break;case"ad-complete":o.h.i++;break;case"ad-skipped":o.h.j++}o.dispatchEvent(e)}))},o.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new Ie(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;return(n.mpt||n.mpv)&&Y('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v4.3.5",(n=this.g).j?e=Promise.reject(new Ie(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.F=!0),n.j=new ot,n.g.requestStream(e),n.B=t||"",n.G=Date.now()/1e3,e=n.j),e},o.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new Ie(1,10,10003);(e.mpt||e.mpv)&&Y('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v4.3.5",this.g.g.replaceAdTagParameters(e)},o.getServerSideCuePoints=function(){if(!this.g)throw new Ie(1,10,10003);return this.g.D},o.getStats=function(){var e=this.h;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},o.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(t,n,e.startTime)}},o.onHlsTimedMetadata=function(e,t){this.g&&this.g.g.processMetadata("ID3",e.data,t)},o.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},V("shaka.ads.AdManager",cu),cu.prototype.onCueMetadataChange=cu.prototype.onCueMetadataChange,cu.prototype.onHlsTimedMetadata=cu.prototype.onHlsTimedMetadata,cu.prototype.onDashTimedMetadata=cu.prototype.onDashTimedMetadata,cu.prototype.getStats=cu.prototype.getStats,cu.prototype.getServerSideCuePoints=cu.prototype.getServerSideCuePoints,cu.prototype.replaceServerSideAdTagParameters=cu.prototype.replaceServerSideAdTagParameters,cu.prototype.requestServerSideStream=cu.prototype.requestServerSideStream,cu.prototype.initServerSide=cu.prototype.initServerSide,cu.prototype.requestClientSideAds=cu.prototype.requestClientSideAds,cu.prototype.onAssetUnload=cu.prototype.onAssetUnload,cu.prototype.release=cu.prototype.release,cu.prototype.initClientSide=cu.prototype.initClientSide,cu.prototype.setLocale=cu.prototype.setLocale,cu.ADS_LOADED="ads-loaded",cu.AD_STARTED="ad-started",cu.AD_FIRST_QUARTILE="ad-first-quartile",cu.AD_MIDPOINT="ad-midpoint",cu.AD_THIRD_QUARTILE="ad-third-quartile",cu.AD_COMPLETE="ad-complete",cu.AD_STOPPED="ad-stopped",cu.AD_SKIPPED="ad-skipped",cu.AD_VOLUME_CHANGED="ad-volume-changed",cu.AD_MUTED="ad-muted",cu.AD_PAUSED="ad-paused",cu.AD_RESUMED="ad-resumed",cu.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",cu.CUEPOINTS_CHANGED="ad-cue-points-changed",cu.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",cu.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",cu.AD_CLICKED="ad-clicked",cu.AD_PROGRESS="ad-progress",cu.AD_BUFFERING="ad-buffering",cu.AD_IMPRESSION="ad-impression",cu.AD_DURATION_CHANGED="ad-duration-changed",cu.AD_CLOSED="ad-closed",cu.AD_LOADED="ad-loaded",cu.ALL_ADS_COMPLETED="all-ads-completed",cu.AD_LINEAR_CHANGED="ad-linear-changed",cu.AD_METADATA="ad-metadata",cu.AD_RECOVERABLE_ERROR="ad-recoverable-error",cu.AD_BREAK_READY="ad-break-ready",cu.AD_INTERACTION="ad-interaction",Zc=function(){return new cu};var pu="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),fu="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),hu=["loop","playbackRate"],mu=["pause","play"],gu={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},vu={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},yu={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},_u=[["getConfiguration","configure"]],bu=[["isTextTrackVisible","setTextTrackVisibility"]],Su="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),Eu=["attach","attachCanvas","detach","load","unload"];function Au(e,t,n,o,i,r,a){var s=this;this.G=e,this.M=a,this.j=new at(t),this.O=n,this.u=!1,this.s=o,this.F=i,this.J=r,this.h=this.m=!1,this.L="",this.o=null,this.B=function(){return ku(s)},this.D=function(e,t){switch((e=du(t)).type){case"event":var n=e.targetName,o=_o(e.event);s.s(n,o);break;case"update":for(o in n=e.update)for(var i in e=s.g[o]||{},n[o])e[i]=n[o][i];s.u&&(s.O(),s.u=!1);break;case"asyncComplete":if(o=e.id,i=e.error,e=s.i[o],delete s.i[o],e)if(i){for(n in o=new Ie(i.severity,i.category,i.code),i)o[n]=i[n];e.reject(o)}else e.resolve()}},this.g={video:{},player:{}},this.H=0,this.i={},this.l=null,Mu.add(this)}function Tu(e,t,n){wu=n,n.addUpdateListener(e.B),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.D),ku(e),Lu(e,{type:"init",initState:t,appData:e.o}),e.l.resolve()}function Pu(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new Ie(2,8,n,t))}function Ou(e,t){var n=e.J();e.l=new ot,e.u=!0,Tu(e,n,t)}function Cu(e){var t=wu;t.removeUpdateListener(e.B),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.D)}function ku(e){var t=!!wu&&"connected"==wu.status;if(e.h&&!t){for(var n in e.F(),e.g)e.g[n]={};Ru(e)}e.h=t,e.L=t?wu.receiver.friendlyName:"",e.j.Mb()}function Ru(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new Ie(1,7,7e3))}}function Lu(e,t){t=uu(t);var n=wu;try{n.sendMessage("urn:x-cast:com.google.shaka.v2",t,(function(){}),z)}catch(o){throw t=new Ie(2,8,8005,o),n=new yo("error",(new Map).set("detail",t)),e.s("player",n),e.Ab(),t}}(o=Au.prototype).destroy=function(){return Mu.delete(this),Ru(this),wu&&Cu(this),this.j&&(this.j.stop(),this.j=null),this.F=this.s=null,this.h=this.m=!1,this.D=this.B=this.l=this.i=this.g=this.o=null,Promise.resolve()},o.sa=function(){return this.h},o.ae=function(){return this.L},o.init=function(){if(this.G.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.j.Mb();var t=new chrome.cast.SessionRequest(this.G,[],null,this.M,null);t=new chrome.cast.ApiConfig(t,(function(e){for(var t=c(Mu),n=t.next();!n.done;n=t.next())Ou(n.value,e)}),(function(e){for(var t=c(Mu),n=t.next();!n.done;n=t.next())n=n.value,Nu="available"==e,n.j.Mb()}),"origin_scoped"),chrome.cast.initialize(t,(function(){}),(function(){})),Nu&&this.j.N(Iu),(t=wu)&&t.status!=chrome.cast.SessionStatus.STOPPED?Ou(this,t):wu=null}else e.__onGCastApiAvailable!==xu&&(Du=e.__onGCastApiAvailable||null,e.__onGCastApiAvailable=xu)},o.ie=function(e){this.o=e,this.h&&Lu(this,{type:"appData",appData:this.o})},o.cast=function(e){var t=this;return N((function(n){if(!t.m)throw new Ie(1,8,8e3);if(!Nu)throw new Ie(1,8,8001);if(t.h)throw new Ie(1,8,8002);return t.l=new ot,chrome.cast.requestSession((function(n){return Tu(t,e,n)}),(function(e){return Pu(t,e)})),b(n,t.l,0)}))},o.Ab=function(){if(this.h){if(Ru(this),wu){Cu(this);try{wu.stop((function(){}),(function(){}))}catch(e){}wu=null}ku(this)}},o.get=function(e,t){var n=this;if("video"==e){if(mu.includes(t))return function(){return n.Qe.apply(n,[e,t].concat(u(w.apply(0,arguments))))}}else if("player"==e){if(yu[t]&&!this.get("player","isLive")())return function(){};if(Su.includes(t))return function(){return n.Qe.apply(n,[e,t].concat(u(w.apply(0,arguments))))};if(Eu.includes(t))return function(){return n.og.apply(n,[e,t].concat(u(w.apply(0,arguments))))};if(gu[t]||vu[t])return function(){return n.g[e][t]}}return this.g[e][t]},o.set=function(e,t,n){this.g[e][t]=n,Lu(this,{type:"set",targetName:e,property:t,value:n})},o.Qe=function(e,t){Lu(this,{type:"call",targetName:e,methodName:t,args:w.apply(2,arguments)})},o.og=function(e,t){var n=w.apply(2,arguments),o=new ot,i=this.H.toString();this.H++,this.i[i]=o;try{Lu(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:i})}catch(e){o.reject(e)}return o};var Iu=.02,Nu=!1,wu=null,Du=null,Mu=new Set;function xu(t){if(Du?e.__onGCastApiAvailable=Du:delete e.__onGCastApiAvailable,Du=null,t)for(var n=c(Mu),o=n.next();!o.done;o=n.next())o.value.init();"function"==typeof e.__onGCastApiAvailable&&e.__onGCastApiAvailable(t)}function Fu(e,t,n,o){o=void 0!==o&&o,So.call(this);var i=this;this.i=e,this.h=t,this.m=this.o=this.j=this.s=this.l=null,this.D=n,this.B=o,this.u=new Map,this.g=new Au(n,(function(){return Vu(i)}),(function(){return Gu(i)}),(function(e,t){return Hu(i,e,t)}),(function(){return Ju(i)}),(function(){return Bu(i)}),o),function(e){e.g.init(),e.m=new Fo;for(var t=c(pu),n=t.next();!n.done;n=t.next())e.m.C(e.i,n.value,(function(t){e.g.sa()||(t=_o(t),e.j.dispatchEvent(t))}));for(var o in bo)e.m.C(e.h,bo[o],(function(t){e.g.sa()||e.o.dispatchEvent(t)}));for(var i in e.l={},t={},e.i)t.Sb=i,Object.defineProperty(e.l,t.Sb,{configurable:!1,enumerable:!0,get:function(t){return function(){return ju(e,t.Sb)}}(t),set:function(t){return function(n){var o=t.Sb;e.g.sa()?e.g.set("video",o,n):e.i[o]=n}}(t)}),t={Sb:t.Sb};e.s={},Uu(e,(function(t){Object.defineProperty(e.s,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.u.has(t)&&(t=e.u.get(t)),"addEventListener"==t)return function(t,n,o){return e.o.addEventListener(t,n,o)};if("removeEventListener"==t)return function(t,n,o){return e.o.removeEventListener(t,n,o)};if("getMediaElement"==t)return function(){return e.l};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.h.jc()};if("getDrmEngine"==t)return function(){return e.h.m};if("getAdManager"==t)return function(){return e.h.Ge()};if("setVideoContainer"==t)return function(t){return e.h.$e(t)};if(e.g.sa()){if("getManifest"==t||"drmInfo"==t)return function(){return Y(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return Y(t+"() does not work while casting!"),Promise.resolve()}}return e.g.sa()&&0==Object.keys(e.g.g.video).length&&(gu[t]||vu[t])||!e.g.sa()?e.h[t].bind(e.h):e.g.get("player",t)}(e,t)}})})),function(e){var t=new Map;Uu(e,(function(n,o){t.has(o)?(o=t.get(o),n.length<o.length?e.u.set(n,o):e.u.set(o,n)):t.set(o,n)}))}(e),e.j=new So,e.j.Wc=e.l,e.o=new So,e.o.Wc=e.s}(this)}function Uu(e,t){function n(e){return"constructor"!=e&&"function"==typeof i[e]&&!r.has(e)}var o,i=e.h,r=new Set;for(o in i)n(o)&&(r.add(o),t(o,i[o]));for(e=Object.getPrototypeOf(i),o=Object.getPrototypeOf({});e&&e!=o;){for(var a=c(Object.getOwnPropertyNames(e)),s=a.next();!s.done;s=a.next())n(s=s.value)&&(r.add(s),t(s,i[s]));e=Object.getPrototypeOf(e)}}function Bu(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.Dd(),startTime:null};e.i.pause();for(var n=c(hu),o=n.next();!o.done;o=n.next())o=o.value,t.video[o]=e.i[o];for(e.i.ended||(t.startTime=e.i.currentTime),o=(n=c(_u)).next();!o.done;o=n.next()){var i=o.value;o=i[1],i=e.h[i[0]](),t.player[o]=i}for(o=(n=c(bu)).next();!o.done;o=n.next())o=(i=o.value)[1],i=e.h[i[0]](),t.playerAfterLoad[o]=i;return t}function Vu(e){var t=new yo("caststatuschanged");e.dispatchEvent(t)}function Gu(e){var t=new yo(e.l.paused?"pause":"play");e.j.dispatchEvent(t)}function Ju(e){for(var t=c(_u),n=t.next();!n.done;n=t.next()){var o=n.value;n=o[1],o=e.g.get("player",o[0])(),e.h[n](o)}var i=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var r=e.i.autoplay;o=null,n||(o=e.g.get("video","currentTime")),i&&(e.i.autoplay=!1,t=e.h.load(i,o));var a={};for(o=(n=c(hu)).next();!o.done;o=n.next())o=o.value,a[o]=e.g.get("video",o);t.then((function(){if(e.i){for(var t=c(hu),n=t.next();!n.done;n=t.next())n=n.value,e.i[n]=a[n];for(n=(t=c(bu)).next();!n.done;n=t.next()){var o=n.value;n=o[1],o=e.g.get("player",o[0])(),e.h[n](o)}e.i.autoplay=r,i&&e.i.play()}}),(function(t){t=new yo("error",t=(new Map).set("detail",t)),e.h.dispatchEvent(t)}))}function ju(e,t){if("addEventListener"==t)return function(t,n,o){return e.j.addEventListener(t,n,o)};if("removeEventListener"==t)return function(t,n,o){return e.j.removeEventListener(t,n,o)};if(e.g.sa()&&0==Object.keys(e.g.g.video).length){var n=e.i[t];if("function"!=typeof n)return n}return e.g.sa()?e.g.get("video",t):("function"==typeof(t=e.i[t])&&(t=t.bind(e.i)),t)}function Hu(e,t,n){e.g.sa()&&("video"==t?e.j.dispatchEvent(n):"player"==t&&e.o.dispatchEvent(n))}function Ku(e,t,n,o){So.call(this);var i=this;this.g=e,this.h=t,this.j=new Fo,this.H={video:e,player:t},this.D=n||function(){},this.J=o||function(e){return e},this.i=null,this.F=!1,this.o=!0,this.m=0,this.B=!1,this.u=!0,this.s=this.l=null,this.G=new at((function(){qu(i)})),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return Yu(e)},t.onSenderDisconnected=function(){return Yu(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&$u(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),$u(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.s=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.s.onMessage=function(t){return function(e,t){var n=du(t.data);switch(n.type){case"PLAY":e.g.play(),ed(e);break;case"PAUSE":e.g.pause(),ed(e);break;case"SEEK":t=n.currentTime;var o=n.resumeState;null!=t&&(e.g.currentTime=Number(t)),o&&"PLAYBACK_START"==o?(e.g.play(),ed(e)):o&&"PLAYBACK_PAUSE"==o&&(e.g.pause(),ed(e));break;case"STOP":e.h.re().then((function(){e.h&&ed(e)}));break;case"GET_STATUS":Zu(e,Number(n.requestId));break;case"VOLUME":t=(o=n.volume).level,o=o.muted;var i=e.g.volume,r=e.g.muted;null!=t&&(e.g.volume=Number(t)),null!=o&&(e.g.muted=o),i==e.g.volume&&r==e.g.muted||ed(e);break;case"LOAD":e.m=0,e.B=!1,e.u=!1,t=n.media,o=n.currentTime,i=e.J(t.contentId),r=n.autoplay||!0,e.D(t.customData),r&&(e.g.autoplay=!0),e.h.load(i,o).then((function(){e.h&&Zu(e)})).catch((function(t){var o="LOAD_FAILED";7==t.category&&7e3==t.code&&(o="LOAD_CANCELLED"),$u(e,{requestId:Number(n.requestId),type:o},e.s)}));break;default:$u(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.s)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=du(t.data);switch(n.type){case"init":e.m=0,e.B=!1,e.u=!0,function(e,t,n){var o,i,r,a,s,l,c,u,d,p;N((function(f){switch(f.g){case 1:for(o in t.player)i=t.player[o],e.h[o](i);return e.D(n),r=e.g.autoplay,t.manifest?(e.g.autoplay=!1,E(f,5),b(f,e.h.load(t.manifest,t.startTime),7)):b(f,Promise.resolve(),3);case 7:T(f,3);break;case 5:return a=P(f),s=(new Map).set("detail",a),l=new yo("error",s),e.h&&e.h.dispatchEvent(l),f.return();case 3:if(!e.h)return f.return();for(c in t.video)u=t.video[c],e.g[c]=u;for(d in t.playerAfterLoad)p=t.playerAfterLoad[d],e.h[d](p);e.g.autoplay=r,t.manifest&&(e.g.play(),ed(e)),S(f)}}))}(e,n.initState,n.appData),qu(e);break;case"appData":e.D(n.appData);break;case"set":var o=n.targetName,i=n.property;if(n=n.value,"video"==o){if(t=cast.receiver.CastReceiverManager.getInstance(),"volume"==i){t.setSystemVolumeLevel(n);break}if("muted"==i){t.setSystemVolumeMuted(n);break}}e.H[o][i]=n;break;case"call":(o=e.H[n.targetName])[n.methodName].apply(o,n.args);break;case"asyncCall":o=n.targetName,i=n.methodName,"player"==o&&"load"==i&&(e.m=0,e.B=!1);var r=n.id,a=t.senderId;n=(t=e.H[o])[i].apply(t,n.args),"player"==o&&"load"==i&&(n=n.then((function(){e.u=!0}))),n.then((function(){return Qu(e,a,r,null)}),(function(t){return Qu(e,a,r,t)}))}}(e,t)},t.start();for(var n=(t=c(pu)).next();!n.done;n=t.next())e.j.C(e.g,n.value,(function(t){return zu(e,"video",t)}));for(var o in bo)e.j.C(e.h,bo[o],(function(t){return zu(e,"player",t)}));cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.h.ke(3840,2160):e.h.ke(1920,1080),e.j.C(e.g,"loadeddata",(function(){e.B=!0})),e.j.C(e.h,"loading",(function(){e.o=!1,Wu(e)})),e.j.C(e.g,"playing",(function(){e.o=!1,Wu(e)})),e.j.C(e.g,"pause",(function(){Wu(e)})),e.j.C(e.h,"unloading",(function(){e.o=!0,Wu(e)})),e.j.C(e.g,"ended",(function(){new at((function(){e.g&&e.g.ended&&(e.o=!0,Wu(e))})).N(nd)}))}(this)}function Yu(e){e.m=0,e.u=!0,e.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,Wu(e)}function Wu(e){var t;N((function(n){return 1==n.g?b(n,Promise.resolve(),2):e.h?(t=new yo("caststatuschanged"),e.dispatchEvent(t),Xu(e)||ed(e),void S(n)):n.return()}))}function zu(e,t,n){e.h&&(qu(e),$u(e,{type:"event",targetName:t,event:n},e.l))}function qu(e){e.G.N(td);for(var t={video:{},player:{}},n=c(fu),o=n.next();!o.done;o=n.next())o=o.value,t.video[o]=e.g[o];if(e.h.U())for(var i in yu)0==e.m%yu[i]&&(t.player[i]=e.h[i]());for(var r in gu)0==e.m%gu[r]&&(t.player[r]=e.h[r]());for(var a in(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),$u(e,{type:"update",update:t},e.l),vu)0==e.m%vu[a]&&((t={player:{}}).player[a]=e.h[a](),$u(e,{type:"update",update:t},e.l));e.B&&(e.m+=1),Xu(e)}function Xu(e){return!(!e.u||!e.g.duration&&!e.h.U())&&(Zu(e),e.u=!1,!0)}function Zu(e,t){var n={contentId:e.h.Dd(),streamType:e.h.U()?"LIVE":"BUFFERED",contentType:""};e.h.U()||(n.duration=e.g.duration),e.i&&(n.metadata=e.i),ed(e,void 0===t?0:t,n)}function Qu(e,t,n,o){e.h&&$u(e,{type:"asyncComplete",id:n,error:o},e.l,t)}function $u(e,t,n,o){e.F&&(e=uu(t),o?n.getCastChannel(o).send(e):n.broadcast(e))}function ed(e,t,n){n=void 0===n?null:n;var o={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.o?od:e.h.Fd()?rd:e.g.paused?ad:id,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(o.media=n),$u(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[o]},e.s)}g(Fu,So),(o=Fu.prototype).destroy=function(e){return e&&this.g.Ab(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.s=this.l=this.i=null,So.prototype.release.call(this),Promise.all(e)},o.Wf=function(){return this.l},o.Nf=function(){return this.s},o.nf=function(){return this.g.m&&Nu},o.sa=function(){return this.g.sa()},o.ae=function(){return this.g.ae()},o.cast=function(){var e,t=this;return N((function(n){return 1==n.g?(e=Bu(t),b(n,t.g.cast(e),2)):t.h?b(n,t.h.re(),0):n.return()}))},o.ie=function(e){this.g.ie(e)},o.zg=function(){!function(e){if(e.h){var t=e.J();chrome.cast.requestSession((function(n){return Tu(e,t,n)}),(function(t){return Pu(e,t)}))}}(this.g)},o.Ab=function(){this.g.Ab()},o.qf=function(e,t){t=void 0!==t&&t;var n=this;return N((function(o){if(1==o.g)return e==n.D&&t==n.B?o.return():(n.D=e,n.B=t,n.g.Ab(),b(o,n.g.destroy(),2));n.g=null,n.g=new Au(e,(function(){return Vu(n)}),(function(){return Gu(n)}),(function(e,t){return Hu(n,e,t)}),(function(){return Ju(n)}),(function(){return Bu(n)}),t),n.g.init(),S(o)}))},V("shaka.cast.CastProxy",Fu),Fu.prototype.changeReceiverId=Fu.prototype.qf,Fu.prototype.forceDisconnect=Fu.prototype.Ab,Fu.prototype.suggestDisconnect=Fu.prototype.zg,Fu.prototype.setAppData=Fu.prototype.ie,Fu.prototype.cast=Fu.prototype.cast,Fu.prototype.receiverName=Fu.prototype.ae,Fu.prototype.isCasting=Fu.prototype.sa,Fu.prototype.canCast=Fu.prototype.nf,Fu.prototype.getPlayer=Fu.prototype.Nf,Fu.prototype.getVideo=Fu.prototype.Wf,Fu.prototype.destroy=Fu.prototype.destroy,g(Ku,So),(o=Ku.prototype).isConnected=function(){return this.F},o.$f=function(){return this.o},o.wg=function(e){this.i=e},o.uf=function(){this.i=null},o.xg=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},o.vg=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},o.ug=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},o.destroy=function(){var e,t=this;return N((function(n){if(1==n.g)return t.j&&(t.j.release(),t.j=null),e=[],t.h&&(e.push(t.h.destroy()),t.h=null),t.G&&(t.G.stop(),t.G=null),t.g=null,t.H=null,t.D=null,t.F=!1,t.o=!0,t.l=null,t.s=null,So.prototype.release.call(t),b(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),S(n)}))},V("shaka.cast.CastReceiver",Ku),Ku.prototype.destroy=Ku.prototype.destroy,Ku.prototype.setContentArtist=Ku.prototype.ug,Ku.prototype.setContentImage=Ku.prototype.vg,Ku.prototype.setContentTitle=Ku.prototype.xg,Ku.prototype.clearContentMetadata=Ku.prototype.uf,Ku.prototype.setContentMetadata=Ku.prototype.wg,Ku.prototype.isIdle=Ku.prototype.$f,Ku.prototype.isConnected=Ku.prototype.isConnected;var td=.5,nd=5,od="IDLE",id="PLAYING",rd="BUFFERING",ad="PAUSED";function sd(e,t,n){var o=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())(n=cd(n.value))&&t.push(n);return t}(e),i=null;e=[];var r=[],a=new Set(o.map((function(e){return e.keyId})));if(a.delete(null),1<a.size)throw new Ie(2,4,4010);if(t||(r=o.filter((function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.fe||(i=e.init||i,!1)}))).length&&(e=function(e,t,n,o){for(var i=[],r=(t=c(t)).next();!r.done;r=t.next()){var a=n[(r=r.value).fe];if(a){var s;if(s=ai(r.node,"urn:microsoft:playready","pro")){s=Lt(s.textContent);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);s=[{initData:ii(s,l,new Set,0),initDataType:"cenc",keyId:r.keyId}]}else s=null;if(l=null,"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===r.fe)if(0==(l=o).size)l=null;else{var u=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]);l=[{initData:ii(new Uint8Array([]),u,l,1),initDataType:"cenc",keyId:r.keyId}]}s=Ze(a,r.init||e||s||l),(a=dd.get(a))&&(s.licenseServerUri=a(r)),i.push(s)}}return i}(i,r,n,a),0==e.length&&(e=[Ze("",i)])),o.length&&(t||!r.length))for(e=[],n=(t=c(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(Ze(n,i));if(a=Array.from(a)[0]||null)for(n=(t=c(e)).next();!n.done;n=t.next())for(o=(n=c(n.value.initData)).next();!o.done;o=n.next())o.value.keyId=a;return{Be:a,sh:i,drmInfos:e,Fe:!0}}function ld(e){return(e=ai(e.node,"urn:microsoft:playready","pro"))&&(e=function(e){var t=0,n=Re(e),o=n.getUint32(t,!0);if(o!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){o=n.getUint16(e,!0),e+=2;var i=n.getUint16(e,!0);if(e+=2,0!=(1&i)||i+e>n.byteLength){n=[];break e}var r=ke(n,e,i);t.push({type:o,value:r}),e+=i}n=t}return n}(e=Lt(e.textContent)).filter((function(e){return e.type===ud}))[0])&&(e=Ei(e=Et(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=c(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=c(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}function cd(e){var t=e.getAttribute("schemeIdUri"),n=ci(e,"urn:mpeg:cenc:2013","default_KID"),o=li(e,"urn:mpeg:cenc:2013","pssh").map(di);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new Ie(2,4,4009);var i=[];try{i=o.map((function(e){return{initDataType:"cenc",initData:Lt(e),keyId:null}}))}catch(e){throw new Ie(2,4,4007)}return{node:e,fe:t,keyId:n,init:0<i.length?i:null}}var ud=1,dd=(new Map).set("com.widevine.alpha",(function(e){return(e=ai(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""})).set("com.microsoft.playready",ld).set("com.microsoft.playready.recommendation",ld).set("com.microsoft.playready.software",ld).set("com.microsoft.playready.hardware",ld).set("org.w3.clearkey",(function(e){return(e=ai(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===e.getAttribute("Lic_type")&&e.textContent?e.textContent:""}));function pd(t,n,o,i,r){var a={RepresentationID:n,Number:o,Bandwidth:i,Time:r};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,(function(t,n,o,i){if("$$"==t)return"$";var r=a[n];if(null==r)return t;switch("RepresentationID"==n&&o&&(o=void 0),"Time"==n&&(r=Math.round(r)),i){case void 0:case"d":case"i":case"u":t=r.toString();break;case"o":t=r.toString(8);break;case"x":t=r.toString(16);break;case"X":t=r.toString(16).toUpperCase();break;default:t=r.toString()}return o=e.parseInt(o,10)||1,Array(Math.max(0,o-t.length)+1).join("0")+t}))}function fd(e,t){var n=hd(e,t,"timescale"),o=1;n&&(o=yi(n)||1);var i=hd(e,t,"duration");n=yi(i||""),"image"==e.I.contentType&&(n=bi(i||"")),n&&(n/=o);var r=hd(e,t,"startNumber");i=Number(hd(e,t,"presentationTimeOffset"))||0;var a=_i(r||"");if(null!=r&&null!=a||(a=1),r=md(e,t,"SegmentTimeline"),t=null,r){t=o,e=e.T.duration||1/0,r=si(r,"S");for(var s=[],l=-i,c=0;c<r.length;++c){var u=r[c],d=r[c+1],p=fi(u,"t",_i),f=fi(u,"d",_i);if(u=fi(u,"r",vi),null!=p&&(p-=i),!f)break;if(p=null!=p?p:l,0>(u=u||0))if(d){if(null==(d=fi(d,"t",_i)))break;if(p>=d)break;u=Math.ceil((d-p)/f)-1}else{if(1/0==e)break;if(p/t>=e)break;u=Math.ceil((e*t-p)/f)-1}for(0<s.length&&p!=l&&(s[s.length-1].end=p/t),d=0;d<=u;++d)l=p+f,s.push({start:p/t,end:l/t,Dg:p}),p=l}t=s}return{timescale:o,ia:n,Lb:a,Sa:i/o||0,se:i,timeline:t}}function hd(e,t,n){return[t(e.I),t(e.fa),t(e.$)].filter(qe).map((function(e){return e.getAttribute(n)})).reduce((function(e,t){return e||t}))}function md(e,t,n){return[t(e.I),t(e.fa),t(e.$)].filter(qe).map((function(e){return ri(e,n)})).reduce((function(e,t){return e||t}))}function gd(e,t,n,o,i,r){if(r=void 0===r?0:r,ci(e,"http://www.w3.org/1999/xlink","href")){var a=function(e,t,n,o,i,r){for(var a=ci(e,"http://www.w3.org/1999/xlink","href"),s=ci(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",l=c(Array.from(e.attributes)),u=l.next();!u.done;u=l.next())"http://www.w3.org/1999/xlink"==(u=u.value).namespaceURI&&e.removeAttributeNS(u.namespaceURI,u.localName);if(5<=r)return fo(new Ie(2,4,4028));if("onLoad"!=s)return fo(new Ie(2,4,4027));var d=Xe([o],[a]);return i.request(0,ko(d,t)).Y((function(o){if(!(o=Ai(o.data,e.tagName)))return fo(new Ie(2,4,4001,a));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;o.childNodes.length;){var s=o.childNodes[0];o.removeChild(s),e.appendChild(s)}for(s=(o=c(Array.from(o.attributes))).next();!s.done;s=o.next())e.setAttributeNode(s.value.cloneNode(!1));return gd(e,t,n,d[0],i,r+1)}))}(e,t,n,o,i,r);return n&&(a=a.Y(void 0,(function(){return gd(e,t,n,o,i,r)}))),a}a=[];for(var s=c(Array.from(e.childNodes)),l=s.next();!l.done;l=s.next())(l=l.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==ci(l,"http://www.w3.org/1999/xlink","href")?e.removeChild(l):"SegmentTimeline"!=l.tagName&&a.push(gd(l,t,n,o,i,r)));return vo(a).Y((function(){return e}))}function vd(e,t,n,o,i,r,a){var s,l=(new Wo).P("sidx",(function(e){s=function(e,t,n,o,i,r,a){var s=[];a.reader.skip(4);var l=a.reader.K();if(0==l)throw new Ie(2,3,3005);if(0==a.version)var c=a.reader.K(),u=a.reader.K();else c=a.reader.$a(),u=a.reader.$a();a.reader.skip(2);var d=a.reader.$d();for(e=e+a.size+u,u=0;u<d;u++){var p=a.reader.K(),f=(2147483648&p)>>>31;p&=2147483647;var h=a.reader.K();if(a.reader.skip(4),1==f)throw new Ie(2,3,3006);s.push(new ga(c/l+n,(c+h)/l+n,(function(){return r}),e,e+p-1,t,n,o,i)),c+=h,e+=p}return a.parser.stop(),s}(t,o,i,r,a,n,e)}));if(e&&l.parse(e),s)return s;throw new Ie(2,3,3004)}function yd(e){this.h=Re(e),this.g=new Ho(this.h,0)}function _d(e){var t=bd(e);if(7<t.length)throw new Ie(2,3,3002);for(var n=0,o=(t=c(t)).next();!o.done;o=t.next())n=256*n+o.value;t=bd(e);e:{for(var i=(o=c(Sd)).next();!i.done;i=o.next())if(Pe(t,new Uint8Array(i.value))){o=!0;break e}o=!1}if(o)t=e.h.byteLength-e.g.Z();else{if(8==t.length&&224&t[1])throw new Ie(2,3,3001);for(i=o=0;i<t.length;i++){var r=t[i];o=0==i?r&(1<<8-t.length)-1:256*o+r}t=o}return t=e.g.Z()+t<=e.h.byteLength?t:e.h.byteLength-e.g.Z(),o=Re(e.h,e.g.Z(),t),e.g.skip(t),new Ed(n,o)}function bd(e){var t=e.g.Z(),n=e.g.Ra();if(0==n)throw new Ie(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),ke(e.h,t,n)}yd.prototype.ha=function(){return this.g.ha()};var Sd=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Ed(e,t){this.id=e,this.g=t}function Ad(e){if(8<e.g.byteLength)throw new Ie(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new Ie(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++){t=256*t+e.g.getUint8(n)}return t}function Td(e){var t=new yd(e.g);if(179!=(e=_d(t)).id)throw new Ie(2,3,3013);if(e=Ad(e),183!=(t=_d(t)).id)throw new Ie(2,3,3012);t=new yd(t.g);for(var n=0;t.ha();){var o=_d(t);if(241==o.id){n=Ad(o);break}}return{Eg:e,ng:n}}function Pd(e,t){if(!(t=md(e,t,"Initialization")))return null;var n=e.I.wa,o=t.getAttribute("sourceURL");o&&(n=Xe(e.I.wa,[o])),o=0;var i=null;return(t=fi(t,"range",gi))&&(o=t.start,i=t.end),new ma((function(){return n}),o,i,Id(e))}function Od(e,t){var n=Number(hd(e,kd,"presentationTimeOffset"))||0,o=hd(e,kd,"timescale"),i=1;o&&(i=yi(o)||1);var r=n/i||0,a=Pd(e,kd);!function(e,t){if(Ld(e,t),!Rd(e))throw new Ie(2,4,4002)}(e,a);var s=Ao(e);return{Bb:function(){var e=md(s,kd,"RepresentationIndex"),n=s.I.wa;return e&&(e=e.getAttribute("sourceURL"))&&(n=Xe(s.I.wa,[e])),e=Rd(s),Cd(s,t,a,n,e.start,e.end,r)}}}function Cd(e,t,n,o,i,r,a){var s,l,c,u,d,p,f,h,m,g,v,y,_,S,E;return N((function(A){if(1==A.g)return s=e.presentationTimeline,l=!e.Ma||!e.T.Gd,c=e.T.start,u=e.T.duration,d=e.I.mimeType.split("/")[1],f=null,h=[(p=t)(o,i,r),"webm"==d?p(n.ya(),n.Ba,n.ka):null],p=null,b(A,Promise.all(h),2);if(m=A.h,g=m[0],v=m[1]||null,null,_=c-a,S=c,E=u?c+u:1/0,"mp4"==d)var T=vd(g,i,o,n,_,S,E);else{if(440786851!=_d(T=new yd(v)).id)throw new Ie(2,3,3008);var P=_d(T);if(408125543!=P.id)throw new Ie(2,3,3009);T=P.g.byteOffset,P=new yd(P.g);for(var O=null;P.ha();){var C=_d(P);if(357149030==C.id){O=C;break}}if(!O)throw new Ie(2,3,3010);for(O=new yd(O.g),C=1e6,P=null;O.ha();){var k=_d(O);if(2807729==k.id)C=Ad(k);else if(17545==k.id)if(4==k.g.byteLength)P=k.g.getFloat32(0);else{if(8!=k.g.byteLength)throw new Ie(2,3,3003);P=k.g.getFloat64(0)}}if(null==P)throw new Ie(2,3,3011);if(P*=O=C/1e9,475249515!=(C=_d(new yd(g))).id)throw new Ie(2,3,3007);T=function(e,t,n,o,i,r,a,s,l){function c(){return i}var u=[];e=new yd(e.g);for(var d=null,p=null;e.ha();){var f=_d(e);if(187==f.id){var h=Td(f);h&&(f=n*h.Eg,h=t+h.ng,null!=d&&u.push(new ga(d+a,f+a,c,p,h-1,r,a,s,l)),d=f,p=h)}}return null!=d&&u.push(new ga(d+a,o+a,c,p,null,r,a,s,l)),u}(C,T,O,P,o,n,_,S,E)}return y=T,s.Ib(y),f=new Es(y),l&&f.Wa(S,E,!0),A.return(f)}))}function kd(e){return e.wc}function Rd(e){var t=md(e,kd,"RepresentationIndex");return e=gi((e=hd(e,kd,"indexRange"))||""),t&&(e=fi(t,"range",gi,e)),e}function Ld(e,t){var n=e.I.mimeType.split("/")[1];if(e.I.contentType!=et&&"mp4"!=n&&"webm"!=n)throw new Ie(2,4,4006);if("webm"==n&&!t)throw new Ie(2,4,4005)}function Id(e){var t=e.I;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.ad,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function Nd(e,t){var n=Pd(e,wd),o=function(e){var t=function(e){return[e.I.ab,e.fa.ab,e.$.ab].filter(qe).map((function(e){return si(e,"SegmentURL")})).reduce((function(e,t){return 0<e.length?e:t})).map((function(t){return t.getAttribute("indexRange")&&!e.Ke&&(e.Ke=!0),{dg:t.getAttribute("media"),start:(t=fi(t,"mediaRange",gi,{start:0,end:null})).start,end:t.end}}))}(e);e=fd(e,wd);var n=e.Lb;0==n&&(n=1);var o=0;return e.ia?o=e.ia*(n-1):e.timeline&&0<e.timeline.length&&(o=e.timeline[0].start),{ia:e.ia,startTime:o,Lb:n,Sa:e.Sa,timeline:e.timeline,Gb:t}}(e);if(!o.ia&&!o.timeline&&1<o.Gb.length)throw new Ie(2,4,4002);if(!o.ia&&!e.T.duration&&!o.timeline&&1==o.Gb.length)throw new Ie(2,4,4002);if(o.timeline&&0==o.timeline.length)throw new Ie(2,4,4002);var i=null,r=null;e.$.id&&e.I.id&&(r=t[e.$.id+","+e.I.id])&&(i=r.segmentIndex);var a=function(e,t,n,o,i){var r=o.Gb.length;o.timeline&&o.timeline.length!=o.Gb.length&&(r=Math.min(o.timeline.length,o.Gb.length));for(var a=e-o.Sa,s=t?e+t:1/0,l=[],c=o.startTime,u={},d=0;d<r;u={od:u.od},d++){var p=o.Gb[d];u.od=Xe(n,[p.dg]);var f=void 0;f=null!=o.ia?c+o.ia:o.timeline?o.timeline[d].end:c+t,l.push(new ga(e+c,e+f,function(e){return function(){return e.od}}(u),p.start,p.end,i,a,e,s)),c=f}return l}(e.T.start,e.T.duration,e.I.wa,o,n);return t=!i,i?i.Hb(a,e.presentationTimeline.Pa()):i=new Es(a),e.presentationTimeline.Ib(a),e.Ma&&e.T.Gd||i.Wa(e.T.start,e.T.duration?e.T.start+e.T.duration:1/0,t),r&&(r.segmentIndex=i),{Bb:function(){return i&&0!=i.g.length||i.pc(a),Promise.resolve(i)}}}function wd(e){return e.ab}function Dd(e,t,n,o,i,r){var a=function(e){var t=hd(e,Md,"initialization");if(!t)return null;var n=e.I.id,o=e.bandwidth||null,i=e.I.wa;return new ma((function(){var e=pd(t,n,null,o,null);return Xe(i,[e])}),0,null,Id(e))}(e),s=function(e){var t=fd(e,Md),n=hd(e,Md,"media");return e=hd(e,Md,"index"),{ia:t.ia,timescale:t.timescale,Lb:t.Lb,Sa:t.Sa,se:t.se,timeline:t.timeline,Pd:n,oc:e}}(e);!function(e){var t=e.oc?1:0;if(t+=e.timeline?1:0,t+=e.ia?1:0,0==t)throw new Ie(2,4,4002);if(1!=t&&(e.oc&&(e.timeline=null),e.ia=null),!e.oc&&!e.Pd)throw new Ie(2,4,4002)}(s);var l=Ao(e);if(s.oc)return Ld(e,a),{Bb:function(){var e=pd(s.oc,l.I.id,null,l.bandwidth||null,null);return e=Xe(l.I.wa,[e]),Cd(l,t,a,e,0,null,s.Sa)}};if(s.ia)return o||"image"===e.fa.contentType||(e.presentationTimeline.Sd(s.ia),e.presentationTimeline.Td(e.T.start)),{Bb:function(){return function(e,t,n,o,i){function r(e){var n=(e-h)*f,i=n+t.Sa,r=n+u;return n=r+f,(r=new ga(r,Math.min(n,s()),(function(){var t=pd(g,y,e,v,i*m);return Xe(_,[t])}),0,null,o,b,u,s())).j=n,r}function a(){var e=[Math.max(l.Pa(),u),Math.min(l.gb(),s())].map((function(e){return e-u}));return[Math.ceil(e[0]/f),Math.ceil(e[1]/f)-1].map((function(e){return e+h}))}function s(){var e=null!=d&&i[d]||p;return e?u+e:1/0}var l=e.presentationTimeline,u=e.T.start,d=e.$.id,p=e.T.duration,f=t.ia,h=t.Lb,m=t.timescale,g=t.Pd,v=e.bandwidth||null,y=e.I.id,_=e.I.wa,b=u-t.Sa,S=a();e=e.Ma?Math.max(S[0],S[1]-n+1):S[0],S=S[1],n=[];for(var E=e;E<=S;++E){var A=r(E);n.push(A)}var T=new Es(n);if(n=l.gb()<s(),E=l.U(),n||E){var P=Math.max(e,S+1);T.fd(f,(function(){var e=l.Pa();T.eb(e);var t=c(a());t.next(),t=t.next().value;for(var n=[];P<=t;){var o=r(P);n.push(o),P++}return e>s()&&!n.length?null:n}))}return Promise.resolve(T)}(l,s,i,a,r)}};var u=null;o=o=null,e.$.id&&e.I.id&&(o=n[o=e.$.id+","+e.I.id])&&(u=o.segmentIndex);var d=function(e,t,n){var o=e.T.start,i=e.T.duration,r=o-t.Sa;i=i?o+i:1/0;for(var a=[],s={},l=0;l<t.timeline.length;s={nd:s.nd,rd:s.rd,ud:s.ud,kd:s.kd,wd:s.wd,ld:s.ld},l++){var c=t.timeline[l],u=c.start,d=c.Dg;c=c.end,s.ud=l+t.Lb,s.wd=d+t.se,s.rd=e.I.id,s.kd=e.bandwidth||null,s.nd=t.Pd,s.ld=e.I.wa,a.push(new ga(o+u,o+c,function(e){return function(){var t=pd(e.nd,e.rd,e.ud,e.kd||null,e.wd);return Xe(e.ld,[t]).map((function(e){return e.toString()}))}}(s),0,null,n,r,o,i))}return a}(l,s,a);n=e.T.start;var p=e.T.duration?e.T.start+e.T.duration:1/0,f=!(e.Ma&&e.T.Gd);return u?(f&&new Es(d).Wa(n,p,!0),u.Hb(d,e.presentationTimeline.Pa())):u=new Es(d),e.presentationTimeline.Ib(d),f&&u.Wa(n,p),o&&e.Ma&&(o.segmentIndex=u),{Bb:function(){return u&&0!=u.g.length||u.pc(d),Promise.resolve(u)}}}function Md(e){return e.xc}function xd(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.m=new Set}function Fd(e,t,n){var o,i,r,a,s,l,u,d,p,f,h,m,g,v,y,_,E,A,T,P,O,C,k,R,L,I,w,D;return N((function(N){switch(N.g){case 1:if(o=tt,function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],o=c((t=t.value).Kc),i=o.next();!i.done;i=o.next()){i=i.value;for(var r=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.channelsCount==s.channelsCount&&i.language==s.language&&i.bandwidth==s.bandwidth&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&ne(i.roles,s.roles)&&i.audioSamplingRate==s.audioSamplingRate&&i.primary==s.primary&&(r=!0);r||n.push(i)}t.Kc=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],o=c((t=t.value).gd),i=o.next();!i.done;i=o.next()){i=i.value;for(var r=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.frameRate==s.frameRate&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.label==s.label&&ne(i.roles,s.roles)&&jo(i.closedCaptions,s.closedCaptions)&&i.bandwidth==s.bandwidth&&(r=!0);r||n.push(i)}t.gd=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],o=c((t=t.value).textStreams),i=o.next();!i.done;i=o.next()){i=i.value;for(var r=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.language==s.language&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.bandwidth==s.bandwidth&&ne(i.roles,s.roles)&&(r=!0);r||n.push(i)}t.textStreams=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],o=c((t=t.value).imageStreams),i=o.next();!i.done;i=o.next()){i=i.value;for(var r=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&(r=!0);r||n.push(i)}t.imageStreams=n}}(t),!n&&1==t.length){i=t[0],e.g=i.Kc,e.h=i.gd,e.j=i.textStreams,e.i=i.imageStreams,N.A(2);break}for(r=-1,a=0;a<t.length;a++)s=t[a],e.m.has(s.id)||(e.m.add(s.id),-1==r&&(r=a));if(-1==r)return N.return();for(l=t.map((function(e){return e.Kc})),u=t.map((function(e){return e.gd})),d=t.map((function(e){return e.textStreams})),p=t.map((function(e){return e.imageStreams})),f=c(d),h=f.next();!h.done;h=f.next())h.value.push(np(o.X));for(m=c(p),g=m.next();!g.done;g=m.next())g.value.push(np(o.Wb));return b(N,Bd(e.g,l,r,jd,Kd),3);case 3:return b(N,Bd(e.h,u,r,jd,Kd),4);case 4:return b(N,Bd(e.j,d,r,jd,Kd),5);case 5:return b(N,Bd(e.i,p,r,jd,Kd),2);case 2:if(v=0,y=[],e.h.length&&e.g.length)for(O=c(e.g),C=O.next();!C.done;C=O.next())for(k=C.value,R=c(e.h),L=R.next();!L.done;L=R.next())I=L.value,w=Bi(k.drmInfos,I.drmInfos),k.drmInfos.length&&I.drmInfos.length&&!w.length||(D=v++,y.push({id:D,language:k.language,primary:k.primary,audio:k,video:I,bandwidth:(k.bandwidth||0)+(I.bandwidth||0),drmInfos:w,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(_=e.h.concat(e.g),E=c(_),A=E.next();!A.done;A=E.next())T=A.value,P=v++,y.push({id:P,language:T.language,primary:T.primary,audio:T.type==o.Hc?T:null,video:T.type==o.va?T:null,bandwidth:T.bandwidth||0,drmInfos:T.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});e.l=y,S(N)}}))}function Ud(e){var t,n,o,i,r,a,s,l,u,d,p,f,h,m,g,v,y,_,S,E,A,T,P,O;return N((function(C){switch(C.g){case 1:if(t=tt,1==e.length)return C.return(e[0]);for(n=e.map((function(e){return e.filter((function(e){return e.type==t.Hc}))})),o=e.map((function(e){return e.filter((function(e){return e.type==t.va}))})),i=e.map((function(e){return e.filter((function(e){return e.type==t.X}))})),r=e.map((function(e){return e.filter((function(e){return e.type==t.Wb}))})),a=c(i),s=a.next();!s.done;s=a.next())s.value.push(tp(t.X));for(l=c(r),u=l.next();!u.done;u=l.next())u.value.push(tp(t.Wb));return b(C,Bd([],n,0,Hd,Yd),2);case 2:return d=C.h,b(C,Bd([],o,0,Hd,Yd),3);case 3:return p=C.h,b(C,Bd([],i,0,Hd,Yd),4);case 4:return f=C.h,b(C,Bd([],r,0,Hd,Yd),5);case 5:if(h=C.h,m=0,p.length&&d.length)for(_=c(d),S=_.next();!S.done;S=_.next())for(E=S.value,A=c(p),T=A.next();!T.done;T=A.next())P=T.value,O=m++,P.variantIds.push(O),E.variantIds.push(O);else for(g=p.concat(d),v=c(g),y=v.next();!y.done;y=v.next())y.value.variantIds=[m++];return C.return(p.concat(d).concat(f).concat(h))}}))}function Bd(e,t,n,o,i){var r,a,s,l,u,d,p,f,h,m,g,v,y,_,S,E,A,T;return N((function(P){switch(P.g){case 1:for(r=tt,a=[],s=0;s<t.length;s++)s>=n?a.push(new Set(t[s])):a.push(new Set);l=c(e),u=l.next();case 2:if(u.done){P.A(4);break}return b(P,function(e,t,n,o,i){return N((function(r){return 1==r.g?(Wd(t,e),e.matchedStreams?e.segmentIndex?b(r,Vd(e,n),2):r.A(2):r.return(!1)):(Jd(e,n,o,i),r.return(!0))}))}(u.value,t,n,i,a),5);case 5:if(!P.h)throw new Ie(2,4,4037);u=l.next(),P.A(2);break;case 4:for(d=c(a),p=d.next();!p.done;p=d.next())for(f=p.value,h=c(f),m=h.next();!m.done;m=h.next())g=m.value,(v=Gd(g,t,o,i,a))&&e.push(v);for(y=c(a),p=y.next();!p.done;p=y.next())for(_=p.value,S={},E=c(_),m=E.next();!m.done;S={Va:S.Va},m=E.next())if(S.Va=m.value,A=S.Va.type==r.X&&!S.Va.language,T=S.Va.type==r.Wb&&!S.Va.tilesLayout,!A&&!T&&e.some(function(e){return function(t){return t.mimeType==e.Va.mimeType&&Kt(t.codecs)==Kt(e.Va.codecs)}}(S)))throw new Ie(2,4,4037);return P.return(e)}}))}function Vd(e,t){var n,o,i,r,a,s,l;return N((function(u){if(1==u.g){for(n=[],o=e.matchedStreams,i=c(o),r=i.next();!r.done;r=i.next())a=r.value,n.push(a.createSegmentIndex()),a.trickModeVideo&&!a.trickModeVideo.segmentIndex&&n.push(a.trickModeVideo.createSegmentIndex());return b(u,Promise.all(n),2)}if(e.segmentIndex instanceof Os)for(s=0;s<o.length;s++)(l=o[s]).segmentIndex&&s>=t&&e.segmentIndex.l.push(l.segmentIndex);S(u)}))}function Gd(e,t,n,o,i){var r=n(e);return Wd(t,r),r.createSegmentIndex&&(r.createSegmentIndex=function(){return N((function(e){return r.segmentIndex?e.A(0):(r.segmentIndex=new Os,b(e,Vd(r,0),0))}))}),r.matchedStreams?(Jd(r,0,o,i),r):null}function Jd(e,t,n,o){for(var i=e.matchedStreams,r=0;r<i.length;r++)if(r>=t){var a=i[r];n(e,a);var s=!0;"audio"==e.type&&0==an(e.language,a.language)&&(s=!1),s&&o[r].delete(a)}}function jd(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=c(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function Hd(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Kd(e,t){var n,o;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,o=t.keyIds,new Set([].concat(u(n),u(o)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var i=Bi(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new Ie(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var r=(i=c(t.closedCaptions)).next();!r.done;r=i.next()){var a=c(r.value);r=a.next().value,a=a.next().value,e.closedCaptions.set(r,a)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=jd(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),Kd(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Kd(e.trickModeVideo,t)}function Yd(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set([].concat(u(e.keyIds),u(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,u(t.segments)),t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),n=(t=c(t.closedCaptions)).next();!n.done;n=t.next()){var o=c(n.value);n=o.next().value,o=o.next().value,e.closedCaptions.set(n,o)}}function Wd(e,t){for(var n=[],o=(e=c(e)).next();!o.done;o=e.next()){for(var i=t,r={audio:zd,video:zd,text:qd,image:Xd}[i.type],a={audio:Zd,video:Qd,text:$d,image:ep}[i.type],s=null,l=(o=c(o.value)).next();!l.done;l=o.next())!r(i,l=l.value)||s&&!a(i,s,l)||(s=l);if(!(i=s))return;n.push(i)}t.matchedStreams=n}function zd(e,t){var n;return!(n=t.mimeType!=e.mimeType||Kt(t.codecs)!=Kt(e.codecs))&&(n=e.drmInfos)&&(e=e.drmInfos,t=t.drmInfos,n=!(!e.length||!t.length||0<Bi(e,t).length)),!n}function qd(e,t){return!!e.language&&(!t.language||0!=an(e.language,t.language)&&t.kind==e.kind)}function Xd(e){return!!e.tilesLayout}function Zd(e,t,n){if(e.id==n.id)return!0;var o=an(e.language,t.language),i=an(e.language,n.language);return i>o||!(i<o)&&(e.roles.length?(o=t.roles.filter((function(t){return e.roles.includes(t)})),(i=n.roles.filter((function(t){return e.roles.includes(t)}))).length>o.length||!(i.length<o.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&((o=op(e.channelsCount,t.channelsCount,n.channelsCount))==rp||o!=sp&&((o=op(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==rp||o!=sp&&!(!e.bandwidth||ip(e.bandwidth,t.bandwidth,n.bandwidth)!=rp)))))}function Qd(e,t,n){if(e.id==n.id)return!0;var o=op(e.width*e.height,t.width*t.height,n.width*n.height);if(o==rp)return!0;if(o==sp)return!1;if(e.frameRate){if((o=op(e.frameRate,t.frameRate,n.frameRate))==rp)return!0;if(o==sp)return!1}return!(!e.bandwidth||ip(e.bandwidth,t.bandwidth,n.bandwidth)!=rp)}function $d(e,t,n){if(e.id==n.id)return!0;var o=an(e.language,t.language),i=an(e.language,n.language);if(i>o)return!0;if(i<o)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(o=t.roles.filter((function(t){return e.roles.includes(t)})),(i=n.roles.filter((function(t){return e.roles.includes(t)}))).length>o.length)return!0;if(i.length<o.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function ep(e,t,n){return e.id==n.id||op(e.width*e.height,t.width*t.height,n.width*n.height)==rp}function tp(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function np(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function op(e,t,n){if(t==e&&e!=n)return sp;if(n==e&&e!=t)return rp;if(t>e){if(n<=e||n-e<t-e)return rp;if(n-e>t-e)return sp}else{if(n>e)return sp;if(e-n<e-t)return rp;if(e-n>e-t)return sp}return ap}function ip(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?rp:t<e?sp:ap}xd.prototype.release=function(){for(var e=c(this.g.concat(this.h,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.h=[],this.j=[],this.i=[],this.l=[]};var rp=1,ap=0,sp=-1;function lp(){var e=this;this.h=this.g=null,this.m=[],this.i=null,this.G=1,this.l={},this.L={},this.j=new xd,this.F=0,this.H=new G(5),this.D=new at((function(){!function(e){var t,n;N((function(o){switch(o.g){case 1:return t=0,E(o,2),b(o,cp(e),4);case 4:t=o.h,T(o,3);break;case 2:n=P(o),e.h&&(n.severity=1,e.h.onError(n));case 3:if(!e.h)return o.return();fp(e,t),S(o)}}))}(e)})),this.o=new To,this.s=null,this.J=[],this.u=1/0,this.B=!1}function cp(e){var t,n,o,i,r,a,s;return N((function(l){return 1==l.g?(t=ko(e.m,e.g.retryParameters),n=e.h.networkingEngine,e.h.modifyManifestRequest(t,{format:"d"}),o=Date.now(),i=n.request(0,t),Po(e.o,i),b(l,i.promise,2)):3!=l.g?(r=l.h,e.h?(r.uri&&!e.m.includes(r.uri)&&e.m.unshift(r.uri),b(l,function(e,t,n){var o,i,r,a;return N((function(s){if(1==s.g){if(!(o=Ai(t,"MPD")))throw new Ie(2,4,4001,n);return e.g.dash.disableXlinkProcessing?s.return(up(e,o,n)):(i=e.g.dash.xlinkFailGracefully,r=gd(o,e.g.retryParameters,i,n,e.h.networkingEngine),Po(e.o,r),b(s,r.promise,2))}return a=s.h,s.return(up(e,a,n))}))}(e,r.data,r.uri),3)):l.return(0)):(a=Date.now(),s=(a-o)/1e3,e.H.sample(1,s),l.return(s))}))}function up(e,t,n){var o,i,r,a,s,l,u,d,p,f,h,m,g,v,y,_,A,O,C,k,R,L,I,w,D,M,x,F,U;return N((function(B){switch(B.g){case 1:if((o=e.g.dash.manifestPreprocessor)&&o(t),i=[n],0<(r=si(t,"Location").map(di).filter(qe)).length&&(a=Xe(i,r),i=e.m=a),s=si(t,"BaseURL"),l=s.map(di),u=Xe(i,l),d=0,s&&s.length&&(d=fi(s[0],"availabilityTimeOffset",bi)||0),p=e.g.dash.ignoreMinBufferTime,f=0,p||(f=fi(t,"minBufferTime",mi)||0),e.F=fi(t,"minimumUpdatePeriod",mi,-1),h=fi(t,"availabilityStartTime",hi),m=fi(t,"timeShiftBufferDepth",mi),g=e.g.dash.ignoreSuggestedPresentationDelay,v=null,g||(v=fi(t,"suggestedPresentationDelay",mi)),y=e.g.dash.ignoreMaxSegmentDuration,_=null,y||(_=fi(t,"maxSegmentDuration",mi)),A=t.getAttribute("type")||"static",e.i)for(O=e.i.presentationTimeline,C=c(Object.values(e.l)),k=C.next();!k.done;k=C.next())(R=k.value).segmentIndex&&R.segmentIndex.eb(O.Pa());else L=e.g.defaultPresentationDelay||1.5*f,O=new ns(h,null!=v?v:L,e.g.dash.autoCorrectDrift);return O.yc("static"==A),O.U()&&!isNaN(e.g.availabilityWindowOverride)&&(m=e.g.availabilityWindowOverride),null==m&&(m=1/0),O.me(m),I=t.getAttribute("profiles")||"",w={Ma:"static"!=A,presentationTimeline:O,$:null,T:null,fa:null,I:null,bandwidth:0,Ke:!1,zb:d,profiles:I.split(",")},D=function(e,t,n,o){var i=fi(o,"mediaPresentationDuration",mi),r=[],a=0;o=si(o,"Period");for(var s=0;s<o.length;s++){var l=o[s],c=o[s+1],u=fi(l,"start",mi,a),d=l.id,p=fi(l,"duration",mi),f=null;if(c){var h=fi(c,"start",mi);null!=h&&(f=h-u)}else null!=i&&(f=i-u);if(null==f&&(f=p),!(null!==e.s&&null!==d&&null!==u&&u<e.s)||e.J.includes(d)||s+1==o.length){if(null!==u&&(null===e.s||u>e.s)&&(e.s=u),a=dp(e,t,n,{start:u,duration:f,node:l,Gd:null==f||!c}),r.push(a),t.$.id&&f&&(e.L[t.$.id]=f),null==f){a=null;break}a=u+f}}return e.J=r.map((function(e){return e.id})),null!=i?{periods:r,duration:i,De:!1}:{periods:r,duration:a,De:!0}}(e,w,u,t),M=D.duration,x=D.periods,"static"!=A&&D.De||O.Aa(M||1/0),e.u&&!e.B&&e.h.isAutoLowLatencyMode()&&(e.h.enableLowLatencyMode(),e.B=e.h.isLowLatencyMode()),e.B?O.Ue(e.u):e.u&&Y("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),O.Sd(_||1),b(B,Fd(e.j,x,w.Ma),2);case 2:if(e.i){e.i.variants=e.j.l,e.i.textStreams=e.j.j.slice(),e.i.imageStreams=e.j.i,e.h.filter(e.i),B.A(3);break}if(e.i={presentationTimeline:O,variants:e.j.l,textStreams:e.j.j.slice(),imageStreams:e.j.i,offlineSessionIds:[],minBufferTime:f||0,sequenceMode:e.g.dash.sequenceMode},!O.df()){B.A(4);break}return F=si(t,"UTCTiming"),b(B,function(e,t,n){var o,i,r,a,s,l,u,d;return N((function(p){switch(p.g){case 1:o=n.map((function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}})),i=e.g.dash.clockSyncUri,!o.length&&i&&o.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:i}),r=c(o),a=r.next();case 2:if(a.done){p.A(4);break}switch(s=a.value,E(p,5),l=s.scheme,u=s.value,l){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return p.A(7);case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return p.A(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return d=Date.parse(u),p.return(isNaN(d)?0:d-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":Y("NTP UTCTiming scheme is not supported");break;default:Y("Unrecognized scheme in UTCTiming element",l)}p.A(9);break;case 7:return b(p,mp(e,t,u,"HEAD"),10);case 10:return p.return(p.h);case 8:return b(p,mp(e,t,u,"GET"),11);case 11:return p.return(p.h);case 9:T(p,3);break;case 5:P(p);case 3:a=r.next(),p.A(2);break;case 4:return Y("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),p.return(0)}}))}(e,u,F),5);case 5:if(U=B.h,!e.h)return B.return();O.Ve(U);case 4:O.Md();case 3:e.h.makeTextStreamsForClosedCaptions(e.i),S(B)}}))}function dp(e,t,n,o){t.$=hp(o.node,null,n),t.T=o,t.$.zb=t.zb,t.$.id||(t.$.id="__shaka_period_"+o.start);var i=si(o.node,"EventStream");n=t.presentationTimeline.Pa();for(var r=(i=c(i)).next();!r.done;r=i.next())gp(e,o.start,o.duration,r.value,n);if(n=si(o.node,"AdaptationSet").map((function(n){return function(e,t,n){function o(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.fa=hp(n,t.$,null);var i,r=!1,a=si(n,"Role"),s=a.map((function(e){return e.getAttribute("value")})).filter(qe),l=void 0,d=t.fa.contentType==et;d&&(l="subtitle");for(var p=(a=c(a)).next();!p.done;p=a.next()){var f=(p=p.value).getAttribute("schemeIdUri");if(null==f||"urn:mpeg:dash:role:2011"==f)switch(p=p.getAttribute("value"),p){case"main":r=!0;break;case"caption":case"subtitle":l=p}}f=si(n,"EssentialProperty"),a=null,p=!1;for(var h=(f=c(f)).next();!h.done;h=f.next()){var m=(h=h.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==m?a=h.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==m?i=o(parseInt(h.getAttribute("value"),10)):p=!0}for(f=c(f=si(n,"SupplementalProperty")),h=f.next();!h.done;h=f.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(h=h.value).getAttribute("schemeIdUri")&&(i=o(parseInt(h.getAttribute("value"),10)));f=si(n,"Accessibility");var g=new Map;for(f=c(f),h=f.next();!h.done;h=f.next())if(m=h.value,h=m.getAttribute("schemeIdUri"),m=m.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==h)if(h=1,null!=m)for(var v=c(m=m.split(";")),y=v.next();!y.done;y=v.next()){var _=y.value,E=y=void 0;_.includes("=")?(y=(_=_.split("="))[0].startsWith("CC")?_[0]:"CC"+_[0],E=_[1]||"und"):(y="CC"+h,2==m.length?h+=2:h++,E=_),g.set(y,rn(E))}else g.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==h)if(h=1,null!=m)for(m=c(m.split(";")),y=m.next();!y.done;y=m.next())y=y.value,_=v=void 0,y.includes("=")?(y=y.split("="),v="svc"+y[0],_=y[1].split(",")[0].split(":").pop()):(v="svc"+h,h++,_=y),g.set(v,rn(_));else g.set("svc1","und");else"urn:mpeg:dash:role:2011"==h&&null!=m&&(s.push(m),"captions"==m&&(l="caption"));if(p)return null;p=si(n,"ContentProtection");var A=sd(p,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),T=rn(n.getAttribute("lang")||"und"),P=n.getAttribute("label");if((p=si(n,"Label"))&&p.length&&(p=p[0],p.textContent&&(P=p.textContent)),p=si(n,"Representation"),n=p.map((function(n){return(n=function(e,t,n,o,i,r,a,s,l,c){if(t.I=hp(c,t.fa,null),e.u=Math.min(e.u,t.I.zb),!function(e){var t=e.wc?1:0;return t+=e.ab?1:0,t+=e.xc?1:0,0==t?e.contentType==et||"application"==e.contentType:(1!=t&&(e.wc&&(e.ab=null),e.xc=null),!0)}(t.I))return null;var u=t.T.start;t.bandwidth=fi(c,"bandwidth",yi)||0;var d=t.I.contentType,p=d==et||"application"==d;d="image"==d;try{var f=function(t,n,o){return function(e,t,n,o){var i,r,a,s,l;return N((function(c){return 1==c.g?(i=No,r=Us(t,n,o,e.g.retryParameters),a=e.h.networkingEngine,s=a.request(i,r),Po(e.o,s),b(c,s.promise,2)):(l=c.h,c.return(l.data))}))}(e,t,n,o)};if(t.I.wc)var h=Od(t,f);else if(t.I.ab)h=Nd(t,e.l);else if(t.I.xc)h=Dd(t,f,e.l,!!e.i,e.g.dash.initialSegmentLimit,e.L);else{var m=t.I.wa,g=t.T.duration||0;h={Bb:function(){return Promise.resolve(Ts(u,g,m))}}}}catch(e){if((p||d)&&4002==e.code)return null;throw e}f=si(c,"ContentProtection"),f=function(e,t,n,o){var i=sd(e,n,o);if(t.Fe)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==i.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=i.drmInfos),t.Fe=!1;else if(0<i.drmInfos.length&&(t.drmInfos=t.drmInfos.filter((function(e){return i.drmInfos.some((function(t){return t.keySystem==e.keySystem}))})),0==t.drmInfos.length))throw new Ie(2,4,4008);return i.Be||t.Be}(f,n,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),f=new Set(f?[f]:[]);var v=!1;si(c,"SupplementalProperty").some((function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")}))&&(v=!0);var y,_,E=!1;if(p&&(E=s.includes("forced_subtitle")||s.includes("forced-subtitle")),d&&((c=si(c,"EssentialProperty").find((function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))})))&&(y=c.getAttribute("value")),!y))return null;c=t.I.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(c.includes("hvc1.2.4.L153.B0")||c.includes("hev1.2.4.L153.B0"))&&(_="PQ");var A=t.I.id?t.$.id+","+t.I.id:"",T={id:e.G++,originalId:t.I.id,createSegmentIndex:function(){var n,o;return N((function(i){if(1==i.g)return(n=A&&t.Ma&&e.l[A]?e.l[A]:T).segmentIndex?i.A(0):(o=n,b(i,h.Bb(),3));o.segmentIndex=i.h,S(i)}))},closeSegmentIndex:function(){T.segmentIndex&&(T.segmentIndex.release(),T.segmentIndex=null)},segmentIndex:null,mimeType:t.I.mimeType,codecs:t.I.codecs,frameRate:t.I.frameRate,pixelAspectRatio:t.I.pixelAspectRatio,bandwidth:t.bandwidth,width:t.I.width,height:t.I.height,kind:o,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:f,language:i,label:r,type:t.fa.contentType,primary:a,trickModeVideo:null,emsgSchemeIdUris:t.I.emsgSchemeIdUris,roles:s,forced:E,channelsCount:t.I.ad,audioSamplingRate:t.I.audioSamplingRate,spatialAudio:v,closedCaptions:l,hdr:_,tilesLayout:y,matchedStreams:[]};return A&&t.Ma&&!e.l[A]&&(e.l[A]=T),T}(e,t,A,l,T,P,r,s,g,n))&&(n.hdr=n.hdr||i),n})).filter((function(e){return!!e})),0==n.length){if(a="image"==t.fa.contentType,e.g.dash.ignoreEmptyAdaptationSet||d||a)return null;throw new Ie(2,4,4003)}if(!t.fa.contentType||"application"==t.fa.contentType)for(t.fa.contentType=vp(n[0].mimeType,n[0].codecs),d=c(n),f=d.next();!f.done;f=d.next())f.value.type=t.fa.contentType;for(d=c(n),f=d.next();!f.done;f=d.next())for(f=f.value,h=c(A.drmInfos),m=h.next();!m.done;m=h.next())(m=m.value).keyIds=m.keyIds&&f.keyIds?new Set([].concat(u(m.keyIds),u(f.keyIds))):m.keyIds||f.keyIds;return d=p.map((function(e){return e.getAttribute("id")})).filter(qe),{id:t.fa.id||"__fake__"+e.G++,contentType:t.fa.contentType,language:T,th:r,streams:n,drmInfos:A.drmInfos,qe:a,qg:d}}(e,t,n)})).filter(qe),t.Ma){for(o=[],r=(i=c(n)).next();!r.done;r=i.next())for(var a=(r=c(r.value.qg)).next();!a.done;a=r.next())o.push(a.value);if(o.length!=new Set(o).size)throw new Ie(2,4,4018)}for(o=n.filter((function(e){return!e.qe})),i=(n=c(n=n.filter((function(e){return e.qe})))).next();!i.done;i=n.next()){r=(i=i.value).qe.split(" ");for(var s=(a=c(o)).next();!s.done;s=a.next()){var l=s.value;if(r.includes(l.id)){s={};for(var d=(l=c(l.streams)).next();!d.done;s={Gc:s.Gc},d=l.next())s.Gc=d.value,s.Gc.trickModeVideo=i.streams.find(function(e){return function(t){return Kt(e.Gc.codecs)==Kt(t.codecs)}}(s))}}}if(i=e.g.disableAudio?[]:pp(o,"audio"),a=e.g.disableVideo?[]:pp(o,"video"),r=e.g.disableText?[]:pp(o,et),n=e.g.disableThumbnails?[]:pp(o,"image"),!a.length&&!i.length)throw new Ie(2,4,4004);for(o=[],s=(i=c(i)).next();!s.done;s=i.next())o.push.apply(o,u(s.value.streams));for(i=[],s=(a=c(a)).next();!s.done;s=a.next())i.push.apply(i,u(s.value.streams));for(a=[],s=(r=c(r)).next();!s.done;s=r.next())a.push.apply(a,u(s.value.streams));for(r=[],s=(n=c(n)).next();!s.done;s=n.next())r.push.apply(r,u(s.value.streams));return{id:t.$.id,Kc:o,gd:i,textStreams:a,imageStreams:r}}function pp(e,t){return e.filter((function(e){return e.contentType==t}))}function fp(e,t){0>e.F||e.D.N(Math.max(3,e.F-t,J(e.H)))}function hp(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ad:null,audioSamplingRate:null,zb:0},n=n||t.wa;for(var o=si(e,"BaseURL"),i=o.map(di),r=e.getAttribute("contentType")||t.contentType,a=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,l=fi(e,"frameRate",Si)||t.frameRate,u=e.getAttribute("sar")||t.pixelAspectRatio,d=si(e,"InbandEventStream"),p=t.emsgSchemeIdUris.slice(),f=(d=c(d)).next();!f.done;f=d.next())f=f.value.getAttribute("schemeIdUri"),p.includes(f)||p.push(f);d=function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(d=si(e,"AudioChannelConfiguration"))||t.ad,f=fi(e,"audioSamplingRate",_i)||t.audioSamplingRate,r||(r=vp(a,s));var h=ri(e,"SegmentBase"),m=ri(e,"SegmentTemplate"),g=h&&fi(h,"availabilityTimeOffset",bi)||0,v=m&&fi(m,"availabilityTimeOffset",bi)||0;return o=o&&o.length&&fi(o[0],"availabilityTimeOffset",bi)||0,o=t.zb+o+g+v,{wa:Xe(n,i),wc:h||t.wc,ab:ri(e,"SegmentList")||t.ab,xc:m||t.xc,width:fi(e,"width",_i)||t.width,height:fi(e,"height",_i)||t.height,contentType:r,mimeType:a,codecs:s,frameRate:l,pixelAspectRatio:u,emsgSchemeIdUris:p,id:e.getAttribute("id"),ad:d,audioSamplingRate:f,zb:o}}function mp(e,t,n,o){var i,r,a,s,l,c;return N((function(u){if(1==u.g)return i=Xe(t,[n]),(r=ko(i,e.g.retryParameters)).method=o,a=e.h.networkingEngine.request(4,r),Po(e.o,a),b(u,a.promise,2);if(s=u.h,"HEAD"==o){if(!s.headers||!s.headers.date)return u.return(0);l=s.headers.date}else l=St(s.data);return c=Date.parse(l),isNaN(c)?u.return(0):u.return(c-Date.now())}))}function gp(e,t,n,o,i){for(var r=o.getAttribute("schemeIdUri")||"",a=o.getAttribute("value")||"",s=fi(o,"timescale",_i)||1,l=(o=c(si(o,"Event"))).next();!l.done;l=o.next()){var u=fi(l=l.value,"presentationTime",_i)||0,d=fi(l,"duration",_i)||0;d=(u=u/s+t)+d/s,null!=n&&(u=Math.min(u,t+n),d=Math.min(d,t+n)),d<i||(l={schemeIdUri:r,value:a,startTime:u,endTime:d,id:l.getAttribute("id")||"",eventElement:l},e.h.onTimelineRegionAdded(l))}}function vp(e,t){return qt(jt(e,t))?et:e.split("/")[0]}function yp(e,t,n,o){this.h=e,this.type=t,this.g=n,this.segments=o||null}function _p(e,t,n,o){this.id=e,this.name=t,this.g=n,this.value=void 0===o?null:o}function bp(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function Sp(e,t){if(!(e=e.getAttribute(t)))throw new Ie(2,4,4023,t);return e.value}function Ep(e,t,n){n=void 0===n?[]:n,this.g=t,this.i=e,this.h=n}function Ap(e,t){this.name=e,this.value=t}function Tp(e,t){return e.filter((function(e){return e.name==t}))}function Pp(e,t){return e.filter((function(e){return Sp(e,"TYPE")==t}))}function Op(e,t){return(e=Tp(e,t)).length?e[0]:null}function Cp(e,t){var n=0;return n=void 0===n?0:n,(e=Op(e,t))?Number(e.value):n}function kp(e,t){return Xe([e],[t])[0]}function Rp(e){this.h=e,this.g=0}function Lp(e){Ip(e,/[ \t]+/gm)}function Ip(e,t){return t.lastIndex=e.g,t=null==(t=t.exec(e.h))?null:{position:t.index,length:t[0].length,results:t},e.g==e.h.length||null==t||t.position!=e.g?null:(e.g+=t.length,t.results)}function Np(e){return e.g==e.h.length?null:(e=Ip(e,/[^ \t\n]*/gm))?e[0]:null}function wp(){this.g=0}function Dp(e,t,n){var o=(t=(t=St(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(o[0]))throw new Ie(2,4,4015);t=0;for(var i=!0,r=c(o),a=r.next();!a.done;a=r.next())if(a=a.value,/^#(?!EXT)/m.test(a)||i)i=!1;else{if(a=Mp(e,a),--e.g,xp.includes(a.name)){t=1;break}"EXT-X-STREAM-INF"==a.name&&(i=!0)}for(r=[],i=!0,a=0;a<o.length;a++){var s=o[a],l=o[a+1];if(/^#(?!EXT)/m.test(s)||i)i=!1;else{if(s=Mp(e,s),Fp.includes(s.name)){if(1!=t)throw new Ie(2,4,4017);var u=o.splice(a,o.length-a);o=n,i=[],a=[],l=[],s=null;for(var d=(u=c(u)).next();!d.done;d=u.next())d=d.value,/^(#EXT)/.test(d)?(d=Mp(e,d),xp.includes(d.name)?r.push(d):"EXT-X-MAP"==d.name?s=d:"EXT-X-PART"==d.name?l.push(d):"EXT-X-PRELOAD-HINT"==d.name?"PART"==bp(d,"TYPE")?l.push(d):"MAP"==bp(d,"TYPE")&&(d.name="EXT-X-MAP",s=d):a.push(d)):/^#(?!EXT)/m.test(d)||(d=kp(o,d.trim()),s&&a.push(s),i.push(new Ep(d,a,l)),a=[],l=[]);return l.length&&(s&&a.push(s),i.push(new Ep("",a,l))),new yp(n,t,r,i)}r.push(s),"EXT-X-STREAM-INF"==s.name&&(s.g.push(new Ap("URI",l)),i=!0)}}return new yp(n,t,r)}function Mp(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new Ie(2,4,4016,t);t=n[1];var o,i=n[2];if(n=[],i){var r;(r=Ip(i=new Rp(i),/^([^,=]+)(?:,|$)/g))&&(o=r[1]);for(var a=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;r=Ip(i,a);)n.push(new Ap(r[1],r[2]||r[3])),Lp(i)}return new _p(e,t,n,o)}(o=lp.prototype).configure=function(e){this.g=e},o.start=function(e,t){var n,o=this;return N((function(i){if(1==i.g)return o.B=t.isLowLatencyMode(),o.m=[e],o.h=t,b(i,cp(o),2);if(n=i.h,o.h&&fp(o,n),!o.h)throw new Ie(2,7,7001);return i.return(o.i)}))},o.stop=function(){for(var e=c(Object.values(this.l)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.j&&this.j.release(),this.g=this.h=null,this.m=[],this.i=null,this.l={},this.j=null,null!=this.D&&(this.D.stop(),this.D=null),this.o.destroy()},o.update=function(){var e,t=this;return N((function(n){return 1==n.g?(E(n,2),b(n,cp(t),4)):2!=n.g?T(n,0):(e=P(n),t.h&&e?(t.h.onError(e),void S(n)):n.return())}))},o.onExpirationUpdated=function(){},V("shaka.dash.DashParser",lp),$i.mpd=function(){return new lp},Qi["application/dash+xml"]=function(){return new lp},Qi["video/vnd.mpeg.dash.mpd"]=function(){return new lp},_p.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},_p.prototype.getAttribute=function(e){var t=this.g.filter((function(t){return t.name==e}));return t.length?t[0]:null};var xp="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Fp="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Up(){}function Bp(e){try{var t=Vp(e);return mo({uri:e,Oe:e,data:t.data,headers:{"content-type":t.contentType}})}catch(e){return fo(e)}}function Vp(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new Ie(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new Ie(2,1,1004,t);var o=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=o.split(";"),o=n[0];var i=!1;return 1<n.length&&"base64"==n[n.length-1]&&(i=!0,n.pop()),{data:i?Lt(t):Tt(t),contentType:o}}function Gp(){var e=this;this.g=this.i=null,this.Fa=1,this.o=new Map,this.u=new Map,this.F=new Map,this.F.set("video",new Map),this.F.set("audio",new Map),this.F.set(et,new Map),this.F.set("image",new Map),this.ua=new Set,this.h=new Map,this.j=null,this.M="",this.W=new wp,this.O=0,this.B=-1,this.H=1/0,this.Ga=!1,this.m=new at((function(){!function(e){var t,n;N((function(o){return 1==o.g?e.i?(E(o,2),b(o,e.update(),4)):o.return():2!=o.g?(mf(e)&&(t=e.O,e.m.N(t)),T(o,0)):(n=P(o),e.i?(n.severity=1,e.i.onError(n),e.m.N(.1),void S(o)):o.return())}))}(e)})),this.ea=Af,this.D=null,this.ca=0,this.J=1/0,this.V=this.da=0,this.G=new To,this.L=new Map,this.s=new Map,this.ba=new Map,this.l=!1}function Jp(e,t){return mf(e)?e.F.get(t.type):t.$c}function jp(e,t){var n,o,i,r,a,s,l,c,d,p,f,h,m,g,v;return N((function(y){if(1==y.g)return n=t.Jc,o=new we(n),e.l&&t.Mc&&xe(o,new Ke("_HLS_skip=YES")),b(y,hf(e,o.toString()),2);if(i=y.h,!t.stream.segmentIndex)return y.return();if(1!=(r=Dp(e.W,i.data,i.uri)).type)throw new Ie(2,4,4017);a=Tp(r.g,"EXT-X-DEFINE"),s=Yp(e,a),l=t.stream,c=Jp(e,t),d=nf(r,l.mimeType),p=d.keyIds,f=d.drmInfos,function(e,t){return e.size===t.size&&[].concat(u(e)).every((function(e){return t.has(e)}))}(l.keyIds,p)||(l.keyIds=p,l.drmInfos=f,e.i.newDrmInfo(l)),h=uf(e,r,l.type,c,s),l.segmentIndex.Hb(h,e.j.Pa()),h.length&&(m=Cp(r.g,"EXT-X-MEDIA-SEQUENCE"),g=c.get(m),l.segmentIndex.eb(g)),v=h[h.length-1],Op(r.g,"EXT-X-ENDLIST")&&(t.mc=!0,t.Ya=v.endTime),S(y)}))}function Hp(e,t,n){t.Ya+=n;for(var o=(t=c(e=Jp(e,t))).next();!o.done;o=t.next()){var i=c(o.value);o=i.next().value,i=i.next().value,e.set(o,i+n)}}function Kp(e){if(mf(e)){if(e.O=e.J,e.ea==Pf){var t=Zp(e);e.g.hls.useSafariBehaviorForLive&&(t=e.j.m),isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.j.me(t)}}else e.j.Aa(Zp(e));e.j.Md()}function Yp(e,t){for(var n=new Map,o=(t=c(t)).next();!o.done;o=t.next()){var i=o.value;o=bp(i,"NAME");var r=bp(i,"VALUE");i=bp(i,"IMPORT"),o&&r&&n.set(o,r),i&&(o=e.o.get(i))&&n.set(i,o)}return n}function Wp(e,t){var n=[];e.g.disableVideo||n.push(e.g.hls.defaultVideoCodec),e.g.disableAudio||n.push(e.g.hls.defaultAudioCodec),n=bp(t,"CODECS",n.join(",")).split(/\s*,\s*/),e=new Set,t=[];for(var o=(n=c(n)).next();!o.done;o=n.next()){var i=Wt(o=o.value)[0];e.has(i)||(t.push(o),e.add(i))}return t}function zp(e){return rn(e=bp(e,"LANGUAGE")||"und")}function qp(e,t){var n=Sp(t,"GROUP-ID"),o="",i=Sp(t,"TYPE").toLowerCase();"subtitles"==i&&(i=et);var r=i;if(r!=et&&n&&e.s.has(n)&&(o=e.s.get(n)),i=df(Sp(t,"URI"),e.o),e.h.has(i))return e.h.get(i);var a=zp(t),s=bp(t,"NAME"),l="YES"==bp(t,"DEFAULT"),c="audio"==r&&(c=bp(t,"CHANNELS"))?parseInt(c.split("/")[0],10):null,u="audio"==r&&(!!(u=bp(t,"CHANNELS"))&&u.includes("/JOC"));return o=Xp(e,i,o,r,a,l,s,c,null,bp(t,"CHARACTERISTICS"),t="YES"==bp(t,"FORCED"),u),e.u.has(n)?e.u.get(n).push(o):e.u.set(n,[o]),e.h.has(i)?e.h.get(i):(e.h.set(i,o),o)}function Xp(e,t,n,o,i,r,a,s,l,u,d,p){function f(f){var h,v,y,_,E,A,T,P,O,C,k,R,L;return N((function(I){if(1==I.g)return b(I,hf(e,g.Jc),2);if(3!=I.g)return h=I.h,f.aborted?I.return():(v=h.uri,y=Dp(e.W,h.data,v),_=mf(e),b(I,ef(e,y,t,v,n,o,i,r,a,s,l,u,d,p),3));if(E=I.h,f.aborted)return I.return();if(A=E.stream,mf(e)&&!_&&af(e),g.Jc=v,g.Ya=E.Ya,g.Mc=E.Mc,g.mc=E.mc,g.$c=E.$c,g.Ld=!0,m.segmentIndex=A.segmentIndex,m.encrypted=A.encrypted,m.drmInfos=A.drmInfos,m.keyIds=A.keyIds,m.mimeType=A.mimeType,ts.includes(m.mimeType)&&(m.codecs=""),m.drmInfos.length&&e.i.newDrmInfo(m),o==(T=tt).va||o==T.Hc)for(P=c(e.h.values()),O=P.next();!O.done;O=P.next())(C=O.value).Ld||C.type!=o||(C.stream.mimeType=A.mimeType,ts.includes(C.stream.mimeType)&&(C.stream.codecs=""));(function(e){if(!e.D)return!1;for(var t=[],n=[],o=(e=c(e.D.variants)).next();!o.done;o=e.next())(o=o.value).video&&t.push(o.video),o.audio&&n.push(o.audio);return!(0<t.length&&!t.some((function(e){return e.segmentIndex}))||0<n.length&&!n.some((function(e){return e.segmentIndex})))})(e)&&(e.Ga?$p(e,[g]):(e.Ga=!0,k=Array.from(e.h.values()),R=k.filter((function(e){return e.stream.segmentIndex})),$p(e,R),Kp(e),0<(L=e.O)&&e.m.N(L))),S(I)}))}var h=kp(e.M,t),m=tf(e,n,o,i,r,a,s,l,u,d,p);ts.includes(m.mimeType)&&(m.codecs="");var g={stream:m,type:o,Ac:t,Jc:h,Ya:0,$c:new Map,Mc:!1,mc:!1,Cd:-1,Ld:!1},v=null,y=new AbortController;return m.createSegmentIndex=function(){return v||(y=new AbortController,v=new Promise((function(e){e(f(y.signal))})))},m.closeSegmentIndex=function(){v&&!m.segmentIndex&&y.abort(),m.segmentIndex&&(m.segmentIndex.release(),m.segmentIndex=null),v=null},g}function Zp(e){for(var t=1/0,n=(e=c(e.h.values())).next();!n.done;n=e.next())(n=n.value).stream.segmentIndex&&"text"!=n.stream.type&&(t=Math.min(t,n.Ya));return t}function Qp(e,t){for(var n=[],o=(t=c(t)).next();!o.done;o=t.next())(o=o.value).segmentIndex&&As(o.segmentIndex,(function(e){n.push(e)}));e.j.Ib(n)}function $p(e,t){if(!mf(e))for(var n=Zp(e),o=c(t),i=o.next();!i.done;i=o.next())i.value.stream.segmentIndex.Wa(0,n);for(i=(n=c(t)).next();!i.done;i=n.next())i=i.value.stream,ts.includes(i.mimeType)&&(i.codecs="");Qp(e,t.map((function(e){return e.stream}))),e.g.hls.ignoreManifestProgramDateTime?function(e,t){for(var n=-1==e.B,o=c(t),i=o.next();!i.done;i=o.next()){var r=(i=i.value).stream.segmentIndex,a=Jp(e,i);if(r=r.g[0]||null)for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=(s=c(s.value)).next().value;if(s.next().value==r.startTime){n&&(e.B=Math.max(e.B,l)),i.Cd=l;break}}}if(!(0>e.B))for(i=(t=c(t)).next();!i.done;i=t.next())(o=(n=i.value).stream.segmentIndex)&&(o.g.splice(0,e.B-n.Cd),(o=o.g[0]||null)&&(o=-o.startTime,n.stream.segmentIndex.offset(o),Hp(e,n,o)))}(e,t):function(e,t){if(1/0==e.H)for(var n=(t=c(t)).next();!n.done;n=t.next()){var o=n.value.stream.segmentIndex.g[0]||null;null!=o&&null!=o.g&&(e.H=Math.min(e.H,o.g))}if(1/0!=(t=e.H))for(n=(o=c(e.h.values())).next();!n.done;n=o.next()){var i=(n=n.value).stream.segmentIndex;if(null!=i){var r=i.g[0]||null;if(null==r.g)K("Missing EXT-X-PROGRAM-DATE-TIME for stream",n.Ac,"Expect AV sync issues!");else for(Hp(e,n,r.g-t-r.startTime),i=(n=c(i)).next();!i.done;i=n.next())i.value.oe(t)}}}(e,t)}function ef(e,t,n,o,i,r,a,s,l,c,u,d,p,f,h){var m,g,v,y,_,S,E,A,T,P,O,C,k,R,L;return N((function(I){if(1==I.g){if(1!=t.type)throw new Ie(2,4,4017);return m=Tp(t.g,"EXT-X-DEFINE"),g=Yp(e,m),rf(e,t),h?I.A(2):b(I,function(e,t,n,o,i){var r,a,s,l,c,u,d,p,f,h;return N((function(m){return 1==m.g?(r=No,a=Math.trunc((o.segments.length-1)/2),s=df(o.segments[a].i,i),l=new we(s),c=l.qa.split(".").pop(),u=Sf[t],(d=u[c])||(d=yf[c])||(d=pf(t,n))?m.return(d):((p=ko([s],e.g.retryParameters)).method="HEAD",b(m,vf(e,p,r),2))):(f=m.h,(h=f.headers["content-type"])?m.return(h.split(";")[0]):m.return(ff(t)))}))}(e,r,i,t,g),3)}if(2!=I.g&&(h=I.h),v=nf(t,h),y=v.drmInfos,_=v.keyIds,S=v.encrypted,E=v.kf,S&&!y.length&&!E)throw new Ie(2,4,4026);return A=mf(e)?e.F.get(r):new Map,T=e.l,P=uf(e,t,r,A,g),T!=e.l&&rf(e,t),O=P[P.length-1].endTime,C=new Es(P),R=!!(k=Op(t.g,"EXT-X-SERVER-CONTROL"))&&null!=k.getAttribute("CAN-SKIP-UNTIL"),(L=tf(e,i,r,a,s,l,c,u,d,p,f)).segmentIndex=C,L.encrypted=S,L.drmInfos=y,L.keyIds=_,L.mimeType=h,I.return({stream:L,type:r,Ac:n,Jc:o,Ya:O,Mc:R,mc:!1,Cd:-1,$c:A,Ld:!1})}))}function tf(e,t,n,o,i,r,a,s,l,c,u){var d=pf(n,t)||ff(n);return{id:e.Fa++,originalId:r,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:d,codecs:t,kind:n==et?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:o,label:r,type:n,primary:i,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:l?l.split(","):[],forced:c,channelsCount:a,audioSamplingRate:null,spatialAudio:u,closedCaptions:s,hdr:void 0,tilesLayout:void 0}}function nf(e,t){var n=[];if(e.segments)for(var o=(e=c(e.segments)).next();!o.done;o=e.next())o=Tp(o.value.g,"EXT-X-KEY"),n.push.apply(n,u(o));o=e=!1;for(var i=[],r=new Set,a=(n=c(n)).next();!a.done;a=n.next()){var s=Sp(a=a.value,"METHOD");if("NONE"!=s)if(e=!0,"AES-128"==s)o=!0;else if(s=bp(a,"KEYFORMAT")||"identity",a=(s=Ef[s])?s(a,t):null){if(a.keyIds)for(var l=(s=c(a.keyIds)).next();!l.done;l=s.next())r.add(l.value);i.push(a)}}return{drmInfos:i,keyIds:r,encrypted:e,kf:o}}function of(t,n,o){if(!e.crypto||!e.crypto.subtle)throw Y("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new Ie(2,4,4042);var i=0,r=bp(n,"IV","");if(r){var a=It(r.substr(2));if(16!=a.byteLength)throw new Ie(2,4,4043)}else i=Cp(o.g,"EXT-X-MEDIA-SEQUENCE");var s=ko([n=kp(o.h,Sp(n,"URI"))],t.g.retryParameters),l={method:"AES-128",iv:a,firstMediaSequenceNumber:i,fetchKey:function(){var n,o,i;return N((function(r){if(1==r.g)return b(r,vf(t,s,6),2);if(3!=r.g){if(!(n=r.h).data||16!=n.data.byteLength)throw new Ie(2,4,4044);return o={name:"AES-CBC"},i=l,b(r,e.crypto.subtle.importKey("raw",n.data,o,!0,["decrypt"]),3)}i.cryptoKey=r.h,l.fetchKey=void 0,S(r)}))}};return l}function rf(e,t){var n=Op(t.g,"EXT-X-PLAYLIST-TYPE"),o=Op(t.g,"EXT-X-ENDLIST");if(o=n&&"VOD"==n.value||o,n=n&&"EVENT"==n.value&&!o,n=!o&&!n,o)gf(e,Af);else{if(gf(e,n?Pf:Tf),!(o=Op(t.g,"EXT-X-TARGETDURATION")))throw new Ie(2,4,4024,"EXT-X-TARGETDURATION");o=Number(o.value),n=Op(t.g,"EXT-X-PART-INF"),e.l&&n?(e.da=Number(Sp(n,"PART-TARGET")),e.J=Math.min(e.da,e.J),t=Op(t.g,"EXT-X-SERVER-CONTROL"),e.V=t?Number(Sp(t,"PART-HOLD-BACK")):0):e.J=Math.min(o,e.J),e.ca=Math.max(o,e.ca)}}function af(e){var t=e.g.defaultPresentationDelay?e.g.defaultPresentationDelay:e.V?e.V:e.ca*e.g.hls.liveSegmentsDelay;e.j.Xe(0),e.j.We(t),e.j.yc(!1)}function sf(e,t,n,o){return(n=Op(n,"EXT-X-MAP"))?(t=[o=df(kp(t,Sp(n,"URI")),o),bp(n,"BYTERANGE","")].join("-"),e.ba.has(t)||(n=function(e,t){var n=0,o=null;(t=bp(t,"BYTERANGE"))&&(n=t.split("@"),o=Number(n[0]),n=Number(n[1]),o=n+o-1);return new ma((function(){return[e]}),n,o)}(o,n),e.ba.set(t,n)),e.ba.get(t)):null}function lf(e,t,n,o,i,r,a,s,l){var u=o.g,d=df(o.i,r),p=Op(u,"EXTINF"),f=r=0,h=null;o.h.length&&!e.l&&Y("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var m=null;if(!e.g.hls.ignoreManifestProgramDateTime){var g=Op(u,"EXT-X-PROGRAM-DATE-TIME");g&&g.value&&(m=hi(g.value))}if(g=va,Op(u,"EXT-X-GAP")&&(g=2),!p){if(0==o.h.length)throw new Ie(2,4,4024,"EXTINF");if(!e.l)return null}var v=[];if(e.l)for(var y={},_=0;_<o.h.length;y={pd:y.pd},_++){var b=o.h[_],S=0==_?n:v[v.length-1],E=0==_?i:S.endTime,A=Number(bp(b,"DURATION"))||e.da;if(A){A=E+A;var T=0,P=null;"EXT-X-PRELOAD-HINT"==b.name?T=(T=bp(b,"BYTERANGE-START"))?Number(T):0:(T=(P=c(cf(S,T=bp(b,"BYTERANGE")))).next().value,P=P.next().value),(S=bp(b,"URI"))&&(y.pd=kp(a,S),S=va,"YES"==bp(b,"GAP")&&(S=2),v.push(new ga(E,A,function(e){return function(){return[e.pd]}}(y),T,P,t,0,0,1/0,[],"",null,null,S)))}}return r=p?i+Number(p.value.split(",")[0]):v[v.length-1].endTime,(e=Op(u,"EXT-X-BYTERANGE"))?(f=(h=c(cf(n,e.value))).next().value,h=h.next().value):v.length&&(f=v[0].Ba,h=v[v.length-1].ka),n="",e=null,"image"==s&&(n="1x1",s=Op(u,"EXT-X-TILES"))&&(n=Sp(s,"LAYOUT"),(s=bp(s,"DURATION"))&&(e=Number(s))),new ga(i,r,(function(){return d.length?[d]:[]}),f,h,t,0,0,1/0,v,n,e,m,g,l)}function cf(e,t){var n=0,o=null;return t&&(n=t.split("@"),t=Number(n[0]),o=(n=n[1]?Number(n[1]):e.ka+1)+t-1),[n,o]}function uf(e,t,n,o,i){var r=t.segments,a=void 0,s=Cp(t.g,"EXT-X-DISCONTINUITY-SEQUENCE"),l=Cp(t.g,"EXT-X-MEDIA-SEQUENCE"),u=Op(t.g,"EXT-X-SKIP"),d=l+(u=u?Number(bp(u,"SKIPPED-SEGMENTS")):0),p=0;mf(e)&&o.has(d)&&(p=o.get(d));for(var f=[],h=null,m=0;m<r.length;m++){var g=r[m],v=0==m?p:h.endTime;d=l+u+m,Op(g.g,"EXT-X-DISCONTINUITY")&&s++;for(var y=c(g.g),_=y.next();!_.done;_=y.next())"EXT-X-KEY"==(_=_.value).name&&(a="AES-128"==Sp(_,"METHOD")?of(e,_,t):void 0);o.set(d,v),y=sf(e,t.h,g.g,i),!e.l&&e.i.isAutoLowLatencyMode()&&(e.i.enableLowLatencyMode(),e.l=e.i.isLowLatencyMode()),(h=g=lf(e,y,h,g,v,i,t.h,n,a))&&(g.m=s,e.g.hls.ignoreManifestProgramDateTime&&null!=e.B&&d<e.B||f.push(g))}if(t=f.some((function(e){return null!=e.g})))for(n={},o=0;o<f.length;n={Qb:n.Qb,Pb:n.Pb,Bc:n.Bc,Ta:n.Ta,Ob:n.Ob},o++)if(n.Ta=f[o],null==n.Ta.g)for(n.Pb=0,n.Qb=o,i=function(e){return function(){var t=f[e.Qb];if(t){if(null!=t.g)return t.g+e.Pb;e.Pb-=t.endTime-t.startTime,e.Qb+=1}return null}}(n),n.Ob=0,n.Bc=o,r=function(e){return function(){var t=f[e.Bc];if(t){if(t!=e.Ta&&(e.Ob+=t.endTime-t.startTime),null!=t.g)return t.g+e.Ob;--e.Bc}return null}}(n);null==n.Ta.g;)n.Ta.g=r(),null==n.Ta.g&&(n.Ta.g=i());if(t)for(o=(n=c(f)).next();!o.done;o=n.next())for(o=(i=o.value).g,r=(i=c(i.i)).next();!r.done;r=i.next())(r=r.value).g=o,o+=r.endTime-r.startTime;if(e=e.H,t&&1/0!=e)for(o=(t=c(f)).next();!o.done;o=t.next())o.value.oe(e);return f}function df(e,t){var n=(e=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}")).match(/{\$\w*}/g);if(n)for(var o=(n=c(n)).next();!o.done;o=n.next()){var i=(o=o.value).slice(2,o.length-1),r=t.get(i);if(!r)throw new Ie(2,4,4039,i);e=e.replace(o,r)}return e}function pf(e,t){if(e==et){if("vtt"==t||"wvtt"==t)return"text/vtt";if(t&&""!==t)return"application/mp4"}return"image"!=e||t&&"jpeg"!=t?"audio"==e&&"mp4a.40.34"==t?"audio/mpeg":null:"image/jpeg"}function ff(e){return e==et?"text/vtt":Sf[e].mp4}function hf(e,t){return t=ko([t],e.g.retryParameters),e.i.modifyManifestRequest(t,{format:"h"}),vf(e,t,0)}function mf(e){return e.ea!=Af}function gf(e,t){e.ea=t,e.j&&e.j.yc(!mf(e)),mf(e)||e.m.stop()}function vf(e,t,n){if(!e.G)throw new Ie(2,7,7001);return t=e.i.networkingEngine.request(n,t),Po(e.G,t),t.promise}V("shaka.net.DataUriPlugin",Up),Up.parse=Bp,Co("data",Bp),(o=Gp.prototype).configure=function(e){this.g=e},o.start=function(e,t){var n,o=this;return N((function(i){return 1==i.g?(o.i=t,o.l=t.isLowLatencyMode(),b(i,hf(o,e),2)):3!=i.g?(n=i.h,o.M=n.uri,b(i,function(e,t,n){var o,i,r,a,s,l,u,d,p,f,h,m,g,v,y,_,A,T,O,C,k,R,L,I,w,D,M,x,F,U,B;return N((function(V){switch(V.g){case 1:o=Dp(e.W,t,e.M);for(var G=c(Tp(o.g,"EXT-X-DEFINE")),J=G.next();!J.done;J=G.next()){var j=J.value;J=bp(j,"NAME"),j=bp(j,"VALUE"),J&&j&&(e.o.has(J)||e.o.set(J,j))}if(i=[],r=[],a=[],1==o.type)return O=e.g.hls.mediaPlaylistFullMimeType,o.segments.length&&(C=new we(o.segments[0].i),k=C.qa.split(".").pop(),(R=yf[k])?O=R:"ts"!==k&&"mp4"!==k&&(_f[k]?(R=_f[k],L=e.g.hls.defaultAudioCodec,O=R+'; codecs="'+L+'"'):bf[k]&&(R=bf[k],I=e.g.hls.defaultVideoCodec,O=R+'; codecs="'+I+'"'))),w=O.split(";")[0],D=w.split("/")[0],M=Yt(O),x=new Map,b(V,ef(e,o,n,n,M,D,"",!0,"Media Playlist",null,x,null,!1,!1,w),5);for(s=Tp(o.g,"EXT-X-MEDIA"),l=Tp(o.g,"EXT-X-STREAM-INF"),u=Tp(o.g,"EXT-X-IMAGE-STREAM-INF"),d=Tp(o.g,"EXT-X-SESSION-KEY"),J=(G=c(l)).next();!J.done;J=G.next()){var H=J.value;j=bp(H,"AUDIO"),J=bp(H,"VIDEO");var K=bp(H,"SUBTITLES");if(H=Wp(e,H),K){var Y=$e(et,H);e.s.set(K,Y),te(H,Y)}j&&((K=$e("audio",H))||(K=e.g.hls.defaultAudioCodec),e.s.set(j,K)),J&&((j=$e("video",H))||(j=e.g.hls.defaultVideoCodec),e.s.set(J,j))}for(p=Tp(o.g,"EXT-X-SESSION-DATA"),f=c(p),h=f.next();!h.done;h=f.next())m=h.value,g=bp(m,"DATA-ID"),v=bp(m,"URI"),y=bp(m,"LANGUAGE"),_=bp(m,"VALUE"),A=(new Map).set("id",g),v&&A.set("uri",kp(e.M,v)),y&&A.set("language",y),_&&A.set("value",_),T=new yo("sessiondata",A),e.i&&e.i.onEvent(T);for(function(e,t){t=t.filter((function(e){var t=bp(e,"URI")||"";return"SUBTITLES"!=bp(e,"TYPE")&&""!=t}));for(var n=(t=c(t)).next();!n.done;n=t.next())qp(e,n.value)}(e,s),J=(G=c(G=Pp(s,"CLOSED-CAPTIONS"))).next();!J.done;J=G.next())J=zp(K=J.value),j=Sp(K,"GROUP-ID"),K=Sp(K,"INSTREAM-ID"),e.L.get(j)||e.L.set(j,new Map),e.L.get(j).set(K,J);return i=function(e,t,n){var o=[],i=new Set;if(0<n.length)for(var r=(n=c(n)).next();!r.done;r=n.next()){var a=Sp(r=r.value,"METHOD");if("NONE"!=a&&"AES-128"!=a&&(a=bp(r,"KEYFORMAT")||"identity",r=(a=Ef[a])?a(r,""):null)){if(r.keyIds)for(var s=(a=c(r.keyIds)).next();!s.done;s=a.next())i.add(s.value);o.push(r)}}return t=t.map((function(t){var n=bp(t,"FRAME-RATE"),r=Number(bp(t,"AVERAGE-BANDWIDTH"))||Number(Sp(t,"BANDWIDTH")),a=bp(t,"RESOLUTION"),s=(a=c(a?a.split("x"):[null,null])).next().value,l=a.next().value,u=bp(t,"VIDEO-RANGE");t=function(e,t){var n=Wp(e,t),o=bp(t,"AUDIO"),i=bp(t,"VIDEO"),r=o||i;r=r&&e.u.has(r)?e.u.get(r):[],o={audio:o?r:[],video:i?r:[]},i=!1;var a=Sp(t,"URI"),s=o.audio.find((function(e){return e&&e.Ac==a})),l=$e("video",n),c=$e("audio",n);return c&&!l?r="audio":!r.length&&c&&l?(r="video",n=[[l,c].join()]):o.audio.length&&s?(r="audio",i=!0):r=o.video.length&&!o.audio.length?"audio":"video",i||(e=function(e,t,n,o){var i=df(Sp(t,"URI"),e.o);return e.h.has(i)?e.h.get(i):(t=bp(t,"CLOSED-CAPTIONS"),t="video"==o&&t&&"NONE"!=t?e.L.get(t):null,n=Qe(o,n),o=Xp(e,i,n,o,"und",!1,null,null,t,null,!1,!1),e.h.has(i)?e.h.get(i):(e.h.set(i,o),o))}(e,t,n,r),o[e.stream.type]=[e]),o}(e,t),a=t.audio;for(var d=c(t=t.video),p=d.next();!p.done;p=d.next())(p=p.value.stream)&&(p.width=Number(s)||void 0,p.height=Number(l)||void 0,p.frameRate=Number(n)||void 0,p.hdr=u||void 0);for(n=e.g.disableAudio,a.length&&!n||(a=[null]),n=e.g.disableVideo,t.length&&!n||(t=[null]),n=[],s=(a=c(a)).next();!s.done;s=a.next())for(s=s.value,u=(l=c(t)).next();!u.done;u=l.next()){var f=u.value;(u=s?s.stream:null)&&(u.drmInfos=o,u.keyIds=i),(d=f?f.stream:null)&&(d.drmInfos=o,d.keyIds=i),p=s?s.stream.drmInfos:null;var h=f?f.stream.drmInfos:null;f=(f?f.Ac:"")+" - "+(s?s.Ac:""),u&&d&&p.length&&h.length&&!(0<Bi(p,h).length)||e.ua.has(f)||(u={id:e.Fa++,language:u?u.language:"und",primary:!!u&&u.primary||!!d&&d.primary,audio:u,video:d,bandwidth:r,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},n.push(u),e.ua.add(f))}return n})).reduce(We,[]),t=t.filter((function(e){return null!=e}))}(e,l,d),r=function(e,t){var n=Pp(t,"SUBTITLES");t=n.map((function(t){if(e.g.disableText)return null;try{return qp(e,t).stream}catch(t){if(e.g.hls.ignoreTextStreamFailures)return null;throw t}}));for(var o=(n=c(n)).next();!o.done;o=n.next()){var i=Sp(o.value,"GROUP-ID");if((o=e.s.get(i))&&(i=e.u.get(i)))for(var r=(i=c(i)).next();!r.done;r=i.next())(r=r.value).stream.codecs=o,r.stream.mimeType=pf(et,o)||ff(et)}return t.filter((function(e){return e}))}(e,s),b(V,function(e,t){var n,o;return N((function(i){return 1==i.g?(n=t.map((function(t){var n,o;return N((function(i){if(1==i.g)return e.g.disableThumbnails?i.return(null):(E(i,2),b(i,function(e,t){var n,o,i,r,a,s,l,c,u,d;return N((function(p){return 1==p.g?(n=df(Sp(t,"URI"),e.o),o=bp(t,"CODECS","jpeg")||"",e.h.has(n)?p.return(e.h.get(n)):(i=zp(t),r=bp(t,"NAME"),a=bp(t,"CHARACTERISTICS"),s=Xp(e,n,o,"image",i,!1,r,null,null,a,!1,!1),e.h.has(n)?p.return(e.h.get(n)):(l=bp(t,"RESOLUTION"))?b(p,s.stream.createSegmentIndex(),3):p.A(2))):(2!=p.g&&(c=s.stream.segmentIndex.get(0),u=c.tilesLayout)&&(s.stream.width=Number(l.split("x")[0])*Number(u.split("x")[0]),s.stream.height=Number(l.split("x")[1])*Number(u.split("x")[1])),(d=bp(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(d)),e.h.set(n,s),p.return(s))}))}(e,t),4));if(2!=i.g)return n=i.h,i.return(n.stream);if(o=P(i),e.g.hls.ignoreImageStreamFailures)return i.return(null);throw o}))})),b(i,Promise.all(n),2)):(o=i.h,i.return(o.filter((function(e){return e}))))}))}(e,u),4);case 4:a=V.h,V.A(3);break;case 5:F=V.h,e.h.set(n,F),i.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==D?F.stream:null,video:"video"==D?F.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!e.i)throw new Ie(2,7,7001);e.j=new ns(null,0),e.j.yc(!0),1==o.type&&(mf(e)&&(af(e),U=e.O,e.m.N(U)),B=Array.from(e.h.values()),$p(e,B),Kp(e)),e.D={presentationTimeline:e.j,variants:i,textStreams:r,imageStreams:a,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0},e.i.makeTextStreamsForClosedCaptions(e.D),S(V)}}))}(o,n.data,e),3)):i.return(o.D)}))},o.stop=function(){this.m&&(this.m.stop(),this.m=null);var e=[];return this.G&&(e.push(this.G.destroy()),this.G=null),this.g=this.i=null,this.ua.clear(),this.D=null,this.h.clear(),this.u.clear(),this.s.clear(),this.o.clear(),Promise.all(e)},o.update=function(){var e,t,n,o,i,r,a,s,l=this;return N((function(d){if(1==d.g){if(!mf(l))return d.return();for(e=[],t=Array.from(l.h.values()),n=t.filter((function(e){return e.stream.segmentIndex})),o=c(n),i=o.next();!i.done;i=o.next())r=i.value,e.push(jp(l,r));return b(d,Promise.all(e),2)}Qp(l,n.map((function(e){return e.stream}))),a=n.some((function(e){return 0==e.mc})),n.length&&!a&&(gf(l,Of.ff),s=n.map((function(e){return e.Ya})),l.j.Aa(Math.min.apply(Math,u(s))),l.i.updateDuration()),S(d)}))},o.onExpirationUpdated=function(){},V("shaka.hls.HlsParser",Gp);var yf={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},_f={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},bf={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},Sf={audio:_f,video:bf,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Ef={"com.apple.streamingkeydelivery":function(t,n){if("video/mp2t"==n)throw new Ie(2,4,4040);if(e.shakaMediaKeysPolyfill)throw new Ie(2,4,4041);return Ze("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=Sp(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=Ze("com.widevine.alpha",[{initDataType:"cenc",initData:t=ke((t=Vp(t=Sp(e,"URI"))).data)}]),(e=bp(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=Sp(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?Ze("com.microsoft.playready",[{initDataType:"cenc",initData:e=ii(e=ke((e=Vp(e=Sp(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0)}]):null},identity:function(e){return e=Sp(e,"METHOD"),["SAMPLE-AES","SAMPLE-AES-CTR"].includes(e)?Ze("org.w3.clearkey",null):null}},Af="VOD",Tf="EVENT",Pf="LIVE",Of={ff:Af,Og:Tf,Sg:Pf};function Cf(e,t,n,o,i,r){if(200<=n&&299>=n&&202!=n)return{uri:i||o,Oe:o,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};i=null;try{i=At(t)}catch(e){}throw new Ie(401==n||403==n?2:1,1,1001,o,n,i,e,r)}function kf(){}function Rf(e,t,n,o,i){var r=new Mf;Go(t.headers).forEach((function(e,t){r.append(t,e)}));var a=new wf,s={ye:!1,bf:!1};if(e=function(e,t,n,o,i,r,a){var s,l,c,u,d,p,f,h,m,g,v,y;return N((function(_){switch(_.g){case 1:return s=Nf,l=Df,p=d=0,f=Date.now(),E(_,2),b(_,s(e,n),4);case 4:return c=_.h,r(Lf(c.headers)),h=c.clone().body.getReader(),g=(m=c.headers.get("Content-Length"))?parseInt(m,10):0,new l({start:function(e){function t(){var n,o;return N((function(r){switch(r.g){case 1:return E(r,2),b(r,h.read(),4);case 4:n=r.h,T(r,3);break;case 2:return P(r),r.return();case 3:if(n.done){r.A(5);break}if(d+=n.value.byteLength,!a){r.A(5);break}return b(r,a(n.value),5);case 5:(100<(o=Date.now())-f||n.done)&&(i(o-f,d-p,g-d),p=d,f=o),n.done?e.close():(e.enqueue(n.value),t()),S(r)}}))}t()}}),b(_,c.arrayBuffer(),5);case 5:u=_.h,T(_,3);break;case 2:if(v=P(_),o.ye)throw new Ie(1,1,7001,e,t);if(o.bf)throw new Ie(1,1,1003,e,t);throw new Ie(1,1,1002,e,v,t);case 3:return y=Lf(c.headers),_.return(Cf(y,u,c.status,e,c.url,t))}}))}(e,n,{body:t.body||void 0,headers:r,method:t.method,signal:a.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,o,i,t.streamDataCallback),e=new po(e,(function(){return s.ye=!0,a.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var l=new at((function(){s.bf=!0,a.abort()}));l.N(t/1e3),e.finally((function(){l.stop()}))}return e}function Lf(e){var t={};return e.forEach((function(e,n){t[n.trim()]=e})),t}function If(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!(!e.fetch||!e.AbortController)}gt("Tizen 3")||gt("Tizen 2")||pt()||($i.m3u8=function(){return new Gp},Qi["application/x-mpegurl"]=function(){return new Gp},Qi["application/vnd.apple.mpegurl"]=function(){return new Gp}),V("shaka.net.HttpFetchPlugin",kf),kf.isSupported=If,kf.parse=Rf;var Nf=e.fetch,wf=e.AbortController,Df=e.ReadableStream,Mf=e.Headers;function xf(){}function Ff(e,t,n,o,i){var r=new Bf,a=Date.now(),s=0;return new po(new Promise((function(l,c){r.open(t.method,e,!0),r.responseType="arraybuffer",r.timeout=t.retryParameters.timeout,r.withCredentials=t.allowCrossSiteCredentials,r.onabort=function(){c(new Ie(1,1,7001,e,n))};var u=!1;for(var d in r.onreadystatechange=function(){if(2==r.readyState&&!u){var e=Uf(r);i(e),u=!0}},r.onload=function(){var t=Uf(r),o=r.response;try{var i=Cf(t,o,r.status,e,r.responseURL,n);l(i)}catch(e){c(e)}},r.onerror=function(t){c(new Ie(1,1,1002,e,t,n))},r.ontimeout=function(){c(new Ie(1,1,1003,e,n))},r.onprogress=function(e){var t=Date.now();(100<t-a||e.lengthComputable&&e.loaded==e.total)&&(o(t-a,e.loaded-s,e.total-e.loaded),s=e.loaded,a=t)},t.headers)r.setRequestHeader(d.toLowerCase(),t.headers[d]);r.send(t.body)})),(function(){return r.abort(),Promise.resolve()}))}function Uf(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=c(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}If()&&(Co("http",Rf,2,!0),Co("https",Rf,2,!0),Co("blob",Rf,2,!0)),V("shaka.net.HttpXHRPlugin",xf),xf.parse=Ff;var Bf=e.XMLHttpRequest;function Vf(e,t,n,o){this.g=e,this.i=t,this.groupId=n,this.h=o}function Gf(e){return e.ya().map((function(e){return"{"+encodeURI(e)+"}"})).join("")+":"+e.Ba+":"+e.ka}function Jf(e,t){return Us(e.g.ya(),e.g.Ba,e.g.ka,t.streaming.retryParameters)}function jf(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function Hf(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function Kf(e){var t=this;this.o=e,this.j=new Map,this.i=new Mo((function(){return Yf(t).catch((function(){}))})),this.h=[],this.m=function(){},this.l=function(){},this.g=new jf}function Yf(e){var t=e.h.map((function(e){return e()}));return e.h=[],Promise.all(t)}function Wf(e,t,n,o,i,r){xo(e.i);var a=(e.j.get(t)||Promise.resolve()).then((function(){var t,a,s,l,c,u,d;return N((function(p){if(1==p.g)return b(p,function(e,t){var n,o,i,r;return N((function(a){return 1==a.g?(n=No,o=e.o.request(n,t),i=function(){return o.abort()},e.h.push(i),b(a,o.promise,2)):(r=a.h,te(e.h,i),a.return(r.data))}))}(e,n),2);if(t=p.h,e.i.g)throw new Ie(2,9,7001);if(i)for(l in a=ke(t),(s=new oi(a)).data)c=Number(l),u=s.data[c],d=s.g[c],e.l(u,d);e.g.close(o,t.byteLength);var f=e.g;return e.m(0==f.i?0:f.j/f.i,e.g.h),p.return(r(t))}))}));e.j.set(t,a)}function zf(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new ot,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function qf(e,t){return new Promise((function(n,o){var i=e.h.openCursor();i.onerror=o,i.onsuccess=function(){var e;return N((function(o){if(1==o.g)return null==i.result?(n(),o.return()):(e=i.result,b(o,t(e.key,e.value,e),2));e.continue(),S(o)}))}}))}function Xf(e){this.h=e,this.g=[]}function Zf(e,t){return Qf(e,t,"readwrite")}function Qf(e,t,n){var o=new zf(n=e.h.transaction([t],n),t);return e.g.push(o),o.promise().then((function(){te(e.g,o)}),(function(){te(e.g,o)})),o}function $f(e,t,n){this.h=new Xf(e),this.i=t,this.g=n}function eh(e){return Promise.reject(new Ie(2,9,9011,"Cannot add new value to "+e))}function th(e,t,n,o){t=(e=Zf(e.h,t)).store();for(var i={},r=(n=c(n)).next();!r.done;i={Ec:i.Ec},r=n.next())i.Ec=r.value,t.delete(i.Ec).onsuccess=function(e){return function(){return o(e.Ec)}}(i);return e.promise()}function nh(e,t,n){var o,i,r,a,s,l,u;return N((function(d){if(1==d.g){for(o=Qf(e.h,t,"readonly"),i=o.store(),r={},a=[],s={},l=c(n),u=l.next();!u.done;s={Vb:s.Vb,Tb:s.Tb},u=l.next())s.Tb=u.value,s.Vb=i.get(s.Tb),s.Vb.onsuccess=function(e){return function(){null==e.Vb.result&&a.push(e.Tb),r[e.Tb]=e.Vb.result}}(s);return b(d,o.promise(),2)}if(a.length)throw new Ie(2,9,9012,"Could not find values for "+a);return d.return(n.map((function(e){return r[e]})))}))}function oh(e){this.g=new Xf(e)}function ih(){this.g=new Map}function rh(e){var t=null;if(e.g.forEach((function(e,n){e.getCells().forEach((function(e,o){e.hasFixedKeySpace()||t||(t={path:{za:n,ja:o},ja:e})}))})),t)return t;throw new Ie(2,9,9013,"Could not find a cell that supports add-operations")}function ah(e,t,n){if(!(e=e.g.get(t)))throw new Ie(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new Ie(2,9,9013,"Could not find cell with name "+n);return t}function sh(e,t){lh.set(e,t)}Co("http",Ff,1,!0),Co("https",Ff,1,!0),Co("blob",Ff,1,!0),jf.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},Kf.prototype.destroy=function(){return this.i.destroy()},zf.prototype.abort=function(){var e=this;return N((function(t){if(1==t.g){try{e.i.abort()}catch(e){}return E(t,2),b(t,e.g,4)}if(2!=t.g)return T(t,0);P(t),S(t)}))},zf.prototype.store=function(){return this.h},zf.prototype.promise=function(){return this.g},Xf.prototype.destroy=function(){return Promise.all(this.g.map((function(e){return e.abort()})))},(o=$f.prototype).destroy=function(){return this.h.destroy()},o.hasFixedKeySpace=function(){return!0},o.addSegments=function(){return eh(this.i)},o.removeSegments=function(e,t){return th(this,this.i,e,t)},o.getSegments=function(e){var t,n=this;return N((function(o){return 1==o.g?b(o,nh(n,n.i,e),2):(t=o.h,o.return(t.map((function(e){return n.ze(e)}))))}))},o.addManifests=function(){return eh(this.g)},o.updateManifest=function(){return Promise.reject(new Ie(2,9,9016,"Cannot modify values in "+this.g))},o.updateManifestExpiration=function(e,t){var n=Zf(this.h,this.g),o=n.store();return o.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,o.put(n,e))},n.promise()},o.removeManifests=function(e,t){return th(this,this.g,e,t)},o.getManifests=function(e){var t,n=this;return N((function(o){return 1==o.g?b(o,nh(n,n.g,e),2):(t=o.h,o.return(Promise.all(t.map((function(e){return n.bc(e)})))))}))},o.getAllManifests=function(){var e,t,n=this;return N((function(o){return 1==o.g?(e=Qf(n.h,n.g,"readonly"),t=new Map,b(o,qf(e,(function(e,o){var i;return N((function(r){if(1==r.g)return b(r,n.bc(o),2);i=r.h,t.set(e,i),S(r)}))})),2)):3!=o.g?b(o,e.promise(),3):o.return(t)}))},o.ze=function(e){return e},o.bc=function(e){return Promise.resolve(e)},o.add=function(e,t){var n,o,i,r,a,s,l,u=this;return N((function(d){if(1==d.g){for(n=Zf(u.h,e),o=n.store(),i=[],r={},a=c(t),s=a.next();!s.done;r={Fc:r.Fc},s=a.next())l=s.value,r.Fc=o.add(l),r.Fc.onsuccess=function(e){return function(){i.push(e.Fc.result)}}(r);return b(d,n.promise(),2)}return d.return(i)}))},oh.prototype.destroy=function(){return this.g.destroy()},oh.prototype.getAll=function(){var e,t,n=this;return N((function(o){return 1==o.g?(e=Qf(n.g,"session-ids","readonly"),t=[],b(o,qf(e,(function(e,n){t.push(n)})),2)):3!=o.g?b(o,e.promise(),3):o.return(t)}))},oh.prototype.add=function(e){for(var t=Zf(this.g,"session-ids"),n=t.store(),o=(e=c(e)).next();!o.done;o=e.next())n.add(o.value);return t.promise()},oh.prototype.remove=function(e){var t,n=this;return N((function(o){return 1==o.g?b(o,qf(t=Zf(n.g,"session-ids"),(function(t,n,o){e.includes(n.sessionId)&&o.delete()})),2):b(o,t.promise(),0)}))},ih.prototype.destroy=function(){for(var e=[],t=c(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},ih.prototype.init=function(){var e=this;lh.forEach((function(t,n){(t=t())&&e.g.set(n,t)}));for(var t=[],n=c(this.g.values()),o=n.next();!o.done;o=n.next())t.push(o.value.init());return Promise.all(t)},V("shaka.offline.StorageMuxer",ih),ih.unregister=function(e){lh.delete(e)},ih.register=sh,ih.prototype.destroy=ih.prototype.destroy;var lh=new Map;function ch(){$f.apply(this,arguments)}function uh(e,t){!function(e){var t=e.streams.filter((function(e){return"audio"==e.contentType}));if(e=e.streams.filter((function(e){return"video"==e.contentType})),!t.every((function(e){return e.variantIds}))||!e.every((function(e){return e.variantIds}))){for(var n=c(t),o=n.next();!o.done;o=n.next())o.value.variantIds=[];for(o=(n=c(e)).next();!o.done;o=n.next())o.value.variantIds=[];if(n=0,e.length&&!t.length){var i=n++,r=c(e);for(o=r.next();!o.done;o=r.next())o.value.variantIds.push(i)}if(!e.length&&t.length)for(i=n++,o=(r=c(t)).next();!o.done;o=r.next())o.value.variantIds.push(i);if(e.length&&t.length)for(o=(t=c(t)).next();!o.done;o=t.next())for(o=o.value,r=(i=c(e)).next();!r.done;r=i.next()){r=r.value;var a=n++;o.variantIds.push(a),r.variantIds.push(a)}}}(e);for(var n=c(e.streams),o=n.next();!o.done;o=n.next());return e.streams.map((function(n){return function(e,t,n){var o=e.initSegmentUri?dh(e.initSegmentUri):null,i=t+e.presentationTimeOffset,r=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,initSegmentKey:o,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(e){var n=dh(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:o,appendWindowStart:t,appendWindowEnd:r,timestampOffset:i,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}(n,e.startTime,t)}))}function dh(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new Ie(2,9,9004,"Could not parse uri "+e)}function ph(){$f.apply(this,arguments)}function fh(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(o){return{startTime:t+o.startTime,endTime:t+o.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:o.dataKey,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}function hh(){$f.apply(this,arguments)}function mh(){this.m=this.j=this.i=this.h=this.g=this.l=null}function gh(e,t,n,o){this.g=e,this.i=t,this.h=n,this.l=o,this.j=["offline:",e,"/",t,"/",n,"/",o].join("")}function vh(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var o=e[3];return o&&null!=t?new gh(t,n,o,Number(e[4])):null}function yh(e,t){this.h=e,this.g=t}function _h(e,t){var n=new ns(null,0);n.Aa(t.duration);var o=t.streams.filter((function(e){return"audio"==e.type})),i=t.streams.filter((function(e){return"video"==e.type}));o=function(e,t,n,o){for(var i=new Set,r=c(t),a=r.next();!a.done;a=r.next()){var s=c(a.value.variantIds);for(a=s.next();!a.done;a=s.next())i.add(a.value)}for(r=c(n),a=r.next();!a.done;a=r.next())for(s=c(a.value.variantIds),a=s.next();!a.done;a=s.next())i.add(a.value);for(r=new Map,i=c(i),a=i.next();!a.done;a=i.next())a=a.value,r.set(a,{id:a,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=c(t),i=t.next();!i.done;i=t.next())for(i=i.value,a=bh(e,i,o),s=c(i.variantIds),i=s.next();!i.done;i=s.next())(i=r.get(i.value)).language=a.language,i.primary=i.primary||a.primary,i.audio=a;for(n=c(n),t=n.next();!t.done;t=n.next())for(i=t.value,t=bh(e,i,o),a=c(i.variantIds),i=a.next();!i.done;i=a.next())(i=r.get(i.value)).primary=i.primary||t.primary,i.video=t;return r}(e,o,i,n),i=t.streams.filter((function(e){return e.type==et})).map((function(t){return bh(e,t,n)}));var r=t.streams.filter((function(e){return"image"==e.type})).map((function(t){return bh(e,t,n)})),a=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=c(o.values()),l=s.next();!l.done;l=s.next())(l=l.value).audio&&l.audio.encrypted&&(l.audio.drmInfos=a),l.video&&l.video.encrypted&&(l.video.drmInfos=a);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(o.values()),textStreams:i,imageStreams:r,sequenceMode:t.sequenceMode||!1}}function bh(e,t,n){var o=t.segments.map((function(t){return function(e,t){var n=new gh("segment",e.h,e.g,t.dataKey);return new ga(t.startTime,t.endTime,(function(){return[n.toString()]}),0,null,null!=t.initSegmentKey?function(e,t){var n=new gh("segment",e.h,e.g,t);return new ma((function(){return[n.toString()]}),0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)}));return n.Ib(o),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Es(o),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout}}function Sh(){this.g=null}function Eh(){}function Ah(e){var t=vh(e);return t&&"manifest"==t.g?e=mo(e={uri:e,Oe:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):e=t&&"segment"==t.g?function(e,t){var n=new ih;return mo(void 0).Y((function(){return n.init()})).Y((function(){return ah(n,t.za(),t.ja())})).Y((function(e){return e.getSegments([t.key()])})).Y((function(e){return{uri:t,data:e[0].data,headers:{}}})).finally((function(){return n.destroy()}))}(t.key(),t):fo(new Ie(2,1,9004,e)),e}function Th(e,t,n){var o,i,r,a,s,l;return N((function(u){switch(u.g){case 1:o=[];for(var d=[],p=c(n),f=p.next();!f.done;f=p.next()){f=f.value;for(var h=!1,m=c(d),g=m.next();!g.done;g=m.next())if(Ph((g=g.value).info,f)){g.sessionIds.push(f.sessionId),h=!0;break}h||d.push({info:f,sessionIds:[f.sessionId]})}i=c(d),r=i.next();case 2:if(r.done){u.A(4);break}return a=r.value,s=function(e,t,n){var o,i;return N((function(r){switch(r.g){case 1:return o=new Pi({kb:t,onError:function(){},cd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),E(r,2),o.configure(e),b(r,function(e,t,n,o,i,r){var a=new Map;return(i={audioCapabilities:i,videoCapabilities:r,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:o,serverCertificateUri:"",initData:null,keyIds:null}],a.set(t,i),Di(e,a,[])}(o,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:T(r,3);break;case 2:return P(r),b(r,o.destroy(),5);case 5:case 9:return r.return([]);case 3:return E(r,6),b(r,Ri(o),8);case 8:T(r,7);break;case 6:return P(r),b(r,o.destroy(),9);case 7:return i=[],b(r,Promise.all(n.sessionIds.map((function(e){return N((function(t){return 1==t.g?(E(t,2),b(t,function(e,t){var n,o,i;return N((function(r){return 1==r.g?b(r,Mi(e,t),2):3!=r.g?(n=r.h)?(o=[],(i=e.i.get(n))&&(i.Ja=new ot,o.push(i.Ja)),o.push(n.remove()),b(r,Promise.all(o),3)):r.return():(e.i.delete(n),void S(r))}))}(o,e),4)):2!=t.g?(i.push(e),T(t,0)):(P(t),void S(t))}))}))),10);case 10:return b(r,o.destroy(),11);case 11:return r.return(i)}}))}(e,t,a),b(u,s,5);case 5:l=u.h,o=o.concat(l),r=i.next(),u.A(2);break;case 4:return u.return(o)}}))}function Ph(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&ne(e.audioCapabilities,t.audioCapabilities,n)&&ne(e.videoCapabilities,t.videoCapabilities,n)}function Oh(e,t){var n=_h(new yh(e.za(),e.ja()),t),o=t.appMetadata||{};return n=Ch(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:o,isIncomplete:t.isIncomplete||!1}}function Ch(e){for(var t=[],n=function(e){return e.filter((function(e){return Nn(e)}))}(e.variants),o=(n=c(n)).next();!o.done;o=n.next())t.push(Pn(o.value));for(n=(e=c(e.textStreams)).next();!n.done;n=e.next())t.push(On(n.value));return t}function kh(){this.g={}}function Rh(e,t){var n=t.audio,o=t.video;if(n&&!o&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&o&&(e.g[o.id]=o.bandwidth||t.bandwidth),n&&o){var i=n.bandwidth||393216,r=o.bandwidth||t.bandwidth-i;0>=r&&(r=t.bandwidth),e.g[n.id]=i,e.g[o.id]=r}}function Lh(e,t){e.g[t.id]=t.bandwidth||2048}function Ih(e,t){return null==(e=e.g[t])&&(e=0),e}function Nh(e){var t=this;if(e&&e.constructor!=zl)throw new Ie(2,9,9008);this.g=this.h=null,e?(this.h=e.h,this.g=e.jc()):(this.h=Vl(),this.g=new Oo),this.i=[],this.j=[];var n=!e;this.l=new Mo((function(){var e,o,i,r,a;return N((function(s){switch(s.g){case 1:return b(s,Promise.all(t.j.map((function(e){return Yf(e)}))),2);case 2:for(e=function(){},o=[],i=c(t.i),r=i.next();!r.done;r=i.next())a=r.value,o.push(a.then(e,e));return b(s,Promise.all(o),3);case 3:if(!n){s.A(4);break}return b(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,S(s)}}))}))}function wh(){if(st())e:{for(var e=c(lh.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function Dh(e){var t,n,o;return N((function(i){switch(i.g){case 1:return b(i,(t=new ih).init(),2);case 2:return b(i,rh(t),3);case 3:return n=i.h,o=new gh("manifest",n.path.za,n.path.ja,e),b(i,t.destroy(),4);case 4:return b(i,(new Nh).remove(o.toString()),0)}}))}function Mh(e,t,n,o,i,r){var a,s,l,u,d,p,f,h,m,g,v;return N((function(y){switch(y.g){case 1:for(a=!1,E(y,2),s=!0,l=c(n.streams),u=l.next();!u.done;u=l.next())for(d=u.value,p=c(d.segments),f=p.next();!f.done;f=p.next())h=f.value,null!=(m=h.pendingSegmentRefId?o[h.pendingSegmentRefId]:null)&&(h.dataKey=m,h.pendingSegmentRefId=void 0),null!=(m=h.pendingInitSegmentRefId?o[h.pendingInitSegmentRefId]:null)&&(h.initSegmentKey=m,h.pendingInitSegmentRefId=void 0),h.pendingSegmentRefId&&(s=!1),h.pendingInitSegmentRefId&&(s=!1);return n.size+=i,s&&(n.isIncomplete=!1),b(y,e.updateManifest(t,n),4);case 4:a=!0,r(),T(y,0);break;case 2:return g=P(y),b(y,Dh(t),5);case 5:if(a){y.A(6);break}return v=Object.values(o),b(y,e.removeSegments(v,(function(){})),6);case 6:throw g}}))}function xh(e){return e.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}))}function Fh(e){return e.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))}))}function Uh(e,t){for(var n=[],o=c(e.streams),i=o.next();!i.done;i=o.next())i=i.value,t&&"video"==i.type?n.push({contentType:jt(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=i.type||n.push({contentType:jt(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function Bh(e,t,n){return N((function(o){return b(o,function(e,t,n,o){var i,r,a;return N((function(s){return 1==s.g?o.drmInfo?(i=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new Ie(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),r=o.sessionIds.map((function(e){return{sessionId:e,keySystem:o.drmInfo.keySystem,licenseUri:o.drmInfo.licenseServerUri,serverCertificate:o.drmInfo.serverCertificate,audioCapabilities:Uh(o,!1),videoCapabilities:Uh(o,!0)}})),b(s,Th(t,e,r),2)):s.return():3!=s.g?(a=s.h,b(s,i.remove(a),3)):b(s,i.add(r.filter((function(e){return!a.includes(e.sessionId)}))),0)}))}(e.g,e.h.drm,n,t),0)}))}function Vh(e,t,n){function o(){}var i=function(e){for(var t=new Set,n=(e=c(e.streams)).next();!n.done;n=e.next())for(var o=(n=c(n.value.segments)).next();!o.done;o=n.next())null!=(o=o.value).initSegmentKey&&t.add(o.initSegmentKey),t.add(o.dataKey);return Array.from(t)}(n);return Oh(t,n),Promise.all([e.removeSegments(i,o),e.removeManifests([t.key()],o)])}function Gh(e,t,n,o,i,r){var a={id:o.id,originalId:o.originalId,primary:o.primary,type:o.type,mimeType:o.mimeType,codecs:o.codecs,frameRate:o.frameRate,pixelAspectRatio:o.pixelAspectRatio,hdr:o.hdr,kind:o.kind,language:o.language,label:o.label,width:o.width||null,height:o.height||null,encrypted:o.encrypted,keyIds:o.keyIds,segments:[],variantIds:[],roles:o.roles,forced:o.forced,channelsCount:o.channelsCount,audioSamplingRate:o.audioSamplingRate,spatialAudio:o.spatialAudio,closedCaptions:o.closedCaptions,tilesLayout:o.tilesLayout},s=i.offline.numberOfParallelDownloads,l=0;return function(e,t,n){if(t=e.segmentIndex.find(t),null!=t)for(var o=e.segmentIndex.get(t);o;)n(o),o=e.segmentIndex.get(++t)}(o,n.presentationTimeline.Pa(),(function(n){var i=Gf(n),c=void 0;if(!r.has(i)){var u=n.endTime-n.startTime;u=Ih(t,o.id)*u,u=Hf(e.g,u),r.set(i,new Vf(n,u,l,!1))}n.h&&(c=Gf(n.h),r.has(c)||(u=.5*Ih(t,o.id),u=Hf(e.g,u),r.set(c,new Vf(n.h,u,l,!0)))),a.segments.push({pendingInitSegmentRefId:c,initSegmentKey:c?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:i,dataKey:0}),l=(l+1)%s})),a}function Jh(e){if(e.l.g)throw new Ie(2,9,7001)}function jh(){if(!wh())throw new Ie(2,9,9e3)}function Hh(e,t){return N((function(n){return 1==n.g?(e.i.push(t),A(n),b(n,t,4)):2!=n.g?n.return(n.h):(O(n),te(e.i,t),C(n,0))}))}function Kh(e){for(var t=new Set,n=c(e.textStreams),o=n.next();!o.done;o=n.next())t.add(o.value);for(o=(n=c(e.imageStreams)).next();!o.done;o=n.next())t.add(o.value);for(n=(e=c(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}g(ch,$f),ch.prototype.updateManifestExpiration=function(e,t){var n,o,i,r=this;return N((function(a){return n=Zf(r.h,r.g),o=n.store(),i=new ot,o.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,o.put(n),i.resolve()):i.reject(new Ie(2,9,9012,"Could not find values for "+e))},b(a,Promise.all([n.promise(),i]),0)}))},ch.prototype.bc=function(e){var t,n,o,i,r,a;return N((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)o=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=o-e.periods[n].startTime,r=uh(e.periods[n],i),t.push(r);return b(s,Ud(t),2)}return a=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:a,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})}))},ch.prototype.ze=function(e){return{data:e.data}},g(ph,$f),ph.prototype.bc=function(e){var t,n,o,i,r,a;return N((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){o=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=o-e.periods[n].startTime;for(var l=e.periods[n],u=[],d=c(l.streams),p=d.next();!p.done;p=d.next())0!=(p=p.value).variantIds.length&&u.push(fh(p,l.startTime,l.startTime+i));r=u,t.push(r)}return b(s,Ud(t),2)}return a=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:a,sequenceMode:!1})}))},g(hh,$f),(o=hh.prototype).hasFixedKeySpace=function(){return!1},o.addSegments=function(e){return this.add(this.i,e)},o.addManifests=function(e){return this.add(this.g,e)},o.updateManifest=function(e,t){return function(e,t,n){var o=(e=Zf(e.h,e.g)).store();return o.get(t).onsuccess=function(){o.put(n,t)},e.promise()}(this,e,t)},o.bc=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(o=mh.prototype).init=function(){var t=this,n=new ot,o=!1,i=new at((function(){o=!0,n.reject(new Ie(2,9,9017))}));i.N(5);var r=e.indexedDB.open("shaka_offline_db",5);return r.onsuccess=function(){if(!o){var e=r.result;t.l=e;var a=e.objectStoreNames;a=a.contains("manifest")&&a.contains("segment")?new ch(e,"segment","manifest"):null,t.g=a,a=(a=e.objectStoreNames).contains("manifest-v2")&&a.contains("segment-v2")?new ph(e,"segment-v2","manifest-v2"):null,t.h=a,a=(a=e.objectStoreNames).contains("manifest-v3")&&a.contains("segment-v3")?new ph(e,"segment-v3","manifest-v3"):null,t.i=a,a=(a=e.objectStoreNames).contains("manifest-v5")&&a.contains("segment-v5")?new hh(e,"segment-v5","manifest-v5"):null,t.j=a,e=e.objectStoreNames.contains("session-ids")?new oh(e):null,t.m=e,i.stop(),n.resolve()}},r.onupgradeneeded=function(){for(var e=r.result,t=c(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onerror=function(e){o||(n.reject(new Ie(2,9,9001,r.error)),i.stop(),e.preventDefault())},n},o.destroy=function(){var e=this;return N((function(t){switch(t.g){case 1:if(!e.g){t.A(2);break}return b(t,e.g.destroy(),2);case 2:if(!e.h){t.A(4);break}return b(t,e.h.destroy(),4);case 4:if(!e.i){t.A(6);break}return b(t,e.i.destroy(),6);case 6:if(!e.j){t.A(8);break}return b(t,e.j.destroy(),8);case 8:if(!e.m){t.A(10);break}return b(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),S(t)}}))},o.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},o.getEmeSessionCell=function(){return this.m},o.erase=function(){var t=this;return N((function(n){switch(n.g){case 1:if(!t.g){n.A(2);break}return b(n,t.g.destroy(),2);case 2:if(!t.h){n.A(4);break}return b(n,t.h.destroy(),4);case 4:if(!t.i){n.A(6);break}return b(n,t.i.destroy(),6);case 6:if(!t.j){n.A(8);break}return b(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),b(n,function(){var t=new ot,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new Ie(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,b(n,t.init(),0)}}))},sh("idb",(function(){return gt("CrKey")||ut()||!e.indexedDB?null:new mh})),gh.prototype.za=function(){return this.i},gh.prototype.ja=function(){return this.h},gh.prototype.key=function(){return this.l},gh.prototype.toString=function(){return this.j},(o=Sh.prototype).configure=function(){},o.start=function(e,t){var n,o,i,r,a,s,l=this;return N((function(c){switch(c.g){case 1:if(n=vh(e),l.g=n,null==n||"manifest"!=n.g)throw new Ie(2,1,9004,e);return o=new ih,A(c),b(c,o.init(),4);case 4:return b(c,ah(o,n.za(),n.ja()),5);case 5:return b(c,c.h.getManifests([n.key()]),6);case 6:return i=c.h,r=i[0],a=new yh(n.za(),n.ja()),s=_h(a,r),t.makeTextStreamsForClosedCaptions(s),c.return(s);case 2:return O(c),b(c,o.destroy(),7);case 7:C(c,0)}}))},o.stop=function(){return Promise.resolve()},o.update=function(){},o.onExpirationUpdated=function(e,t){var n,o,i,r,a,s,l,c=this;return N((function(u){switch(u.g){case 1:return n=c.g,o=new ih,E(u,2,3),b(u,o.init(),5);case 5:return b(u,ah(o,n.za(),n.ja()),6);case 6:return b(u,(i=u.h).getManifests([n.key()]),7);case 7:if(r=u.h,a=r[0],s=a.sessionIds.includes(e),l=null==a.expiration||a.expiration>t,!s||!l){u.A(3);break}return b(u,i.updateManifestExpiration(n.key(),t),3);case 3:return O(u),b(u,o.destroy(),10);case 10:C(u,0);break;case 2:P(u),u.A(3)}}))},Qi["application/x-offline-manifest"]=function(){return new Sh},V("shaka.offline.OfflineScheme",Eh),Eh.plugin=Ah,Co("offline",Ah),(o=Nh.prototype).destroy=function(){return this.l.destroy()},o.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=Dl(e,t)),Gl(this.h,e)},o.getConfiguration=function(){var e=Vl();return Gl(e,this.h,Vl()),e},o.jc=function(){return this.g},o.store=function(e,t,n){var o=this,i=this.getConfiguration(),r=new Kf(this.g);return this.j.push(r),t=function(e,t,n,o,i,r){var a,s,l,u,d,p,f,h,m,g,v,y,_;return N((function(A){switch(A.g){case 1:return jh(),s=a=null,l=new ih,p=d=u=null,E(A,2,3),b(A,o(),5);case 5:return a=A.h,b(A,function(e,t,n,o){var i,r,a,s,l;return N((function(c){if(1==c.g)return i=null,r=e.g,a={networkingEngine:r,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){i=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}},n.configure(o.manifest),Jh(e),b(c,n.start(t,a),2);if(3!=c.g)return s=c.h,Jh(e),l=Kh(s),b(c,Promise.all(Vo(l,(function(e){return e.createSegmentIndex()}))),3);if(Jh(e),i)throw i;return c.return(s)}))}(e,t,a,i),6);case 6:if(f=A.h,Jh(e),!(!f.presentationTimeline.U()&&!f.presentationTimeline.jb()))throw new Ie(2,9,9005,t);return b(A,function(e,t,n,o){var i;return N((function(r){switch(r.g){case 1:return(i=new Pi({kb:e.g,onError:n,cd:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(o.drm),b(r,function(e,t,n){return e.da=!0,e.B=[],e.L=n,Ci(e,t)}(i,t.variants,o.offline.usePersistentLicense),2);case 2:return b(r,Ri(i),3);case 3:return b(r,Li(i),4);case 4:return r.return(i)}}))}(e,f,(function(e){p=p||e}),i),7);case 7:if(s=A.h,Jh(e),p)throw p;return b(A,function(e,t){var n,o,i,r,a,s,l,u,d,p,f,h,m,g,v,y,_,A,O,C,k,R,L,I,w,D,M,x;return N((function(N){switch(N.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return mn(e,t,n)}))}(e,t.restrictions,n),b(N,yn(e,t.offline.usePersistentLicense),2);case 2:for(o=[],i=t.preferredAudioChannelCount,r=t.preferredDecodingAttributes,a=t.preferredVideoCodecs,s=t.preferredAudioCodecs,pn(e,a,s,i,r),l=c(e.variants),u=l.next();!u.done;u=l.next())d=u.value,o.push(Pn(d));for(p=c(e.textStreams),f=p.next();!f.done;f=p.next())h=f.value,o.push(On(h));for(m=c(e.imageStreams),g=m.next();!g.done;g=m.next())v=g.value,o.push(Cn(v));return b(N,t.offline.trackSelectionCallback(o),3);case 3:for(y=N.h,_=e.presentationTimeline.getDuration(),A=0,O=c(y),C=O.next();!C.done;C=O.next())k=C.value,R=k.bandwidth*_/8,A+=R;return E(N,4),b(N,t.offline.downloadSizeCallback(A),6);case 6:if(!N.h)throw new Ie(2,9,9014);T(N,5);break;case 4:if((L=P(N))instanceof Ie)throw L;throw new Ie(2,9,9015);case 5:for(I=new Set,w=new Set,D=new Set,M=c(y),C=M.next();!C.done;C=M.next())"variant"==(x=C.value).type&&I.add(x.id),"text"==x.type&&w.add(x.id),"image"==x.type&&D.add(x.id);e.variants=e.variants.filter((function(e){return I.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return w.has(e.id)})),e.imageStreams=e.imageStreams.filter((function(e){return D.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=c(t),o=n.next();!o.done;o=n.next())for(var i=(o=c(t)).next();!i.done;i=o.next());for(t=c(e),n=t.next();!n.done;n=t.next())for(n=c(e),o=n.next();!o.done;o=n.next());}(e),S(N)}}))}(f,i),8);case 8:return b(A,l.init(),9);case 9:return Jh(e),b(A,rh(l),10);case 10:return u=A.h,Jh(e),h=function(e,t,n,o,i,r){var a=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=Ch(t),appMetadata:n,isIncomplete:!1}}(n,t,o),s=i.offline.progressCallback;!function(e,t,n){e.m=t,e.l=n}(r,(function(e,t){a.size=t,s(a,e)}),(function(t,n){l&&i.offline.usePersistentLicense&&u==n&&Ii(e,"cenc",t)}));var l=xh(t)&&!Fh(t),u=null;l&&(u=Yh.get(e.g.keySystem));for(var d=new kh,p=c(t.textStreams),f=p.next();!f.done;f=p.next())d.g[f.value.id]=52;for(p=c(t.imageStreams),f=p.next();!f.done;f=p.next())Lh(d,f.value);for(f=c(t.variants),p=f.next();!p.done;p=f.next())Rh(d,p.value);return d=function(e,t,n,o){for(var i=new Map,r=Kh(n),a=new Map,s=(r=c(r)).next();!s.done;s=r.next()){var l=Gh(e,t,n,s=s.value,o,i);a.set(s.id,l)}for(e=c(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&a.get(t.audio.id).variantIds.push(t.id),t.video&&a.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(a.values()),pe:Array.from(i.values())}}(r,d,t,i),r=d.streams,d=d.pe,f=e.g,p=i.offline.usePersistentLicense,f&&p&&(f.initData=[]),{ag:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.ic(),streams:r,sessionIds:p?wi(e):[],drmInfo:f,appMetadata:o,isIncomplete:!0,sequenceMode:t.sequenceMode},pe:d}}(s,f,t,n,i,r),m=h.ag,g=h.pe,b(A,u.ja.addManifests([m]),11);case 11:if(v=A.h,Jh(e),d=v[0],Jh(e),p)throw p;return b(A,function(e,t,n,o,i,r,a,s,l){var u,d,p,f,h,m,g,v,y,_;return N((function(A){switch(A.g){case 1:if(u={},d=0,p=function(t,p){var f,h,m,g,v,y,_;return N((function(E){if(1==E.g){for(f={},h=c(t),m=h.next();!m.done;f={cb:f.cb},m=h.next())f.cb=m.value,g=Jf(f.cb,r),v=f.cb.i,y=f.cb.h,_=function(t){return function(n){var o,i,r;return N((function(s){if(1==s.g)return b(s,a.addSegments([{data:n}]),2);o=s.h,Jh(e),i=t.cb.g,r=Gf(i),u[r]=o[0],d+=n.byteLength,S(s)}))}}(f),Wf(i,f.cb.groupId,g,v,y,_);return b(E,function(e){return N((function(t){return 1==t.g?b(t,Promise.all(e.j.values()),2):t.return(e.g.h)}))}(i),2)}return p?(Jh(e),function(e,t,n,o){if(t.expiration=n.ic(),n=wi(n),t.sessionIds=o.offline.usePersistentLicense?n:[],xh(e)&&o.offline.usePersistentLicense&&!n.length)throw new Ie(2,9,9007)}(s,o,l,r),b(E,a.updateManifest(n,o),0)):E.A(0)}))},f=!1,E(A,2),!xh(s)||!f||Fh(s)){A.A(4);break}return b(A,p(t.filter((function(e){return e.h})),!0),5);case 5:return Jh(e),t=t.filter((function(e){return!e.h})),h=u,m=d,u={},d=0,b(A,Mh(a,n,o,h,m,(function(){return Jh(e)})),6);case 6:Jh(e);case 4:if(f){A.A(7);break}return b(A,p(t,!1),8);case 8:return Jh(e),g=u,v=d,u={},d=0,b(A,Mh(a,n,o,g,v,(function(){return Jh(e)})),9);case 9:Jh(e);case 7:T(A,0);break;case 2:return y=P(A),_=Object.values(u),b(A,a.removeSegments(_,(function(){})),10);case 10:throw y}}))}(e,g,d,m,r,i,u.ja,f,s),12);case 12:return Jh(e),y=new gh("manifest",u.path.za,u.path.ja,d),A.return(Oh(y,m));case 3:return O(A),b(A,l.destroy(),13);case 13:if(!a){A.A(14);break}return b(A,a.stop(),14);case 14:if(!s){A.A(16);break}return b(A,s.destroy(),16);case 16:C(A,0);break;case 2:if(_=P(A),null==d){A.A(18);break}return b(A,Dh(d),18);case 18:throw p||_}}))}(this,e,t||{},(function(){var t;return N((function(r){return 1==r.g?b(r,qi(e,o.g,i.manifest.retryParameters,n||null),2):(t=r.h,r.return(t()))}))}),i,r),(t=new po(t,(function(){return Yf(r)}))).finally((function(){te(o.j,r)})),function(e,t){var n=t.promise;return e.i.push(n),t.finally((function(){te(e.i,n)}))}(this,t)},o.remove=function(e){return Hh(this,function(e,t){var n,o,i,r,a,s;return N((function(l){switch(l.g){case 1:if(jh(),null==(n=vh(t))||"manifest"!=n.g)throw new Ie(2,9,9004,t);return o=n,i=new ih,A(l),b(l,i.init(),4);case 4:return b(l,ah(i,o.za(),o.ja()),5);case 5:return b(l,(r=l.h).getManifests([o.key()]),6);case 6:return a=l.h,s=a[0],b(l,Promise.all([Bh(e,s,i),Vh(r,o,s)]),2);case 2:return O(l),b(l,i.destroy(),8);case 8:C(l,0)}}))}(this,e))},o.pg=function(){return Hh(this,function(e){var t,n,o,i,r,a,s,l,u,d;return N((function(p){switch(p.g){case 1:return jh(),t=e.g,n=e.h.drm,o=new ih,i=!1,A(p),b(p,o.init(),4);case 4:r=[],function(e,t){e.g.forEach((function(e){t(e.getEmeSessionCell())}))}(o,(function(e){return r.push(e)})),a=c(r),s=a.next();case 5:if(s.done){p.A(2);break}return b(p,(l=s.value).getAll(),8);case 8:return u=p.h,b(p,Th(n,t,u),9);case 9:return d=p.h,b(p,l.remove(d),10);case 10:d.length!=u.length&&(i=!0),s=a.next(),p.A(5);break;case 2:return O(p),b(p,o.destroy(),11);case 11:C(p,3);break;case 3:return p.return(!i)}}))}(this))},o.list=function(){return Hh(this,function(){var e,t,n;return N((function(o){switch(o.g){case 1:return jh(),e=[],t=new ih,A(o),b(o,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach((function(e,n){e.getCells().forEach((function(e,o){t({za:n,ja:o},e)}))}))}(t,(function(t,o){n=n.then((function(){return N((function(n){if(1==n.g)return b(n,o.getAllManifests(),2);n.h.forEach((function(n,o){n=Oh(new gh("manifest",t.za,t.ja,o),n),e.push(n)})),S(n)}))}))})),b(o,n,2);case 2:return O(o),b(o,t.destroy(),6);case 6:C(o,3);break;case 3:return o.return(e)}}))}())},V("shaka.offline.Storage",Nh),Nh.deleteAll=function(){var e;return N((function(t){return 1==t.g?(e=new ih,A(t),b(t,function(e){var t,n;return N((function(o){return 1==o.g?(t=Array.from(e.g.values()),(n=0<t.length)||lh.forEach((function(e){(e=e())&&t.push(e)})),b(o,Promise.all(t.map((function(e){return e.erase()}))),2)):n?o.A(0):b(o,Promise.all(t.map((function(e){return e.destroy()}))),0)}))}(e),2)):5!=t.g?(O(t),b(t,e.destroy(),5)):C(t,0)}))},Nh.prototype.list=Nh.prototype.list,Nh.prototype.removeEmeSessions=Nh.prototype.pg,Nh.prototype.remove=Nh.prototype.remove,Nh.prototype.store=Nh.prototype.store,Nh.prototype.getNetworkingEngine=Nh.prototype.jc,Nh.prototype.getConfiguration=Nh.prototype.getConfiguration,Nh.prototype.configure=Nh.prototype.configure,Nh.prototype.destroy=Nh.prototype.destroy,Nh.support=wh;var Yh=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function Wh(){}function zh(e,t){for(e={priority:t||0,mf:e},t=0;t<qh.length;t++)if(qh[t].priority<e.priority)return void qh.splice(t,0,e);qh.push(e)}Xc.offline=wh,V("shaka.polyfill",Wh),Wh.register=zh,Wh.installAll=function(){for(var e=c(qh),t=e.next();!t.done;t=e.next()){t=t.value;try{t.mf()}catch(e){Y("Error installing polyfill!",e)}}};var qh=[];function Xh(){this.g=new Qh}function Zh(){e.AbortController||(e.AbortController=Xh,e.AbortSignal=Qh)}function Qh(){So.call(this),this.h=!1,this.g=void 0,this.onabort=null}function $h(){}function em(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=c(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())tm(t.value)}function tm(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||null==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function nm(){}function om(){Jv()}function im(){}function rm(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",am),document.addEventListener("webkitfullscreenerror",am),document.addEventListener("mozfullscreenchange",am),document.addEventListener("mozfullscreenerror",am),document.addEventListener("MSFullscreenChange",am),document.addEventListener("MSFullscreenError",am)}}function am(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function sm(){}function lm(){var e=!0;(ft()||gt("PlayStation 5")||ht()||gt("Web0S")||dt()||gt("CrKey")||gt("PC=EOS")||gt("Hisense")||gt("VIDAA"))&&(e=!1),e&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),gm=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=cm)}function cm(t){var n,o,i,r,a,s,l,c,u,d,p,f,h;return N((function(m){switch(m.g){case 1:if(n={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:t},!t)return m.return(n);if(o=t.video,i=t.audio,"media-source"==t.type){if(!st())return m.return(n);if(o){if(gt("CrKey"))if(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var g=o.contentType;o.width&&o.height&&(g+="; width="+o.width+"; height="+o.height),o.framerate&&(g+="; framerate="+o.framerate),"pq"===o.transferFunction&&(g+="; eotf=smpte2084"),g=cast.__platform__.canDisplayType(g)}else g=Q(o.contentType);else g=Q(o.contentType);if(!g)return m.return(n)}if(i&&(r=i.contentType,!Q(r)))return m.return(n)}else{if("file"!=t.type)return m.return(n);if(o&&(a=o.contentType,!lt(a))||i&&(s=i.contentType,!lt(s)))return m.return(n)}return t.keySystemConfiguration?(l=t.keySystemConfiguration,c=[],u=[],l.audio&&(d={robustness:l.audio.robustness||"",contentType:t.audio.contentType},c.push(d)),l.video&&(p={robustness:l.video.robustness||"",contentType:t.video.contentType},u.push(p)),f={initDataTypes:[l.initDataType],distinctiveIdentifier:l.distinctiveIdentifier,persistentState:l.persistentState,sessionTypes:l.sessionTypes},c.length&&(f.audioCapabilities=c),u.length&&(f.videoCapabilities=u),E(m,3),b(m,navigator.requestMediaKeySystemAccess(l.keySystem,[f]),5)):(n.supported=!0,m.return(Promise.resolve(n)));case 5:h=m.h,T(m,4);break;case 3:P(m);case 4:h&&(n.supported=!0,n.keySystemAccess=h);case 2:return m.return(n)}}))}Xh.prototype.abort=function(e){var t=this.g;t.h||(t.h=!0,t.g=e,void 0===t.g&&(t.g=new DOMException("signal is aborted without reason","AbortError")),e=new yo("abort"),t.onabort&&t.onabort(e),t.dispatchEvent(e))},a.Object.defineProperties(Xh.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),Wh.AbortController=Xh,Xh.install=Zh,g(Qh,So),a.Object.defineProperties(Qh.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),zh(Zh),Wh.Aria=$h,$h.install=em,zh(em),Wh.EncryptionScheme=nm,nm.install=om,zh(om,-2),Wh.Fullscreen=im,im.install=rm,zh(rm),Wh.MediaCapabilities=sm,sm.install=lm;var um,dm,pm,fm,hm,mm,gm=null;function vm(){}function ym(){var t=mt();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?12>=t?(_m(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):15>=t&&_m():ct()?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(";")[0].split("/")[1]&&e(t)}}():(gt("Tizen 2")||gt("Tizen 3")||gt("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=Wt(t)[0]&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;gt("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),o=n.findIndex((function(e){return e.startsWith("codecs=")}));if(0>o)return e(t);var i=n[o].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),r=i.findIndex((function(e){return e.startsWith("vp09")}));return 0<=r&&(i[r]="vp9",n[o]='codecs="'+i.join(",")+'"',t=n.join("; ")),e(t)})}()}function _m(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,w.apply(0,arguments));return t.abort=function(){},t}}function bm(){}function Sm(){screen.orientation||null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Em;screen.orientation=n,t(),e.addEventListener("orientationchange",(function(){t();var e=new yo("change");n.dispatchEvent(e)}))}()}function Em(){So.call(this),this.type="",this.angle=0}function Am(){}function Tm(e,t){try{var n=new Cm(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Pm(e){var t=this.mediaKeys;return t&&t!=e&&Rm(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Rm(e,this):Promise.resolve()}function Om(e){if(Re(e=ke(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=Tt(e=Et(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=Ce(e),this.dispatchEvent(t)}function Cm(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(t=(e=c(t)).next();!t.done;t=e.next()){var n=t.value;if("required"==n.persistentState)t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var o=!1,i=!1;if(n.audioCapabilities)for(var r=c(n.audioCapabilities),a=r.next();!a.done;a=r.next())(a=a.value).contentType&&(o=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,a.contentType.split(";")[0])&&(t.audioCapabilities.push(a),i=!0));if(n.videoCapabilities)for(a=(n=c(n.videoCapabilities)).next();!a.done;a=n.next())(r=a.value).contentType&&(o=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,r.contentType.split(";")[0])&&(t.videoCapabilities.push(r),i=!0));o||(i=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=i?t:null}if(t)return void(this.g=t)}throw(e=Error("Unsupported keySystem")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function km(e){this.h=new WebKitMediaKeys(e),this.g=new Fo}function Rm(e,t){if(e.g.nb(),!t)return Promise.resolve();e.g.C(t,"webkitneedkey",Om);try{return ls(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.webkitSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function Lm(e){So.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new Fo,this.sessionId="",this.expiration=NaN,this.closed=new ot,this.keyStatuses=new Nm}function Im(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new yo("keystatuseschange"),e.dispatchEvent(t)}function Nm(){this.size=0,this.g=void 0}function wm(){}function Dm(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Mm,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=xm,e.MediaKeys=Fm,e.MediaKeySystemAccess=Um,e.shakaMediaKeysPolyfill=!0)}function Mm(){return Promise.reject(Error("The key system specified is not supported."))}function xm(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function Fm(){throw new TypeError("Illegal constructor.")}function Um(){throw this.keySystem="",new TypeError("Illegal constructor.")}function Bm(){}function Vm(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)$m="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Jm,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=jm,e.MediaKeys=Km,e.MediaKeySystemAccess=Hm,e.shakaMediaKeysPolyfill=!0}}function Gm(e){return $m?$m+e.charAt(0).toUpperCase()+e.slice(1):e}function Jm(e,t){try{var n=new Hm(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function jm(e){var t=this.mediaKeys;return t&&t!=e&&Ym(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Ym(e,this),Promise.resolve()}function Hm(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var o=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var r=(t=c(t)).next();!r.done;r=t.next()){var a={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(r=r.value).initDataTypes,sessionTypes:["temporary"],label:r.label},s=!1;if(r.audioCapabilities)for(var l=c(r.audioCapabilities),u=l.next();!u.done;u=l.next())(u=u.value).contentType&&(s=!0,i.canPlayType(u.contentType.split(";")[0],this.g)&&(a.audioCapabilities.push(u),o=!0));if(r.videoCapabilities)for(u=(l=c(r.videoCapabilities)).next();!u.done;u=l.next())(u=u.value).contentType&&(s=!0,i.canPlayType(u.contentType,this.g)&&(a.videoCapabilities.push(u),o=!0));if(s||(o=i.canPlayType("video/mp4",this.g)||i.canPlayType("video/webm",this.g)),"required"==r.persistentState&&(n?(a.persistentState="required",a.sessionTypes=["persistent-license"]):o=!1),o)return void(this.h=a)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(e=Error(n)).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function Km(e){this.l=e,this.h=null,this.g=new Fo,this.i=[],this.j=new Map}function Ym(e,t){e.h=t,e.g.nb();var n=$m;t&&(e.g.C(t,n+"needkey",(function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=Ce(t.initData),e.h.dispatchEvent(n)})),e.g.C(t,n+"keymessage",(function(t){var n=Wm(e,t.sessionId);n&&(t=new yo("message",t=(new Map).set("messageType",null==n.keyStatuses.Eb()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))})),e.g.C(t,n+"keyadded",(function(t){(t=Wm(e,t.sessionId))&&(Zm(t,"usable"),t.g&&t.g.resolve(),t.g=null)})),e.g.C(t,n+"keyerror",(function(t){var n=Wm(e,t.sessionId);n&&n.handleError(t)})))}function Wm(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function zm(e,t,n){So.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new ot,this.keyStatuses=new Qm}function qm(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var o=ke(Tt("LOAD_SESSION|"+n));else{var i=Tt("PERSISTENT|");o=wt(i,t)}else o=ke(t)}catch(e){return Promise.reject(e)}e.h=new ot;var r=Gm("generateKeyRequest");try{e.j[r](e.i,o)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new at((function(){try{e.j[r](e.i,o)}catch(t){e.h.reject(t),e.h=null}})).N(.01)}return e.h}function Xm(e,t,n){if(e.g)e.g.then((function(){return Xm(e,t,n)})).catch((function(){return Xm(e,t,n)}));else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var o=St(n),i=JSON.parse(o);"oct"!=i.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),o=Lt(i.keys[0].k),i=Lt(i.keys[0].kid)}else o=ke(n),i=null;var r=Gm("addKey");try{e.j[r](e.i,o,i,e.sessionId)}catch(t){e.g.reject(t),e.g=null}}}function Zm(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,t=new yo("keystatuseschange"),e.dispatchEvent(t)}function Qm(){this.size=0,this.g=void 0}sm.originalMcap=gm,zh(lm,-1),Wh.MediaSource=vm,vm.install=ym,zh(ym),Wh.Orientation=bm,bm.install=Sm,g(Em,So),Em.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Em.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},zh(Sm),Wh.PatchedMediaKeysApple=Am,Am.uninstall=function(){um&&(um=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",dm),HTMLMediaElement.prototype.setMediaKeys=pm,e.MediaKeys=fm,e.MediaKeySystemAccess=hm,navigator.requestMediaKeySystemAccess=mm,dm=mm=pm=hm=fm=null,e.shakaMediaKeysPolyfill=!1)},Am.install=function(t){e.HTMLVideoElement&&e.WebKitMediaKeys&&(void 0!==t&&t&&(um=!0,dm=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),pm=HTMLMediaElement.prototype.setMediaKeys,fm=e.MediaKeys,hm=e.MediaKeySystemAccess,mm=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Pm,e.MediaKeys=km,e.MediaKeySystemAccess=Cm,navigator.requestMediaKeySystemAccess=Tm,e.shakaMediaKeysPolyfill=!0)},Cm.prototype.createMediaKeys=function(){var e=new km(this.keySystem);return Promise.resolve(e)},Cm.prototype.getConfiguration=function(){return this.g},km.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Lm(this.h,e)},km.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(Lm,So),(o=Lm.prototype).generateRequest=function(e,t){var n=this;this.h=new ot;try{var o=this.l.createSession("video/mp4",ke(t));this.i=o,this.sessionId=o.sessionId||"",this.j.C(this.i,"webkitkeymessage",(function(e){n.h&&(n.h.resolve(),n.h=null),e=new yo("message",e=(new Map).set("messageType",null==n.keyStatuses.Eb()?"license-request":"license-renewal").set("message",Ce(e.message))),n.dispatchEvent(e)})),this.j.C(o,"webkitkeyadded",(function(){n.g&&(Im(n,"usable"),n.g.resolve(),n.g=null)})),this.j.C(o,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.i.error,null!=n.h)n.h.reject(e),n.h=null;else if(null!=n.g)n.g.reject(e),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Im(n,"output-not-allowed");break;default:Im(n,"internal-error")}})),Im(this,"status-pending")}catch(e){this.h.reject(e)}return this.h},o.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},o.update=function(e){this.g=new ot;try{this.i.update(ke(e))}catch(e){this.g.reject(e)}return this.g},o.close=function(){try{this.i.close(),this.closed.resolve(),this.j.nb()}catch(e){this.closed.reject(e)}return this.closed},o.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(o=Nm.prototype).Eb=function(){return this.g},o.forEach=function(e){this.g&&e(this.g,Wi.value())},o.get=function(e){if(this.has(e))return this.g},o.has=function(e){var t=Wi.value();return!(!this.g||!Pe(e,t))},o.entries=function(){},o.keys=function(){},o.values=function(){},Wh.PatchedMediaKeysNop=wm,wm.install=Dm,Fm.prototype.createSession=function(){},Fm.prototype.setServerCertificate=function(){},Um.prototype.getConfiguration=function(){},Um.prototype.createMediaKeys=function(){},zh(Dm,-10),Wh.PatchedMediaKeysWebkit=Bm,Bm.install=Vm,Hm.prototype.createMediaKeys=function(){var e=new Km(this.g);return Promise.resolve(e)},Hm.prototype.getConfiguration=function(){return this.h},Km.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new zm(t,this.l,e),this.i.push(e),e},Km.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(zm,So),(o=zm.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Zm(this,"output-restricted"):Zm(this,1==t?"expired":"internal-error"))},o.generateRequest=function(e,t){return qm(this,t,null)},o.load=function(e){return"persistent-license"==this.l?qm(this,null,e):Promise.reject(Error("Not a persistent session."))},o.update=function(e){var t=new ot;return Xm(this,t,e),t},o.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=Gm("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},o.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(o=Qm.prototype).Eb=function(){return this.g},o.forEach=function(e){this.g&&e(this.g,Wi.value())},o.get=function(e){if(this.has(e))return this.g},o.has=function(e){var t=Wi.value();return!(!this.g||!Pe(e,t))},o.entries=function(){},o.keys=function(){},o.values=function(){};var $m="";function eg(){}function tg(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=og,Object.defineProperty(t,"disablePictureInPicture",{get:rg,set:ag,enumerable:!0,configurable:!0}),document.exitPictureInPicture=ig,document.addEventListener("webkitpresentationmodechanged",ng,!0))}}function ng(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function og(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function ig(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function rg(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function ag(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function sg(){}function lg(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=cg))}function cg(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function ug(){}function dg(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=pg)}function pg(){return new Promise((function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){e({usage:t,quota:n})}),t)}))}function fg(){}function hg(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:mg})}function mg(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function gg(){}function vg(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}}function yg(){}function _g(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||pt())&&(t.getVideoPlaybackQuality=bg)}}function bg(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function Sg(){}function Eg(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=Ag;else if(6==n)t=Tg;else{try{var o=!!Ag(1,2,"")}catch(e){o=!1}o&&(t=Ag)}t&&(e.VTTCue=function(e,n,o){return t(e,n,o)})}}function Ag(t,n,o){return new e.TextTrackCue(t,n,o)}function Tg(t,n,o){return new e.TextTrackCue(t+"-"+n+"-"+o,t,n,o)}function Pg(){}zh(Vm),Wh.PiPWebkit=eg,eg.install=tg,zh(tg),Wh.RandomUUID=sg,sg.install=lg,zh(lg),Wh.StorageEstimate=ug,ug.install=dg,zh(dg),Wh.Symbol=fg,fg.install=hg,zh(hg),Wh.VideoPlayPromise=gg,gg.install=vg,zh(vg),Wh.VideoPlaybackQuality=yg,yg.install=_g,zh(_g),Wh.VTTCue=Sg,Sg.install=Eg,zh(Eg),Pg.prototype.parseInit=function(){},Pg.prototype.setSequenceMode=function(){},Pg.prototype.parseMedia=function(e,t){for(var n=null,o=[],i=(e=c(e=St(e).split(/\r?\n/))).next();!i.done;i=e.next())if((i=i.value)&&!/^\s+$/.test(i)&&(i=Og.exec(i))){var r=Cg.exec(i[1]);i=new ie(r=60*parseInt(r[1],10)+parseFloat(r[2].replace(",",".")),t.segmentEnd?t.segmentEnd:r+2,i[2]),n&&(n.endTime=r,o.push(n)),n=i}return n&&o.push(n),o},V("shaka.text.LrcTextParser",Pg),Pg.prototype.parseMedia=Pg.prototype.parseMedia,Pg.prototype.setSequenceMode=Pg.prototype.setSequenceMode,Pg.prototype.parseInit=Pg.prototype.parseInit;var Og=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Cg=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function kg(){}function Rg(e,t,n,o,i,r,a,s,l,u,d){var p=e.parentNode;if(e.nodeType==Node.COMMENT_NODE)return null;if(e.nodeType==Node.TEXT_NODE){if(!d)return null;var f=document.createElement("span");f.textContent=e.textContent}else f=e;for(var h=null,m=c(tv),g=m.next();!g.done&&!(h=Mg(f,"backgroundImage",o,"#",g.value)[0]);g=m.next());if(m=d,("p"==e.nodeName||h)&&(d=!0),s="default"==(f.getAttribute("xml:space")||(s?"default":"preserve")),e=[],!(g=Array.from(f.childNodes).every((function(e){return e.nodeType==Node.TEXT_NODE}))))for(var v=c(f.childNodes),y=v.next();!y.done;y=v.next())(y=Rg(y.value,t,n,o,i,r,a,s,l,f,d))&&e.push(y);o=null!=u,v=/\S/.test(f.textContent);var _=f.hasAttribute("begin")||f.hasAttribute("end")||f.hasAttribute("dur");if(!(_||v||"br"==f.tagName||0!=e.length||o&&!s))return null;for(v=(y=Fg(f,n)).start,y=y.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)v=(y=xg(p,n,v,y)).start,y=y.end,p=p.parentNode;if(null==v&&(v=0),v+=t.periodStart,y=null==y?1/0:y+t.periodStart,v=Math.max(v,t.segmentStart),y=Math.min(y,t.segmentEnd),!_&&0<e.length)for(v=1/0,y=0,n=(t=c(e)).next();!n.done;n=t.next())n=n.value,v=Math.min(v,n.startTime),y=Math.max(y,n.endTime);if("br"==f.tagName)return(i=new ie(v,y,"")).lineBreak=!0,i;if(t="",g&&(t=f.textContent,s&&(t=(t=t.trim()).replace(/\s+/g," "))),(t=new ie(v,y,t)).nestedCues=e,d||(t.isContainer=!0),l&&(t.cellResolution=l),l=Mg(f,"region",r,"")[0],f.hasAttribute("region")&&l&&l.getAttribute("xml:id")){var b=l.getAttribute("xml:id");t.region=a.filter((function(e){return e.id==b}))[0]}return a=l,u&&o&&!f.getAttribute("region")&&!f.getAttribute("style")&&(a=Mg(u,"region",r,"")[0]),function(e,t,n,o,i,r,a){r=r||a,"rtl"==Ig(t,n,i,"direction",r)&&(e.direction="rtl"),a=Ig(t,n,i,"writingMode",r),"tb"==a||"tblr"==a?e.writingMode="vertical-lr":"tbrl"==a?e.writingMode="vertical-rl":"rltb"==a||"rl"==a?e.direction="rtl":a&&(e.direction=de),(a=Ig(t,n,i,"textAlign",!0))?(e.positionAlign=Qg[a],e.lineAlign=Zg[a],e.textAlign=le[a.toUpperCase()]):e.textAlign=se,(a=Ig(t,n,i,"displayAlign",!0))&&(e.displayAlign=ue[a.toUpperCase()]);(a=Ig(t,n,i,"color",r))&&(e.color=a);(a=Ig(t,n,i,"backgroundColor",r))&&(e.backgroundColor=a);(a=Ig(t,n,i,"border",r))&&(e.border=a);if(a=Ig(t,n,i,"fontFamily",r))switch(a){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"proportionalSerif":e.fontFamily="serif";break;default:e.fontFamily=a}(a=Ig(t,n,i,"fontWeight",r))&&"bold"==a&&(e.fontWeight=700),a=Ig(t,n,i,"wrapOption",r),e.wrapLine=!a||"noWrap"!=a,(a=Ig(t,n,i,"lineHeight",r))&&a.match(jg)&&(e.lineHeight=a),(a=Ig(t,n,i,"fontSize",r))&&(a.match(jg)||a.match(Jg))&&(e.fontSize=a),(a=Ig(t,n,i,"fontStyle",r))&&(e.fontStyle=be[a.toUpperCase()]);if(o){a=o.getAttribute("imageType")||o.getAttribute("imagetype");var s=o.getAttribute("encoding");o=o.textContent.trim(),"PNG"==a&&"Base64"==s&&o&&(e.backgroundImage="data:image/png;base64,"+o)}(o=Ig(t,n,i,"textOutline",r))&&(o=o.split(" "),o[0].match(jg)?e.textStrokeColor=e.color:(e.textStrokeColor=o[0],o.shift()),o[0]&&o[0].match(jg)?e.textStrokeWidth=o[0]:e.textStrokeColor="");(o=Ig(t,n,i,"letterSpacing",r))&&o.match(jg)&&(e.letterSpacing=o),(o=Ig(t,n,i,"linePadding",r))&&o.match(jg)&&(e.linePadding=o),(r=Ig(t,n,i,"opacity",r))&&(e.opacity=parseFloat(r));(n=Ng(n,i,"textDecoration"))&&Lg(e,n),(t=wg(t,i,"textDecoration"))&&Lg(e,t)}(t,f,a,h,i,m,0==e.length),t}function Lg(e,t){for(var n=(t=c(t.split(" "))).next();!n.done;n=t.next())switch(n.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&te(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&te(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&te(e.textDecoration,"overline")}}function Ig(e,t,n,o,i){return i=void 0===i||i,(e=wg(e,n,o))?e:i?Ng(t,n,o):null}function Ng(e,t,n){if(!e)return null;var o=ui(e,ev,n);return o||Dg(e,t,n)}function wg(e,t,n){var o=ui(e,ev,n);return o||Dg(e,t,n)}function Dg(e,t,n){e=Mg(e,"style",t,"");for(var o=null,i=0;i<e.length;i++){var r=ci(e[i],"urn:ebu:tt:style",n);r||(r=ui(e[i],ev,n)),r||(r=wg(e[i],t,n)),r&&(o=r)}return o}function Mg(e,t,n,o,i){var r=[];if(!e||1>n.length)return r;var a=e;for(e=null;a&&!(e=i?ci(a,i,t):a.getAttribute(t))&&(a=a.parentNode)instanceof Element;);if(t=e)for(i=(t=c(t.split(" "))).next();!i.done;i=t.next())for(i=i.value,a=(e=c(n)).next();!a.done;a=e.next())if(o+(a=a.value).getAttribute("xml:id")==i){r.push(a);break}return r}function xg(e,t,n,o){return e=Fg(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==o?o=e.end:null!=e.start&&(o+=e.start),{start:n,end:o}}function Fg(e,t){var n=Ug(e.getAttribute("begin"),t),o=Ug(e.getAttribute("end"),t);return e=Ug(e.getAttribute("dur"),t),null==o&&null!=e&&(o=n+e),{start:n,end:o}}function Ug(e,t){var n=null;if(Kg.test(e)){e=Kg.exec(e),n=Number(e[1]);var o=Number(e[2]),i=Number(e[3]),r=Number(e[4]);n=(i+=(r+=(Number(e[5])||0)/t.h)/t.frameRate)+60*o+3600*n}else if(Yg.test(e))n=Bg(Yg,e);else if(Wg.test(e))n=Bg(Wg,e);else if(zg.test(e))e=zg.exec(e),n=Number(e[1])/t.frameRate;else if(qg.test(e))e=qg.exec(e),n=Number(e[1])/t.g;else if(Xg.test(e))n=Bg(Xg,e);else if(e)throw new Ie(2,2,2001,"Could not parse cue time range in TTML");return n}function Bg(e,t){return null==(e=e.exec(t))||""==e[0]?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function Vg(e,t,n,o){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(o),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}$t["application/x-subtitle-lrc"]=function(){return new Pg},kg.prototype.parseInit=function(){},kg.prototype.setSequenceMode=function(){},kg.prototype.parseMedia=function(e,t){var n=St(e);if(e=[],""==n)return e;var o=Ei(n,"tt");if(!o)throw new Ie(2,2,2005,"Failed to parse TTML.");if(!(n=o.getElementsByTagName("body")[0]))return[];var i=ui(o,$g,"frameRate"),r=ui(o,$g,"subFrameRate"),a=ui(o,$g,"frameRateMultiplier"),s=ui(o,$g,"tickRate"),l=ui(o,$g,"cellResolution"),u=o.getAttribute("xml:space")||"default",d=ui(o,ev,"extent");if("default"!=u&&"preserve"!=u)throw new Ie(2,2,2005,"Invalid xml:space value: "+u);u="default"==u,i=new Vg(i,r,a,s),l=l&&(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null,r=(r=o.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter((function(e){return e instanceof Element}))}(r):[],a=Array.from(o.getElementsByTagName("style")),s=[];for(var p=c(o=Array.from(o.getElementsByTagName("region"))),f=p.next();!f.done;f=p.next()){var h=f.value;f=new Se;var m=h.getAttribute("xml:id");if(m){f.id=m;var g,v,y=null;d&&(y=Gg.exec(d)||Hg.exec(d)),m=y?Number(y[1]):null,y=y?Number(y[2]):null,(g=Ng(h,a,"extent"))&&(null!=(g=(v=Gg.exec(g))||Hg.exec(g))&&(f.width=Number(g[1]),f.height=Number(g[2]),v||(null!=m&&(f.width=100*f.width/m),null!=y&&(f.height=100*f.height/y)),f.widthUnits=v||null!=m?Ee:0,f.heightUnits=v||null!=y?Ee:0)),(h=Ng(h,a,"origin"))&&(null!=(g=(v=Gg.exec(h))||Hg.exec(h))&&(f.viewportAnchorX=Number(g[1]),f.viewportAnchorY=Number(g[2]),v||(null!=y&&(f.viewportAnchorY=100*f.viewportAnchorY/y),null!=m&&(f.viewportAnchorX=100*f.viewportAnchorX/m)),f.viewportAnchorUnits=v||null!=m?Ee:0))}else f=null;f&&s.push(f)}if(si(n,"p").length)throw new Ie(2,2,2001,"<p> can only be inside <div> in TTML");for(p=(d=c(si(n,"div"))).next();!p.done;p=d.next())if(si(p.value,"span").length)throw new Ie(2,2,2001,"<span> can only be inside <p> in TTML");return(t=Rg(n,t,i,r,a,o,s,u,l,null,!1))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e},V("shaka.text.TtmlTextParser",kg),kg.prototype.parseMedia=kg.prototype.parseMedia,kg.prototype.setSequenceMode=kg.prototype.setSequenceMode,kg.prototype.parseInit=kg.prototype.parseInit;var Gg=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Jg=/^(\d{1,2}(?:\.\d+)?|100)%$/,jg=/^(\d+px|\d+em|\d*\.?\d+c)$/,Hg=/^(\d+)px (\d+)px$/,Kg=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Yg=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Wg=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,zg=/^(\d*(?:\.\d*)?)f$/,qg=/^(\d*(?:\.\d*)?)t$/,Xg=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Zg={left:he,center:"center",right:"end",start:he,end:"end"},Qg={left:"line-left",center:"center",right:"line-right"},$g=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],ev=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],tv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function nv(){this.g=new kg}function ov(){this.g=!1}function iv(e){for(var t=c(Object.entries(ge)),n=t.next();!n.done;n=t.next()){var o=c(n.value);n=o.next().value,o=o.next().value;var i=new ie(0,0,"");i.color=o,e.set("."+n,i)}for(n=(t=c(Object.entries(ve))).next();!n.done;n=t.next())n=(o=c(n.value)).next().value,o=o.next().value,(i=new ie(0,0,"")).backgroundColor=o,e.set("."+n,i)}function rv(e,t,n){0===n.size&&iv(n);e:{var o=e;e=[];for(var i=-1,r="",a=0;a<o.length;a++)if("/"===o[a]&&0<a&&"<"===o[a-1]){var s=o.indexOf(">",a);if(s<=a){e=o;break e}if((s=o.substring(a+1,s))&&"c"===s){var l=e.pop();l?l===s?(r+="/"+s+">",a+=s.length+1):l.startsWith("c.")?(a+=s.length+1,r+="/"+l+">"):r+=o[a]:r+=o[a]}else r+=o[a]}else"<"===o[a]?"c"!=o[i=a+1]&&(i=-1):">"===o[a]&&0<i&&(e.push(o.substr(i,a-i)),i=-1),r+=o[a];e=r}for(o=[],r=-1,i=0;i<e.length;i++)"<"===e[i]?r=i+1:">"===e[i]&&0<r&&((r=e.substr(r,i-r)).match(dv)&&o.push(r),r=-1);for(i=(o=c(o)).next();!i.done;i=o.next())i=i.value,e=e.replace("<"+i+">",'<div time="'+i+'">'),e+="</div>";e:{for(i=e,r=[],a=-1,o="",e=!1,s=0;s<i.length;s++)if("/"===i[s]){if(-1===(l=i.indexOf(">",s))){e=i;break e}if((l=i.substring(s+1,l))&&"v"==l){e=!0;var u=null;if(r.length&&(u=r[r.length-1]),u){if(u===l)o+="/"+l+">";else{if(!u.startsWith("v")){o+=i[s];continue}o+="/"+u+">"}s+=l.length+1}else o+=i[s]}else o+=i[s]}else"<"===i[s]?"v"!=i[a=s+1]&&(a=-1):">"===i[s]&&0<a&&(r.push(i.substr(a,s-a)),a=-1),o+=i[s];for(r=(i=c(r)).next();!r.done;r=i.next())a=(r=r.value).replace(" ",".voice-"),o=(o=o.replace("<"+r+">","<"+a+">")).replace("</"+r+">","</"+a+">"),e||(o+="</"+a+">");e=o}if(i=Ei("<span>"+e+"</span>","span")){if(o=[],1==(i=i.childNodes).length&&((r=i[0]).nodeType==Node.TEXT_NODE||r.nodeType==Node.CDATA_SECTION_NODE))return void(t.payload=uv(e));for(i=(e=c(i)).next();!i.done;i=e.next())sv(i.value,t,o,n);t.nestedCues=o}else t.payload=uv(e)}function av(e,t){return e&&0<e.length?e:t}function sv(e,t,n,o){var i=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var r=c(e.nodeName.split(/(?=[ .])+/g)),a=r.next();!a.done;a=r.next()){var s=a=a.value;if(s.startsWith(".voice-")){var l=s.split("-").pop();s='v[voice="'+l+'"]',o.has(s)||(s="v[voice="+l+"]")}switch(o.has(s)&&(s=o.get(s))&&(i.backgroundColor=av(s.backgroundColor,i.backgroundColor),i.color=av(s.color,i.color),i.fontFamily=av(s.fontFamily,i.fontFamily),i.fontSize=av(s.fontSize,i.fontSize),i.fontWeight=s.fontWeight,i.fontStyle=s.fontStyle,i.opacity=s.opacity,i.wrapLine=s.wrapLine),a){case"br":(a=t.clone()).lineBreak=!0,n.push(a);break;case"b":i.fontWeight=700;break;case"i":i.fontStyle="italic";break;case"u":i.textDecoration.push("underline");break;case"div":(a=e.getAttribute("time"))&&(a=cv(new Rp(a)))&&(i.startTime=a)}}if(pi(e))for(r=!0,o=c(e.textContent.split("\n")),e=o.next();!e.done;e=o.next())e=e.value,r||((r=t.clone()).lineBreak=!0,n.push(r)),0<e.length&&((r=i.clone()).payload=uv(e),n.push(r)),r=!1;else for(e=(t=c(e.childNodes)).next();!e.done;e=t.next())sv(e.value,i,n,o)}function lv(e,t,n){var o;(o=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=o[1],e.textAlign="middle"==t?se:le[t.toUpperCase()]):(o=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==o[1]?"vertical-lr":"vertical-rl":(o=/^size:([\d.]+)%$/.exec(t))?e.size=Number(o[1]):(o=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(o[1]),o[2]&&(t=o[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(o=/^region:(.*)$/.exec(t))?(t=function(e,t){return e=e.filter((function(e){return e.id==t})),e.length?e[0]:null}(n,o[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=me[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=fe,e.line=Number(n[1]),n[2]&&(e.lineAlign=me[n[2].toUpperCase()]))}function cv(e){if(null==(e=Ip(e,dv)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function uv(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&lrm;":"","&rlm;":""},n=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,(function(e){return t[e]||"'"})):e||""}$t["application/ttml+xml"]=function(){return new kg},nv.prototype.parseInit=function(e){var t=!1;if((new Wo).box("moov",zo).box("trak",zo).box("mdia",zo).box("minf",zo).box("stbl",zo).P("stsd",qo).box("stpp",(function(e){t=!0,e.parser.stop()})).parse(e),!t)throw new Ie(2,2,2007)},nv.prototype.setSequenceMode=function(){},nv.prototype.parseMedia=function(e,t){var n=this,o=!1,i=[];if((new Wo).box("mdat",Zo((function(e){o=!0,i=i.concat(n.g.parseMedia(e,t))}))).parse(e,!1),!o)throw new Ie(2,2,2007);return i},V("shaka.text.Mp4TtmlParser",nv),nv.prototype.parseMedia=nv.prototype.parseMedia,nv.prototype.setSequenceMode=nv.prototype.setSequenceMode,nv.prototype.parseInit=nv.prototype.parseInit,$t['application/mp4; codecs="stpp"']=function(){return new nv},$t['application/mp4; codecs="stpp.ttml"']=function(){return new nv},$t['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new nv},$t['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new nv},ov.prototype.parseInit=function(){},ov.prototype.setSequenceMode=function(e){this.g=e},ov.prototype.parseMedia=function(e,t){var n=(e=(e=St(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new Ie(2,2,2e3);if(e=t.vttOffset,n[0].includes("X-TIMESTAMP-MAP")&&this.g){var o=n[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),i=n[0].match(/MPEGTS:(\d+)/m);if(o&&i){if(null==(e=cv(new Rp(o[1]))))throw new Ie(2,2,2e3);for(i=Number(i[1]),o=t.segmentStart-t.periodStart;95443.7176888889<=o;)o-=95443.7176888889,i+=8589934592;e=t.periodStart+i/9e4-e}}for(t=[],o=(i=c(n[0].split("\n"))).next();!o.done;o=i.next())if(o=o.value,/^Region:/.test(o)){o=new Rp(o);var r=new Se;Np(o),Lp(o);for(var a=Np(o);a;){var s=r,l=a;(a=/^id=(.*)$/.exec(l))?s.id=a[1]:(a=/^width=(\d{1,2}|100)%$/.exec(l))?s.width=Number(a[1]):(a=/^lines=(\d+)$/.exec(l))?(s.height=Number(a[1]),s.heightUnits=2):(a=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(l))?(s.regionAnchorX=Number(a[1]),s.regionAnchorY=Number(a[2])):(a=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(l))?(s.viewportAnchorX=Number(a[1]),s.viewportAnchorY=Number(a[2])):/^scroll=up$/.exec(l)&&(s.scroll="up"),Lp(o),a=Np(o)}t.push(r)}for(iv(i=new Map),o=[],r=(n=c(n.slice(1))).next();!r.done;r=n.next()){if((1!=(r=r.value.split("\n")).length||r[0])&&!/^NOTE($|[ \t])/.test(r[0])&&"STYLE"==r[0]){for(s=[],a=-1,l=1;l<r.length;l++)r[l].includes("::cue")&&(s.push([]),a=s.length-1),-1!=a&&(s[a].push(r[l]),r[l].includes("}")&&(a=-1));for(a=(s=c(s)).next();!a.done;a=s.next()){var u=a.value;a="global",(l=u[0].match(/\((.*)\)/))&&(a=l.pop()),l=u.slice(1,-1),u[0].includes("}")&&(u=/\{(.*?)\}/.exec(u[0]))&&(l=u[1].split(";")),(u=i.get(a))||(u=new ie(0,0,""));for(var d=!1,p=0;p<l.length;p++){var f=/^\s*([^:]+):\s*(.*)/.exec(l[p]);if(f){var h=f[2].trim().replace(";","");switch(f[1].trim()){case"background-color":case"background":d=!0,u.backgroundColor=h;break;case"color":d=!0,u.color=h;break;case"font-family":d=!0,u.fontFamily=h;break;case"font-size":d=!0,u.fontSize=h;break;case"font-weight":(700<=parseInt(h,10)||"bold"==h)&&(d=!0,u.fontWeight=700);break;case"font-style":switch(h){case"normal":d=!0,u.fontStyle=_e;break;case"italic":d=!0,u.fontStyle="italic";break;case"oblique":d=!0,u.fontStyle="oblique"}break;case"opacity":d=!0,u.opacity=parseFloat(h);break;case"text-shadow":d=!0,u.textShadow=h;break;case"white-space":d=!0,u.wrapLine="noWrap"!=h}}}d&&i.set(a,u)}}if(d=e,1==r.length&&!r[0]||/^NOTE($|[ \t])/.test(r[0])||"STYLE"==r[0]||"REGION"==r[0])r=null;else{if(s=null,r[0].includes("--\x3e")||(s=r[0],r.splice(0,1)),l=cv(a=new Rp(r[0])),p=Ip(a,/[ \t]+--\x3e[ \t]+/g),u=cv(a),null==l||null==p||null==u)throw new Ie(2,2,2001,"Could not parse cue time range in WebVTT");for(l+=d,u+=d,d=r.slice(1).join("\n").trim(),i.has("global")?((r=i.get("global").clone()).startTime=l,r.endTime=u,r.payload=""):r=new ie(l,u,""),rv(d,r,i),Lp(a),l=Np(a);l;)lv(r,l,t),Lp(a),l=Np(a);null!=s&&(r.id=s)}r&&o.push(r)}return o},V("shaka.text.VttTextParser",ov),ov.prototype.parseMedia=ov.prototype.parseMedia,ov.prototype.setSequenceMode=ov.prototype.setSequenceMode,ov.prototype.parseInit=ov.prototype.parseInit;var dv=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function pv(){this.g=null}function fv(e,t,n){var o,i,r;return(new Wo).box("payl",Zo((function(e){o=St(e)}))).box("iden",Zo((function(e){i=St(e)}))).box("sttg",Zo((function(e){r=St(e)}))).parse(e),o?function(e,t,n,o,i){if(o=new ie(o,i,""),rv(e,o,new Map),t&&(o.id=t),n)for(e=new Rp(n),t=Np(e);t;)lv(o,t,[]),Lp(e),t=Np(e);return o}(o,i,r,t,n):null}function hv(){}function mv(e){if(null==(e=Ip(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function gv(){this.g=new ov}function vv(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=c((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n")+"\n\n";return t}function yv(){}function _v(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=bv(n))&&(e.color=n),(n=t.BackColour)&&(n=bv(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=700),t.Italic&&(e.fontStyle="italic"),t.Underline&&e.textDecoration.push("underline"),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=ce,e.textAlign="start";break;case 2:e.displayAlign=ce,e.textAlign=se;break;case 3:e.displayAlign=ce,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=se;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=se;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function bv(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function Sv(e){return 3600*((e=Cv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}$t["text/vtt"]=function(){return new ov},$t['text/vtt; codecs="vtt"']=function(){return new ov},$t['text/vtt; codecs="wvtt"']=function(){return new ov},pv.prototype.parseInit=function(e){var t=this,n=!1;if((new Wo).box("moov",zo).box("trak",zo).box("mdia",zo).P("mdhd",(function(e){e=aa(e.reader,e.version),t.g=e.timescale})).box("minf",zo).box("stbl",zo).P("stsd",qo).box("wvtt",(function(){n=!0})).parse(e),!this.g)throw new Ie(2,2,2008);if(!n)throw new Ie(2,2,2008)},pv.prototype.setSequenceMode=function(){},pv.prototype.parseMedia=function(e,t){if(!this.g)throw new Ie(2,2,2008);var n,o=0,i=[],r=[],a=!1,s=!1,l=!1,u=null;if((new Wo).box("moof",zo).box("traf",zo).P("tfdt",(function(e){a=!0,o=ra(e.reader,e.version).we})).P("tfhd",(function(e){u=ia(e.reader,e.flags).Ce})).P("trun",(function(e){s=!0,i=sa(e.reader,e.version,e.flags).Re})).box("mdat",Zo((function(e){l=!0,n=e}))).parse(e,!1),!l&&!a&&!s)throw new Ie(2,2,2008);e=o;for(var d=new Ho(n,0),p=c(i),f=p.next();!f.done;f=p.next()){var h=(f=f.value).ee||u,m=f.ed?o+f.ed:e;e=m+(h||0);var g=0;do{var v=d.K();g+=v;var y=null;"vttc"==$o(d.K())?8<v&&(y=d.Za(v-8)):d.skip(v-8),h&&y&&(v=fv(y,t.periodStart+m/this.g,t.periodStart+e/this.g),r.push(v))}while(f.sampleSize&&g<f.sampleSize)}return r.filter(qe)},V("shaka.text.Mp4VttParser",pv),pv.prototype.parseMedia=pv.prototype.parseMedia,pv.prototype.setSequenceMode=pv.prototype.setSequenceMode,pv.prototype.parseInit=pv.prototype.parseInit,$t['application/mp4; codecs="wvtt"']=function(){return new pv},hv.prototype.parseInit=function(){},hv.prototype.setSequenceMode=function(){},hv.prototype.parseMedia=function(e){var t=St(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=c(t.split("\n\n"))).next();!n.done;n=t.next()){var o=new Rp((n=n.value.split("\n"))[0]),i=mv(o),r=Ip(o,/,/g);if(o=mv(o),null==i||null==r||null==o)throw new Ie(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new ie(i,o,n.slice(1).join("\n").trim()))}return e},V("shaka.text.SbvTextParser",hv),hv.prototype.parseMedia=hv.prototype.parseMedia,hv.prototype.setSequenceMode=hv.prototype.setSequenceMode,hv.prototype.parseInit=hv.prototype.parseInit,$t["text/x-subviewer"]=function(){return new hv},gv.prototype.parseInit=function(){},gv.prototype.setSequenceMode=function(){},gv.prototype.parseMedia=function(e,t){return e=ke(Tt(e=vv(e=St(e)))),this.g.parseMedia(e,t)},V("shaka.text.SrtTextParser",gv),gv.srt2webvtt=vv,gv.prototype.parseMedia=gv.prototype.parseMedia,gv.prototype.setSequenceMode=gv.prototype.setSequenceMode,gv.prototype.parseInit=gv.prototype.parseInit,$t["text/srt"]=function(){return new gv},yv.prototype.parseInit=function(){},yv.prototype.setSequenceMode=function(){},yv.prototype.parseMedia=function(e){for(var t="",n="",o=(e=c(e=St(e).split(/\r?\n\s*\r?\n/))).next();!o.done;o=e.next()){var i=Tv.exec(o.value);i&&(o=i[1],i=i[2],"V4 Styles"==o||"V4+ Styles"==o?t=i:"Events"==o&&(n=i))}e=[],o=null;for(var r=(t=c(t.split(/\r?\n/))).next();!r.done;r=t.next())if(i=r.value,!/^\s*;/.test(i)&&(r=Pv.exec(i)))if(i=r[1].trim(),r=r[2].trim(),"Format"==i)o=r.split(Ov);else if("Style"==i){i=r.split(Ov),r={};for(var a=0;a<o.length&&a<i.length;a++)r[o[a]]=i[a];e.push(r)}for(o=[],t=null,i={},r=(n=c(n.split(/\r?\n/))).next();!r.done;i={vd:i.vd},r=n.next())if(r=r.value,!/^\s*;/.test(r)&&(a=Pv.exec(r)))if(r=a[1].trim(),a=a[2].trim(),"Format"==r)t=a.split(Ov);else if("Dialogue"==r){a=a.split(Ov),r={};for(var s=0;s<t.length&&s<a.length;s++)r[t[s]]=a[s];a=new ie(s=Sv(r.Start),Sv(r.End),a.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,"")),i.vd=r.Style,(r=e.find(function(e){return function(t){return t.Name==e.vd}}(i)))&&_v(a,r),o.push(a)}return o},V("shaka.text.SsaTextParser",yv),yv.prototype.parseMedia=yv.prototype.parseMedia,yv.prototype.setSequenceMode=yv.prototype.setSequenceMode,yv.prototype.parseInit=yv.prototype.parseInit;var Ev,Av,Tv=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Pv=/^\s*([^:]+):\s*(.*)/,Ov=/\s*,\s*/,Cv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function kv(){}function Rv(){Ev?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Ev=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Lv):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function Lv(e,t){var n,o=this;return N((function(i){return 1==i.g?(console.assert(o==navigator,'bad "this" for requestMediaKeySystemAccess'),b(i,Ev.call(o,e,t),2)):Vv(n=i.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Ev,i.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=Iv,i.return(Iv.call(o,e,t)))}))}function Iv(e,t){var n,o,i,r,a,s,l,u,d,p,f=this;return N((function(h){if(1==h.g){for(console.assert(f==navigator,'bad "this" for requestMediaKeySystemAccess'),n=Bv(e),o=[],i=c(t),r=i.next();!r.done;r=i.next())a=r.value,s=Nv(a.videoCapabilities,n),l=Nv(a.audioCapabilities,n),a.videoCapabilities&&a.videoCapabilities.length&&!s.length||a.audioCapabilities&&a.audioCapabilities.length&&!l.length||((u=Object.assign({},a)).videoCapabilities=s,u.audioCapabilities=l,o.push(u));if(!o.length)throw(d=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;return b(h,Ev.call(f,e,o),2)}return p=h.h,h.return(new Uv(p,n))}))}function Nv(e,t){return e?e.filter((function(e){return!e.encryptionScheme||e.encryptionScheme==t})):e}function wv(){}function Dv(){Av?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Av=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Mv):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function Mv(e){var t,n,o,i=this;return N((function(r){switch(r.g){case 1:return console.assert(i==navigator.mediaCapabilities,'bad "this" for decodingInfo'),b(r,Av.call(i,e),2);case 2:if(t=r.h,!e.keySystemConfiguration)return r.return(t);if((n=t.keySystemAccess)&&Vv(n))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Av,r.return(t);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=xv,n){r.A(3);break}return o=t,b(r,Fv(e),4);case 4:return o.keySystemAccess=r.h,r.return(t);case 3:return r.return(xv.call(i,e))}}))}function xv(e){var t,n,o,i,r,a,s,l,c=this;return N((function(u){switch(u.g){case 1:return console.assert(c==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,o=n.keySystem,i=n.audio&&n.audio.encryptionScheme,r=n.video&&n.video.encryptionScheme,t=Bv(o),a={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},i&&i!=t||r&&r!=t)?u.return(a):b(u,Av.call(c,e),2);case 2:if((s=u.h).keySystemAccess){s.keySystemAccess=new Uv(s.keySystemAccess,t),u.A(3);break}if(!e.keySystemConfiguration){u.A(3);break}return l=s,b(u,Fv(e),5);case 5:l.keySystemAccess=u.h;case 3:return u.return(s)}}))}function Fv(e){var t,n;return N((function(o){if(1==o.g){var i=e.keySystemConfiguration,r=[],a=[];return i.audio&&r.push({robustness:i.audio.robustness||"",contentType:e.audio.contentType}),i.video&&a.push({robustness:i.video.robustness||"",contentType:e.video.contentType}),i={initDataTypes:i.initDataType?[i.initDataType]:[],distinctiveIdentifier:i.distinctiveIdentifier,persistentState:i.persistentState,sessionTypes:i.sessionTypes},r.length&&(i.audioCapabilities=r),a.length&&(i.videoCapabilities=a),t=i,b(o,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=o.h,o.return(n)}))}function Uv(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function Bv(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function Vv(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function Gv(){}function Jv(){Rv(),Dv()}$t["text/x-ssa"]=function(){return new yv},V("EmeEncryptionSchemePolyfill",kv),kv.install=Rv,V("McEncryptionSchemePolyfill",wv),wv.install=Dv,Uv.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=c(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=c(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},Uv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},V("EncryptionSchemePolyfills",Gv),Gv.install=Jv,void 0!==n&&n.exports&&(n.exports=Gv)}.call(o,e,e,void 0),o.shaka)t[i]=o.shaka[i]}()},50631:e=>{e.exports=function(e,t,n,o){var i=n?n.call(o,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<r.length;l++){var c=r[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(o,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},27933:(e,t,n)=>{"use strict";var o=n(48254),i=Array.prototype.concat,r=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var s=e[n];o(s)?t=i.call(t,r.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},14435:(e,t,n)=>{"use strict";var o=n(71082);function i(e){if(!Object.prototype.hasOwnProperty.call(r.message,e))throw new Error("invalid status code: "+e);return r.message[e]}function r(e){if("number"==typeof e)return i(e);if("string"!=typeof e)throw new TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(r.code,t))throw new Error('invalid status message: "'+e+'"');return r.code[t]}(e):i(t)}e.exports=r,r.message=o,r.code=function(e){var t={};return Object.keys(e).forEach((function(n){var o=e[n],i=Number(n);t[o.toLowerCase()]=i})),t}(o),r.codes=function(e){return Object.keys(e).map((function(e){return Number(e)}))}(o),r.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},r.empty={204:!0,205:!0,304:!0},r.retry={502:!0,503:!0,504:!0}},75090:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=o(n(11895)),r=n(6205);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}},6205:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,i=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(r,l)).replace(o,s))}},11895:(e,t,n)=>{var o=n(55309);function i(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var r,a,s=o(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)r=(n=s[c]).property,a=n.value,l?t(r,a,n):a&&(i||(i={}),i[r]=a);return i}e.exports=i,e.exports.default=i},64709:(e,t,n)=>{"use strict";n.d(t,{LC:()=>le,iv:()=>ye,ZP:()=>De,F4:()=>we});var o=n(97679),i=n(59496),r=n(50631),a=n.n(r);const s=function(e){function t(e,o,l,c,p){for(var f,h,m,g,b,E=0,A=0,T=0,P=0,O=0,N=0,D=m=f=0,x=0,F=0,U=0,B=0,V=l.length,G=V-1,J="",j="",H="",K="";x<V;){if(h=l.charCodeAt(x),x===G&&0!==A+P+T+E&&(0!==A&&(h=47===A?10:47),P=T=E=0,V++,G++),0===A+P+T+E){if(x===G&&(0<F&&(J=J.replace(d,"")),0<J.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:J+=l.charAt(x)}h=59}switch(h){case 123:for(f=(J=J.trim()).charCodeAt(0),m=1,B=++x;x<V;){switch(h=l.charCodeAt(x)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(x+1)){case 42:case 47:e:{for(D=x+1;D<G;++D)switch(l.charCodeAt(D)){case 47:if(42===h&&42===l.charCodeAt(D-1)&&x+2!==D){x=D+1;break e}break;case 10:if(47===h){x=D+1;break e}}x=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;x++<G&&l.charCodeAt(x)!==h;);}if(0===m)break;x++}if(m=l.substring(B,x),0===f&&(f=(J=J.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<F&&(J=J.replace(d,"")),h=J.charCodeAt(1)){case 100:case 109:case 115:case 45:F=o;break;default:F=I}if(B=(m=t(o,F,m,h,p+1)).length,0<w&&(b=s(3,m,F=n(I,J,U),o,k,C,B,h,p,c),J=F.join(""),void 0!==b&&0===(B=(m=b.trim()).length)&&(h=0,m="")),0<B)switch(h){case 115:J=J.replace(S,a);case 100:case 109:case 45:m=J+"{"+m+"}";break;case 107:m=(J=J.replace(v,"$1 $2"))+"{"+m+"}",m=1===L||2===L&&r("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=J+m,112===c&&(j+=m,m="")}else m=""}else m=t(o,n(o,J,U),m,c,p+1);H+=m,m=U=F=D=f=0,J="",h=l.charCodeAt(++x);break;case 125:case 59:if(1<(B=(J=(0<F?J.replace(d,""):J).trim()).length))switch(0===D&&(f=J.charCodeAt(0),45===f||96<f&&123>f)&&(B=(J=J.replace(" ",":")).length),0<w&&void 0!==(b=s(1,J,o,e,k,C,j.length,c,p,c))&&0===(B=(J=b.trim()).length)&&(J="\0\0"),f=J.charCodeAt(0),h=J.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){K+=J+l.charAt(x);break}default:58!==J.charCodeAt(B-1)&&(j+=i(J,f,h,J.charCodeAt(2)))}U=F=D=f=0,J="",h=l.charCodeAt(++x)}}switch(h){case 13:case 10:47===A?A=0:0===1+f&&107!==c&&0<J.length&&(F=1,J+="\0"),0<w*M&&s(0,J,o,e,k,C,j.length,c,p,c),C=1,k++;break;case 59:case 125:if(0===A+P+T+E){C++;break}default:switch(C++,g=l.charAt(x),h){case 9:case 32:if(0===P+E+A)switch(O){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===P+A+E&&(F=U=1,g="\f"+g);break;case 108:if(0===P+A+E+R&&0<D)switch(x-D){case 2:112===O&&58===l.charCodeAt(x-3)&&(R=O);case 8:111===N&&(R=N)}break;case 58:0===P+A+E&&(D=x);break;case 44:0===A+T+P+E&&(F=1,g+="\r");break;case 34:case 39:0===A&&(P=P===h?0:0===P?h:P);break;case 91:0===P+A+T&&E++;break;case 93:0===P+A+T&&E--;break;case 41:0===P+A+E&&T--;break;case 40:if(0===P+A+E){if(0===f)if(2*O+3*N==533);else f=1;T++}break;case 64:0===A+T+P+E+D+m&&(m=1);break;case 42:case 47:if(!(0<P+E+T))switch(A){case 0:switch(2*h+3*l.charCodeAt(x+1)){case 235:A=47;break;case 220:B=x,A=42}break;case 42:47===h&&42===O&&B+2!==x&&(33===l.charCodeAt(B+2)&&(j+=l.substring(B,x+1)),g="",A=0)}}0===A&&(J+=g)}N=O,O=h,x++}if(0<(B=j.length)){if(F=o,0<w&&(void 0!==(b=s(2,j,F,e,k,C,B,c,p,c))&&0===(j=b).length))return K+j+H;if(j=F.join(",")+"{"+j+"}",0!=L*R){switch(2!==L||r(j,2)||(R=0),R){case 111:j=j.replace(_,":-moz-$1")+j;break;case 112:j=j.replace(y,"::-webkit-input-$1")+j.replace(y,"::-moz-$1")+j.replace(y,":-ms-input-$1")+j}R=0}}return K+j+H}function n(e,t,n){var i=t.trim().split(m);t=i;var r=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<r;++s)t[s]=o(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<r;++s)for(var c=0;c<a;++c)t[l++]=o(e[c]+" ",i[s],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===L||2===L&&r(l,1)?"-webkit-"+l+l:l}if(0===L||2===L&&!r(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(O,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(b,"tb");break;case 232:l=a.replace(b,"tb-rl");break;case 220:l=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(A,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(A,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===P.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function r(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?o:o.replace(T,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,n,o,i,r,a,s,l,u){for(var d,p=0,f=t;p<w;++p)switch(d=N[p].call(c,e,f,n,o,i,r,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?L=1:(L=2,D=e):L=0),l}function c(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<w){var i=s(-1,n,o,o,k,C,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var r=t(I,o,n,0,0);return 0<w&&(void 0!==(i=s(-2,r,o,o,k,C,r.length,0,0,0))&&(r=i)),"",R=0,C=k=1,r}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,_=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,A=/-self|flex-/g,T=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,C=1,k=1,R=0,L=1,I=[],N=[],w=0,D=null,M=0;return c.use=function e(t){switch(t){case void 0:case null:w=N.length=0;break;default:if("function"==typeof t)N[w++]=t;else if("object"==typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else M=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};const l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const u=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var d=n(72535),p=n.n(d),f=n(14224);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var m=function(e,t){for(var n=[e[0]],o=0,i=t.length;o<i;o+=1)n.push(t[o],e[o+1]);return n},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,o.typeOf)(e)},v=Object.freeze([]),y=Object.freeze({});function _(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function S(e){return e&&"string"==typeof e.styledComponentId}var E=void 0!==f&&void 0!=={}&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",A="undefined"!=typeof window&&"HTMLElement"in window,T=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==f&&void 0!=={}&&(void 0!=={}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={}.REACT_APP_SC_DISABLE_SPEEDY&&{}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={}.SC_DISABLE_SPEEDY&&""!=={}.SC_DISABLE_SPEEDY&&("false"!=={}.SC_DISABLE_SPEEDY&&{}.SC_DISABLE_SPEEDY)));function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var O=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;e>=i;)(i<<=1)<0&&P(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var r=o;r<i;r++)this.groupSizes[r]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),i=o+n,r=o;r<i;r++)t+=this.tag.getRule(r)+"/*!sc*/\n";return t},e}(),C=new Map,k=new Map,R=1,L=function(e){if(C.has(e))return C.get(e);for(;k.has(R);)R++;var t=R++;return C.set(e,t),k.set(t,e),t},I=function(e){return k.get(e)},N=function(e,t){t>=R&&(R=t+1),C.set(e,t),k.set(t,e)},w="style["+E+'][data-styled-version="5.3.10"]',D=new RegExp("^"+E+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,n){for(var o,i=n.split(","),r=0,a=i.length;r<a;r++)(o=i[r])&&e.registerName(t,o)},x=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),o=[],i=0,r=n.length;i<r;i++){var a=n[i].trim();if(a){var s=a.match(D);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(N(c,l),M(e,c,s[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},F=function(){return n.nc},U=function(e){var t=document.head,n=e||t,o=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(E))return o}}(n),r=void 0!==i?i.nextSibling:null;o.setAttribute(E,"active"),o.setAttribute("data-styled-version","5.3.10");var a=F();return a&&o.setAttribute("nonce",a),n.insertBefore(o,r),o},B=function(){function e(e){var t=this.element=U(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var i=t[n];if(i.ownerNode===e)return i}P(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),V=function(){function e(e){var t=this.element=U(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),G=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),J=A,j={isServer:!A,useCSSOMInjection:!T},H=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=h({},j,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&A&&J&&(J=!1,function(e){for(var t=document.querySelectorAll(w),n=0,o=t.length;n<o;n++){var i=t[n];i&&"active"!==i.getAttribute(E)&&(x(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return L(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,i=t.target,e=n?new G(i):o?new B(i):new V(i),new O(e)));var e,t,n,o,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(L(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(L(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(L(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",i=0;i<n;i++){var r=I(i);if(void 0!==r){var a=e.names.get(r),s=t.getGroup(i);if(a&&s&&a.size){var l=E+".g"+i+'[id="'+r+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),o+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return o}(this)},e}(),K=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function W(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(K,"$1-$2")}var z=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},q=function(e){return z(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(_(n)&&!S(n))return!1}return!0}var Z=q("5.3.10"),Q=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&X(e),this.componentId=t,this.baseHash=z(Z,t),this.baseStyle=n,H.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))i.push(this.staticRulesId);else{var r=ge(this.rules,e,t,n).join(""),a=W(z(this.baseHash,r)>>>0);if(!t.hasNameForId(o,a)){var s=n(r,"."+a,void 0,o);t.insertRules(o,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=z(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=ge(p,e,t,n),h=Array.isArray(f)?f.join(""):f;c=z(c,h+d),u+=h}}if(u){var m=Spicetify._getStyledClassName(arguments,this);if(!t.hasNameForId(o,m)){var g=n(u,"."+m,void 0,o);t.insertRules(o,m,g)}i.push(m)}}return i.join(" ")},e}(),$=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,o,i,r=void 0===e?y:e,a=r.options,l=void 0===a?y:a,c=r.plugins,u=void 0===c?v:c,d=new s(l),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,i,r,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===c)return o+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+o),"";default:return o+(0===d?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,o,r){return 0===o&&-1!==ee.indexOf(r[n.length])||r.match(i)?e:"."+t};function m(e,r,a,s){void 0===s&&(s="&");var l=e.replace($,""),c=r&&a?a+" "+r+" { "+l+" }":l;return t=s,n=r,o=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),d(a||!r?"":r,c)}return d.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(o,h))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||P(15),z(e,t.name)}),5381).toString():"",m}var ne=i.createContext(),oe=(ne.Consumer,i.createContext()),ie=(oe.Consumer,new H),re=te();function ae(){return(0,i.useContext)(ne)||ie}function se(){return(0,i.useContext)(oe)||re}function le(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],o=t[1],r=ae(),s=(0,i.useMemo)((function(){var t=r;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,i.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,i.useEffect)((function(){a()(n,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i.createElement(ne.Provider,{value:s},i.createElement(oe.Provider,{value:l},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=re);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return P(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=re),this.name+e.hash},e}(),ue=/([A-Z])/,de=/([A-Z])/g,pe=/^ms-/,fe=function(e){return"-"+e.toLowerCase()};function he(e){return ue.test(e)?e.replace(de,fe).replace(pe,"-ms-"):e}var me=function(e){return null==e||!1===e||""===e};function ge(e,t,n,o){if(Array.isArray(e)){for(var i,r=[],a=0,s=e.length;a<s;a+=1)""!==(i=ge(e[a],t,n,o))&&(Array.isArray(i)?r.push.apply(r,i):r.push(i));return r}return me(e)?"":S(e)?"."+e.styledComponentId:_(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ge(e(t),t,n,o):e instanceof ce?n?(e.inject(n,o),e.getName(o)):e:g(e)?function e(t,n){var o,i,r=[];for(var a in t)t.hasOwnProperty(a)&&!me(t[a])&&(Array.isArray(t[a])&&t[a].isCss||_(t[a])?r.push(he(a)+":",t[a],";"):g(t[a])?r.push.apply(r,e(t[a],a)):r.push(he(a)+": "+(o=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||o in l||o.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(r,["}"]):r}(e):e.toString();var c}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return _(e)||g(e)?ve(ge(m(v,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ve(ge(m(e,n)))}new Set;var _e=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function Ee(e){return e.replace(be,"-").replace(Se,"")}var Ae=function(e){return W(q(e)>>>0)};function Te(e){return"string"==typeof e&&!0}var Pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Oe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ce(e,t,n){var o=e[n];Pe(t)&&Pe(o)?ke(o,t):e[n]=t}function ke(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var i=0,r=n;i<r.length;i++){var a=r[i];if(Pe(a))for(var s in a)Oe(s)&&Ce(e,a[s],s)}return e}var Re=i.createContext();Re.Consumer;var Le={};function Ie(e,t,n){var o=S(e),r=!Te(e),a=t.attrs,s=void 0===a?v:a,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Le[n]=(Le[n]||0)+1;var o=n+"-"+Ae("5.3.10"+n+Le[n]);return t?t+"-"+o:o}(t.displayName,t.parentComponentId):l,d=t.displayName,f=void 0===d?function(e){return Te(e)?"styled."+e:"Styled("+b(e)+")"}(e):d,m=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||c,g=o&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,E=t.shouldForwardProp;o&&e.shouldForwardProp&&(E=t.shouldForwardProp?function(n,o,i){return e.shouldForwardProp(n,o,i)&&t.shouldForwardProp(n,o,i)}:e.shouldForwardProp);var A,T=new Q(n,m,o?e.componentStyle:void 0),P=T.isStatic&&0===s.length,O=function(e,t){return function(e,t,n,o){var r=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=y);var o=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,r,a=e;for(t in _(a)&&(a=a(o)),a)o[t]=i[t]="className"===t?(n=i[t],r=a[t],n&&r?n+" "+r:n||r):a[t]})),[o,i]}(_e(t,(0,i.useContext)(Re),s)||y,t,r),m=f[0],g=f[1],v=function(e,t,n,o){var i=ae(),r=se();return t?e.generateAndInjectStyles(y,i,r):e.generateAndInjectStyles(n,i,r)}(a,o,m),b=n,S=g.$as||t.$as||g.as||t.as||p,E=Te(S),A=g!==t?h({},t,{},g):t,T={};for(var P in A)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?T.as=A[P]:(c?c(P,u,S):!E||u(P))&&(T[P]=A[P]));return t.style&&g.style!==t.style&&(T.style=h({},t.style,{},g.style)),T.className=Array.prototype.concat(l,d,v!==d?v:null,t.className,g.className).filter(Boolean).join(" "),T.ref=b,(0,i.createElement)(S,T)}(A,e,t,P)};return O.displayName=f,(A=i.forwardRef(O)).attrs=g,A.componentStyle=T,A.displayName=f,A.shouldForwardProp=E,A.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,A.styledComponentId=m,A.target=o?e.target:e,A.withComponent=function(e){var o=t.componentId,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),r=o&&o+"-"+(Te(e)?e:Ee(b(e)));return Ie(e,h({},i,{attrs:g,componentId:r}),n)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?ke({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),r&&p()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var Ne=function(e){return function e(t,n,i){if(void 0===i&&(i=y),!(0,o.isValidElementType)(n))return P(1,String(n));var r=function(){return t(n,i,ye.apply(void 0,arguments))};return r.withConfig=function(o){return e(t,n,h({},i,{},o))},r.attrs=function(o){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},r}(Ie,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ne[e]=Ne(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),H.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,o){var i=o(ge(this.rules,t,n,o).join(""),""),r=this.componentId+e;n.insertRules(r,r,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,o){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)}}();function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=ye.apply(void 0,[e].concat(n)).join(""),r=Ae(i);return new ce(r,i)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=F();return"<style "+[n&&'nonce="'+n+'"',E+'="true"','data-styled-version="5.3.10"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?P(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return P(2);var n=((t={})[E]="",t["data-styled-version"]="5.3.10",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=F();return o&&(n.nonce=o),[i.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?P(2):i.createElement(le,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return P(3)}}();const De=Ne},96909:e=>{var t=0,n=-3;function o(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new o,this.dtree=new o}var r=new o,a=new o,s=new Uint8Array(30),l=new Uint16Array(30),c=new Uint8Array(30),u=new Uint16Array(30),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p=new o,f=new Uint8Array(320);function h(e,t,n,o){var i,r;for(i=0;i<n;++i)e[i]=0;for(i=0;i<30-n;++i)e[i+n]=i/n|0;for(r=o,i=0;i<30;++i)t[i]=r,r+=1<<e[i]}var m=new Uint16Array(16);function g(e,t,n,o){var i,r;for(i=0;i<16;++i)e.table[i]=0;for(i=0;i<o;++i)e.table[t[n+i]]++;for(e.table[0]=0,r=0,i=0;i<16;++i)m[i]=r,r+=e.table[i];for(i=0;i<o;++i)t[n+i]&&(e.trans[m[t[n+i]]++]=i)}function v(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function y(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var o=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,o+n}function _(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,o=0,i=0,r=e.tag;do{o=2*o+(1&r),r>>>=1,++i,n+=t.table[i],o-=t.table[i]}while(o>=0);return e.tag=r,e.bitcount-=i,t.trans[n+o]}function b(e,t,n){var o,i,r,a,s,l;for(o=y(e,5,257),i=y(e,5,1),r=y(e,4,4),a=0;a<19;++a)f[a]=0;for(a=0;a<r;++a){var c=y(e,3,0);f[d[a]]=c}for(g(p,f,0,19),s=0;s<o+i;){var u=_(e,p);switch(u){case 16:var h=f[s-1];for(l=y(e,2,3);l;--l)f[s++]=h;break;case 17:for(l=y(e,3,3);l;--l)f[s++]=0;break;case 18:for(l=y(e,7,11);l;--l)f[s++]=0;break;default:f[s++]=u}}g(t,f,0,o),g(n,f,o,i)}function S(e,n,o){for(;;){var i,r,a,d,p=_(e,n);if(256===p)return t;if(p<256)e.dest[e.destLen++]=p;else for(i=y(e,s[p-=257],l[p]),r=_(e,o),d=a=e.destLen-y(e,c[r],u[r]);d<a+i;++d)e.dest[e.destLen++]=e.dest[d]}}function E(e){for(var o,i;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if((o=256*(o=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return n;for(e.sourceIndex+=4,i=o;i;--i)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,t}!function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}(r,a),h(s,l,4,3),h(c,u,2,1),s[28]=0,l[28]=258,e.exports=function(e,o){var s,l,c=new i(e,o);do{switch(s=v(c),y(c,2,0)){case 0:l=E(c);break;case 1:l=S(c,r,a);break;case 2:b(c,c.ltree,c.dtree),l=S(c,c.ltree,c.dtree);break;default:l=n}if(l!==t)throw new Error("Data error")}while(!s);return c.destLen<c.dest.length?"function"==typeof c.dest.slice?c.dest.slice(0,c.destLen):c.dest.subarray(0,c.destLen):c.dest}},66730:e=>{"use strict";e.exports=function(e){return e.split(" ").map((function(e){return e.slice(0,1).toUpperCase()+e.slice(1)})).join("").replace(/[^ _0-9a-z]/gi,"")}},96583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>r,__asyncDelegator:()=>P,__asyncGenerator:()=>T,__asyncValues:()=>O,__await:()=>A,__awaiter:()=>h,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>w,__classPrivateFieldSet:()=>N,__createBinding:()=>g,__decorate:()=>s,__esDecorate:()=>c,__exportStar:()=>v,__extends:()=>i,__generator:()=>m,__importDefault:()=>L,__importStar:()=>R,__makeTemplateObject:()=>C,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>_,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>b,__spreadArray:()=>E,__spreadArrays:()=>S,__values:()=>y});var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function a(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function s(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,o){t(n,o,e)}}function c(e,t,n,o,i,r){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=o.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?o.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,o.name):{}),p=!1,f=n.length-1;f>=0;f--){var h={};for(var m in o)h[m]="access"===m?{}:o[m];for(var m in o.access)h.access[m]=o.access[m];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");r.push(a(e||null))};var g=(0,n[f])("accessor"===l?{get:d.get,set:d.set}:d[c],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&i.push(s)}else(s=a(g))&&("field"===l?i.push(s):d[c]=s)}u&&Object.defineProperty(u,o.name,d),p=!0}function u(e,t,n){for(var o=arguments.length>2,i=0;i<t.length;i++)n=o?t[i].call(e,n):t[i].call(e);return o?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function m(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,s[0]&&(a=0)),a;)try{if(n=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var g=Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function v(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,i++)o[i]=r[a];return o}function E(e,t,n){if(n||2===arguments.length)for(var o,i=0,r=t.length;i<r;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function T(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){r.push([e,t,n,o])>1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof A?Promise.resolve(e.value.v).then(l,c):u(r[0][2],e)}(i[e](t))}catch(e){u(r[0][3],e)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function P(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:A(e[o](t)),done:!1}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return k(t,e),t}function L(e){return e&&e.__esModule?e:{default:e}}function I(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)}function N(e,t,n,o,i){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?i.call(e,n):i?i.value=n:t.set(e,n),n}function w(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},9981:(e,t,n)=>{const o=n(96909),{swap32LE:i}=n(92396);e.exports=class{constructor(e){const t="function"==typeof e.readUInt32BE&&"function"==typeof e.slice;if(t||e instanceof Uint8Array){let n;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),n=e.readUInt32LE(8),e=e.slice(12);else{const t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),n=t.getUint32(8,!0),e=e.subarray(12)}e=o(e,new Uint8Array(n)),e=o(e,new Uint8Array(n)),i(e),this.data=new Uint32Array(e.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>5]<<2)+(31&e),this.data[t]):e<=65535?(t=(this.data[2048+(e-55296>>5)]<<2)+(31&e),this.data[t]):e<this.highStart?(t=this.data[2080+(e>>11)],t=this.data[t+(e>>5&63)],t=(t<<2)+(31&e),this.data[t]):this.data[this.data.length-4]}}},92396:e=>{const t=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],n=(e,t,n)=>{let o=e[t];e[t]=e[n],e[n]=o};e.exports={swap32LE:e=>{t&&(e=>{const t=e.length;for(let o=0;o<t;o+=4)n(e,o,o+3),n(e,o+1,o+2)})(e)}}},85830:(e,t,n)=>{"use strict";n.d(t,{y1:()=>i});var o=n(59496);function i(e,t,n){var i=this,r=(0,o.useRef)(null),a=(0,o.useRef)(0),s=(0,o.useRef)(null),l=(0,o.useRef)([]),c=(0,o.useRef)(),u=(0,o.useRef)(),d=(0,o.useRef)(e),p=(0,o.useRef)(!0);(0,o.useEffect)((function(){d.current=e}),[e]);var f=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v=g?Math.max(+n.maxWait||0,t):null;(0,o.useEffect)((function(){return p.current=!0,function(){p.current=!1}}),[]);var y=(0,o.useMemo)((function(){var e=function(e){var t=l.current,n=c.current;return l.current=c.current=null,a.current=e,u.current=d.current.apply(n,t)},n=function(e,t){f&&cancelAnimationFrame(s.current),s.current=f?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!p.current)return!1;var n=e-r.current;return!r.current||n>=t||n<0||g&&e-a.current>=v},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=c.current=null,u.current)},_=function e(){var i=Date.now();if(o(i))return y(i);if(p.current){var s=t-(i-r.current),l=g?Math.min(s,v-(i-a.current)):s;n(e,l)}},b=function(){var d=Date.now(),f=o(d);if(l.current=[].slice.call(arguments),c.current=i,r.current=d,f){if(!s.current&&p.current)return a.current=r.current,n(_,t),h?e(r.current):u.current;if(g)return n(_,t),e(r.current)}return s.current||n(_,t),u.current};return b.cancel=function(){s.current&&(f?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=r.current=c.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):u.current},b}),[h,g,t,v,m,f]);return y}},72102:(e,t,n)=>{"use strict";n.d(t,{jP:()=>a,KW:()=>s,NY:()=>l});var o=n(59496);function i(e,t){var n,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array&&(o=e.length)===t.length){for(;o--&&i(e[o],t[o]););return-1===o}if(n===Object){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(o in e)if(!(o in t)||!i(e[o],t[o]))return!1;return!0}}return e!=e&&t!=t}function r(e){const t=o.useRef([]);return i(e,t.current)||(t.current=e),t.current}function a(e,t){return o.useCallback(e,r(t))}function s(e,t){o.useEffect(e,r(t))}function l(e,t){return o.useMemo(e,r(t))}},82978:(e,t,n)=>{"use strict";var o=n(59496);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=o.useState,a=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),o=r({inst:{value:n,getSnapshot:t}}),i=o[0].inst,u=o[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:u},3645:(e,t,n)=>{"use strict";var o=n(59496),i=n(74241);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=o.useRef,l=o.useEffect,c=o.useMemo,u=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,o,i){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=o(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,r(a,e))return t;var n=o(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,o,i]);var f=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},74241:(e,t,n)=>{"use strict";e.exports=n(82978)},28688:(e,t,n)=>{"use strict";e.exports=n(3645)},20484:(e,t)=>{!function(e){var t,n,o,i=String.fromCharCode;function r(e){for(var t,n,o=[],i=0,r=e.length;i<r;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<r?56320==(64512&(n=e.charCodeAt(i++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),i--):o.push(t);return o}function a(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return i(e>>t&63|128)}function l(e){if(0==(4294967168&e))return i(e);var t="";return 0==(4294965248&e)?t=i(e>>6&31|192):0==(4294901760&e)?(a(e),t=i(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=i(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+=i(63&e|128)}function c(){if(o>=n)throw Error("Invalid byte index");var e=255&t[o];if(o++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function u(){var e,i;if(o>n)throw Error("Invalid byte index");if(o==n)return!1;if(e=255&t[o],o++,0==(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|c())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|c()<<6|c())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|c()<<12|c()<<6|c())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=r(e),n=t.length,o=-1,i="";++o<n;)i+=l(t[o]);return i},e.decode=function(e){t=r(e),n=t.length,o=0;for(var a,s=[];!1!==(a=u());)s.push(a);return function(e){for(var t,n=e.length,o=-1,r="";++o<n;)(t=e[o])>65535&&(r+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=i(t);return r}(s)}}(t)},55530:e=>{function t(){}function n(e,t){return Math.floor(Math.random()*(t-e+1))+e}t.maxFromBits=function(e){return Math.pow(2,e)},t.limitUI04=t.maxFromBits(4),t.limitUI06=t.maxFromBits(6),t.limitUI08=t.maxFromBits(8),t.limitUI12=t.maxFromBits(12),t.limitUI14=t.maxFromBits(14),t.limitUI16=t.maxFromBits(16),t.limitUI32=t.maxFromBits(32),t.limitUI40=t.maxFromBits(40),t.limitUI48=t.maxFromBits(48),t.randomUI04=function(){return n(0,t.limitUI04-1)},t.randomUI06=function(){return n(0,t.limitUI06-1)},t.randomUI08=function(){return n(0,t.limitUI08-1)},t.randomUI12=function(){return n(0,t.limitUI12-1)},t.randomUI14=function(){return n(0,t.limitUI14-1)},t.randomUI16=function(){return n(0,t.limitUI16-1)},t.randomUI32=function(){return n(0,t.limitUI32-1)},t.randomUI40=function(){return(0|Math.random()*(1<<30))+(0|1024*Math.random())*(1<<30)},t.randomUI48=function(){return(0|Math.random()*(1<<30))+(0|Math.random()*(1<<18))*(1<<30)},t.paddedString=function(e,t,n){n=n||"0";for(var o=t-(e=String(e)).length;o>0;o>>>=1,n+=n)1&o&&(e=n+e);return e},t.prototype.fromParts=function(e,n,o,i,r,a){return this.version=o>>12&15,this.hex=t.paddedString(e.toString(16),8)+"-"+t.paddedString(n.toString(16),4)+"-"+t.paddedString(o.toString(16),4)+"-"+t.paddedString(i.toString(16),2)+t.paddedString(r.toString(16),2)+"-"+t.paddedString(a.toString(16),12),this},t.prototype.toString=function(){return this.hex},t.prototype.toURN=function(){return"urn:uuid:"+this.hex},t.prototype.toBytes=function(){for(var e=this.hex.split("-"),t=[],n=0,o=0;o<e.length;o++)for(var i=0;i<e[o].length;i+=2)t[n++]=parseInt(e[o].substr(i,2),16);return t},t.prototype.equals=function(e){return e instanceof UUID&&this.hex===e.hex},t.getTimeFieldValues=function(e){var t=e-Date.UTC(1582,9,15),n=t/4294967296*1e4&268435455;return{low:1e4*(268435455&t)%4294967296,mid:65535&n,hi:n>>>16,timestamp:t}},t._create4=function(){return(new t).fromParts(t.randomUI32(),t.randomUI16(),16384|t.randomUI12(),128|t.randomUI06(),t.randomUI08(),t.randomUI48())},t._create1=function(){var e=(new Date).getTime(),n=t.randomUI14(),o=1099511627776*(1|t.randomUI08())+t.randomUI40(),i=t.randomUI04(),r=0;e!=r?(e<r&&n++,r=e,i=t.randomUI04()):Math.random()<1/4&&i<9984?i+=1+t.randomUI04():n++;var a=t.getTimeFieldValues(r),s=a.low+i,l=4095&a.hi|4096,c=(n&=16383)>>>8|128,u=255&n;return(new t).fromParts(s,a.mid,l,c,u,o)},t.create=function(e){return this["_create"+(e=e||4)]()},t.fromTime=function(e,n){n=n||!1;var o=t.getTimeFieldValues(e),i=o.low,r=4095&o.hi|4096;return!1===n?(new t).fromParts(i,o.mid,r,0,0,0):(new t).fromParts(i,o.mid,r,128|t.limitUI06,t.limitUI08-1,t.limitUI48-1)},t.firstFromTime=function(e){return t.fromTime(e,!1)},t.lastFromTime=function(e){return t.fromTime(e,!0)},t.fromURN=function(e){var n;return(n=/^(?:urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(?:\})?$/i.exec(e))?(new t).fromParts(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),parseInt(n[4],16),parseInt(n[5],16),parseInt(n[6],16)):null},t.fromBytes=function(e){if(e.length<5)return null;for(var n="",o=0,i=[4,2,2,2,6],r=0;r<i.length;r++){for(var a=0;a<i[r];a++){var s=e[o++].toString(16);1==s.length&&(s="0"+s),n+=s}6!==i[r]&&(n+="-")}return t.fromURN(n)},t.fromBinary=function(e){for(var n=[],o=0;o<e.length;o++)if(n[o]=e.charCodeAt(o),n[o]>255||n[o]<0)throw new Error("Unexpected byte in binary data.");return t.fromBytes(n)},t.new=function(){return this.create(4)},t.newTS=function(){return this.create(1)},e.exports=t},92674:(e,t,n)=>{var o=n(62335),i=n(85234),r=i;r.v1=o,r.v4=i,e.exports=r},40614:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,i=t;return[i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],"-",i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]],i[e[o++]]].join("")}},10537:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},62335:(e,t,n)=>{var o,i,r=n(10537),a=n(40614),s=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||o,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var f=r();null==d&&(d=o=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=i=16383&(f[6]<<8|f[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,g=h-s+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,l=m,i=p;var v=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=h/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=p>>>8|128,u[c++]=255&p;for(var _=0;_<6;++_)u[c+_]=d[_];return t||a(u)}},85234:(e,t,n)=>{var o=n(10537),i=n(40614);e.exports=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[r+s]=a[s];return t||i(a)}},37705:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i;const r=new Uint8Array(16);function a(){if(!i&&(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(r)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function l(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}const c=function(e,t,n){if(o.randomUUID&&!t&&!e)return o.randomUUID();const i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return l(i)}},56962:e=>{"use strict";e.exports=function(){}},91190:e=>{"use strict";var t=function(){};e.exports=t},84624:e=>{"use strict";e.exports=function(e,t,n,o){var i=self||window;try{try{var r;try{r=new i.Blob([e])}catch(t){(r=new(i.BlobBuilder||i.WebKitBlobBuilder||i.MozBlobBuilder||i.MSBlobBuilder)).append(e),r=r.getBlob()}var a=i.URL||i.webkitURL,s=a.createObjectURL(r),l=new i[t](s,n);return a.revokeObjectURL(s),l}catch(o){return new i[t]("data:application/javascript,".concat(encodeURIComponent(e)),n)}}catch(e){if(!o)throw Error("Inline worker is not supported");return new i[t](o,n)}}},51479:(e,t,n)=>{e.exports={h32:n(47961),h64:n(87802)}},47961:(e,t,n)=>{var o=n(55872).lW,i=n(29215).UINT32;i.prototype.xxh_update=function(e,t){var n,o,i=a._low,s=a._high;n=(o=e*i)>>>16,n+=t*i,n&=65535,n+=e*s;var l=this._low+(65535&o),c=l>>>16,u=(c+=this._high+(65535&n))<<16|65535&l;c=(u=u<<13|u>>>19)>>>16,n=(o=(l=65535&u)*(i=r._low))>>>16,n+=c*i,n&=65535,n+=l*(s=r._high),this._low=65535&o,this._high=65535&n};var r=i("2654435761"),a=i("2246822519"),s=i("3266489917"),l=i("668265263"),c=i("374761393");function u(){return 2==arguments.length?new u(arguments[1]).update(arguments[0]).digest():this instanceof u?void d.call(this,arguments[0]):new u(arguments[0])}function d(e){return this.seed=e instanceof i?e.clone():i(e),this.v1=this.seed.clone().add(r).add(a),this.v2=this.seed.clone().add(a),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(r),this.total_len=0,this.memsize=0,this.memory=null,this}u.prototype.init=d,u.prototype.update=function(e){var t,n="string"==typeof e;n&&(e=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return new Uint8Array(t)}(e),n=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var i=0,r=e.length,a=i+r;if(0==r)return this;if(this.total_len+=r,0==this.memsize&&(this.memory=n?"":t?new Uint8Array(16):new o(16)),this.memsize+r<16)return n?this.memory+=e:t?this.memory.set(e.subarray(0,r),this.memsize):e.copy(this.memory,this.memsize,0,r),this.memsize+=r,this;if(this.memsize>0){n?this.memory+=e.slice(0,16-this.memsize):t?this.memory.set(e.subarray(0,16-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,16-this.memsize);var s=0;n?(this.v1.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2)),s+=4,this.v2.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2)),s+=4,this.v3.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2)),s+=4,this.v4.xxh_update(this.memory.charCodeAt(s+1)<<8|this.memory.charCodeAt(s),this.memory.charCodeAt(s+3)<<8|this.memory.charCodeAt(s+2))):(this.v1.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2]),s+=4,this.v2.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2]),s+=4,this.v3.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2]),s+=4,this.v4.xxh_update(this.memory[s+1]<<8|this.memory[s],this.memory[s+3]<<8|this.memory[s+2])),i+=16-this.memsize,this.memsize=0,n&&(this.memory="")}if(i<=a-16){var l=a-16;do{n?(this.v1.xxh_update(e.charCodeAt(i+1)<<8|e.charCodeAt(i),e.charCodeAt(i+3)<<8|e.charCodeAt(i+2)),i+=4,this.v2.xxh_update(e.charCodeAt(i+1)<<8|e.charCodeAt(i),e.charCodeAt(i+3)<<8|e.charCodeAt(i+2)),i+=4,this.v3.xxh_update(e.charCodeAt(i+1)<<8|e.charCodeAt(i),e.charCodeAt(i+3)<<8|e.charCodeAt(i+2)),i+=4,this.v4.xxh_update(e.charCodeAt(i+1)<<8|e.charCodeAt(i),e.charCodeAt(i+3)<<8|e.charCodeAt(i+2))):(this.v1.xxh_update(e[i+1]<<8|e[i],e[i+3]<<8|e[i+2]),i+=4,this.v2.xxh_update(e[i+1]<<8|e[i],e[i+3]<<8|e[i+2]),i+=4,this.v3.xxh_update(e[i+1]<<8|e[i],e[i+3]<<8|e[i+2]),i+=4,this.v4.xxh_update(e[i+1]<<8|e[i],e[i+3]<<8|e[i+2])),i+=4}while(i<=l)}return i<a&&(n?this.memory+=e.slice(i):t?this.memory.set(e.subarray(i,a),this.memsize):e.copy(this.memory,this.memsize,i,a),this.memsize=a-i),this},u.prototype.digest=function(){var e,t,n=this.memory,o="string"==typeof n,u=0,d=this.memsize,p=new i;for((e=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(c)).add(p.fromNumber(this.total_len));u<=d-4;)o?p.fromBits(n.charCodeAt(u+1)<<8|n.charCodeAt(u),n.charCodeAt(u+3)<<8|n.charCodeAt(u+2)):p.fromBits(n[u+1]<<8|n[u],n[u+3]<<8|n[u+2]),e.add(p.multiply(s)).rotl(17).multiply(l),u+=4;for(;u<d;)p.fromBits(o?n.charCodeAt(u++):n[u++],0),e.add(p.multiply(c)).rotl(11).multiply(r);return t=e.clone().shiftRight(15),e.xor(t).multiply(a),t=e.clone().shiftRight(13),e.xor(t).multiply(s),t=e.clone().shiftRight(16),e.xor(t),this.init(this.seed),e},e.exports=u},87802:(e,t,n)=>{var o=n(55872).lW,i=n(29215).UINT64,r=i("11400714785074694791"),a=i("14029467366897019727"),s=i("1609587929392839161"),l=i("9650029242287828579"),c=i("2870177450012600261");function u(){return 2==arguments.length?new u(arguments[1]).update(arguments[0]).digest():this instanceof u?void d.call(this,arguments[0]):new u(arguments[0])}function d(e){return this.seed=e instanceof i?e.clone():i(e),this.v1=this.seed.clone().add(r).add(a),this.v2=this.seed.clone().add(a),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(r),this.total_len=0,this.memsize=0,this.memory=null,this}u.prototype.init=d,u.prototype.update=function(e){var t,n="string"==typeof e;n&&(e=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return new Uint8Array(t)}(e),n=!1,t=!0),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(t=!0,e=new Uint8Array(e));var s=0,l=e.length,c=s+l;if(0==l)return this;if(this.total_len+=l,0==this.memsize&&(this.memory=n?"":t?new Uint8Array(32):new o(32)),this.memsize+l<32)return n?this.memory+=e:t?this.memory.set(e.subarray(0,l),this.memsize):e.copy(this.memory,this.memsize,0,l),this.memsize+=l,this;if(this.memsize>0){n?this.memory+=e.slice(0,32-this.memsize):t?this.memory.set(e.subarray(0,32-this.memsize),this.memsize):e.copy(this.memory,this.memsize,0,32-this.memsize);var u=0;if(n)p=i(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v1.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=i(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v2.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=i(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v3.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=i(this.memory.charCodeAt(u+1)<<8|this.memory.charCodeAt(u),this.memory.charCodeAt(u+3)<<8|this.memory.charCodeAt(u+2),this.memory.charCodeAt(u+5)<<8|this.memory.charCodeAt(u+4),this.memory.charCodeAt(u+7)<<8|this.memory.charCodeAt(u+6)),this.v4.add(p.multiply(a)).rotl(31).multiply(r);else p=i(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v1.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=i(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v2.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=i(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v3.add(p.multiply(a)).rotl(31).multiply(r),u+=8,p=i(this.memory[u+1]<<8|this.memory[u],this.memory[u+3]<<8|this.memory[u+2],this.memory[u+5]<<8|this.memory[u+4],this.memory[u+7]<<8|this.memory[u+6]),this.v4.add(p.multiply(a)).rotl(31).multiply(r);s+=32-this.memsize,this.memsize=0,n&&(this.memory="")}if(s<=c-32){var d=c-32;do{var p;if(n)p=i(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v1.add(p.multiply(a)).rotl(31).multiply(r),s+=8,p=i(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v2.add(p.multiply(a)).rotl(31).multiply(r),s+=8,p=i(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v3.add(p.multiply(a)).rotl(31).multiply(r),s+=8,p=i(e.charCodeAt(s+1)<<8|e.charCodeAt(s),e.charCodeAt(s+3)<<8|e.charCodeAt(s+2),e.charCodeAt(s+5)<<8|e.charCodeAt(s+4),e.charCodeAt(s+7)<<8|e.charCodeAt(s+6)),this.v4.add(p.multiply(a)).rotl(31).multiply(r);else p=i(e[s+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v1.add(p.multiply(a)).rotl(31).multiply(r),p=i(e[(s+=8)+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v2.add(p.multiply(a)).rotl(31).multiply(r),p=i(e[(s+=8)+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v3.add(p.multiply(a)).rotl(31).multiply(r),p=i(e[(s+=8)+1]<<8|e[s],e[s+3]<<8|e[s+2],e[s+5]<<8|e[s+4],e[s+7]<<8|e[s+6]),this.v4.add(p.multiply(a)).rotl(31).multiply(r);s+=8}while(s<=d)}return s<c&&(n?this.memory+=e.slice(s):t?this.memory.set(e.subarray(s,c),this.memsize):e.copy(this.memory,this.memsize,s,c),this.memsize=c-s),this},u.prototype.digest=function(){var e,t,n=this.memory,o="string"==typeof n,u=0,d=this.memsize,p=new i;for(this.total_len>=32?((e=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),e.add(this.v3.clone().rotl(12)),e.add(this.v4.clone().rotl(18)),e.xor(this.v1.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(l),e.xor(this.v2.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(l),e.xor(this.v3.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(l),e.xor(this.v4.multiply(a).rotl(31).multiply(r)),e.multiply(r).add(l)):e=this.seed.clone().add(c),e.add(p.fromNumber(this.total_len));u<=d-8;)o?p.fromBits(n.charCodeAt(u+1)<<8|n.charCodeAt(u),n.charCodeAt(u+3)<<8|n.charCodeAt(u+2),n.charCodeAt(u+5)<<8|n.charCodeAt(u+4),n.charCodeAt(u+7)<<8|n.charCodeAt(u+6)):p.fromBits(n[u+1]<<8|n[u],n[u+3]<<8|n[u+2],n[u+5]<<8|n[u+4],n[u+7]<<8|n[u+6]),p.multiply(a).rotl(31).multiply(r),e.xor(p).rotl(27).multiply(r).add(l),u+=8;for(u+4<=d&&(o?p.fromBits(n.charCodeAt(u+1)<<8|n.charCodeAt(u),n.charCodeAt(u+3)<<8|n.charCodeAt(u+2),0,0):p.fromBits(n[u+1]<<8|n[u],n[u+3]<<8|n[u+2],0,0),e.xor(p.multiply(r)).rotl(23).multiply(a).add(s),u+=4);u<d;)p.fromBits(o?n.charCodeAt(u++):n[u++],0,0,0),e.xor(p.multiply(c)).rotl(11).multiply(r);return t=e.clone().shiftRight(33),e.xor(t).multiply(a),t=e.clone().shiftRight(29),e.xor(t).multiply(s),t=e.clone().shiftRight(32),e.xor(t),this.init(this.seed),e},e.exports=u},38114:(e,t)=>{var n,o=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function o(e){return!0===(e&&e.__isLong__)}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=o;var r={},a={};function s(e,t){var n,o,i;return t?(i=0<=(e>>>=0)&&e<256)&&(o=a[e])?o:(n=c(e,0,!0),i&&(a[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(o=r[e])?o:(n=c(e,e<0?-1:0,!1),i&&(r[e]=n),n)}function l(e,t){if(isNaN(e))return t?y:v;if(t){if(e<0)return y;if(e>=h)return A}else{if(e<=-m)return T;if(e+1>=m)return E}return e<0?l(-e,t).neg():c(e%f|0,e/f|0,t)}function c(e,t,o){return new n(e,t,o)}n.fromInt=s,n.fromNumber=l,n.fromBits=c;var u=Math.pow;function d(e,t,n){if(0===e.length)throw Error("empty string");if("number"==typeof t?(n=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?y:v;if((n=n||10)<2||36<n)throw RangeError("radix");var o;if((o=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===o)return d(e.substring(1),t,n).neg();for(var i=l(u(n,8)),r=v,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),c=parseInt(e.substring(a,a+s),n);if(s<8){var p=l(u(n,s));r=r.mul(p).add(l(c))}else r=(r=r.mul(i)).add(l(c))}return r.unsigned=t,r}function p(e,t){return"number"==typeof e?l(e,t):"string"==typeof e?d(e,t):c(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}n.fromString=d,n.fromValue=p;var f=4294967296,h=f*f,m=h/2,g=s(1<<24),v=s(0);n.ZERO=v;var y=s(0,!0);n.UZERO=y;var _=s(1);n.ONE=_;var b=s(1,!0);n.UONE=b;var S=s(-1);n.NEG_ONE=S;var E=c(-1,2147483647,!1);n.MAX_VALUE=E;var A=c(-1,-1,!0);n.MAX_UNSIGNED_VALUE=A;var T=c(0,-2147483648,!1);n.MIN_VALUE=T;var P=n.prototype;P.toInt=function(){return this.unsigned?this.low>>>0:this.low},P.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},P.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(T)){var t=l(e),n=this.div(t),o=n.mul(t).sub(this);return n.toString(e)+o.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=l(u(e,6),this.unsigned),r=this,a="";;){var s=r.div(i),c=(r.sub(s.mul(i)).toInt()>>>0).toString(e);if((r=s).isZero())return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}},P.getHighBits=function(){return this.high},P.getHighBitsUnsigned=function(){return this.high>>>0},P.getLowBits=function(){return this.low},P.getLowBitsUnsigned=function(){return this.low>>>0},P.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},P.isZero=function(){return 0===this.high&&0===this.low},P.eqz=P.isZero,P.isNegative=function(){return!this.unsigned&&this.high<0},P.isPositive=function(){return this.unsigned||this.high>=0},P.isOdd=function(){return 1==(1&this.low)},P.isEven=function(){return 0==(1&this.low)},P.equals=function(e){return o(e)||(e=p(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},P.eq=P.equals,P.notEquals=function(e){return!this.eq(e)},P.neq=P.notEquals,P.ne=P.notEquals,P.lessThan=function(e){return this.comp(e)<0},P.lt=P.lessThan,P.lessThanOrEqual=function(e){return this.comp(e)<=0},P.lte=P.lessThanOrEqual,P.le=P.lessThanOrEqual,P.greaterThan=function(e){return this.comp(e)>0},P.gt=P.greaterThan,P.greaterThanOrEqual=function(e){return this.comp(e)>=0},P.gte=P.greaterThanOrEqual,P.ge=P.greaterThanOrEqual,P.compare=function(e){if(o(e)||(e=p(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},P.comp=P.compare,P.negate=function(){return!this.unsigned&&this.eq(T)?T:this.not().add(_)},P.neg=P.negate,P.add=function(e){o(e)||(e=p(e));var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,r=65535&this.low,a=e.high>>>16,s=65535&e.high,l=e.low>>>16,u=0,d=0,f=0,h=0;return f+=(h+=r+(65535&e.low))>>>16,d+=(f+=i+l)>>>16,u+=(d+=n+s)>>>16,u+=t+a,c((f&=65535)<<16|(h&=65535),(u&=65535)<<16|(d&=65535),this.unsigned)},P.subtract=function(e){return o(e)||(e=p(e)),this.add(e.neg())},P.sub=P.subtract,P.multiply=function(e){if(this.isZero())return this;if(o(e)||(e=p(e)),t)return c(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?y:v;if(this.eq(T))return e.isOdd()?T:v;if(e.eq(T))return this.isOdd()?T:v;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(g)&&e.lt(g))return l(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,a=65535&this.low,s=e.high>>>16,u=65535&e.high,d=e.low>>>16,f=65535&e.low,h=0,m=0,_=0,b=0;return _+=(b+=a*f)>>>16,m+=(_+=r*f)>>>16,_&=65535,m+=(_+=a*d)>>>16,h+=(m+=i*f)>>>16,m&=65535,h+=(m+=r*d)>>>16,m&=65535,h+=(m+=a*u)>>>16,h+=n*f+i*d+r*u+a*s,c((_&=65535)<<16|(b&=65535),(h&=65535)<<16|(m&=65535),this.unsigned)},P.mul=P.multiply,P.divide=function(e){if(o(e)||(e=p(e)),e.isZero())throw Error("division by zero");var n,i,r;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?y:v;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return y;if(e.gt(this.shru(1)))return b;r=y}else{if(this.eq(T))return e.eq(_)||e.eq(S)?T:e.eq(T)?_:(n=this.shr(1).div(e).shl(1)).eq(v)?e.isNegative()?_:S:(i=this.sub(e.mul(n)),r=n.add(i.div(e)));if(e.eq(T))return this.unsigned?y:v;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();r=v}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),s=a<=48?1:u(2,a-48),d=l(n),f=d.mul(e);f.isNegative()||f.gt(i);)f=(d=l(n-=s,this.unsigned)).mul(e);d.isZero()&&(d=_),r=r.add(d),i=i.sub(f)}return r},P.div=P.divide,P.modulo=function(e){return o(e)||(e=p(e)),t?c((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},P.mod=P.modulo,P.rem=P.modulo,P.not=function(){return c(~this.low,~this.high,this.unsigned)},P.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},P.clz=P.countLeadingZeros,P.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},P.ctz=P.countTrailingZeros,P.and=function(e){return o(e)||(e=p(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},P.or=function(e){return o(e)||(e=p(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},P.xor=function(e){return o(e)||(e=p(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},P.shiftLeft=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):c(0,this.low<<e-32,this.unsigned)},P.shl=P.shiftLeft,P.shiftRight=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},P.shr=P.shiftRight,P.shiftRightUnsigned=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):c(32===e?this.high:this.high>>>e-32,0,this.unsigned)},P.shru=P.shiftRightUnsigned,P.shr_u=P.shiftRightUnsigned,P.rotateLeft=function(e){var t;return o(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?c(this.high,this.low,this.unsigned):e<32?(t=32-e,c(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),c(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},P.rotl=P.rotateLeft,P.rotateRight=function(e){var t;return o(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?c(this.high,this.low,this.unsigned):e<32?(t=32-e,c(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),c(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},P.rotr=P.rotateRight,P.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},P.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},P.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},P.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},P.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,o){return o?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var O=n;return e.default=O,"default"in e?e.default:e}({});void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)},60901:(e,t,n)=>{"use strict";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},o(e)}function i(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}function r(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},51163:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{Z:()=>o})},95502:(e,t,n)=>{"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}n.d(t,{Z:()=>i})},83150:(e,t,n)=>{"use strict";function o(e){if(null==e)throw new TypeError("Cannot destructure "+e)}n.d(t,{Z:()=>o})},68901:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(40574);function i(e,t){if(null==e)return{};var n,i,r=(0,o.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},40574:(e,t,n)=>{"use strict";function o(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:()=>o})},68492:(e,t,n)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(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.")}()}n.d(t,{Z:()=>i})},34885:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});const o="music",i="1.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-artist-about-modal",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}closeButtonFactory(){return new l.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},81025:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});const o="music",i="6.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-artist",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new l.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new l.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}featuredFactory(){return new l.FeaturedEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}discographyShelfFactory(e){return new l.DiscographyShelfEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}aboutFactory(){return new l.AboutEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}artistAboutModalFactory(){return new l.ArtistAboutModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}offersFactory(){return new l.OffersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}topBarFactory(){return new e.HeaderEventFactory.TopBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new e.ActionBarEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.FeaturedEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"featured"}),t&&(this._parentAbsoluteLocation=t)}popularTracksFactory(){return new e.FeaturedEventFactory.PopularTracksEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}likedSongsFactory(){return new e.FeaturedEventFactory.LikedSongsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}pickedFactory(){return new e.FeaturedEventFactory.PickedEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.DiscographyShelfEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"discography_shelf"}),t&&(this._parentAbsoluteLocation=t)}shelfHeaderFactory(){return new e.DiscographyShelfEventFactory.ShelfHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}chipsFactory(){return new e.DiscographyShelfEventFactory.ChipsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AboutEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"about"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ArtistAboutModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_about_modal"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.OffersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"offers"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){!function(t){t.TopBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"top_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.HeaderEventFactory.TopBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(t){t.PopularTracksEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"popular_tracks"}),t&&(this._parentAbsoluteLocation=t)}seeMoreButtonFactory(){return new e.FeaturedEventFactory.PopularTracksEventFactory.SeeMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(t){t.LikedSongsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"liked_songs"}),t&&(this._parentAbsoluteLocation=t)}artistFactory(){return new e.FeaturedEventFactory.LikedSongsEventFactory.ArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}linkFactory(){return new e.FeaturedEventFactory.LikedSongsEventFactory.LinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(t){t.PickedEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"picked"}),t&&(this._parentAbsoluteLocation=t)}artworkFactory(){return new e.FeaturedEventFactory.PickedEventFactory.ArtworkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}linkFactory(){return new e.FeaturedEventFactory.PickedEventFactory.LinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(t){t.ShelfHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelf_header"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.DiscographyShelfEventFactory.ShelfHeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeAllButtonFactory(){return new e.DiscographyShelfEventFactory.ShelfHeaderEventFactory.SeeAllButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(l||(l={})),function(e){!function(t){t.ChipsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"chips"}),t&&(this._parentAbsoluteLocation=t)}chipFactory(t){return new e.DiscographyShelfEventFactory.ChipsEventFactory.ChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TopBarEventFactory||(e.TopBarEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.SeeMoreButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_more_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PopularTracksEventFactory||(e.PopularTracksEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.ArtistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LikedSongsEventFactory||(e.LikedSongsEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.LinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LikedSongsEventFactory||(e.LikedSongsEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.ArtworkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artwork"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PickedEventFactory||(e.PickedEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.LinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PickedEventFactory||(e.PickedEventFactory={}))}(e.FeaturedEventFactory||(e.FeaturedEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.SeeAllButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_all_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ShelfHeaderEventFactory||(e.ShelfHeaderEventFactory={}))}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.ChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChipsEventFactory||(e.ChipsEventFactory={}))}(e.DiscographyShelfEventFactory||(e.DiscographyShelfEventFactory={}))}(l||(l={}))},10198:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});const o="music",i="0.4.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-concert-entity",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}venueMapLinkFactory(){return new l.VenueMapLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}interestedButtonFactory(){return new l.InterestedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new l.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}ticketProviderListFactory(){return new l.TicketProviderListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}lineupArtistsFactory(){return new l.LineupArtistsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}recommendedConcertsFactory(){return new l.RecommendedConcertsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.VenueMapLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"venue_map_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.InterestedButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"interested_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiElementToggle(){return{actionName:"ui_element_toggle",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitAddInterest(){return{actionName:"add_interest",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveInterest(){return{actionName:"remove_interest",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.TicketProviderListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"ticket_provider_list"}),t&&(this._parentAbsoluteLocation=t)}ticketProviderCellFactory(t){return new e.TicketProviderListEventFactory.TicketProviderCellEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.LineupArtistsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"lineup_artists"}),t&&(this._parentAbsoluteLocation=t)}artistRowFactory(t){return new e.LineupArtistsEventFactory.ArtistRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.RecommendedConcertsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"recommended_concerts"}),t&&(this._parentAbsoluteLocation=t)}browseCardFactory(){return new e.RecommendedConcertsEventFactory.BrowseCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}concertCardFactory(t){return new e.RecommendedConcertsEventFactory.ConcertCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.TicketProviderCellEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"ticket_provider_cell"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TicketProviderListEventFactory||(e.TicketProviderListEventFactory={}))}(l||(l={})),function(e){!function(t){t.ArtistRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist_row"}),t&&(this._parentAbsoluteLocation=t)}artistCardFactory(){return new e.LineupArtistsEventFactory.ArtistRowEventFactory.ArtistCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeDiscographyLinkFactory(){return new e.LineupArtistsEventFactory.ArtistRowEventFactory.SeeDiscographyLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.LineupArtistsEventFactory||(e.LineupArtistsEventFactory={}))}(l||(l={})),function(e){!function(e){e.BrowseCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"browse_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RecommendedConcertsEventFactory||(e.RecommendedConcertsEventFactory={}))}(l||(l={})),function(e){!function(e){e.ConcertCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"concert_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RecommendedConcertsEventFactory||(e.RecommendedConcertsEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.ArtistCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ArtistRowEventFactory||(e.ArtistRowEventFactory={}))}(e.LineupArtistsEventFactory||(e.LineupArtistsEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.SeeDiscographyLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_discography_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ArtistRowEventFactory||(e.ArtistRowEventFactory={}))}(e.LineupArtistsEventFactory||(e.LineupArtistsEventFactory={}))}(l||(l={}))},56084:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});const o="music",i="3.3.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-context-menu",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}navigateButtonFactory(e){return new l.NavigateButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}saveButtonFactory(){return new l.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}reportButtonFactory(){return new l.ReportButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToPlaylistButtonFactory(){return new l.AddToPlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}copyLinkButtonFactory(){return new l.CopyLinkButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new l.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToQueueButtonFactory(){return new l.AddToQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}openInDesktopButtonFactory(){return new l.OpenInDesktopButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}markPlayedButtonFactory(){return new l.MarkPlayedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}excludeRecommendationsButtonFactory(){return new l.ExcludeRecommendationsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}displayInProfileButtonFactory(){return new l.DisplayInProfileButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}editButtonFactory(e){return new l.EditButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}deleteButtonFactory(){return new l.DeleteButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}renameButtonFactory(){return new l.RenameButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}togglePlaylistPermissionsButtonFactory(){return new l.TogglePlaylistPermissionsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}enhanceButtonFactory(){return new l.EnhanceButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}createButtonFactory(){return new l.CreateButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}leavePlaylistButtonFactory(){return new l.LeavePlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}showCreditsButtonFactory(e){return new l.ShowCreditsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}removeFromPlaylistButtonFactory(){return new l.RemoveFromPlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shareEmbedButtonFactory(e){return new l.ShareEmbedButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}blockButtonFactory(){return new l.BlockButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}collaborativePlaylistButtonFactory(){return new l.CollaborativePlaylistButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new l.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}removeFromQueueButtonFactory(){return new l.RemoveFromQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToOtherPlaylistFactory(){return new l.AddToOtherPlaylistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(e){return new l.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}pinButtonFactory(){return new l.PinButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadToDeviceSubmenuFactory(){return new l.DownloadToDeviceSubmenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addToFolderButtonFactory(){return new l.AddToFolderButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.NavigateButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"navigate_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.SaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ReportButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"report_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AddToPlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.CopyLinkButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"copy_link_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCopyToClipboard(){return{actionName:"copy_to_clipboard",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AddToQueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddItemToQueue({itemToAddToQueue:e}){return{actionParameterNames:["item_to_add_to_queue"],actionParameterValues:[e.toString()],actionName:"add_item_to_queue",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitAddItemsToQueue({numberOfItemsToAddToQueue:e}){return{actionParameterNames:["number_of_items_to_add_to_queue"],actionParameterValues:[e.toString()],actionName:"add_items_to_queue",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.OpenInDesktopButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"open_in_desktop_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitOpenApp({destination:e,app:t}){return{actionParameterNames:["destination","app"],actionParameterValues:[e.toString(),t.toString()],actionName:"open_app",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.MarkPlayedButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"mark_played_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMarkAsPlayed({itemPlayed:e}){return{actionParameterNames:["item_played"],actionParameterValues:[e.toString()],actionName:"mark_as_played",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitMarkAsUnplayed({itemUnplayed:e}){return{actionParameterNames:["item_unplayed"],actionParameterValues:[e.toString()],actionName:"mark_as_unplayed",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ExcludeRecommendationsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"exclude_recommendations_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitExcludeFromRecommendations({contextToBeExcluded:e}){return{actionParameterNames:["context_to_be_excluded"],actionParameterValues:[e.toString()],actionName:"exclude_from_recommendations",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitIncludeInRecommendations({contextToBeIncluded:e}){return{actionParameterNames:["context_to_be_included"],actionParameterValues:[e.toString()],actionName:"include_in_recommendations",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.DisplayInProfileButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"display_in_profile_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShowPlaylistOnProfile({playlistToBeShown:e}){return{actionParameterNames:["playlist_to_be_shown"],actionParameterValues:[e.toString()],actionName:"show_playlist_on_profile",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitHidePlaylistOnProfile({playlistToBeHidden:e}){return{actionParameterNames:["playlist_to_be_hidden"],actionParameterValues:[e.toString()],actionName:"hide_playlist_on_profile",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.EditButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"edit_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.DeleteButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"delete_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDeletePlaylist({playlistToBeDeleted:e}){return{actionParameterNames:["playlist_to_be_deleted"],actionParameterValues:[e.toString()],actionName:"delete_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitDeleteFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"delete_folder",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.RenameButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"rename_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRenamePlaylist({playlistToBeRenamed:e}){return{actionParameterNames:["playlist_to_be_renamed"],actionParameterValues:[e.toString()],actionName:"rename_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRenameFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"rename_folder",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.TogglePlaylistPermissionsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"toggle_playlist_permissions_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMakePlaylistPrivate({playlistToBeMadePrivate:e}){return{actionParameterNames:["playlist_to_be_made_private"],actionParameterValues:[e.toString()],actionName:"make_playlist_private",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitMakePlaylistPublic({playlistToBeMadePublic:e}){return{actionParameterNames:["playlist_to_be_made_public"],actionParameterValues:[e.toString()],actionName:"make_playlist_public",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.EnhanceButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"enhance_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitEnhanceContext({contextToBeEnhanced:e}){return{actionParameterNames:["context_to_be_enhanced"],actionParameterValues:[e.toString()],actionName:"enhance_context",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnenhanceContext({contextToBeUnenhanced:e}){return{actionParameterNames:["context_to_be_unenhanced"],actionParameterValues:[e.toString()],actionName:"unenhance_context",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.CreateButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitCreateFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"create_folder",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.LeavePlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"leave_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLeavePlaylist({playlist:e}){return{actionParameterNames:["playlist"],actionParameterValues:[e.toString()],actionName:"leave_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ShowCreditsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"show_credits_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.RemoveFromPlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_from_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveItemFromPlaylist({itemToBeRemovedFromPlaylist:e}){return{actionParameterNames:["item_to_be_removed_from_playlist"],actionParameterValues:[e.toString()],actionName:"remove_item_from_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ShareEmbedButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"share_embed_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.BlockButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"block_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitBlockUser({userToBeBlocked:e}){return{actionParameterNames:["user_to_be_blocked"],actionParameterValues:[e.toString()],actionName:"block_user",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnblockUser({userToBeUnblocked:e}){return{actionParameterNames:["user_to_be_unblocked"],actionParameterValues:[e.toString()],actionName:"unblock_user",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.CollaborativePlaylistButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"collaborative_playlist_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitMakePlaylistCollaborative({playlistToBeMadeCollaborative:e}){return{actionParameterNames:["playlist_to_be_made_collaborative"],actionParameterValues:[e.toString()],actionName:"make_playlist_collaborative",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitMakePlaylistNonCollaborative({playlistToBeMadeNonCollaborative:e}){return{actionParameterNames:["playlist_to_be_made_non_collaborative"],actionParameterValues:[e.toString()],actionName:"make_playlist_non_collaborative",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.RemoveFromQueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_from_queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveItemFromQueue({itemToRemoveFromQueue:e}){return{actionParameterNames:["item_to_remove_from_queue"],actionParameterValues:[e.toString()],actionName:"remove_item_from_queue",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveItemsFromQueue({numberOfItemsToRemoveFromQueue:e}){return{actionParameterNames:["number_of_items_to_remove_from_queue"],actionParameterValues:[e.toString()],actionName:"remove_items_from_queue",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AddToOtherPlaylistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_other_playlist"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.PinButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"pin_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPinItem({itemToPin:e}){return{actionParameterNames:["item_to_pin"],actionParameterValues:[e.toString()],actionName:"pin_item",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnpinItem({itemToUnpin:e}){return{actionParameterNames:["item_to_unpin"],actionParameterValues:[e.toString()],actionName:"unpin_item",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.DownloadToDeviceSubmenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_to_device_submenu"}),t&&(this._parentAbsoluteLocation=t)}remoteDeviceDownloadButtonFactory(){return new e.DownloadToDeviceSubmenuEventFactory.RemoteDeviceDownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.DownloadToDeviceSubmenuEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AddToFolderButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_to_folder_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.RemoteDeviceDownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remote_device_download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownloadToRemoteDevice({itemToDownload:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_download","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"download_to_remote_device",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownloadFromRemoteDevice({itemToRemoveFromDownloads:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_remove_from_downloads","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"remove_download_from_remote_device",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownloadToRemoteDevice({itemToStopDownload:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_stop_download","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"stop_download_to_remote_device",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DownloadToDeviceSubmenuEventFactory||(e.DownloadToDeviceSubmenuEventFactory={}))}(l||(l={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DownloadToDeviceSubmenuEventFactory||(e.DownloadToDeviceSubmenuEventFactory={}))}(l||(l={}))},43977:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});const o="music",i="0.1.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-culturalmoments-hub",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}shelvesFactory(){return new l.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}mobilePromptFactory(){return new l.MobilePromptEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ShelvesEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelves"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.MobilePromptEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"mobile_prompt"}),t&&(this._parentAbsoluteLocation=t)}appleBadgeFactory(){return new e.MobilePromptEventFactory.AppleBadgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}googleBadgeFactory(){return new e.MobilePromptEventFactory.GoogleBadgeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.AppleBadgeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"apple_badge"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToWebviewUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_webview_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MobilePromptEventFactory||(e.MobilePromptEventFactory={}))}(l||(l={})),function(e){!function(e){e.GoogleBadgeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"google_badge"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToWebviewUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_webview_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.MobilePromptEventFactory||(e.MobilePromptEventFactory={}))}(l||(l={}))},22733:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});const o="music",i="1.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-episode-transcript",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}timestampLinkFactory(){return new l.TimestampLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.TimestampLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"timestamp_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitSeekToTime({msToSeekTo:e}){return{actionParameterNames:["ms_to_seek_to"],actionParameterValues:[e.toString()],actionName:"seek_to_time",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},91399:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});const o="music",i="4.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-episode",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new l.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new l.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}tabsFactory(){return new l.TabsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}descriptionSectionFactory(){return new l.DescriptionSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}transcriptSectionFactory(){return new l.TranscriptSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}recommendationsFactory(){return new l.RecommendationsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}podcastLinkFactory(){return new e.HeaderEventFactory.PodcastLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveButtonFactory(){return new e.ActionBarEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.TabsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tabs"}),t&&(this._parentAbsoluteLocation=t)}descriptionTabButtonFactory(){return new e.TabsEventFactory.DescriptionTabButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}transcriptTabButtonFactory(){return new e.TabsEventFactory.TranscriptTabButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.DescriptionSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"description_section"}),t&&(this._parentAbsoluteLocation=t)}timestampLinkFactory(){return new e.DescriptionSectionEventFactory.TimestampLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}readMoreButtonFactory(){return new e.DescriptionSectionEventFactory.ReadMoreButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}trackListFactory(){return new e.DescriptionSectionEventFactory.TrackListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}allEpisodesLinkFactory(){return new e.DescriptionSectionEventFactory.AllEpisodesLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.TranscriptSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"transcript_section"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.RecommendationsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"recommendations"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){!function(e){e.PodcastLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"podcast_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.SaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.DescriptionTabButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"description_tab_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TabsEventFactory||(e.TabsEventFactory={}))}(l||(l={})),function(e){!function(e){e.TranscriptTabButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"transcript_tab_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TabsEventFactory||(e.TabsEventFactory={}))}(l||(l={})),function(e){!function(e){e.TimestampLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"timestamp_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(l||(l={})),function(e){!function(e){e.ReadMoreButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"read_more_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(l||(l={})),function(e){!function(e){e.TrackListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"track_list"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(l||(l={})),function(e){!function(e){e.AllEpisodesLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"all_episodes_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.DescriptionSectionEventFactory||(e.DescriptionSectionEventFactory={}))}(l||(l={}))},28638:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});const o="music",i="2.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-family-duo-concert-shelf"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}concertsShelfContainerFactory(e){return new l.ConcertsShelfContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ConcertsShelfContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"concerts_shelf_container"}),t&&(this._parentAbsoluteLocation=t)}welcomeCardFactory(){return new e.ConcertsShelfContainerEventFactory.WelcomeCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}concertCardFactory(t){return new e.ConcertsShelfContainerEventFactory.ConcertCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.WelcomeCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"welcome_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNoAction(){return{actionName:"no_action",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConcertsShelfContainerEventFactory||(e.ConcertsShelfContainerEventFactory={}))}(l||(l={})),function(e){!function(e){e.ConcertCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"concert_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ConcertsShelfContainerEventFactory||(e.ConcertsShelfContainerEventFactory={}))}(l||(l={}))},31354:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});const o="music",i="2.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-family-duo-followers"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}planMemberFactory(e){return new l.PlanMemberEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNoAction(){return{actionName:"no_action",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.PlanMemberEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"plan_member"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},76827:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const o="music",i="1.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-in-this-episode-npv"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}segmentItemFactory(e){return new l.SegmentItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.SegmentItemEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"segment_item"}),t&&(this._parentAbsoluteLocation=t)}playbackButtonFactory(){return new e.SegmentItemEventFactory.PlaybackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}albumLinkFactory(t){return new e.SegmentItemEventFactory.AlbumLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}artistLinkFactory(t){return new e.SegmentItemEventFactory.ArtistLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}doubleHitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.PlaybackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"playback_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SegmentItemEventFactory||(e.SegmentItemEventFactory={}))}(l||(l={})),function(e){!function(e){e.AlbumLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"album_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SegmentItemEventFactory||(e.SegmentItemEventFactory={}))}(l||(l={})),function(e){!function(e){e.ArtistLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SegmentItemEventFactory||(e.SegmentItemEventFactory={}))}(l||(l={}))},78328:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});const o="music",i="2.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-liveevents-feed"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new l.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}eventSectionFactory(e){return new l.EventSectionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}groupedEventModalFactory(e){return new l.GroupedEventModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}liveEventsNavbarFactory(t){return new e.HeaderEventFactory.LiveEventsNavbarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}changeLocationButtonFactory(){return new e.HeaderEventFactory.ChangeLocationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}changeLocationUiFactory(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.EventSectionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_section"}),t&&(this._parentAbsoluteLocation=t)}eventCardFactory(t){return new e.EventSectionEventFactory.EventCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.GroupedEventModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"grouped_event_modal"}),t&&(this._parentAbsoluteLocation=t)}closeButtonFactory(){return new e.GroupedEventModalEventFactory.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}eventRowFactory(t){return new e.GroupedEventModalEventFactory.EventRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.LiveEventsNavbarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"live_events_navbar"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.ChangeLocationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(t){t.ChangeLocationUiEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"change_location_ui"}),t&&(this._parentAbsoluteLocation=t)}changeLocationFormFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}locationsResponseFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.EventCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EventSectionEventFactory||(e.EventSectionEventFactory={}))}(l||(l={})),function(e){!function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.GroupedEventModalEventFactory||(e.GroupedEventModalEventFactory={}))}(l||(l={})),function(e){!function(e){e.EventRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_row"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.GroupedEventModalEventFactory||(e.GroupedEventModalEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.ChangeLocationFormEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_form"}),t&&(this._parentAbsoluteLocation=t)}changeLocationInputFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationInputEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}changeLocationClearFactory(){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.ChangeLocationFormEventFactory.ChangeLocationClearEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.LocationsResponseEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"locations_response"}),t&&(this._parentAbsoluteLocation=t)}locationResultFactory(t){return new e.HeaderEventFactory.ChangeLocationUiEventFactory.LocationsResponseEventFactory.LocationResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.ChangeLocationUiEventFactory||(t.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ChangeLocationInputEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_input"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}keyStrokeTextEdit({fieldToBeChanged:e}){return{actionParameterNames:["field_to_be_changed"],actionParameterValues:[e.toString()],actionName:"text_edit",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ChangeLocationClearEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"change_location_clear"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitTextClear(){return{actionName:"text_clear",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ChangeLocationFormEventFactory||(e.ChangeLocationFormEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.LocationResultEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"location_result"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.LocationsResponseEventFactory||(e.LocationsResponseEventFactory={}))}(e.ChangeLocationUiEventFactory||(e.ChangeLocationUiEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={}))},284:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});const o="3.0.0",i="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-npv-artist-profile"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}artistAboutModalFactory(){return new a.ArtistAboutModalEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:"music",generatorVersion:"12.2.0",interactionType:"hit",specificationMode:i,specificationVersion:o,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.ArtistAboutModalEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"artist_about_modal"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={}))},44887:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});const o="music",i="2.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-npv-lyrics"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}showLyricsButtonFactory(){return new l.ShowLyricsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cinemaModeButtonFactory(){return new l.CinemaModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}minimizeCinemaModeButtonFactory(){return new l.MinimizeCinemaModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}closeLyricsButtonFactory(){return new l.CloseLyricsButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.ShowLyricsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"show_lyrics_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.CinemaModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cinema_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.MinimizeCinemaModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"minimize_cinema_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.CloseLyricsButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_lyrics_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},84516:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});const o="music",i="3.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-npv-playing-next"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}titleFactory(e){return new l.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}artistFactory(e){return new l.ArtistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}openQueueButtonFactory(){return new l.OpenQueueButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}searchButtonFactory(){return new l.SearchButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(e){return new l.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ArtistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.OpenQueueButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"open_queue_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.SearchButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSkipToNext({itemToBeSkipped:e,positionMs:t,totalContentMs:n}){return{actionParameterNames:["item_to_be_skipped","position_ms","total_content_ms"],actionParameterValues:[e.toString(),t.toString(),n.toString()],actionName:"skip_to_next",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},86046:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});const o="music",i="4.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-npv",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new l.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}ontourFactory(){return new l.OntourEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playingnextFactory(){return new l.PlayingnextEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}npvUiResizeFactory(){return new l.NpvUiResizeEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.OntourEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"ontour"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.PlayingnextEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"playingnext"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.NpvUiResizeEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"npv_ui_resize"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragUiResize({startSizePx:e,endSizePx:t}){return{actionParameterNames:["start_size_px","end_size_px"],actionParameterValues:[e.toString(),t.toString()],actionName:"ui_resize",actionVersion:2,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},44501:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});const o="music",i="4.2.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-playlist",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}headerFactory(){return new l.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}actionBarFactory(){return new l.ActionBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}concertsCardFactory(e){return new l.ConcertsCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}tracklistFactory(){return new l.TracklistEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}recommendedFactory(){return new l.RecommendedEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}coverArtFactory(){return new e.HeaderEventFactory.CoverArtEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}titleFactory(){return new e.HeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}descriptionTextFactory(){return new e.HeaderEventFactory.DescriptionTextEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}ownerFactory(){return new e.HeaderEventFactory.OwnerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.ActionBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"action_bar"}),t&&(this._parentAbsoluteLocation=t)}playButtonFactory(){return new e.ActionBarEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}heartButtonFactory(){return new e.ActionBarEventFactory.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.ActionBarEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shareButtonFactory(){return new e.ActionBarEventFactory.ShareButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextMenuButtonFactory(){return new e.ActionBarEventFactory.ContextMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.ConcertsCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"concerts_card"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.TracklistEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tracklist"}),t&&(this._parentAbsoluteLocation=t)}columnHeaderFactory(t){return new e.TracklistEventFactory.ColumnHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragSort(){return{actionName:"sort",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.RecommendedEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"recommended"}),t&&(this._parentAbsoluteLocation=t)}refreshButtonFactory(){return new e.RecommendedEventFactory.RefreshButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.CoverArtEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cover_art"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.DescriptionTextEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"description_text"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.OwnerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"owner"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(l||(l={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.HeartButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"heart_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitStopDownload({itemToStopDownload:e}){return{actionParameterNames:["item_to_stop_download"],actionParameterValues:[e.toString()],actionName:"stop_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.ShareButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"share_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShare({entityToBeShared:e,shareId:t}){return{actionParameterNames:["entity_to_be_shared","share_id"],actionParameterValues:[e.toString(),t.toString()],actionName:"share",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.ContextMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_menu_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ActionBarEventFactory||(e.ActionBarEventFactory={}))}(l||(l={})),function(e){!function(e){e.ColumnHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"column_header"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TracklistEventFactory||(e.TracklistEventFactory={}))}(l||(l={})),function(e){!function(e){e.RefreshButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"refresh_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRefreshContent(){return{actionName:"refresh_content",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.RecommendedEventFactory||(e.RecommendedEventFactory={}))}(l||(l={}))},94716:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});const o="music",i="4.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-premium-page",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}heroContainerFactory(e){return new l.HeroContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}educationListContainerFactory(){return new l.EducationListContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}storefrontContainerFactory(e){return new l.StorefrontContainerEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}comparisonTableFactory(){return new l.ComparisonTableEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.HeroContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"hero_container"}),t&&(this._parentAbsoluteLocation=t)}heroCheckoutButtonFactory(){return new e.HeroContainerEventFactory.HeroCheckoutButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}heroViewPlansButtonFactory(){return new e.HeroContainerEventFactory.HeroViewPlansButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.EducationListContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"education_list_container"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.StorefrontContainerEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"storefront_container"}),t&&(this._parentAbsoluteLocation=t)}planCardFactory(t){return new e.StorefrontContainerEventFactory.PlanCardEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ComparisonTableEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"comparison_table"}),t&&(this._parentAbsoluteLocation=t)}premiumFeatureFactory(t){return new e.ComparisonTableEventFactory.PremiumFeatureEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.HeroCheckoutButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"hero_checkout_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeroContainerEventFactory||(e.HeroContainerEventFactory={}))}(l||(l={})),function(e){!function(e){e.HeroViewPlansButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"hero_view_plans_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitQuickScroll(){return{actionName:"quick_scroll",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeroContainerEventFactory||(e.HeroContainerEventFactory={}))}(l||(l={})),function(e){!function(t){t.PlanCardEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"plan_card"}),t&&(this._parentAbsoluteLocation=t)}planCardButtonFactory(t){return new e.StorefrontContainerEventFactory.PlanCardEventFactory.PlanCardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.StorefrontContainerEventFactory||(e.StorefrontContainerEventFactory={}))}(l||(l={})),function(e){!function(e){e.PremiumFeatureEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"premium_feature"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitShowTooltip(){return{actionName:"show_tooltip",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.ComparisonTableEventFactory||(e.ComparisonTableEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.PlanCardButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"plan_card_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.PlanCardEventFactory||(e.PlanCardEventFactory={}))}(e.StorefrontContainerEventFactory||(e.StorefrontContainerEventFactory={}))}(l||(l={}))},34595:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});const o="music",i="1.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-remove-download-confirmation-dialog"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}confirmRemoveDownloadButtonFactory(){return new l.ConfirmRemoveDownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}cancelButtonFactory(){return new l.CancelButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.ConfirmRemoveDownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"confirm_remove_download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveDownload({itemToRemoveFromDownloads:e}){return{actionParameterNames:["item_to_remove_from_downloads"],actionParameterValues:[e.toString()],actionName:"remove_download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveDownloadFromRemoteDevice({itemToRemoveFromDownloads:e,remoteDeviceId:t,remoteDeviceType:n,remoteClientPlatform:s}){return{actionParameterNames:["item_to_remove_from_downloads","remote_device_id","remote_device_type","remote_client_platform"],actionParameterValues:[e.toString(),t.toString(),n.toString(),s.toString()],actionName:"remove_download_from_remote_device",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.CancelButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cancel_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},59290:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const o="7.0.0",i="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-search-category",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}cardsFactory(){return new a.CardsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new a.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.CardsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"cards"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={}))},31336:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});const o="music",i="3.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-search-podcast-and-shows",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}podcastAndShowsShelfFactory(){return new l.PodcastAndShowsShelfEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}episodesListFactory(){return new l.EpisodesListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new l.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.PodcastAndShowsShelfEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"podcast_and_shows_shelf"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.EpisodesListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"episodes_list"}),t&&(this._parentAbsoluteLocation=t)}episodesListHeaderFactory(){return new e.EpisodesListEventFactory.EpisodesListHeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){!function(t){t.EpisodesListHeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"episodes_list_header"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.EpisodesListEventFactory.EpisodesListHeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeAllLinkFactory(){return new e.EpisodesListEventFactory.EpisodesListHeaderEventFactory.SeeAllLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.EpisodesListEventFactory||(e.EpisodesListEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EpisodesListHeaderEventFactory||(e.EpisodesListHeaderEventFactory={}))}(e.EpisodesListEventFactory||(e.EpisodesListEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.SeeAllLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_all_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.EpisodesListHeaderEventFactory||(e.EpisodesListHeaderEventFactory={}))}(e.EpisodesListEventFactory||(e.EpisodesListEventFactory={}))}(l||(l={}))},65937:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});const o="5.0.0",i="default";function r(e){return new a(e)}class a{constructor(e){this._path=[{name:"desktop-search-tracks",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}tracksFactory(){return new a.TracksEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new a.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.TracksEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"tracks"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[i,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[o,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(a||(a={}))},22308:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});const o="music",i="5.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-search",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}topResultFactory(){return new l.TopResultEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}trackListFactory(){return new l.TrackListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}shelvesFactory(){return new l.ShelvesEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}emptyResultsFactory(){return new l.EmptyResultsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.TopResultEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"top_result"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.TrackListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"track_list"}),t&&(this._parentAbsoluteLocation=t)}headerFactory(){return new e.TrackListEventFactory.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.ShelvesEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"shelves"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.EmptyResultsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"empty_results"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){!function(t){t.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.TrackListEventFactory.HeaderEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}seeAllFactory(){return new e.TrackListEventFactory.HeaderEventFactory.SeeAllEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.TrackListEventFactory||(e.TrackListEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.TrackListEventFactory||(e.TrackListEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){e.SeeAllEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"see_all"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.TrackListEventFactory||(e.TrackListEventFactory={}))}(l||(l={}))},19490:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});const o="music",i="3.2.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-top-bar"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}backButtonFactory(){return new l.BackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}forwardButtonFactory(){return new l.ForwardButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}upgradeButtonFactory(){return new l.UpgradeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}installAppButtonFactory(){return new l.InstallAppButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}installPwaButtonFactory(){return new l.InstallPwaButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}profileButtonFactory(){return new l.ProfileButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.BackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"back_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigateBack(){return{actionName:"ui_navigate_back",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ForwardButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"forward_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigateForwardInHistory(){return{actionName:"ui_navigate_forward_in_history",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.UpgradeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"upgrade_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.InstallAppButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"install_app_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitNavigateToExternalUri({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"navigate_to_external_uri",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.InstallPwaButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"install_pwa_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitInstallApp({appName:e}){return{actionParameterNames:["app_name"],actionParameterValues:[e.toString()],actionName:"install_app",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ProfileButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"profile_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},95167:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});const o="music",i="7.2.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-track-list-row",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}playbackButtonFactory(){return new l.PlaybackButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}artistLinkFactory(e){return new l.ArtistLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}albumLinkFactory(e){return new l.AlbumLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}addedByLinkFactory(e){return new l.AddedByLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}eventLinkFactory(e){return new l.EventLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}heartButtonFactory(){return new l.HeartButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addRecommendationButtonFactory(){return new l.AddRecommendationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}removeRecommendationButtonFactory(){return new l.RemoveRecommendationButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}contextButtonFactory(){return new l.ContextButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}addButtonFactory(){return new l.AddButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}doubleHitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitShowPaywall({paywalledItem:e}){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.toString()],actionName:"show_paywall",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.PlaybackButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"playback_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitShowPaywall({paywalledItem:e}){return{actionParameterNames:["paywalled_item"],actionParameterValues:[e.toString()],actionName:"show_paywall",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ArtistLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"artist_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AlbumLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"album_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AddedByLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"added_by_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.EventLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"event_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.HeartButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"heart_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AddRecommendationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_recommendation_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.RemoveRecommendationButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"remove_recommendation_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRemoveRecommendation({recommendedItemUri:e,contextUri:t}){return{actionParameterNames:["recommended_item_uri","context_uri"],actionParameterValues:[e.toString(),t.toString()],actionName:"remove_recommendation",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.ContextButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"context_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.AddButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"add_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},85564:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});const o="music",i="3.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-whats-new-feed"}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}notificationsBellToggleFactory(){return new l.NotificationsBellToggleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}closeButtonFactory(){return new l.CloseButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filterChipsFactory(){return new l.FilterChipsEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}notificationItemFactory(e){return new l.NotificationItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}!function(e){e.NotificationsBellToggleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"notifications_bell_toggle"}),t&&(this._parentAbsoluteLocation=t)}notificationsIndicatorFactory(){return new e.NotificationsBellToggleEventFactory.NotificationsIndicatorEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.CloseButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"close_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){e.FilterChipsEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"filter_chips"}),t&&(this._parentAbsoluteLocation=t)}clearFiltersFactory(){return new e.FilterChipsEventFactory.ClearFiltersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filterChipFactory(t){return new e.FilterChipsEventFactory.FilterChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(l||(l={})),function(e){e.NotificationItemEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"notification_item"}),t&&(this._parentAbsoluteLocation=t)}titleFactory(){return new e.NotificationItemEventFactory.TitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}saveButtonFactory(){return new e.NotificationItemEventFactory.SaveButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}followButtonFactory(){return new e.NotificationItemEventFactory.FollowButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}downloadButtonFactory(){return new e.NotificationItemEventFactory.DownloadButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}subtitleFactory(){return new e.NotificationItemEventFactory.SubtitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(){return new e.NotificationItemEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(e){e.NotificationsIndicatorEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"notifications_indicator"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationsBellToggleEventFactory||(e.NotificationsBellToggleEventFactory={}))}(l||(l={})),function(e){!function(e){e.ClearFiltersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"clear_filters"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FilterChipsEventFactory||(e.FilterChipsEventFactory={}))}(l||(l={})),function(e){!function(e){e.FilterChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"filter_chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FilterChipsEventFactory||(e.FilterChipsEventFactory={}))}(l||(l={})),function(e){!function(e){e.TitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(l||(l={})),function(e){!function(e){e.SaveButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"save_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitRemoveLike({itemNoLongerLiked:e}){return{actionParameterNames:["item_no_longer_liked"],actionParameterValues:[e.toString()],actionName:"remove_like",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(l||(l={})),function(e){!function(e){e.FollowButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"follow_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFollow({itemToBeFollowed:e}){return{actionParameterNames:["item_to_be_followed"],actionParameterValues:[e.toString()],actionName:"follow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUnfollow({itemToBeUnfollowed:e}){return{actionParameterNames:["item_to_be_unfollowed"],actionParameterValues:[e.toString()],actionName:"unfollow",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(l||(l={})),function(e){!function(e){e.DownloadButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"download_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitDownload({itemToDownload:e}){return{actionParameterNames:["item_to_download"],actionParameterValues:[e.toString()],actionName:"download",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(l||(l={})),function(e){!function(e){e.SubtitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"subtitle"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(l||(l={})),function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.NotificationItemEventFactory||(e.NotificationItemEventFactory={}))}(l||(l={}))},48142:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});const o="music",i="2.0.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-window",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}fullscreenButtonFactory(){return new l.FullscreenButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.FullscreenButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"fullscreen_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={}))},44594:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});const o="music",i="1.4.0",r="default",a="12.2.0";function s(e){return new l(e)}class l{constructor(e){this._path=[{name:"desktop-your-library-x",...e.data}],e?.parentAbsoluteLocation&&(this._parentAbsoluteLocation=e.parentAbsoluteLocation)}sidebarFactory(e){return new l.SidebarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:e})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}!function(e){e.SidebarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"sidebar"}),t&&(this._parentAbsoluteLocation=t)}headerFactory(){return new e.SidebarEventFactory.HeaderEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}listFactory(){return new e.SidebarEventFactory.ListEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}impression(){return{app:o,generatorVersion:a,specificationVersion:i,specificationMode:r,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(l||(l={})),function(e){!function(t){t.HeaderEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"header"}),t&&(this._parentAbsoluteLocation=t)}titleRowFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filtersFactory(){return new e.SidebarEventFactory.HeaderEventFactory.FiltersEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}searchBarFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SearchBarEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}sortMenuButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SortMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){t.ListEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"list"}),t&&(this._parentAbsoluteLocation=t)}yourLibraryItemFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}dragSort(){return{actionName:"sort",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragLike({itemToBeLiked:e}){return{actionParameterNames:["item_to_be_liked"],actionParameterValues:[e.toString()],actionName:"like",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragPinItem({itemToPin:e}){return{actionParameterNames:["item_to_pin"],actionParameterValues:[e.toString()],actionName:"pin_item",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragUnpinItem({itemToUnpin:e}){return{actionParameterNames:["item_to_unpin"],actionParameterValues:[e.toString()],actionName:"unpin_item",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.TitleRowEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"title_row"}),t&&(this._parentAbsoluteLocation=t)}toggleCollapsedModeButtonFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.ToggleCollapsedModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}folderTitleFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.FolderTitleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}createMenuButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}viewDensityToggleFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.ViewDensityToggleEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}toggleExpandedModeButtonFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.ToggleExpandedModeButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.FiltersEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"filters"}),t&&(this._parentAbsoluteLocation=t)}clearButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.FiltersEventFactory.ClearButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}filterChipFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.FiltersEventFactory.FilterChipEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.SearchBarEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_bar"}),t&&(this._parentAbsoluteLocation=t)}searchButtonFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SearchBarEventFactory.SearchButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}textFilterFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SearchBarEventFactory.TextFilterEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.SortMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"sort_menu_button"}),t&&(this._parentAbsoluteLocation=t)}sortMenuFactory(){return new e.SidebarEventFactory.HeaderEventFactory.SortMenuButtonEventFactory.SortMenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){t.YourLibraryItemEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"your_library_item"}),t&&(this._parentAbsoluteLocation=t)}toggleFolderButtonFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory.ToggleFolderButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}playButtonFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory.PlayButtonEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}subtitleLinkFactory(){return new e.SidebarEventFactory.ListEventFactory.YourLibraryItemEventFactory.SubtitleLinkEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}doubleHitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"double_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}secondaryHitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"secondary_hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragAddToPlaylist({playlist:e,itemToBeAdded:t}){return{actionParameterNames:["playlist","item_to_be_added"],actionParameterValues:[e.toString(),t.toString()],actionName:"add_to_playlist",actionVersion:2,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}dragUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"drag",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeDeletePlaylist({playlistToBeDeleted:e}){return{actionParameterNames:["playlist_to_be_deleted"],actionParameterValues:[e.toString()],actionName:"delete_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.ListEventFactory||(t.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ToggleCollapsedModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"toggle_collapsed_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitToggleState({stateBeforeToggle:e,stateAfterToggle:t}){return{actionParameterNames:["state_before_toggle","state_after_toggle"],actionParameterValues:[e.toString(),t.toString()],actionName:"toggle_state",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.FolderTitleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"folder_title"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitRenameFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"rename_folder",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){!function(t){t.CreateMenuButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_menu_button"}),t&&(this._parentAbsoluteLocation=t)}createMenuFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory.CreateMenuEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(t.TitleRowEventFactory||(t.TitleRowEventFactory={}))}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ViewDensityToggleEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"view_density_toggle"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitToggleState({stateBeforeToggle:e,stateAfterToggle:t}){return{actionParameterNames:["state_before_toggle","state_after_toggle"],actionParameterValues:[e.toString(),t.toString()],actionName:"toggle_state",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ToggleExpandedModeButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"toggle_expanded_mode_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitToggleState({stateBeforeToggle:e,stateAfterToggle:t}){return{actionParameterNames:["state_before_toggle","state_after_toggle"],actionParameterValues:[e.toString(),t.toString()],actionName:"toggle_state",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ClearButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"clear_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FiltersEventFactory||(e.FiltersEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.FilterChipEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"filter_chip"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitFilter(){return{actionName:"filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.FiltersEventFactory||(e.FiltersEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.SearchButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"search_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SearchBarEventFactory||(e.SearchBarEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.TextFilterEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"text_filter"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}keyStrokeFilter(){return{actionName:"filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}keyStrokeClearFilter(){return{actionName:"clear_filter",actionVersion:1,app:o,generatorVersion:a,interactionType:"key_stroke",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SearchBarEventFactory||(e.SearchBarEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){!function(t){t.SortMenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"sort_menu"}),t&&(this._parentAbsoluteLocation=t)}sortOptionFactory(t){return new e.SidebarEventFactory.HeaderEventFactory.SortMenuButtonEventFactory.SortMenuEventFactory.SortOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation,data:t})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.SortMenuButtonEventFactory||(t.SortMenuButtonEventFactory={}))}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.ToggleFolderButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"toggle_folder_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiReveal(){return{actionName:"ui_reveal",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitUiHide(){return{actionName:"ui_hide",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.YourLibraryItemEventFactory||(e.YourLibraryItemEventFactory={}))}(e.ListEventFactory||(e.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.PlayButtonEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"play_button"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitPlay({itemToBePlayed:e}){return{actionParameterNames:["item_to_be_played"],actionParameterValues:[e.toString()],actionName:"play",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitPause({itemToBePaused:e}){return{actionParameterNames:["item_to_be_paused"],actionParameterValues:[e.toString()],actionName:"pause",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}hitResume({itemToBeResumed:e}){return{actionParameterNames:["item_to_be_resumed"],actionParameterValues:[e.toString()],actionName:"resume",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.YourLibraryItemEventFactory||(e.YourLibraryItemEventFactory={}))}(e.ListEventFactory||(e.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){e.SubtitleLinkEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"subtitle_link"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitUiNavigate({destination:e}){return{actionParameterNames:["destination"],actionParameterValues:[e.toString()],actionName:"ui_navigate",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.YourLibraryItemEventFactory||(e.YourLibraryItemEventFactory={}))}(e.ListEventFactory||(e.ListEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(t){!function(t){!function(t){!function(t){t.CreateMenuEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_menu"}),t&&(this._parentAbsoluteLocation=t)}createPlaylistOptionFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory.CreateMenuEventFactory.CreatePlaylistOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}createFolderOptionFactory(){return new e.SidebarEventFactory.HeaderEventFactory.TitleRowEventFactory.CreateMenuButtonEventFactory.CreateMenuEventFactory.CreateFolderOptionEventFactory({path:this._path,parentAbsoluteLocation:this._parentAbsoluteLocation})}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}}}(t.CreateMenuButtonEventFactory||(t.CreateMenuButtonEventFactory={}))}(t.TitleRowEventFactory||(t.TitleRowEventFactory={}))}(t.HeaderEventFactory||(t.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){!function(e){e.SortOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({...n,name:"sort_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitSort(){return{actionName:"sort",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.SortMenuEventFactory||(e.SortMenuEventFactory={}))}(e.SortMenuButtonEventFactory||(e.SortMenuButtonEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){!function(e){!function(e){e.CreatePlaylistOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_playlist_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreatePlaylist(){return{actionName:"create_playlist",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CreateMenuEventFactory||(e.CreateMenuEventFactory={}))}(e.CreateMenuButtonEventFactory||(e.CreateMenuButtonEventFactory={}))}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={})),function(e){!function(e){!function(e){!function(e){!function(e){!function(e){e.CreateFolderOptionEventFactory=class{constructor({path:e,parentAbsoluteLocation:t,data:n}){this._path=e.concat({name:"create_folder_option"}),t&&(this._parentAbsoluteLocation=t)}_getCurrentLocation(){return{pathNodes:this._path,specMode:[r,...[...Array(this._path.length-1)].map((()=>""))],specVersion:[i,...[...Array(this._path.length-1)].map((()=>""))]}}getAbsoluteLocation(){const e=this._parentAbsoluteLocation?.locations;return{locations:[...e||[],this._getCurrentLocation()]}}hitCreateFolder({uri:e}){return{actionParameterNames:["uri"],actionParameterValues:[e.toString()],actionName:"create_folder",actionVersion:1,app:o,generatorVersion:a,interactionType:"hit",specificationMode:r,specificationVersion:i,annotatorConfigurationVersion:"",annotatorVersion:"",location:this._getCurrentLocation(),parentAbsoluteLocation:this._parentAbsoluteLocation}}}}(e.CreateMenuEventFactory||(e.CreateMenuEventFactory={}))}(e.CreateMenuButtonEventFactory||(e.CreateMenuButtonEventFactory={}))}(e.TitleRowEventFactory||(e.TitleRowEventFactory={}))}(e.HeaderEventFactory||(e.HeaderEventFactory={}))}(e.SidebarEventFactory||(e.SidebarEventFactory={}))}(l||(l={}))},89130:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=Object.prototype.hasOwnProperty;function i(e,t,n){for(n of e.keys())if(r(n,t))return n}function r(e,t){var n,a,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)for(;a--&&r(e[a],t[a]););return-1===a}if(n===Set){if(e.size!==t.size)return!1;for(a of e){if((s=a)&&"object"==typeof s&&!(s=i(t,s)))return!1;if(!t.has(s))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(a of e){if((s=a[0])&&"object"==typeof s&&!(s=i(t,s)))return!1;if(!r(a[1],t.get(s)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((a=e.byteLength)===t.byteLength)for(;a--&&e.getInt8(a)===t.getInt8(a););return-1===a}if(ArrayBuffer.isView(e)){if((a=e.byteLength)===t.byteLength)for(;a--&&e[a]===t[a];);return-1===a}if(!n||"object"==typeof e){for(n in a=0,e){if(o.call(e,n)&&++a&&!o.call(t,n))return!1;if(!(n in t)||!r(e[n],t[n]))return!1}return Object.keys(t).length===a}}return e!=e&&t!=t}},4377:(e,t,n)=>{"use strict";n.d(t,{S:()=>f});const o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;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},i(e)}var r=10,a=2;function s(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(o)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var l=i.call(e);if(l!==e)return"string"==typeof l?l:s(l,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>a)return"[Array]";for(var n=Math.min(r,e.length),o=e.length-n,i=[],l=0;l<n;++l)i.push(s(e[l],t));1===o?i.push("... 1 more item"):o>1&&i.push("... ".concat(o," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>a)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var o=n.map((function(n){return n+": "+s(e[n],t)}));return"{ "+o.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function l(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,o&&(e.prototype[o]=t)}function c(e){return null!=e&&"string"==typeof e.kind}l(function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}()),l(function(){function e(e,t,n,o,i,r,a){this.kind=e,this.start=t,this.end=n,this.line=o,this.column=i,this.value=a,this.prev=r,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());var u={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},d=Object.freeze({});function p(e,t,n){var o=e[t];if(o){if(!n&&"function"==typeof o)return o;var i=n?o.leave:o.enter;if("function"==typeof i)return i}else{var r=n?e.leave:e.enter;if(r){if("function"==typeof r)return r;var a=r[t];if("function"==typeof a)return a}}}function f(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,o=void 0,i=Array.isArray(e),r=[e],a=-1,l=[],f=void 0,h=void 0,m=void 0,g=[],v=[],y=e;do{var _=++a===r.length,b=_&&0!==l.length;if(_){if(h=0===v.length?void 0:g[g.length-1],f=m,m=v.pop(),b){if(i)f=f.slice();else{for(var S={},E=0,A=Object.keys(f);E<A.length;E++){var T=A[E];S[T]=f[T]}f=S}for(var P=0,O=0;O<l.length;O++){var C=l[O][0],k=l[O][1];i&&(C-=P),i&&null===k?(f.splice(C,1),P++):f[C]=k}}a=o.index,r=o.keys,l=o.edits,i=o.inArray,o=o.prev}else{if(h=m?i?a:r[a]:void 0,null==(f=m?m[h]:y))continue;m&&g.push(h)}var R,L=void 0;if(!Array.isArray(f)){if(!c(f))throw new Error("Invalid AST Node: ".concat(s(f,[]),"."));var I=p(t,f.kind,_);if(I){if((L=I.call(t,f,h,m,g,v))===d)break;if(!1===L){if(!_){g.pop();continue}}else if(void 0!==L&&(l.push([h,L]),!_)){if(!c(L)){g.pop();continue}f=L}}}void 0===L&&b&&l.push([h,f]),_?g.pop():(o={inArray:i,index:a,keys:r,edits:l,prev:o},r=(i=Array.isArray(f))?f:null!==(R=n[f.kind])&&void 0!==R?R:[],a=-1,l=[],m&&v.push(m),m=f)}while(void 0!==o);return 0!==l.length&&(y=l[l.length-1][1]),y}(e,{leave:h})}var h={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return g(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,o=y("(",g(e.variableDefinitions,", "),")"),i=g(e.directives," "),r=e.selectionSet;return n||i||o||"query"!==t?g([t,g([n,o]),i,r]," "):r},VariableDefinition:function(e){var t=e.variable,n=e.type,o=e.defaultValue,i=e.directives;return t+": "+n+y(" = ",o)+y(" ",g(i," "))},SelectionSet:function(e){return v(e.selections)},Field:function(e){var t=e.alias,n=e.name,o=e.arguments,i=e.directives,r=e.selectionSet,a=y("",t,": ")+n,s=a+y("(",g(o,", "),")");return s.length>80&&(s=a+y("(\n",_(g(o,"\n")),"\n)")),g([s,g(i," "),r]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+y(" ",g(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,o=e.selectionSet;return g(["...",y("on ",t),g(n," "),o]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,o=e.variableDefinitions,i=e.directives,r=e.selectionSet;return"fragment ".concat(t).concat(y("(",g(o,", "),")")," ")+"on ".concat(n," ").concat(y("",g(i," ")," "))+r},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],r='"'===e[e.length-1],a="\\"===e[e.length-1],s=!o||r||a||n,l="";return!s||o&&i||(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,s&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+g(e.values,", ")+"]"},ObjectValue:function(e){return"{"+g(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+y("(",g(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:m((function(e){var t=e.directives,n=e.operationTypes;return g(["schema",g(t," "),v(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:m((function(e){return g(["scalar",e.name,g(e.directives," ")]," ")})),ObjectTypeDefinition:m((function(e){var t=e.name,n=e.interfaces,o=e.directives,i=e.fields;return g(["type",t,y("implements ",g(n," & ")),g(o," "),v(i)]," ")})),FieldDefinition:m((function(e){var t=e.name,n=e.arguments,o=e.type,i=e.directives;return t+(S(n)?y("(\n",_(g(n,"\n")),"\n)"):y("(",g(n,", "),")"))+": "+o+y(" ",g(i," "))})),InputValueDefinition:m((function(e){var t=e.name,n=e.type,o=e.defaultValue,i=e.directives;return g([t+": "+n,y("= ",o),g(i," ")]," ")})),InterfaceTypeDefinition:m((function(e){var t=e.name,n=e.interfaces,o=e.directives,i=e.fields;return g(["interface",t,y("implements ",g(n," & ")),g(o," "),v(i)]," ")})),UnionTypeDefinition:m((function(e){var t=e.name,n=e.directives,o=e.types;return g(["union",t,g(n," "),o&&0!==o.length?"= "+g(o," | "):""]," ")})),EnumTypeDefinition:m((function(e){var t=e.name,n=e.directives,o=e.values;return g(["enum",t,g(n," "),v(o)]," ")})),EnumValueDefinition:m((function(e){return g([e.name,g(e.directives," ")]," ")})),InputObjectTypeDefinition:m((function(e){var t=e.name,n=e.directives,o=e.fields;return g(["input",t,g(n," "),v(o)]," ")})),DirectiveDefinition:m((function(e){var t=e.name,n=e.arguments,o=e.repeatable,i=e.locations;return"directive @"+t+(S(n)?y("(\n",_(g(n,"\n")),"\n)"):y("(",g(n,", "),")"))+(o?" repeatable":"")+" on "+g(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return g(["extend schema",g(t," "),v(n)]," ")},ScalarTypeExtension:function(e){return g(["extend scalar",e.name,g(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,o=e.directives,i=e.fields;return g(["extend type",t,y("implements ",g(n," & ")),g(o," "),v(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,o=e.directives,i=e.fields;return g(["extend interface",t,y("implements ",g(n," & ")),g(o," "),v(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,o=e.types;return g(["extend union",t,g(n," "),o&&0!==o.length?"= "+g(o," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,o=e.values;return g(["extend enum",t,g(n," "),v(o)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,o=e.fields;return g(["extend input",t,g(n," "),v(o)]," ")}};function m(e){return function(t){return g([t.description,e(t)],"\n")}}function g(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function v(e){return y("{\n",_(g(e,"\n")),"\n}")}function y(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function _(e){return y(" ",e.replace(/\n/g,"\n "))}function b(e){return-1!==e.indexOf("\n")}function S(e){return null!=e&&e.some(b)}},24358:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>r,du:()=>i});var o=n(86937),i=o.domToReact;o.htmlToDOM,o.attributesToProps,o.Comment,o.Element,o.ProcessingInstruction,o.Text;const r=o},85213:(e,t,n)=>{"use strict";n.d(t,{Uy:()=>K});var o=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),r=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[r]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||g(e)||v(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!=typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function p(e,t){0===f(e)?Object.entries(e).forEach((([n,o])=>{t(n,o,e)})):e.forEach(((n,o)=>t(o,n,e)))}function f(e){const t=e[r];return t?t.type_:Array.isArray(e)?1:g(e)?2:v(e)?3:0}function h(e,t){return 2===f(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function m(e,t,n){const o=f(e);2===o?e.set(t,n):3===o?e.add(n):e[t]=n}function g(e){return e instanceof Map}function v(e){return e instanceof Set}function y(e){return e.copy_||e.base_}function _(e,t){if(g(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&d(e)){if(!s(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[r];let o=Reflect.ownKeys(n);for(let t=0;t<o.length;t++){const i=o[t],r=n[i];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(n[i]={configurable:!0,writable:!0,enumerable:r.enumerable,value:e[i]})}return Object.create(s(e),n)}function b(e,t=!1){return E(e)||l(e)||!c(e)||(f(e)>1&&(e.set=e.add=e.clear=e.delete=S),Object.freeze(e),t&&p(e,((e,t)=>b(t,!0)))),e}function S(){a(2)}function E(e){return Object.isFrozen(e)}var A,T={};function P(e){const t=T[e];return t||a(0),t}function O(){return A}function C(e,t){t&&(P("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function k(e){R(e),e.drafts_.forEach(I),e.drafts_=null}function R(e){e===A&&(A=e.parent_)}function L(e){return A={drafts_:[],parent_:A,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function I(e){const t=e[r];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function N(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[r].modified_&&(k(t),a(4)),c(e)&&(e=w(t,e),t.parent_||M(t,e)),t.patches_&&P("Patches").generateReplacementPatches_(n[r].base_,e,t.patches_,t.inversePatches_)):e=w(t,n,[]),k(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==o?e:void 0}function w(e,t,n){if(E(t))return t;const o=t[r];if(!o)return p(t,((i,r)=>D(e,o,t,i,r,n))),t;if(o.scope_!==e)return t;if(!o.modified_)return M(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let i=t,r=!1;3===o.type_&&(i=new Set(t),t.clear(),r=!0),p(i,((i,a)=>D(e,o,t,i,a,n,r))),M(e,t,!1),n&&e.patches_&&P("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function D(e,t,n,o,i,r,a){if(l(i)){const a=w(e,i,r&&t&&3!==t.type_&&!h(t.assigned_,o)?r.concat(o):void 0);if(m(n,o,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!E(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;w(e,i),t&&t.scope_.parent_||M(e,i)}}function M(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&b(t,n)}var x={get(e,t){if(t===r)return e;const n=y(e);if(!h(n,t))return function(e,t,n){const o=B(t,n);return o?"value"in o?o.value:o.get?.call(e.draft_):void 0}(e,n,t);const o=n[t];return e.finalized_||!c(o)?o:o===U(e.base_,t)?(G(e),e.copy_[t]=J(o,e)):o},has:(e,t)=>t in y(e),ownKeys:e=>Reflect.ownKeys(y(e)),set(e,t,n){const o=B(y(e),t);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const o=U(y(e),t),i=o?.[r];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||h(e.base_,t)))return!0;G(e),V(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,G(e),V(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=y(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:o.enumerable,value:n[t]}:o},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},F={};function U(e,t){const n=e[r];return(n?y(n):e)[t]}function B(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function V(e){e.modified_||(e.modified_=!0,e.parent_&&V(e.parent_))}function G(e){e.copy_||(e.copy_=_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(x,((e,t)=>{F[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),F.deleteProperty=function(e,t){return F.set.call(this,e,t,void 0)},F.set=function(e,t,n){return x.set.call(this,e[0],t,n,e[0])};function J(e,t){const n=g(e)?P("MapSet").proxyMap_(e,t):v(e)?P("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),o={type_:n?1:0,scope_:t?t.scope_:O(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=o,r=x;n&&(i=[o],r=F);const{revoke:a,proxy:s}=Proxy.revocable(i,r);return o.draft_=s,o.revoke_=a,s}(e,t);return(t?t.scope_:O()).drafts_.push(n),n}function j(e){if(!c(e)||E(e))return e;const t=e[r];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_(e,!0);return p(n,((e,t)=>{m(n,e,j(t))})),t&&(t.finalized_=!1),n}var H=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const o=this;return function(e=n,...i){return o.produce(e,(e=>t.call(this,e,...i)))}}let i;if("function"!=typeof t&&a(6),void 0!==n&&"function"!=typeof n&&a(7),c(e)){const o=L(this),r=J(e,void 0);let a=!0;try{i=t(r),a=!1}finally{a?k(o):R(o)}return C(o,n),N(i,o)}if(!e||"object"!=typeof e){if(i=t(e),void 0===i&&(i=e),i===o&&(i=void 0),this.autoFreeze_&&b(i,!0),n){const t=[],o=[];P("Patches").generateReplacementPatches_(e,i,t,o),n(t,o)}return i}a(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,o;return[this.produce(e,t,((e,t)=>{n=e,o=t})),n,o]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=function(e){l(e)||a(10);return j(e)}(e));const t=L(this),n=J(e,void 0);return n[r].isManual_=!0,R(t),n}finishDraft(e,t){const n=e&&e[r];n&&n.isManual_||a(9);const{scope_:o}=n;return C(o,t),N(void 0,o)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(0===o.path.length&&"replace"===o.op){e=o.value;break}}n>-1&&(t=t.slice(n+1));const o=P("Patches").applyPatches_;return l(e)?o(e,t):this.produce(e,(e=>o(e,t)))}},K=H.produce;H.produceWithPatches.bind(H),H.setAutoFreeze.bind(H),H.setUseStrictShallowCopy.bind(H),H.applyPatches.bind(H),H.createDraft.bind(H),H.finishDraft.bind(H)},3959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var o=null;try{o=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function i(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function r(e){return!0===(e&&e.__isLong__)}function a(e){var t=Math.clz32(e&-e);return e?31-t:t}i.prototype.__isLong__,Object.defineProperty(i.prototype,"__isLong__",{value:!0}),i.isLong=r;var s={},l={};function c(e,t){var n,o,i;return t?(i=0<=(e>>>=0)&&e<256)&&(o=l[e])?o:(n=d(e,0,!0),i&&(l[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(o=s[e])?o:(n=d(e,e<0?-1:0,!1),i&&(s[e]=n),n)}function u(e,t){if(isNaN(e))return t?b:_;if(t){if(e<0)return b;if(e>=g)return P}else{if(e<=-v)return O;if(e+1>=v)return T}return e<0?u(-e,t).neg():d(e%m|0,e/m|0,t)}function d(e,t,n){return new i(e,t,n)}i.fromInt=c,i.fromNumber=u,i.fromBits=d;var p=Math.pow;function f(e,t,n){if(0===e.length)throw Error("empty string");if("number"==typeof t?(n=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?b:_;if((n=n||10)<2||36<n)throw RangeError("radix");var o;if((o=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===o)return f(e.substring(1),t,n).neg();for(var i=u(p(n,8)),r=_,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),l=parseInt(e.substring(a,a+s),n);if(s<8){var c=u(p(n,s));r=r.mul(c).add(u(l))}else r=(r=r.mul(i)).add(u(l))}return r.unsigned=t,r}function h(e,t){return"number"==typeof e?u(e,t):"string"==typeof e?f(e,t):d(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}i.fromString=f,i.fromValue=h;var m=4294967296,g=m*m,v=g/2,y=c(1<<24),_=c(0);i.ZERO=_;var b=c(0,!0);i.UZERO=b;var S=c(1);i.ONE=S;var E=c(1,!0);i.UONE=E;var A=c(-1);i.NEG_ONE=A;var T=d(-1,2147483647,!1);i.MAX_VALUE=T;var P=d(-1,-1,!0);i.MAX_UNSIGNED_VALUE=P;var O=d(0,-2147483648,!1);i.MIN_VALUE=O;var C=i.prototype;C.toInt=function(){return this.unsigned?this.low>>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*m+(this.low>>>0):this.high*m+(this.low>>>0)},C.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(O)){var t=u(e),n=this.div(t),o=n.mul(t).sub(this);return n.toString(e)+o.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=u(p(e,6),this.unsigned),r=this,a="";;){var s=r.div(i),l=(r.sub(s.mul(i)).toInt()>>>0).toString(e);if((r=s).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},C.getHighBits=function(){return this.high},C.getHighBitsUnsigned=function(){return this.high>>>0},C.getLowBits=function(){return this.low},C.getLowBitsUnsigned=function(){return this.low>>>0},C.getNumBitsAbs=function(){if(this.isNegative())return this.eq(O)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},C.isZero=function(){return 0===this.high&&0===this.low},C.eqz=C.isZero,C.isNegative=function(){return!this.unsigned&&this.high<0},C.isPositive=function(){return this.unsigned||this.high>=0},C.isOdd=function(){return 1==(1&this.low)},C.isEven=function(){return 0==(1&this.low)},C.equals=function(e){return r(e)||(e=h(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},C.eq=C.equals,C.notEquals=function(e){return!this.eq(e)},C.neq=C.notEquals,C.ne=C.notEquals,C.lessThan=function(e){return this.comp(e)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(e){return this.comp(e)<=0},C.lte=C.lessThanOrEqual,C.le=C.lessThanOrEqual,C.greaterThan=function(e){return this.comp(e)>0},C.gt=C.greaterThan,C.greaterThanOrEqual=function(e){return this.comp(e)>=0},C.gte=C.greaterThanOrEqual,C.ge=C.greaterThanOrEqual,C.compare=function(e){if(r(e)||(e=h(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(S)},C.neg=C.negate,C.add=function(e){r(e)||(e=h(e));var t=this.high>>>16,n=65535&this.high,o=this.low>>>16,i=65535&this.low,a=e.high>>>16,s=65535&e.high,l=e.low>>>16,c=0,u=0,p=0,f=0;return p+=(f+=i+(65535&e.low))>>>16,u+=(p+=o+l)>>>16,c+=(u+=n+s)>>>16,c+=t+a,d((p&=65535)<<16|(f&=65535),(c&=65535)<<16|(u&=65535),this.unsigned)},C.subtract=function(e){return r(e)||(e=h(e)),this.add(e.neg())},C.sub=C.subtract,C.multiply=function(e){if(this.isZero())return this;if(r(e)||(e=h(e)),o)return d(o.mul(this.low,this.high,e.low,e.high),o.get_high(),this.unsigned);if(e.isZero())return this.unsigned?b:_;if(this.eq(O))return e.isOdd()?O:_;if(e.eq(O))return this.isOdd()?O:_;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(y)&&e.lt(y))return u(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,a=65535&this.low,s=e.high>>>16,l=65535&e.high,c=e.low>>>16,p=65535&e.low,f=0,m=0,g=0,v=0;return g+=(v+=a*p)>>>16,m+=(g+=i*p)>>>16,g&=65535,m+=(g+=a*c)>>>16,f+=(m+=n*p)>>>16,m&=65535,f+=(m+=i*c)>>>16,m&=65535,f+=(m+=a*l)>>>16,f+=t*p+n*c+i*l+a*s,d((g&=65535)<<16|(v&=65535),(f&=65535)<<16|(m&=65535),this.unsigned)},C.mul=C.multiply,C.divide=function(e){if(r(e)||(e=h(e)),e.isZero())throw Error("division by zero");var t,n,i;if(o)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?d((this.unsigned?o.div_u:o.div_s)(this.low,this.high,e.low,e.high),o.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?b:_;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return E;i=b}else{if(this.eq(O))return e.eq(S)||e.eq(A)?O:e.eq(O)?S:(t=this.shr(1).div(e).shl(1)).eq(_)?e.isNegative()?S:A:(n=this.sub(e.mul(t)),i=t.add(n.div(e)));if(e.eq(O))return this.unsigned?b:_;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=_}for(n=this;n.gte(e);){t=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(t)/Math.LN2),s=a<=48?1:p(2,a-48),l=u(t),c=l.mul(e);c.isNegative()||c.gt(n);)c=(l=u(t-=s,this.unsigned)).mul(e);l.isZero()&&(l=S),i=i.add(l),n=n.sub(c)}return i},C.div=C.divide,C.modulo=function(e){return r(e)||(e=h(e)),o?d((this.unsigned?o.rem_u:o.rem_s)(this.low,this.high,e.low,e.high),o.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},C.mod=C.modulo,C.rem=C.modulo,C.not=function(){return d(~this.low,~this.high,this.unsigned)},C.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},C.clz=C.countLeadingZeros,C.countTrailingZeros=function(){return this.low?a(this.low):a(this.high)+32},C.ctz=C.countTrailingZeros,C.and=function(e){return r(e)||(e=h(e)),d(this.low&e.low,this.high&e.high,this.unsigned)},C.or=function(e){return r(e)||(e=h(e)),d(this.low|e.low,this.high|e.high,this.unsigned)},C.xor=function(e){return r(e)||(e=h(e)),d(this.low^e.low,this.high^e.high,this.unsigned)},C.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?d(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):d(0,this.low<<e-32,this.unsigned)},C.shl=C.shiftLeft,C.shiftRight=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?d(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):d(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?d(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):d(32===e?this.high:this.high>>>e-32,0,this.unsigned)},C.shru=C.shiftRightUnsigned,C.shr_u=C.shiftRightUnsigned,C.rotateLeft=function(e){var t;return r(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?d(this.high,this.low,this.unsigned):e<32?(t=32-e,d(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),d(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},C.rotl=C.rotateLeft,C.rotateRight=function(e){var t;return r(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?d(this.high,this.low,this.unsigned):e<32?(t=32-e,d(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),d(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},C.rotr=C.rotateRight,C.toSigned=function(){return this.unsigned?d(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:d(this.low,this.high,!0)},C.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},C.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},C.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},i.fromBytes=function(e,t,n){return n?i.fromBytesLE(e,t):i.fromBytesBE(e,t)},i.fromBytesLE=function(e,t){return new i(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},i.fromBytesBE=function(e,t){return new i(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};const k=i},91929:(e,t,n)=>{"use strict";n.d(t,{YD:()=>d});var o=n(59496);const i=new Map,r=new WeakMap;let a,s=0;function l(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(r.has(n)||(s+=1,r.set(n,s.toString())),r.get(n)):"0"):e[t]}`;var n})).toString()}function c(e,t,n={},o=a){if(void 0===window.IntersectionObserver&&void 0!==o){const i=e.getBoundingClientRect();return t(o,{isIntersecting:o,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:r,observer:s,elements:c}=function(e){let t=l(e),n=i.get(t);if(!n){const o=new Map;let r;const a=new IntersectionObserver((t=>{t.forEach((t=>{var n;const i=t.isIntersecting&&r.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=o.get(t.target))||n.forEach((e=>{e(i,t)}))}))}),e);r=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:o},i.set(t,n)}return n}(n);let u=c.get(e)||[];return c.has(e)||c.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(c.delete(e),s.unobserve(e)),0===c.size&&(s.disconnect(),i.delete(r))}}class u extends o.Component{constructor(e){super(e),this.node=null,this._unobserveCb=null,this.handleNode=e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()},this.handleChange=(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),isPlainChildren(this.props)||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)},this.state={inView:!!e.initialInView,entry:void 0}}componentDidUpdate(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve(),this.node=null}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:n,trackVisibility:o,delay:i,fallbackInView:r}=this.props;this._unobserveCb=c(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:o,delay:i},r)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){if(!isPlainChildren(this.props)){const{inView:e,entry:t}=this.state;return this.props.children({inView:e,entry:t,ref:this.handleNode})}const e=this.props,{children:t,as:n}=e,o=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(0;o<r.length;o++)r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,null);return React.createElement(n||"div",_extends({ref:this.handleNode},o),t)}}function d({threshold:e,delay:t,trackVisibility:n,rootMargin:i,root:r,triggerOnce:a,skip:s,initialInView:l,fallbackInView:u,onChange:d}={}){var p;const[f,h]=o.useState(null),m=o.useRef(),[g,v]=o.useState({inView:!!l,entry:void 0});m.current=d,o.useEffect((()=>{if(s||!f)return;let o;return o=c(f,((e,t)=>{v({inView:e,entry:t}),m.current&&m.current(e,t),t.isIntersecting&&a&&o&&(o(),o=void 0)}),{root:r,rootMargin:i,threshold:e,trackVisibility:n,delay:t},u),()=>{o&&o()}}),[Array.isArray(e)?e.toString():e,f,r,i,a,s,n,u,t]);const y=null==(p=g.entry)?void 0:p.target,_=o.useRef();f||!y||a||s||_.current===y||(_.current=y,v({inView:!!l,entry:void 0}));const b=[h,g.inView,g.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}},69494:(e,t,n)=>{"use strict";n.d(t,{Fu:()=>x,NO:()=>Q,Yn:()=>q,a4:()=>O,mr:()=>te,mw:()=>k});var o,i,r,a,s,l=-1,c=function(e){addEventListener("pageshow",(function(t){t.persisted&&(l=t.timeStamp,e(t))}),!0)},u=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=u();return e&&e.activationStart||0},p=function(e,t){var n=u(),o="navigate";return l>=0?o="back-forward-cache":n&&(o=document.prerendering||d()>0?"prerender":document.wasDiscarded?"restore":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},f=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch(e){}},h=function(e,t,n,o){var i,r;return function(a){t.value>=0&&(a||o)&&((r=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=r,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},m=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},g=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},v=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},y=-1,_=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},b=function(e){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===e.type?e.timeStamp:0,E())},S=function(){addEventListener("visibilitychange",b,!0),addEventListener("prerenderingchange",b,!0)},E=function(){removeEventListener("visibilitychange",b,!0),removeEventListener("prerenderingchange",b,!0)},A=function(){return y<0&&(y=_(),S(),c((function(){setTimeout((function(){y=_(),S()}),0)}))),{get firstHiddenTime(){return y}}},T=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},P=[1800,3e3],O=function(e,t){t=t||{},T((function(){var n,o=A(),i=p("FCP"),r=f("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(r.disconnect(),e.startTime<o.firstHiddenTime&&(i.value=Math.max(e.startTime-d(),0),i.entries.push(e),n(!0)))}))}));r&&(n=h(e,i,P,t.reportAllChanges),c((function(o){i=p("FCP"),n=h(e,i,P,t.reportAllChanges),m((function(){i.value=performance.now()-o.timeStamp,n(!0)}))})))}))},C=[.1,.25],k=function(e,t){t=t||{},O(v((function(){var n,o=p("CLS",0),i=0,r=[],a=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=r[0],n=r[r.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,r.push(e)):(i=e.value,r=[e])}})),i>o.value&&(o.value=i,o.entries=r,n())},s=f("layout-shift",a);s&&(n=h(e,o,C,t.reportAllChanges),g((function(){a(s.takeRecords()),n(!0)})),c((function(){i=0,o=p("CLS",0),n=h(e,o,C,t.reportAllChanges),m((function(){return n()}))})),setTimeout(n,0))})))},R={passive:!0,capture:!0},L=new Date,I=function(e,t){o||(o=t,i=e,r=new Date,D(removeEventListener),N())},N=function(){if(i>=0&&i<r-L){var e={entryType:"first-input",name:o.type,target:o.target,cancelable:o.cancelable,startTime:o.timeStamp,processingStart:o.timeStamp+i};a.forEach((function(t){t(e)})),a=[]}},w=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){I(e,t),i()},o=function(){i()},i=function(){removeEventListener("pointerup",n,R),removeEventListener("pointercancel",o,R)};addEventListener("pointerup",n,R),addEventListener("pointercancel",o,R)}(t,e):I(t,e)}},D=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,w,R)}))},M=[100,300],x=function(e,t){t=t||{},T((function(){var n,r=A(),s=p("FID"),l=function(e){e.startTime<r.firstHiddenTime&&(s.value=e.processingStart-e.startTime,s.entries.push(e),n(!0))},u=function(e){e.forEach(l)},d=f("first-input",u);n=h(e,s,M,t.reportAllChanges),d&&g(v((function(){u(d.takeRecords()),d.disconnect()}))),d&&c((function(){var r;s=p("FID"),n=h(e,s,M,t.reportAllChanges),a=[],i=-1,o=null,D(addEventListener),r=l,a.push(r),N()}))}))},F=0,U=1/0,B=0,V=function(e){e.forEach((function(e){e.interactionId&&(U=Math.min(U,e.interactionId),B=Math.max(B,e.interactionId),F=B?(B-U)/7+1:0)}))},G=function(){return s?F:performance.interactionCount||0},J=function(){"interactionCount"in performance||s||(s=f("event",V,{type:"event",buffered:!0,durationThreshold:0}))},j=[200,500],H=0,K=function(){return G()-H},Y=[],W={},z=function(e){var t=Y[Y.length-1],n=W[e.interactionId];if(n||Y.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var o={id:e.interactionId,latency:e.duration,entries:[e]};W[o.id]=o,Y.push(o)}Y.sort((function(e,t){return t.latency-e.latency})),Y.splice(10).forEach((function(e){delete W[e.id]}))}},q=function(e,t){t=t||{},T((function(){J();var n,o=p("INP"),i=function(e){e.forEach((function(e){e.interactionId&&z(e),"first-input"===e.entryType&&!Y.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&z(e)}));var t,i=(t=Math.min(Y.length-1,Math.floor(K()/50)),Y[t]);i&&i.latency!==o.value&&(o.value=i.latency,o.entries=i.entries,n())},r=f("event",i,{durationThreshold:t.durationThreshold||40});n=h(e,o,j,t.reportAllChanges),r&&(r.observe({type:"first-input",buffered:!0}),g((function(){i(r.takeRecords()),o.value<0&&K()>0&&(o.value=0,o.entries=[]),n(!0)})),c((function(){Y=[],H=G(),o=p("INP"),n=h(e,o,j,t.reportAllChanges)})))}))},X=[2500,4e3],Z={},Q=function(e,t){t=t||{},T((function(){var n,o=A(),i=p("LCP"),r=function(e){var t=e[e.length-1];t&&t.startTime<o.firstHiddenTime&&(i.value=Math.max(t.startTime-d(),0),i.entries=[t],n())},a=f("largest-contentful-paint",r);if(a){n=h(e,i,X,t.reportAllChanges);var s=v((function(){Z[i.id]||(r(a.takeRecords()),a.disconnect(),Z[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,s,!0)})),g(s),c((function(o){i=p("LCP"),n=h(e,i,X,t.reportAllChanges),m((function(){i.value=performance.now()-o.timeStamp,Z[i.id]=!0,n(!0)}))}))}}))},$=[800,1800],ee=function e(t){document.prerendering?T((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},te=function(e,t){t=t||{};var n=p("TTFB"),o=h(e,n,$,t.reportAllChanges);ee((function(){var i=u();if(i){var r=i.responseStart;if(r<=0||r>performance.now())return;n.value=Math.max(r-d(),0),n.entries=[i],o(!0),c((function(){n=p("TTFB",0),(o=h(e,n,$,t.reportAllChanges))(!0)}))}}))}},27107:(e,t,n)=>{"use strict";n.d(t,{Workbox:()=>h});try{self["workbox:window:6.5.3"]&&_()}catch(o){}function o(e,t){return new Promise((function(n){var o=new MessageChannel;o.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[o.port2])}))}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[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.")}return(n=e[Symbol.iterator]()).next.bind(n)}try{self["workbox:core:6.5.3"]&&_()}catch(o){}var s=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function l(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var c=function(e,t){this.type=e,Object.assign(this,t)};function u(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function d(){}var p={type:"SKIP_WAITING"};function f(e,t){if(!t)return e&&e.then?e.then(d):Promise.resolve()}var h=function(e){var t,n;function r(t,n){var o,i;return void 0===n&&(n={}),(o=e.call(this)||this).nn={},o.tn=0,o.rn=new s,o.en=new s,o.on=new s,o.un=0,o.an=new Set,o.cn=function(){var e=o.fn,t=e.installing;o.tn>0||!l(t.scriptURL,o.sn.toString())||performance.now()>o.un+6e4?(o.vn=t,e.removeEventListener("updatefound",o.cn)):(o.hn=t,o.an.add(t),o.rn.resolve(t)),++o.tn,t.addEventListener("statechange",o.ln)},o.ln=function(e){var t=o.fn,n=e.target,i=n.state,r=n===o.vn,a={sw:n,isExternal:r,originalEvent:e};!r&&o.mn&&(a.isUpdate=!0),o.dispatchEvent(new c(i,a)),"installed"===i?o.wn=self.setTimeout((function(){"installed"===i&&t.waiting===n&&o.dispatchEvent(new c("waiting",a))}),200):"activating"===i&&(clearTimeout(o.wn),r||o.en.resolve(n))},o.dn=function(e){var t=o.hn,n=t!==navigator.serviceWorker.controller;o.dispatchEvent(new c("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:o.mn})),n||o.on.resolve(t)},o.gn=(i=function(e){var t=e.data,n=e.ports,i=e.source;return u(o.getSW(),(function(){o.an.has(i)&&o.dispatchEvent(new c("message",{data:t,originalEvent:e,ports:n,sw:i}))}))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(i.apply(this,e))}catch(e){return Promise.reject(e)}}),o.sn=t,o.nn=n,navigator.serviceWorker.addEventListener("message",o.gn),o}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a,d,h=r.prototype;return h.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var o=this;return function(e,t){var n=e();return n&&n.then?n.then(t):t()}((function(){if(!n&&"complete"!==document.readyState)return f(new Promise((function(e){return window.addEventListener("load",e)})))}),(function(){return o.mn=Boolean(navigator.serviceWorker.controller),o.yn=o.pn(),u(o.bn(),(function(e){o.fn=e,o.yn&&(o.hn=o.yn,o.en.resolve(o.yn),o.on.resolve(o.yn),o.yn.addEventListener("statechange",o.ln,{once:!0}));var t=o.fn.waiting;return t&&l(t.scriptURL,o.sn.toString())&&(o.hn=t,Promise.resolve().then((function(){o.dispatchEvent(new c("waiting",{sw:t,wasWaitingBeforeRegister:!0}))})).then((function(){}))),o.hn&&(o.rn.resolve(o.hn),o.an.add(o.hn)),o.fn.addEventListener("updatefound",o.cn),navigator.serviceWorker.addEventListener("controllerchange",o.dn),o.fn}))}))}catch(e){return Promise.reject(e)}},h.update=function(){try{return this.fn?f(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},h.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},h.messageSW=function(e){try{return u(this.getSW(),(function(t){return o(t,e)}))}catch(e){return Promise.reject(e)}},h.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&o(this.fn.waiting,p)},h.pn=function(){var e=navigator.serviceWorker.controller;return e&&l(e.scriptURL,this.sn.toString())?e:void 0},h.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){return u(navigator.serviceWorker.register(e.sn,e.nn),(function(t){return e.un=performance.now(),t}))}),(function(e){throw e}))}catch(e){return Promise.reject(e)}},a=r,(d=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&i(a.prototype,d),r}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,n=a(this.Sn(e.type));!(t=n()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}())},82226:(e,t,n)=>{"use strict";n.d(t,{Ue:()=>c});const o=e=>{let t;const n=new Set,o=(e,o)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=o?o:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,r={setState:o,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(o,i,r),r},i=e=>e?o(e):o;var r=n(59496),a=n(28688);const{useSyncExternalStoreWithSelector:s}=a;const l=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?i(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=s(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n},c=e=>e?l(e):l},86477:e=>{"use strict";e.exports=JSON.parse('{"name":"@spotify-internal/betamax-sdk-desktop","description":"JavaScript SDK for Content Playback on Web-Enabled Platforms.","version":"29.1.0","main":"cjs/index.js","module":"esm/index.js","types":"types/index.d.ts","license":"UNLICENSED","engines":{"node":">=16"},"files":["cjs","esm","types","itgc-tests.txt"],"packageManager":"pnpm@7.26.2","homepage":"https://ghe.spotify.net/betamax/betamax-sdk-desktop#readme","author":{"name":"betamax","email":"betamax@spotify.com"},"repository":{"type":"git","url":"git@ghe.spotify.net:betamax/betamax-sdk-desktop.git"},"publishConfig":{"registry":"https://artifactory.spotify.net/artifactory/api/npm/virtual-npm"},"scripts":{"build":"./scripts/build-proto.sh && web-scripts build","build:watch":"$npm_execpath build --watch","dev":"storybook dev -p 9009","test":"web-scripts test --config jest.config.ts","test:watch":"$npm_execpath run test --watch","test:coverage":"$npm_execpath run test --coverage","test:coverage:serve":"http-server coverage/lcov-report -o","test:integration":"./scripts/integration-test.sh","test:integration:dev":"JEST_PUPPETEER_CONFIG=jest-puppeteer.config.dev.js ./scripts/integration-test.sh","test:integration:noserver":"jest -c tests/integration/jest.config.ts -i --verbose","test:unit:tingle":"jest --ci --maxWorkers=50%","test:all":"$npm_execpath test && $npm_execpath test:integration","lint":"web-scripts lint --ignore-path .prettierignore","commit":"web-scripts commit","release":"web-scripts release","format":"web-scripts format","build:storybook:ci":"build-storybook -c .storybook -o static/storybook","clean":"rm -rf types cjs esm node_modules itgc-tests.txt","doc":"./scripts/build-doc.sh","requirements":"./scripts/requirements.sh","prepare":"husky install"},"dependencies":{"@mux/mux-data-shakaplayer":"^5.8.1","@spotify-internal/core-playback-esperanto":"4.58.163","@spotify-internal/core-product-state-esperanto":"4.45.97","@spotify-internal/core-show-esperanto":"4.46.142","@spotify-internal/event-definitions":"^0.0.2463","@spotify-internal/scrobble-esperanto":"4.54.117","fast-deep-equal":"^3.1.3","shaka-player":"4.3.5","uuid":"^9.0.0"},"peerDependencies":{"@spotify-internal/event-sender":"^2.2.1 || ^4.0.3"},"devDependencies":{"@babel/core":"^7.20.5","@babel/preset-env":"^7.21.4","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.4","@jest/types":"^28.0.0","@spotify-internal/encore-foundation":"^4.1.2","@spotify-internal/encore-web":"^6.2.1","@spotify-internal/event-sender":"^4.0.3","@spotify-internal/semantic-release-config-tingle":"^3.0.0","@spotify-internal/techdocs-cli":"^0.9.0","@spotify-internal/transport":"^6.6.1","@spotify/eslint-plugin":"^14.1.1","@spotify/tsconfig":"^14.1.4","@spotify/web-scripts":"^14.0.1","@storybook/addon-actions":"^7.0.2","@storybook/addon-essentials":"^7.0.2","@storybook/addon-links":"^7.0.2","@storybook/addons":"^7.0.2","@storybook/core-common":"^7.0.2","@storybook/preset-scss":"^1.0.3","@storybook/react":"^7.0.2","@storybook/react-webpack5":"^7.0.2","@storybook/theming":"^7.0.2","@svgr/cli":"^6.2.1","@testing-library/react-hooks":"^8.0.1","@types/expect-puppeteer":"^4.4.7","@types/jest":"^28.1.8","@types/jest-environment-puppeteer":"^5.0.3","@types/jest-image-snapshot":"^5.1.0","@types/node":"^18.11.10","@types/puppeteer":"^5.4.7","@types/react":"^17.0.2","@types/styled-components":"^5.1.25","@types/uuid":"^8.3.4","@typescript-eslint/eslint-plugin":"^5.45.0","@typescript-eslint/parser":"^5.45.0","babel-loader":"^8.3.0","copy-webpack-plugin":"^11.0.0","core-js":"^3.26.1","css-loader":"^6.7.1","eslint":"^8.28.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.9.0","eslint-plugin-storybook":"^0.6.11","http-server":"^14.1.1","husky":"^8.0.1","jest":"^28.1.3","jest-environment-jsdom":"^28.1.2","jest-image-snapshot":"^5.2.0","jest-junit":"^13.2.0","jest-puppeteer":"^6.1.1","jsdom-testing-mocks":"^1.7.0","lint-staged":"^13.1.1","mutation-observer":"^1.0.3","puppeteer":"^13.7.0","react":"^17.0.2","react-dom":"^17.0.2","react-hot-loader":"^4.13.0","react-is":"^17.0.2","require-from-string":"^2.0.2","sass":"^1.53.0","sass-loader":"^13.0.2","semantic-release":"19","start-server-and-test":"^2.0.0","storybook":"^7.0.2","style-loader":"^3.3.1","styled-components":"^5.3.5","ts-jest":"^28.0.8","ts-loader":"^9.4.2","ts-node":"^10.9.1","ts-proto":"^1.135.0","type-fest":"^2.19.0","typedoc":"^0.23.21","typescript":"^4.9.3","wait-for-expect":"^3.0.2","webpack":"^5.73.0"},"resolutions":{"react":"^17.0.2","react-dom":"^17.0.2","react-is":"^17.0.2"},"release":{"extends":"@spotify-internal/semantic-release-config-tingle"},"pnpm":{"patchedDependencies":{"shaka-player@4.3.5":"patches/shaka-player+exports.pnpm.patch"}},"yarn":{"patchedDependencies":{"shaka-player@4.3.5":"patches/shaka-player+exports.yarn.patch"}}}')},41966:e=>{"use strict";e.exports=JSON.parse('{"a":"AAACAAAAAACAOAAAAbYBSf7t2S1IBEEYBuDVDZ7FYrQMNsFiu3hgEYOI0SCXRIUrB8JhEZtgs5gEg1GMFk02m82oGI02m+9xezCOczv/uwv3fvAwc/PzfXOzcdqzWdaBDdiGPdiHdjE+DS3RNDuCfsn8idQ/g3OH3BdwKf0e96/gumTfYcncLdzBPTzAo+RZ+f0Cr/AG7/AJX4738x1wtz9FO5PX/50n6UXMNdfg/0lERERERERERERERETpdedHBvDRql4nq0cXtW9af98qdRby0Vvp8K4W0V+C5Xw0t4J2bfjeBp3cnEu1brnnCTYNa7eKdz91XP7WO9Lb4GqRb7cY6xbtAdqeVOsY/QGcevw/tb6OT85YhvfKYEx9CMuxKsKnrs+eJtVInVvHJ0eVYVvTZk2siFVLOCjb61PTZX3MdVWEyP7fjzpmMxdzTyq2Ebue6x61nXRGnzndWpf1an7dXmGYE4Y1ptqqKsK1nu26Ju0ty+maV2Rpvk+qnDZjKUIobUiesdAQE/jmCTmHmsskpFZsVYbtmXRcaoSGUPomunW2derQhDPFjtT1Q/eb8vnm990fq35oHVt11bU9m89c7DNI8Qs="}')},23392:e=>{"use strict";e.exports=JSON.parse('{"a":"ABAOAAAAAACwiAAAAYkHdvjtnH+IFkUYxx/v3vPe7uw8UkjsD43ChKICDQsT3iIJy4gSiZAjkn5JUFlaiFmjccT9ESkpGBGVIlQgWSkY/QDBoMgrQv0jRJDAfkCXhUmgRX23d4ebnndmd3Z3ZnfVeeDDzM7MPs8zv57Zd2+5hd1Ed4ClYAisBuuUsqLpMHgJjIBNFu1fBW8l1O8AO8Ee8Cn4HIyCg+CI0u4Y+AmMgVPgDOhuEHWBPjAZXAy2gjfA9kb73hlx+i7SK8AHYDf4BOwHB8AoOAyOguPgB/ArOKlcnwHdPe32/Uin9LTvvwTph0gv62nbubKnXT+nZ1z/DcjfFF8vQno7uEaxH923BGVXN9v5Zcgvj/VFPIT8Y/H1k0jXxPn1SEfARjBdab8V+TfB22CXUh5xd3OcZTH3g6di1LZJbLNs55q96M9n4J9Gm6hsfzQvcT8fbfy//TyUf8vG4Lses/5jcd2PSE/IcQan4/o/UXYadE0kaoJBMG1ivNbidNbETr1XoWyuplwyHFN0fFai/8/EY7BIKY/68EpCvwP+mc/m/2vNGnBhp1eZ51bCmgsEAoFAIBAIBAKBQKAO3Irfrg3lfc4qi/cXd+Kee5TfvAd6ieY0ie5D2cNx+eNInwZLmu33gWuRn4/8C3H9CNJNYEt8/TrS35HuSPktvRP1z0LPOvAceB4IsB5saIa6UBfqQl2oc123AjwBVjWrP7MCgcC5y/ue/56yqXv87+qcIU2Z+ny8tuHHpyxsvrDNITDXgqkDRJcPdJY/wMo24/oQmDqZaPHkdplAuhv8ApqDRDeCVj/OAvD9BUSX9qF8Qpt7lTxnZ7+5TmVtrGMM7XchP3sS0SNgGzg4yU5HIBAIBM5NfsO5QDgfjuM54STOw7/Az/F3QtfhfF4Qn9F/gxMouxm/WU7F9afBQuUM7+rtPF+jb0b6ese/I7sI+emadhEzUT5bqbsW+esNbSMWoG6hWo/8gOLPUqUu+v5rKEHX8oS6iEXQexd7XlmBe1aCNWAp6kSsYyjHc82Liv2Xkd/C/HkN1w/Geren+KryToa2PtlQg2c9zijGZnGJ9kaibzZh84jmmfx4TeYpK9H3usMKqxnDCWxsdLY/3ygy9h+l/LYbYHtuXw2/rfsSPo0a/Jrn6PvPrzL2+7CmfV88lkc9j+F7cRzYU4N48DF8uA3n/T7Fly9q4Jdvoth0uLf9LORC11hvO/0D6RnQfRa99+2Hr1NS/M26VvfEe2jaWTAOvG8zzgKf8zCrYL++qUEfbumeQAjTVnQp+QmW99gQpDoJ4+9uHZe5/l3OW/M8x6WUZaduUvUc5p13NTXlz3VpGbCVrGNe5zOnjvGlrDWY1IdWShuuQ9fWh6h+VSV1Wit1lvNhHFz1zeUYtCg5ntvOSStDW5cITRnF5RJ+rcasJHExztwu910tl6LzLYsvuvvzilB0mvSaxt/V+SY0EMurfkjbrTjfInf+FJGkNdzSlOukZaDo3snqs7RZpqj2Gx7sS52D5O79k+93W2W/T3NhQxe3VeF16pwn4eI8qev7Sl1s0PnPy5PalSV57Pp6XuDxrypR9wBR8nOCzm/eXuYp5d4s/lV1XvL+lG2b+2AaQ1nPr23Hrc7z0WT5qvZL0v7QtdX5zdu6HMei+gV1ri8et4XSVpCfdeB7fRWNRy79UP0RCT4Jyre/88bbKsQUawUrV69dxjd+nlXxbCKos79pz1BpOqucz0gEdZ5hMk+aa7Wdy/7xZ5Yqhc+nyHivrkyQ/reM7tziuFojfM7zxtq0505XYutvHrtVnzNl2ONrTGdPkLv9ZjNHOoShnCh5nLLYKOKfK4qK7bjx/gqyj9lFJc2Wz/HIqyMSYaGnqM8+xp6vB1/6feg22UmLFUno1rurvelz7yT1UVfORW3L7+d6fMcAXdzxIVK3TNNioZpSyj2242izpky6y5S0fpr6q5ZXJT7O1qrmQRVB+rkQ1Dk3vvYttyGoc+51/mUVkYLtXvTx7MCvbUnzW2czyR8pql4XUlbcN9l1pSfPfOl0JV2bylyKoM4959sHQfr9Vpbk2V8u4ry0ndcvH5I1xggP9qVem/PHZL+qeGLrc945tLnHtG/LEtdjr4urxMpM92X1RZDd+pLtsorUydeCaiuvbtdSpQ9l2M4SU01nvI1e35L3uS5Jlw8pe1ykCKo2JtrGK9O9ujOlimcD6Y9LEWQ+7019d2VDLVPrTCLrsvjsQ1TfJVJM12pZmm5b4Xptx6HM9SpFkP2c6drJa5/iSr+pD7r+CNLvATVfpST1RYog/fwKTdsyxLVNQfnWrkyziGltJK2hLLptzjHXIsh+/HytmyQfpPA5VNtzXWWLzbiVsc9sbWSJ7UWE69KNh6v9kya2c6TzMa0fwpD37TtvQ6wuiw9CA9cny33Mj2pLte9Kp6996HO/83HPQ5r+ov5mvU9Qte/fIrGJP7axPO/9eXX6kjLPKZNd17iyZdOHLP31JSbfXY6hC59c+ZZ136TZ9SFlj6cvmVkSrkSQn3NG5KBqEVSeH6Ji/vvnhFWjSlfFNDwzyMgqLvvKxXffbeASBWo+Zj4p2x6TfwE="}')},71082:e=>{"use strict";e.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);
//# sourceMappingURL=vendor~xpui.js.map