@maestro_io/maestro-web-sdk 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/10.maestro-web-sdk.esm.js +1 -1
- package/dist/10.maestro-web-sdk.esm.js.map +1 -1
- package/dist/11.maestro-web-sdk.esm.js +1 -1
- package/dist/11.maestro-web-sdk.esm.js.map +1 -1
- package/dist/12.maestro-web-sdk.esm.js +1 -1
- package/dist/12.maestro-web-sdk.esm.js.map +1 -1
- package/dist/13.maestro-web-sdk.esm.js +1 -1
- package/dist/13.maestro-web-sdk.esm.js.map +1 -1
- package/dist/14.maestro-web-sdk.esm.js +1 -1
- package/dist/14.maestro-web-sdk.esm.js.map +1 -1
- package/dist/15.maestro-web-sdk.esm.js +1 -1
- package/dist/15.maestro-web-sdk.esm.js.map +1 -1
- package/dist/16.maestro-web-sdk.esm.js +1 -1
- package/dist/16.maestro-web-sdk.esm.js.map +1 -1
- package/dist/17.maestro-web-sdk.esm.js +1 -1
- package/dist/17.maestro-web-sdk.esm.js.map +1 -1
- package/dist/18.maestro-web-sdk.esm.js +1 -1
- package/dist/18.maestro-web-sdk.esm.js.map +1 -1
- package/dist/19.maestro-web-sdk.esm.js +1 -1
- package/dist/19.maestro-web-sdk.esm.js.map +1 -1
- package/dist/20.maestro-web-sdk.esm.js +1 -1
- package/dist/20.maestro-web-sdk.esm.js.map +1 -1
- package/dist/21.maestro-web-sdk.esm.js +1 -1
- package/dist/21.maestro-web-sdk.esm.js.map +1 -1
- package/dist/22.maestro-web-sdk.esm.js +1 -1
- package/dist/22.maestro-web-sdk.esm.js.map +1 -1
- package/dist/23.maestro-web-sdk.esm.js +1 -1
- package/dist/23.maestro-web-sdk.esm.js.map +1 -1
- package/dist/24.maestro-web-sdk.esm.js +1 -1
- package/dist/24.maestro-web-sdk.esm.js.map +1 -1
- package/dist/25.maestro-web-sdk.esm.js +1 -1
- package/dist/25.maestro-web-sdk.esm.js.map +1 -1
- package/dist/26.maestro-web-sdk.esm.js +1 -1
- package/dist/26.maestro-web-sdk.esm.js.map +1 -1
- package/dist/27.maestro-web-sdk.esm.js +1 -1
- package/dist/27.maestro-web-sdk.esm.js.map +1 -1
- package/dist/28.maestro-web-sdk.esm.js +1 -1
- package/dist/28.maestro-web-sdk.esm.js.map +1 -1
- package/dist/29.maestro-web-sdk.esm.js +1 -1
- package/dist/29.maestro-web-sdk.esm.js.map +1 -1
- package/dist/3.maestro-web-sdk.esm.js +1 -1
- package/dist/3.maestro-web-sdk.esm.js.map +1 -1
- package/dist/30.maestro-web-sdk.esm.js +1 -1
- package/dist/30.maestro-web-sdk.esm.js.map +1 -1
- package/dist/31.maestro-web-sdk.esm.js +1 -1
- package/dist/31.maestro-web-sdk.esm.js.map +1 -1
- package/dist/32.maestro-web-sdk.esm.js +1 -1
- package/dist/32.maestro-web-sdk.esm.js.map +1 -1
- package/dist/33.maestro-web-sdk.esm.js +1 -1
- package/dist/33.maestro-web-sdk.esm.js.map +1 -1
- package/dist/34.maestro-web-sdk.esm.js +1 -1
- package/dist/34.maestro-web-sdk.esm.js.map +1 -1
- package/dist/35.maestro-web-sdk.esm.js +1 -1
- package/dist/35.maestro-web-sdk.esm.js.map +1 -1
- package/dist/36.maestro-web-sdk.esm.js +1 -1
- package/dist/36.maestro-web-sdk.esm.js.map +1 -1
- package/dist/37.maestro-web-sdk.esm.js +1 -1
- package/dist/37.maestro-web-sdk.esm.js.map +1 -1
- package/dist/38.maestro-web-sdk.esm.js +1 -1
- package/dist/38.maestro-web-sdk.esm.js.map +1 -1
- package/dist/39.maestro-web-sdk.esm.js +1 -1
- package/dist/39.maestro-web-sdk.esm.js.map +1 -1
- package/dist/6.maestro-web-sdk.esm.js +1 -1
- package/dist/7.maestro-web-sdk.esm.js +1 -1
- package/dist/8.maestro-web-sdk.esm.js +1 -1
- package/dist/8.maestro-web-sdk.esm.js.map +1 -1
- package/dist/9.maestro-web-sdk.esm.js +1 -1
- package/dist/maestro-web-sdk.esm.js +2 -2
- package/dist/maestro-web-sdk.umd.js +2 -2
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/modules/espn/bets/services/BetsService.js +5 -5
- package/dist/src/modules/espn/fantasy/services/FantasyService.js +3 -0
- package/dist/src/modules/espn/fantasy/view/FantasyView.js +2 -1
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.FantasyPolling.d.ts +1 -1
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.FantasyPolling.js +10 -7
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.d.ts +1 -1
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.js +10 -7
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.d.ts +1 -1
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.TournamentPolling.js +10 -7
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.d.ts +1 -0
- package/dist/src/modules/espn/fantasy/view-model/FantasyViewModel.js +42 -32
- package/dist/src/modules/espn/shop/services/ShopService.js +1 -1
- package/dist/src/modules/espn/stats/services/StatsService.js +2 -2
- package/dist/src/modules/fox/multi-view/services/MultiViewService.d.ts +20 -15
- package/dist/src/modules/fox/multi-view/services/MultiViewService.js +6 -3
- package/dist/src/modules/fox/multi-view/types.d.ts +20 -0
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/BuildYourOwn.d.ts +7 -0
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/BuildYourOwn.js +99 -0
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/index.d.ts +2 -0
- package/dist/src/modules/fox/multi-view/view/BuildYourOwn/index.js +2 -0
- package/dist/src/modules/fox/multi-view/view/CuratedMultiview/CuratedMultiviews.js +2 -1
- package/dist/src/modules/fox/multi-view/view/FoxMultiView.js +3 -0
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/BuildYourOwnTabs.d.ts +8 -0
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/BuildYourOwnTabs.js +30 -0
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/index.d.ts +2 -0
- package/dist/src/modules/fox/multi-view/view/components/BuildYourOwnTabs/index.js +2 -0
- package/dist/src/modules/fox/multi-view/view/components/CustomMultiviewStreamsCard/CustomMultiviewStreamsCard.d.ts +2 -6
- package/dist/src/modules/fox/multi-view/view/components/curated-multiview-card/CuratedMultiviewCard.js +27 -7
- package/dist/src/modules/fox/multi-view/view-model/MultiViewViewModel.d.ts +25 -4
- package/dist/src/modules/fox/multi-view/view-model/MultiViewViewModel.js +196 -15
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=function(e){function t(t){for(var n,i,o=t[0],s=t[1],a=0,c=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&c.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({}[e]||e)+".maestro-web-sdk.esm.js"}(e);var l=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var l=s;return i(i.s=8)}([function(e,t){e.exports=require("react")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={ESPN_KEY_PLAYS:"espnKeyPlays",ESPN_STATS:"espnStats",ESPN_BETS:"espnBet",ESPN_FANTASY:"espnFantasy",ESPN_SHOP:"espnShop",HELLO_WORLD:"helloWorld",FOX_KEY_PLAYS:"foxKeyPlays",FOX_MULTI_VIEW:"foxMultiView",FOX_STATS:"foxStats",BUILDER_BLOCK_PANEL:"builderBlockPanel"}},function(e,t,n){"use strict";var r,i=n(38),o=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function h(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=a("Date"),p=a("File"),g=a("Blob"),y=a("FileList");function v(e){return"[object Function]"===o.call(e)}var m=a("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var A,w=(A="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return A&&e instanceof A});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===o.call(e)||v(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:d,isUndefined:c,isDate:f,isFile:p,isBlob:g,isFunction:v,isStream:function(e){return h(e)&&v(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,s={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)s[o=r[i]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e){r(this,"listeners",[]),r(this,"_value",void 0),this._value=e}get value(){return this._value}set value(e){this._value=e,this.notify()}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e(this._value))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9);const i=[/bbd-web-sdk\.us-central1-dev\.gcp\.maestro\.io/];let o=null,s=[],a=!1;const l=async()=>{if(!o&&!a){0,a=!0;try{const{BrowserClient:e,defaultStackParser:t,defaultIntegrations:l,makeFetchTransport:c}=await n.e(2).then(n.bind(null,99)),u=null!==i.find(e=>e.test(window.location.href));o=new e({dsn:"https://91444a71cbaefc62e8dc813f22bad3bf@o4506894189330432.ingest.us.sentry.io/4509946717470720",transport:c,stackParser:t,integrations:l.filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name)),tracesSampleRate:u?1:.1,release:r.version,environment:u?"development":"production",enabled:!/localhost/.test(window.location.href)}),s.forEach(({error:e,extra:t})=>{var n;null===(n=o)||void 0===n||n.captureException(e,t)}),s=[]}catch(e){console.error("[maestro-web-sdk] Failed to load Sentry:",e)}finally{a=!1}}},c=(e,t)=>{o?o.captureException(e,t):(s.push({error:e,extra:t}),l())}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:y(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function y(e,t){var n,r,i;if(t.singleton){var o=g++;n=p||(p=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=o}}}},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(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,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var t=r(e,4),n=t[1],i=t[3];if(!i)return n;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),a="/*# ".concat(s," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([a]).join("\n")}return[n].join("\n")}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ActionTrackEvent",(function(){})),n.d(t,"ImpressionTrackEvent",(function(){})),n.d(t,"Metadata",(function(){})),n.d(t,"PanelClickAction",(function(){})),n.d(t,"PanelViewAction",(function(){})),n.d(t,"PanelEvent",(function(){return c.PanelEvent})),n.d(t,"IMaestroEventDelegate",(function(){return u.a})),n.d(t,"IMaestroEvent",(function(){return f.a})),n.d(t,"IMaestroKeyPlaysResponse",(function(){return _.a})),n.d(t,"MaestroPanelType",(function(){return m.a})),n.d(t,"SDKEventConfigParams",(function(){return h.SDKEventConfigParams})),n.d(t,"SDKStopEventParams",(function(){return h.SDKStopEventParams})),n.d(t,"IUserSettings",(function(){return L.IUserSettings})),n.d(t,"DEFAULT_USER_SETTINGS",(function(){return L.a}));var r=n(0),i=n.n(r),o=n(14),s=n.n(o);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{constructor(){a(this,"renderersMap",new Map)}async renderPanel(e){if(this.renderersMap.has(e)){this.renderersMap.get(e).unmount(),this.renderersMap.delete(e)}const t=await this.getRenderer(e),r=n(76).default,o=n(75).default;return t.render(i.a.createElement(r,null,i.a.createElement(o,null))),()=>{this.renderersMap.has(e)&&this.renderersMap.get(e)===t&&(t.unmount(),this.renderersMap.delete(e))}}async getRenderer(e){if(this.renderersMap.has(e))return this.renderersMap.get(e);const t=document.getElementById(e);if(!t)throw new Error(`Element with id ${e} not found`);const n={render:e=>{s.a.render(e,t)},unmount:()=>{s.a.unmountComponentAtNode(t),t.innerHTML=""}};return this.renderersMap.set(e,n),n}},c=n(19),u=n.n(c),h=n(20),d=n(36),f=n.n(d),p=n(3),g=n(34),y=n(18),v=n(10),m=n(1);function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class A{getAvailablePanelsFromConfig(){const e=V.getPageConfig();return e&&Array.isArray(e.panels)&&e.panels.length>0?e.panels.filter(e=>{var t,n;return!1!==(null===(t=e.renderer)||void 0===t||null===(n=t.supported_platforms)||void 0===n?void 0:n.bbd)}).map(e=>{const t=e.panel_type;return t&&Object.values(m.a).includes(t)?{type:t,title:e.panel_name||""}:null}).filter(e=>null!==e):[]}constructor(){b(this,"_panels",new p.a([])),b(this,"_currentPanel",new p.a(null)),b(this,"settingsManager",void 0),b(this,"settingsUnsubscribe",null),this.settingsManager=v.a.getInstance(),this.initializePanels(),this.subscribeToSettingsChanges()}initializePanels(){const e=this.filterPanels(),t=V.getIsProdEnv();e.length||t?this._panels.value=e:this._panels.value=[{type:"helloWorld",title:"HELLO WORLD"}],this.updateActivePanel()}subscribeToSettingsChanges(){this.settingsUnsubscribe=this.settingsManager.settings.subscribe(()=>{this.updatePanelsBasedOnSettings()})}filterPanels(){return this.getAvailablePanelsFromConfig().filter(e=>!this.settingsManager.isPanelHidden(e.type))}updateActivePanel(){!this.currentPanel&&this.panels[0]&&(this.currentPanel=this.panels[0].type),this.panels.length>0&&this._currentPanel.value&&!this.panels.find(e=>e.type===this._currentPanel.value)&&(this._currentPanel.value=this.panels[0].type)}updatePanelsBasedOnSettings(){const e=this.filterPanels();this._panels.value=e,this.updateActivePanel()}cleanup(){this.settingsUnsubscribe&&(this.settingsUnsubscribe(),this.settingsUnsubscribe=null)}get panels(){return this._panels.value}get panelsObservable(){return this._panels}get currentPanel(){return this._currentPanel.value}set currentPanel(e){this._currentPanel.value=e}get currentPanelObservable(){return this._currentPanel}setActivePanel(e){e!==this.currentPanel&&void 0!==this.panels.find(t=>t.type===e)&&(this.currentPanel=e,this.updateActivePanel())}getIndex(e){const t=this.panels.findIndex(t=>t.type===e);return-1!==t?t:null}getPanelType(e){var t;return(null===(t=this.panels[e])||void 0===t?void 0:t.type)||null}get panelTypeToLeft(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||0===e?null:this.getPanelType(e-1)}get panelTypeToRight(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||e===this.panels.length-1?null:this.getPanelType(e+1)}getUnlistedPanels(){const e=V.getPageConfig();return e&&Array.isArray(e.panels)?e.panels.filter(e=>!!e.panel_type&&!Object.values(m.a).includes(e.panel_type)).map(e=>({type:e.panel_type,title:e.panel_name||""})):[]}}var w=n(11),E=n(4),C=n(35);function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S={"664b9c57d59a7a431542d814":"https://static-prod.us-central1-espn-prod.gcp.maestro.io","6930c214fcb9633b5484de81":"https://static-prod.us-central1-espn-prod.gcp.maestro.io","695c05610f99e7584a1b7407":"https://static-prod.us-central1-fox-prod.gcp.maestro.io"};var k=class{constructor(e){P(this,"configObservable",new p.a(null)),P(this,"client",void 0);const t=S[e]||"https://static.gcp.maestro.io";this.client=new C.b({externalNetworkClient:new w.a({backoff:2,baseURL:t,delay:1e3,retries:5})})}async fetchPageConfigByMetadata(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/metadata/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,metadataValue:t}),console.error(`Failed to fetch page configuration for site ${e} and metadata value: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}fetchPageConfig({siteId:e,metadataValue:t,pageId:n}){return n?this.fetchPageConfigById(e,n):t?this.fetchPageConfigByMetadata(e,t):Promise.resolve(null)}async fetchPageConfigById(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/pages/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,pageId:t}),console.error(`Failed to fetch page configuration for site ${e} and page ID: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}static isPanelAvailable(e,t){var n;return null==e||null===(n=e.panels)||void 0===n?void 0:n.some(e=>{var n,r;return e.panel_type===t&&!1!==(null===(n=e.renderer)||void 0===n||null===(r=n.supported_platforms)||void 0===r?void 0:r.bbd)})}pollGlobalConfig(e){const t=24e4+Math.floor(12e4*Math.random());return this.client.pollExternalApiRequest({endpoint:"/config/global.json",interval:t,onData:e,onError:e=>{Object(E.a)(e,{context:"StaticService.pollGlobalConfig"}),console.error("Failed to poll global configuration",e instanceof Error?e.message:String(e))}})}};function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends g.a{constructor(e="",t="",n,r){super(),B(this,"_eventId",new p.a("")),B(this,"_pageId",new p.a("")),B(this,"_title",new p.a("")),B(this,"_isLive",new p.a(!1)),B(this,"_isShowingPanel",new p.a(!1)),B(this,"playerTimeCode",null),B(this,"analyticsService",void 0),B(this,"delegate",void 0),B(this,"keyPlaysViewModel",null),B(this,"fantasyViewModel",null),B(this,"betsViewModel",null),B(this,"statsViewModel",null),B(this,"shopViewModel",null),B(this,"builderPanelViewModel",null),B(this,"multiViewViewModel",null),B(this,"panelManagerViewModel",void 0),B(this,"navigation",void 0),this._pageId.value=t,this._eventId.value=e,this.delegate=n,this.analyticsService=r,this.panelManagerViewModel=new A,this.navigation=new y.b}async initViewModels(){const e=V.getPageConfig(),t=[];if(k.isPanelAvailable(e,"espnKeyPlays")&&t.push(n.e(15).then(n.bind(null,234)).then(({default:e})=>{this.keyPlaysViewModel=new e(this.analyticsService)}).catch(e=>{console.warn("Failed to load KeyPlaysViewModel:",e)})),k.isPanelAvailable(e,"espnBet")&&t.push(n.e(12).then(n.bind(null,246)).then(({default:e})=>{this.betsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load BetsViewModel:",e)})),k.isPanelAvailable(e,"espnStats")&&t.push(n.e(10).then(n.bind(null,243)).then(({default:e})=>{this.statsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load StatsViewModel:",e)})),k.isPanelAvailable(e,"espnFantasy")&&t.push(n.e(13).then(n.bind(null,241)).then(({default:e})=>{this.fantasyViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load FantasyViewModel:",e)})),k.isPanelAvailable(e,"espnShop")&&t.push(n.e(11).then(n.bind(null,244)).then(({default:e})=>{this.shopViewModel=new e(this._eventId.value,this.analyticsService)}).catch(e=>{console.warn("Failed to load ShopViewModel:",e)})),k.isPanelAvailable(e,"foxMultiView")&&t.push(n.e(39).then(n.bind(null,247)).then(({MultiViewViewModel:e})=>{this.multiViewViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load MultiViewViewModel:",e)})),k.isPanelAvailable(e,"builderBlockPanel")){var r;const i=null==e||null===(r=e.panels)||void 0===r?void 0:r.find(e=>"builderBlockPanel"===e.panel_type);i&&t.push(n.e(14).then(n.bind(null,125)).then(({BuilderPanelViewModel:e})=>{this.builderPanelViewModel=new e(i,this.analyticsService)}).catch(e=>{console.warn("Failed to load BuilderPanelViewModel:",e)}))}await Promise.all(t)}setActivePanel(e){const t=this.panelManagerViewModel.getIndex(e);null!==t?this.navigation.paused?(this.panelManagerViewModel.setActivePanel(e),this.navigation.focusKey="PANEL_NAV_BUTTON_"+t):console.warn("Cannot set active panel while navigation is not paused. Doing so will cause focus issues."):console.warn(`Panel type "${e}" not found.`)}updatePlayerTimeCode(e){var t,n;const r=new Date(e);if(isNaN(r.getTime()))return console.warn("Invalid timestamp provided:",e),void console.warn("Make sure the timestamp is a valid number. \nhttps://developers.maestro.io/sdk/web/maestro-event-interface/state/updatePlayerTimeCode");this.playerTimeCode=e,null===(t=this.keyPlaysViewModel)||void 0===t||t.onUpdatePlayerTimeCode(this.playerTimeCode),null===(n=this.statsViewModel)||void 0===n||n.onUpdatePlayerTimeCode(this.playerTimeCode)}getPlayerTimeCode(){return this.playerTimeCode}setDataToPanel(e){const t=Object.keys(e),n={espnStats:this.statsViewModel,espnBet:this.betsViewModel,espnKeyPlays:this.keyPlaysViewModel,espnFantasy:this.fantasyViewModel,espnShop:this.shopViewModel,builderBlockPanel:this.builderPanelViewModel,foxKeyPlays:null,foxMultiView:this.multiViewViewModel,foxStats:null,helloWorld:null};for(const r of t){const t=e[r];if(!t)continue;const i=n[r];i?i.setDataToPanel&&i.setDataToPanel(t):console.log(`[setDataToPanel] Panel '${r}' not initialized/supported. Data ignored.`)}}async deinit(){var e,t,n,r,i,o;null===(e=this.betsViewModel)||void 0===e||e.cleanup(),null===(t=this.statsViewModel)||void 0===t||t.cleanup(),null===(n=this.fantasyViewModel)||void 0===n||n.cleanup(),null===(r=this.shopViewModel)||void 0===r||r.cleanup(),null===(i=this.builderPanelViewModel)||void 0===i||i.cleanup(),null===(o=this.multiViewViewModel)||void 0===o||o.cleanup(),this.navigation.destroy();try{await this.didHidePanel()}catch(e){console.error("Error during didHidePanel in deinit:",e)}}updateKeyPlaysData(e){return this.keyPlaysViewModel?this.keyPlaysViewModel.setKeyPlays(e,this.playerTimeCode):Promise.resolve()}updateUserSettings(e){return new Promise(t=>{v.a.getInstance().updateSettings(e),t()})}startFocusManagement(){return this.navigation.setCurrentFocusedKey(this.navigation.focusKey||"PANEL_NAV_BUTTON_0"),setTimeout(()=>{this.navigation.resume()},0),Promise.resolve()}didStartPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=e,this.keyPlaysViewModel.clearLoadFailureStatus(e))}didStopPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null)}didFailToPlayClip(e){var t;null===(t=this.keyPlaysViewModel)||void 0===t||t.handleKeyPlayLoadFailure(e)}didUpdatePlaybackProgressOfClip(e,t){this.keyPlaysViewModel&&(this.keyPlaysViewModel.currentClipPlaybackProgress.value=t,this.keyPlaysViewModel.clearLoadFailureStatus(e))}async didShowPanel(){this.isShowingPanel=!0}async didHidePanel(){this.isShowingPanel=!1,this.navigation.focusKey=null}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel&&(this.keyPlaysViewModel.errorState.value="unsupportedEvent")}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentlyPlayingClipIndex.value)&&void 0!==e?e:null}getLastPlayedClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.lastPlayedClipIndex.value)&&void 0!==e?e:null}getCurrentClipPlaybackProgress(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentClipPlaybackProgress.value)&&void 0!==e?e:null}getKeyPlaysCount(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.allItems.length)&&void 0!==e?e:0}get eventId(){return this._eventId}get title(){return this._title}get isLive(){return this._isLive}get isShowingPanel(){return this._isShowingPanel.value}set isShowingPanel(e){this._isShowingPanel.value=e}deliverFocus(){this.navigation.pause(),this.delegate.startFocusManagement()}}var T=n(37),_=n.n(T);function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class F{constructor(){O(this,"client",void 0),this.client=new w.a({baseURL:"https://insights.maestro.io",backoff:2,delay:1e3,retries:1})}isEnabled(){var e,t,n;const r=V.getGlobalConfig();return null===(e=null==r||null===(t=r.bbd)||void 0===t||null===(n=t.analytics)||void 0===n?void 0:n.enabled)||void 0===e||e}async action(e){if(this.isEnabled())try{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))null!=r&&t.append(n,r.toString());await this.client.post("/action",t,void 0,{"Content-Type":"application/x-www-form-urlencoded"})}catch(t){Object(E.a)(t,{payload:e}),console.error("Failed to send insights action:",t)}else console.warn("InsightsService: Analytics is disabled in global config")}async getServerTime(){if(!this.isEnabled())return{time:Date.now(),diff:0};const e=Date.now();try{return await this.client.get("/time",{_:`${Date.now()}-${this.randomId()}`,client_time:e})}catch(e){return Object(E.a)(e),console.error("Failed to get server time:",e),{time:Date.now(),diff:0}}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}}var M=n(17);function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class j{constructor(){R(this,"currentTime",0),R(this,"serverOffsetTime",0),R(this,"insightsService",void 0),R(this,"cacheManager",void 0),R(this,"pageConfig",null),this.insightsService=new F,this.cacheManager=new M.a}async getPayload(e){return this.currentTime=Date.now(),this.serverOffsetTime=await this.getDeviceOffset(),this.pageConfig=V.getPageConfig(),{...this.getPageInsights(),...this.getDeviceInsights(),...this.getInsightsInsights(),...this.getMetadataInsights(),...this.getReferrerInsights(),...this.getSessionInsights(),...this.getSiteInsights(),...this.getUserInsights(),...this.getEventInsights(e)}}getEventInsights(e){const t=e.ontology;return{e_d:"maestro",e_m:Object.values(e.metadata||{}).length>0?JSON.stringify(e.metadata):null,e_t:this.currentTime+this.serverOffsetTime,e_u:window.location.href,e0:t.kingdom,e1:t.phylum,e2:t.class,e3:t.order,e4:t.family,e5:t.genus,e6:t.species,t:this.currentTime}}getPageInsights(){const e=V.getPageConfig();return{p_c:"pages",p_id:null==e?void 0:e.page._id,p_n:null==e?void 0:e.page.name,p_s:null==e?void 0:e.page.slug,p_t:null==e?void 0:e.page.type}}getDevicePermanentID(){const e=localStorage.getItem("mio:device:permanentId");if(e)return e;const t=this.randomId();return localStorage.setItem("mio:device:permanentId",t),t}getDeviceCreated(){const e=this.cacheManager.getCache("mio:device:created");if(e)return Number(e);const t=(new Date).getTime();return this.cacheManager.setCache("mio:device:created",t.toString()),t}getTabID(){const e=sessionStorage.getItem("mio:device:tabId");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:device:tabId",t),t}getDeviceInsights(){return{d_ct:this.getDeviceCreated(),d_nd:!1,d_np:window.navigator.platform,d_pid:this.getDevicePermanentID(),d_sh:window.screen.height,d_sw:window.screen.width,d_tid:this.getTabID(),d_tim:this.currentTime,d_tof:this.serverOffsetTime,d_ua:window.navigator.userAgent}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}async getDeviceOffset(){const e=Date.now(),{diff:t,time:n}=await this.insightsService.getServerTime(),r=Date.now();return(t-(r-e)-(r-n))/2}getInsightsInsights(){var e;return{i_id:null===(e=this.pageConfig)||void 0===e?void 0:e.insights._id}}getMetadataInsights(){return{m_iv:"1.00.0"}}getReferrerInsights(){return{r_d:"$direct",r_s:null,r_u:"$direct"}}getSessionID(){const e=sessionStorage.getItem("mio:session:id");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:session:id",t),t}getSessionInsights(){return{se_id:this.getSessionID(),se_s:this.currentTime}}getSiteInsights(){var e,t,n,r,i;return{si_d:null===(e=this.pageConfig)||void 0===e?void 0:e.site.domainUrl,si_id:null===(t=this.pageConfig)||void 0===t?void 0:t.site._id,si_pid:(null===(n=this.pageConfig)||void 0===n?void 0:n.site.package.id)+"-sapphire",si_pv:(null===(r=this.pageConfig)||void 0===r?void 0:r.site.package.version)+"-sapphire",si_s:null===(i=this.pageConfig)||void 0===i?void 0:i.site.slug}}getUserInsights(){return{u_a:null,u_c:null,u_e:null,u_id:null,u_li:!1,u_n:null,u_nu:!1,u_s:null,u_u:null,u_un:null}}}var I=n(9);function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=class{constructor(){N(this,"insightsService",void 0),N(this,"insightsPayloadBuilder",void 0),N(this,"SDKSessionId",""),N(this,"pageSessionId",""),N(this,"pinchBackSessionId",""),N(this,"pageSessionBeaconTimeoutId",null),N(this,"isPageSessionBeaconRunning",!1),N(this,"isPageSessionActive",!1),this.insightsService=new F,this.insightsPayloadBuilder=new j}async trackAction(e){V.getMaestroEventViewModel().delegate.trackAction(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{class:e.e2_class,family:e.e4_family,order:e.e3_order,kingdom:e.e0_kingdom,phylum:e.e1_phylum,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async trackImpression(e){V.getMaestroEventViewModel().delegate.trackImpression(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:e.e0_kingdom,phylum:e.e1_phylum,class:e.e2_class,order:e.e3_order,family:e.e4_family,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async panelView(e,t){const n=V.getPageConfig(),r=this.getPanelDataFromPageConfig(e,n);await this.trackImpression({name:"panel_selected",e0_kingdom:"panel",e1_phylum:"view",e2_class:r.panel_type,e3_order:r.panel_id,e4_family:r.panel_name,metadata:{...t||{},...this.getBaseMetadataFromPageConfig(n)}})}async panelClick({type:e,metadata:t,name:n}){const r=V.getPageConfig(),i=this.getPanelDataFromPageConfig(e,r);await this.trackAction({name:n,e0_kingdom:"panel",e1_phylum:"engage",e2_class:i.panel_type,e3_order:i.panel_id,e4_family:i.panel_name,metadata:{...this.getBaseMetadataFromPageConfig(r),...t}})}getBaseMetadataFromPageConfig(e){if(!e)return console.warn("Page Config not found. Could not extract metadata."),{league:"",airing:"",event:"",sport:""};const t=e.page.metadata,n="airing"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"",r="event"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"unknown",i=(null==t?void 0:t.external_field_2)||"";return{league:(null==t?void 0:t.external_field_3)||"",airing:n,event:r,sport:i}}getPanelDataFromPageConfig(e,t){if(!t)return console.warn("Page Config not found. Could not extract panel data."),{panel_id:"",panel_name:"",panel_type:""};const n=t.panels.find(t=>t.panel_type===e);return n?{panel_id:n._id,panel_name:n.panel_name||"",panel_type:n.panel_type||""}:(console.warn(`Panel of type ${e} not found in Page Config.`),{panel_id:"",panel_name:"",panel_type:""})}async SDKSessionStart(){try{this.SDKSessionId=Math.random().toString(36).substring(2,15);const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to start SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionStart"})}}async pageSessionStart(){try{this.pageSessionId=Math.random().toString(36).substring(2,15),this.isPageSessionActive=!0;const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});await this.insightsService.action(n),this.scheduleNextBeacon()}catch(e){console.error("Failed to start page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionStart"})}}async pageSessionEnd(){try{this.isPageSessionActive=!1;const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});console.log("AnalyticsService: pageSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionEnd"})}finally{this.pageSessionBeaconTimeoutId&&(clearTimeout(this.pageSessionBeaconTimeoutId),this.pageSessionBeaconTimeoutId=null),this.pageSessionId=""}}async pinchBackSessionStart(){try{this.pinchBackSessionId=Math.random().toString(36).substring(2,15);const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(n)}catch(e){console.error("Failed to start pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionStart"})}}async pinchBackSessionEnd(){try{const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});console.log("AnalyticsService: pinchBackSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionEnd"})}finally{this.pinchBackSessionId=""}}async SDKSessionEnd(){try{const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to end SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionEnd"})}finally{this.SDKSessionId=""}}scheduleNextBeacon(){var e,t;if(!this.isPageSessionActive)return;const n=V.getGlobalConfig(),r=(null==n||null===(e=n.bbd)||void 0===e||null===(t=e.analytics)||void 0===t?void 0:t.beacon_interval)||240;this.pageSessionBeaconTimeoutId=setTimeout(async()=>{await this.sendSessionBeacon()},1e3*r)}async sendSessionBeacon(){if(!this.isPageSessionBeaconRunning&&this.isPageSessionActive){this.isPageSessionBeaconRunning=!0;try{await this.sessionBeacon()}catch(e){console.error("Failed to send session beacon: "+e),Object(E.a)(e,{context:"AnalyticsService.sendSessionBeacon",SDKSessionId:this.SDKSessionId,pageSessionId:this.pageSessionId})}finally{this.isPageSessionBeaconRunning=!1,this.isPageSessionActive&&this.scheduleNextBeacon()}}}async sessionBeacon(){const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"beacon",class:"frequent"},metadata:{paywall_gated:!1,viewer_id:this.insightsPayloadBuilder.getDevicePermanentID(),is_billable:!1,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(e)}},L=n(13);function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class U{constructor(e){K(this,"renderer",void 0),K(this,"siteID",""),K(this,"maestroEventViewModel",null),K(this,"pageConfig",null),K(this,"globalConfig",null),K(this,"globalConfigPoller",null),K(this,"_analyticsService",null),K(this,"isProdEnv",!0),K(this,"activePanelUnmountFn",null),this.renderer=e}get analyticsService(){return this._analyticsService||(this._analyticsService=new D),this._analyticsService}static getInstance(){if(!U.instance){const e=new l;U.instance=new U(e)}return U.instance}async userDidStartWatchingEvent({eventId:e,pageId:t,userSettings:n,delegate:r,useProdEnv:i=!0}){this.isProdEnv=i;const o=this.getSiteID();if(!o||""===o.trim())throw new Error("siteID must be set before calling userDidStartWatchingEvent.");if(!e&&!t)throw new Error("Either eventId or pageId must be provided to load the page configuration.");const s=new k(o);if(this.pageConfig=await s.fetchPageConfig({siteId:o,metadataValue:e,pageId:t}),!this.pageConfig)throw new Error(`Could not determine page configuration for siteId: ${o}, pageId: ${t} and eventId: ${e}.`);return this.globalConfigPoller=s.pollGlobalConfig(e=>{this.globalConfig=e}),n&&v.a.getInstance().updateSettings(n),await this.analyticsService.SDKSessionStart(),this.maestroEventViewModel=new x(e,t,r,this.analyticsService),await this.maestroEventViewModel.initViewModels(),await this.analyticsService.pageSessionStart(),this.maestroEventViewModel}async userDidStopWatchingEvent(e){this.activePanelUnmountFn&&await this.activePanelUnmountFn(),await this.analyticsService.pageSessionEnd(),this.maestroEventViewModel&&(await this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null),await this.analyticsService.SDKSessionEnd(),this.globalConfigPoller&&(this.globalConfigPoller.stop(),this.globalConfigPoller=null)}configure(e){this.setSiteID(e.siteID),e.userSettings&&v.a.getInstance().updateSettings(e.userSettings),console.info("MaestroWebSDK configured",e)}setSiteID(e){if(!e||""===e.trim())throw new Error("Site ID must be provided");this.siteID=e}getSiteID(){return this.siteID}getIsProdEnv(){return this.isProdEnv}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}async renderPanel(e){await this.analyticsService.pinchBackSessionStart();const t=await this.renderer.renderPanel(e);let n=!1;const r=async()=>{n||(n=!0,t(),await this.analyticsService.pinchBackSessionEnd(),this.activePanelUnmountFn===r&&(this.activePanelUnmountFn=null))};return this.activePanelUnmountFn=r,r}getPageConfig(){return this.pageConfig}getGlobalConfig(){return this.globalConfig}}K(U,"instance",void 0);const H=U.getInstance();var V=t.default=H},function(e){e.exports=JSON.parse('{"name":"@maestro_io/maestro-web-sdk","private":false,"version":"5.2.0","type":"commonjs","license":"MIT","main":"dist/maestro-web-sdk.umd.js","module":"dist/maestro-web-sdk.esm.js","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"import":"./dist/maestro-web-sdk.esm.js","require":"./dist/maestro-web-sdk.umd.js","types":"./dist/index.d.ts"}},"sideEffects":["*.css"],"engines":{"node":">=10"},"scripts":{"dev":"nodemon","sdk-only":"webpack-dev-server --config webpack/webpack.dev.js","lint":"eslint src --ext .ts,.tsx --ignore-pattern \'**/*.test.*\'","test":"jest","build":"webpack --config webpack/webpack.prod.js && tsc --emitDeclarationOnly --declarationDir dist/types && dts-bundle --name @maestro_io/maestro-web-sdk --main dist/types/src/index.d.ts --out ../../index.d.ts && rm -rf dist/types","types":"tsc -b","analyze":"ANALYZE=true webpack --config webpack/webpack.prod.js","format":"prettier --write .","format:check":"prettier --check ."},"devDependencies":{"@babel/core":"7.12.3","@babel/plugin-proposal-class-properties":"7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"7.12.1","@babel/preset-react":"7.12.1","@babel/preset-typescript":"7.12.1","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"24.0.25","@types/node":"10","@types/prop-types":"^15.7.10","@types/react":"16.14.34","@types/react-dom":"16.9.18","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","babel-jest":"26.6.3","babel-loader":"8","css-loader":"5","dts-bundle":"^0.7.3","enzyme":"3.11.0","enzyme-adapter-react-16":"1.15.7","eslint":"6.8.0","eslint-config-prettier":"6.0.0","eslint-plugin-react":"7.20.0","file-loader":"^6.2.0","globals":"^10","html-webpack-plugin":"4","husky":"^6.0.0","identity-obj-proxy":"^3.0.0","jest":"26.6.3","nodemon":"^3.1.9","prettier":"2.0.5","react-test-renderer":"16.14.0","style-loader":"2","tsconfig-paths-webpack-plugin":"^4.2.0","typescript":"^4","webpack":"4","webpack-bundle-analyzer":"3.9.0","webpack-cli":"3.3.12","webpack-dev-server":"3.11.2"},"dependencies":{"@sentry/browser":"7.68.0","axios":"^0.27.2","prop-types":"15.8.1","react":"16.14.0","react-dom":"16.14.0"},"peerDependencies":{"react":"^16.0.0","react-dom":"^16.0.0"},"resolutions":{"sockjs-client":"1.5.1","cheerio":"0.22.0","@sentry/replay":"0.6.14"}}')},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),i=n(13),o=n(1);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={[o.a.ESPN_BETS]:"bets",[o.a.ESPN_STATS]:"stats",[o.a.ESPN_KEY_PLAYS]:"keyPlays",[o.a.ESPN_FANTASY]:"fantasy",[o.a.ESPN_SHOP]:"shop"};class l{constructor(){s(this,"_settings",void 0),this._settings=new r.a(i.a)}static getInstance(){return l.instance||(l.instance=new l),l.instance}get settings(){return this._settings}getCurrentSettings(){return this._settings.value}updateSettings(e){if(!this.validateSettings(e))return void console.warn("Invalid user settings provided, using default setting");const t=this.mergeSettings(this._settings.value,e);this._settings.value=t}getPanelSettings(e){var t;return null===(t=this._settings.value.panels)||void 0===t?void 0:t[e]}isPanelHidden(e){const t=this.mapPanelTypeToSettingsKey(e);if(!t)return!1;const n=this.getPanelSettings(t);return!0===(null==n?void 0:n.hidePanel)}shouldHideWagers(){const e=this.getPanelSettings("bets");return!0===(null==e?void 0:e.hideWagers)}resetToDefaults(){this._settings.value=i.a}validateSettings(e){if(!e||"object"!=typeof e)return!1;if(e.panels&&"object"!=typeof e.panels)return!1;if(e.panels)for(const[t,n]of Object.entries(e.panels)){if(n&&"object"!=typeof n)return!1;if(n)for(const[e,r]of Object.entries(n))if(void 0!==r&&"boolean"!=typeof r)return console.warn(`Invalid setting value for ${t}.${e}: expected boolean, got ${typeof r}`),!1}return!0}mergeSettings(e,t){const n={panels:{...e.panels}};if(t.panels)for(const[e,r]of Object.entries(t.panels))if(r){const t={...n.panels[e]};for(const[e,n]of Object.entries(r))void 0!==n&&(t[e]=n);n.panels[e]=t}return n}mapPanelTypeToSettingsKey(e){return e in a?a[e]:null}}s(l,"instance",void 0)},function(e,t,n){"use strict";var r=n(47),i=n.n(r);function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=class{constructor({baseURL:e,retries:t,delay:n,backoff:r,axiosInstance:s}){o(this,"client",void 0),o(this,"retries",void 0),o(this,"delay",void 0),o(this,"backoff",void 0),this.retries=t,this.delay=n,this.backoff=r,this.client=s||i.a.create({baseURL:e,headers:{"Content-Type":"application/json"},timeout:5e3})}async retry(e,t=0){try{return await e()}catch(n){const r=n;if(t<this.retries&&(r.response&&429===r.response.status||"ECONNABORTED"===r.code)){const n=this.delay*Math.pow(this.backoff,t);return console.log(`Retrying request in ${n}ms due to: ${r.message}`),await new Promise(e=>setTimeout(e,n)),this.retry(e,t+1)}throw n}}async get(e,t,n){return this.retry(async()=>(await this.client.get(e,{params:t,headers:n})).data)}async getWithHeaders(e,t,n){return this.retry(async()=>{const r=await this.client.get(e,{params:t,headers:n});return{data:r.data,headers:r.headers}})}async post(e,t,n,r){return this.retry(async()=>(await this.client.post(e,t,{params:n,headers:r})).data)}async postWithHeaders(e,t,n,r){return this.retry(async()=>{const i=await this.client.post(e,t,{params:n,headers:r});return{data:i.data,headers:i.headers}})}setAuthentication(e,t){this.client.defaults.headers.common.Authorization=e?"Bearer "+e:"",this.client.defaults.headers.common["x-maestro-api-key"]=t||""}}},function(e,t,n){"use strict";var r=n(2);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,s,a,l){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,s,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={panels:{bets:{hidePanel:!1,hideWagers:!1},stats:{hidePanel:!1},keyPlays:{hidePanel:!1},fantasy:{hidePanel:!1}}}},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return l}));class i extends Error{constructor(e){super(e),this.name="NetworkError"}}class o extends Error{constructor(e,t,n){super(t),r(this,"statusCode",void 0),r(this,"data",void 0),this.name="AuthError",this.statusCode=e,this.data=n}}class s extends Error{constructor(e){super(e),this.name="NotFoundError"}}class a extends Error{constructor(e,t){super(t),r(this,"statusCode",void 0),this.name="ServerError",this.statusCode=e}}class l extends Error{constructor(e,t){super(t),r(this,"statusCode",void 0),this.name="BadRequestError",this.statusCode=e}}},function(e,t,n){"use strict";var r=n(12);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(2).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e=36e5,t=5242880,n="1.0"){r(this,"prefix","maestro-cache-"),r(this,"cacheDuration",void 0),r(this,"maxSize",void 0),r(this,"version",void 0),r(this,"accessLog",void 0),this.cacheDuration=e,this.maxSize=t,this.version=n,this.accessLog=new Map}produceCacheKey(e){return`${this.prefix}${this.version}:${e}`}getCurrentSize(){let e=0;for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);if(null!=n&&n.startsWith(this.prefix)){const t=localStorage.getItem(n);t&&(e+=n.length+t.length)}}return e}cleanupOldEntries(){const e=Date.now(),t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(null!=r&&r.startsWith(this.prefix)){const n=localStorage.getItem(r);if(n)try{const{timestamp:i}=JSON.parse(n);e-i>this.cacheDuration&&t.push(r)}catch(e){t.push(r)}}}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}cleanupLRUEntries(e){const t=Array.from(this.accessLog.entries()).sort(([,e],[,t])=>e-t);for(;this.getCurrentSize()+e>this.maxSize&&t.length>0;){const[e]=t.shift();localStorage.removeItem(this.produceCacheKey(e)),this.accessLog.delete(e)}}setCache(e,t){this.cleanupOldEntries();const n=this.produceCacheKey(e),r={data:t,timestamp:Date.now()},i=n.length+JSON.stringify(r).length;this.cleanupLRUEntries(i),this.getCurrentSize()+i>this.maxSize||(localStorage.setItem(n,JSON.stringify(r)),this.accessLog.set(e,Date.now()))}getCache(e){this.cleanupOldEntries();const t=this.produceCacheKey(e),n=localStorage.getItem(t);if(!n)return null;try{const{data:r,timestamp:i}=JSON.parse(n),o=Date.now();return o-i>this.cacheDuration?(localStorage.removeItem(t),this.accessLog.delete(e),null):(this.accessLog.set(e,o),r)}catch(n){return localStorage.removeItem(t),this.accessLog.delete(e),null}}clearCache(e){const t=this.produceCacheKey(e);localStorage.removeItem(t),this.accessLog.delete(e)}clearCacheByPattern(e){const t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);null!=r&&r.startsWith(this.prefix)&&r.includes(e)&&t.push(r)}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}clearAllCache(){const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);null!=n&&n.startsWith(this.prefix)&&e.push(n)}e.forEach(e=>localStorage.removeItem(e)),this.accessLog.clear()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));const r=e=>{let{offsetParent:t}=e;const n=e.offsetHeight,r=e.offsetWidth;let i=e.offsetLeft,o=e.offsetTop;for(;t&&1===t.nodeType;)i+=t.offsetLeft-t.scrollLeft,o+=t.offsetTop-t.scrollTop,({offsetParent:t}=t);return{height:n,left:i,top:o,width:r}};var i=(e,t)=>{const n=e&&e.parentNode;if(n){const i=r(n),{height:o,left:s,top:a,width:l}=r(e);t(s-i.left,a-i.top,l,o,s,a)}};function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s="undefined"!=typeof window&&window.document,a=s?window.innerWidth:0,l=s?window.innerHeight:0;class c{constructor(){o(this,"debugCtx",void 0),o(this,"layoutsCtx",void 0),s?(this.debugCtx=c.createCanvas("sn-debug",1010),this.layoutsCtx=c.createCanvas("sn-layouts",1e3)):(this.debugCtx=null,this.layoutsCtx=null)}static createCanvas(e,t){const n=document.querySelector("#"+e)||document.createElement("canvas");n.setAttribute("id",e);const r=n.getContext("2d");if(!r)throw new Error("Could not get 2d context from canvas");return n.style.cssText="position: fixed; top: 0; left: 0; z-index: "+t,document.body.appendChild(n),n.width=a,n.height=l,r}clear(){s&&this.debugCtx&&this.debugCtx.clearRect(0,0,a,l)}clearLayouts(){s&&this.layoutsCtx&&this.layoutsCtx.clearRect(0,0,a,l)}drawLayout(e,t,n){s&&this.layoutsCtx&&(this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(e.left,e.top,e.width,e.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red",this.layoutsCtx.fillText(t,e.left,e.top+10),this.layoutsCtx.fillText(n,e.left,e.top+25),this.layoutsCtx.fillText("left: "+e.left,e.left,e.top+40),this.layoutsCtx.fillText("top: "+e.top,e.left,e.top+55))}drawPoint(e,t,n="blue",r=10){s&&this.debugCtx&&(this.debugCtx.strokeStyle=n,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(e-r/2,t-r/2,r,r))}}var u=c;function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d="SN:ROOT",f={left:[37],up:[38],right:[39],down:[40],enter:[13],back:[8,10009,461]},p=["#0FF","#FF0","#F0F"],g={leading:!0,trailing:!1},y=(e,t,n={})=>{let r=null,i=0;const{leading:o=!0,trailing:s=!0}=n;return function(...n){const a=Date.now();i||o||(i=a);const l=t-(a-i);l<=0||l>t?(r&&(clearTimeout(r),r=null),i=a,e.apply(this,n)):!r&&s&&(r=window.setTimeout(()=>{i=o?Date.now():0,r=null,e.apply(this,n)},l))}},v=(e,t)=>[...e].sort((e,n)=>{const r=t(e),i=t(n);return r<i?-1:r>i?1:0}),m=e=>e[0],b=(e,t)=>e.filter(e=>!t.includes(e)),A=(e,t)=>e.forEach(t);class w{static getCutoffCoordinate(e,t,n,r){const i=r.left,o=r.top,s=r.width,a=r.height,l=e?o:i,c=e?a:s;return t?n?l:l+c:n?l+c:l}static getRefCorners(e,t,n){const r=n.left,i=n.top,o=n.width,s=n.height,a={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case"up":{const e=t?i+s:i;a.a={x:r,y:e},a.b={x:r+o,y:e};break}case"down":{const e=t?i:i+s;a.a={x:r,y:e},a.b={x:r+o,y:e};break}case"left":{const e=t?r+o:r;a.a={x:e,y:i},a.b={x:e,y:i+s};break}case"right":{const e=t?r:r+o;a.a={x:e,y:i},a.b={x:e,y:i+s};break}}return a}static isAdjacentSlice(e,t,n){const{a:r,b:i}=e,{a:o,b:s}=t,a=n?"x":"y",l=r[a],c=i[a],u=o[a],h=s[a],d=.2*(c-l);return Math.max(0,Math.min(c,h)-Math.max(l,u))>=d}static getPrimaryAxisDistance(e,t,n){const{a:r}=e,{a:i}=t,o=n?"y":"x";return Math.abs(i[o]-r[o])}static getSecondaryAxisDistance(e,t,n){const{a:r,b:i}=e,{a:o,b:s}=t,a=n?"x":"y",l=r[a],c=i[a],u=o[a],h=s[a],d=[];return d.push(Math.abs(u-l)),d.push(Math.abs(u-c)),d.push(Math.abs(h-l)),d.push(Math.abs(h-c)),Math.min(...d)}sortSiblingsByPriority(e,t,n,r){const i="down"===n||"up"===n,o=w.getRefCorners(n,!1,t);return[...e].sort((e,t)=>{const r=w.getRefCorners(n,!0,e.layout),s=w.getRefCorners(n,!0,t.layout),a=w.isAdjacentSlice(o,r,i),l=w.isAdjacentSlice(o,s,i),c=a?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,u=l?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,h=a?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,d=l?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,f=c(o,r,i),p=u(o,s,i);return(5*f+h(o,r,i)+1)/(a?5:1)-(5*p+d(o,s,i)+1)/(l?5:1)})}constructor(e={}){h(this,"focusableComponents",void 0),h(this,"focusKey",void 0),h(this,"parentsHavingFocusedChild",void 0),h(this,"nativeMode",void 0),h(this,"throttle",void 0),h(this,"throttleKeypresses",void 0),h(this,"pressedKeys",void 0),h(this,"paused",void 0),h(this,"keyDownEventListener",void 0),h(this,"clickEventListener",void 0),h(this,"keyUpEventListener",void 0),h(this,"keyMap",void 0),h(this,"debug",void 0),h(this,"visualDebugger",void 0),h(this,"logIndex",void 0),this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.pressedKeys={},this.paused=!0,this.keyDownEventListener=null,this.clickEventListener=null,this.keyUpEventListener=null,this.keyMap=f,this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.onKeyEvent=this.onKeyEvent.bind(this),this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.init(e)}init({debug:e=!1,visualDebug:t=!1,nativeMode:n=!1,throttle:r=0,throttleKeypresses:i=!1}={}){this.nativeMode=n,this.throttleKeypresses=i,this.debug=e,this.nativeMode||(Number.isInteger(r)&&r>0&&(this.throttle=r),this.bindEventHandlers(),t&&(this.visualDebugger=new u,this.startDrawLayouts()))}startDrawLayouts(){const e=()=>{requestAnimationFrame(()=>{var t;null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),Object.entries(this.focusableComponents).forEach(([e,t])=>{var n;null===(n=this.visualDebugger)||void 0===n||n.drawLayout(t.layout,e,t.parentFocusKey)}),e()})};e()}destroy(){this.unbindEventHandlers()}getEventType(e){return Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e))}bindEventHandlers(){if("undefined"!=typeof window&&window.addEventListener){const e=e=>{if(!0===this.paused)return;this.debug&&(this.logIndex+=1);const t=this.getEventType(e.keyCode);if(!t)return;this.pressedKeys[t]=this.pressedKeys[t]?this.pressedKeys[t]+1:1,e.preventDefault(),e.stopPropagation();const n={pressedKeys:this.pressedKeys};if(this.focusKey&&this.getNodeLayoutByFocusKey(this.focusKey)&&(n.layout=this.getNodeLayoutByFocusKey(this.focusKey)),"enter"===t&&this.focusKey)return void this.onEnterPress(n);if("back"===t&&this.focusKey)return void this.onBackPress(n);var r;!1===this.onArrowPress(t,n)?(this.log("keyDownEventListener","default navigation prevented"),null===(r=this.visualDebugger)||void 0===r||r.clear()):this.onKeyEvent(e)};this.keyDownEventListener=this.throttle?y(e,this.throttle,g):e,this.keyUpEventListener=e=>{const t=this.getEventType(e.keyCode);var n,r;(t&&delete this.pressedKeys[t],this.throttle&&!this.throttleKeypresses)&&(null===(n=this.keyDownEventListener)||void 0===n||null===(r=n.cancel)||void 0===r||r.call(n));"enter"===t&&this.focusKey&&this.onEnterRelease()},this.clickEventListener=e=>{if(!0===this.paused)return;const t=e.target;if(!t)return;const n=this.findFocusKeyForElement(t);if(!n)return;const r={pressedKeys:{},event:e,mouseClick:!0},i=this.getNodeLayoutByFocusKey(n);i&&(r.layout=i);this.focusKey===n||this.setFocus(n,r),this.onClickPress(r)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.keyDownEventListener),window.addEventListener("click",this.clickEventListener)}}unbindEventHandlers(){"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("keydown",this.keyDownEventListener),window.removeEventListener("click",this.clickEventListener),this.keyDownEventListener=null,this.clickEventListener=null,this.throttle&&(window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null))}findFocusKeyForElement(e){for(const t of Object.keys(this.focusableComponents)){const n=this.focusableComponents[t];if(n&&n.node&&n.focusable&&(n.node===e||n.node.contains(e)))return t}return null}onClickPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onClickPressHandler)||void 0===t||t.call(n,e):this.log("onClickPress","componentNotFocusable"):this.log("onClickPress","noComponent")}onEnterPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onEnterPressHandler)||void 0===t||t.call(n,e):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")}onBackPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onBackPressHandler)||void 0===t||t.call(n,e):this.log("onBackPress","componentNotFocusable"):this.log("onBackPress","noComponent")}onEnterRelease(){var e;const t=this.focusableComponents[this.focusKey];t?t.focusable?null===(e=t.onEnterReleaseHandler)||void 0===e||e.call(t):this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")}onArrowPress(e,t){var n;const r=this.focusableComponents[this.focusKey];if(r)return null===(n=r.onArrowPressHandler)||void 0===n?void 0:n.call(r,e,t);this.log("onArrowPress","noComponent")}navigateByDirection(e,t={pressedKeys:{}}){if(!0===this.paused)return;const n=["down","up","left","right"];n.includes(e)?(this.log("navigateByDirection","direction",e),this.smartNavigate(e,null,t)):this.log("navigateByDirection",`Invalid direction. You passed: \`${e}\`, but you can use only these: `,n)}onKeyEvent(e){var t;null===(t=this.visualDebugger)||void 0===t||t.clear();const n=Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e.keyCode));n&&this.smartNavigate(n,null,{pressedKeys:{},event:e})}smartNavigate(e,t,n){this.log("smartNavigate","direction",e),this.log("smartNavigate","fromParentFocusKey",t),this.log("smartNavigate","this.focusKey",this.focusKey),this.nativeMode||t||Object.values(this.focusableComponents).forEach(e=>{e.layoutUpdated=!1});const r=this.focusableComponents[t||this.focusKey];if(this.log("smartNavigate","currentComponent",r?r.focusKey:void 0,r?r.node:void 0),r){this.updateLayout(r.focusKey);const{parentFocusKey:t,focusKey:i,layout:o}=r,s="down"===e||"up"===e,a="down"===e||"right"===e,l=w.getCutoffCoordinate(s,a,!1,o),c=Object.values(this.focusableComponents).filter(e=>{if(e.parentFocusKey===t&&e.focusable){this.updateLayout(e.focusKey);const t=w.getCutoffCoordinate(s,a,!0,e.layout);return a?t>=l:t<=l}return!1});if(this.debug&&this.log("smartNavigate","siblings",c),c.length>0){const t=this.sortSiblingsByPriority(c,o,e,i);this.debug&&this.log("smartNavigate","sortedSiblings",t);const r=t[0];r&&this.setFocus(r.focusKey,n)}else this.log("smartNavigate","noSiblings"),t&&this.smartNavigate(e,t,n)}}saveLastFocusedChildKey(e,t){e&&(this.log("saveLastFocusedChildKey",e.focusKey+" lastFocusedChildKey set",t),e.lastFocusedChildKey=t)}log(e,t,...n){this.debug&&console.log(`%c${e}%c${t}`,`background: ${p[this.logIndex%p.length]}; color: black; padding: 1px 5px;`,"background: #333; color: #BADA55; padding: 1px 5px;",...n)}getNextFocusKey(e){this.log("getNextFocusKey","targetFocusKey",e);const t=this.focusableComponents[e];if(!t)return e;const{trackChildren:n}=t;if(!n)return e;const r=Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e&&t.focusable);if(0===r.length)return e;const{lastFocusedChildKey:i,preferredChildFocusKey:o}=t;if(i&&!t.forgetLastFocusedChild&&this.isParticipatingFocusableComponent(i))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",i),this.getNextFocusKey(i);if(o&&this.isParticipatingFocusableComponent(o))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",o),this.getNextFocusKey(o);r.forEach(e=>this.updateLayout(e.focusKey));const{focusKey:s}=(e=>{const t=v(e,({layout:e})=>Math.abs(e.left)+Math.abs(e.top));return m(t)})(r);return this.log("getNextFocusKey","childKey will be focused",s),this.getNextFocusKey(s)}addFocusable({focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:o,onArrowPressHandler:s,onBecameFocusedHandler:a,onBecameBlurredHandler:l,forgetLastFocusedChild:c,trackChildren:u,onUpdateFocus:h,onUpdateHasFocusedChild:d,preferredChildFocusKey:f,onClickPressHandler:p,autoRestoreFocus:g,focusable:y=!0,blockNavigationOut:v}){this.focusableComponents[e]={focusKey:e,node:t,parentFocusKey:n,onClickPressHandler:p,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:o,onArrowPressHandler:s,onBecameFocusedHandler:a,onBecameBlurredHandler:l,onUpdateFocus:h,onUpdateHasFocusedChild:d,forgetLastFocusedChild:c,trackChildren:u,lastFocusedChildKey:null,preferredChildFocusKey:f,focusable:y,blockNavigationOut:v,autoRestoreFocus:g,layout:{x:0,y:0,width:0,height:0,left:0,top:0,node:t},layoutUpdated:!1},this.nativeMode||(this.updateLayout(e),e===this.focusKey&&this.setFocus(e))}removeFocusable({focusKey:e}){const t=this.focusableComponents[e];if(t){const{parentFocusKey:n}=t;Reflect.deleteProperty(this.focusableComponents,e);const r=this.focusableComponents[n],i=e===this.focusKey;if(i&&(this.paused?this.focusKey=null:this.setFocus("PANEL_NAVIGATION")),r&&r.lastFocusedChildKey===e&&(r.lastFocusedChildKey=null),this.nativeMode)return;i&&r&&r.autoRestoreFocus&&!this.paused&&this.setFocus(n)}}getNodeLayoutByFocusKey(e){const t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null}setCurrentFocusedKey(e,t={pressedKeys:{}}){if(this.isFocusableComponent(this.focusKey)&&e!==this.focusKey){var n,r;const e=this.focusableComponents[this.focusKey],i=this.focusableComponents[e.parentFocusKey];this.saveLastFocusedChildKey(i,this.focusKey),null===(n=e.onUpdateFocus)||void 0===n||n.call(e,!1),null===(r=e.onBecameBlurredHandler)||void 0===r||r.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}if(this.focusKey=e,this.isFocusableComponent(this.focusKey)){var i,o;const e=this.focusableComponents[this.focusKey];null===(i=e.onUpdateFocus)||void 0===i||i.call(e,!0),this.updateParentsHasFocusedChild(this.focusKey,t),null===(o=e.onBecameFocusedHandler)||void 0===o||o.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}}updateParentsHasFocusedChild(e,t){const n=[];let r=this.focusableComponents[e];for(;r;){const{parentFocusKey:e}=r,t=this.focusableComponents[e];if(t){const{focusKey:e}=t;n.push(e)}r=t}const i=b(this.parentsHavingFocusedChild,n),o=b(n,this.parentsHavingFocusedChild);A(i,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!1)),this.onIntermediateNodeBecameBlurred(e,t)}),A(o,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!0)),this.onIntermediateNodeBecameFocused(e,t)}),this.parentsHavingFocusedChild=n}updateParentsLastFocusedChild(e){let t=this.focusableComponents[e];for(;t;){const{parentFocusKey:e}=t,n=this.focusableComponents[e];n&&this.saveLastFocusedChildKey(n,t.focusKey),t=n}}getKeyMap(){return this.keyMap}setKeyMap(e){this.keyMap={...this.getKeyMap(),...e}}isFocusableComponent(e){return!!this.focusableComponents[e]}isParticipatingFocusableComponent(e){return this.isFocusableComponent(e)&&this.focusableComponents[e].focusable}onIntermediateNodeBecameFocused(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameFocusedHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}onIntermediateNodeBecameBlurred(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameBlurredHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}pause(){var e,t;this.parentsHavingFocusedChild=[],this.pressedKeys={},this.log("pause","paused"),null===(e=this.visualDebugger)||void 0===e||e.clear(),null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),this.getFocusableComponents().forEach(e=>{var t,n;null===(t=e.onUpdateFocus)||void 0===t||t.call(e,!1),null===(n=e.onUpdateHasFocusedChild)||void 0===n||n.call(e,!1)}),this.paused=!0}resume(){this.paused=!1}setFocus(e,t={pressedKeys:{}}){const n=this.focusKey,r=this.getNextFocusKey(e);this.log("setFocus","newFocusKey",r),this.setCurrentFocusedKey(r,t),this.updateParentsHasFocusedChild(r,t),this.updateParentsLastFocusedChild(n)}updateAllLayouts(){this.nativeMode||Object.entries(this.focusableComponents).forEach(([e])=>{this.updateLayout(e)})}updateLayout(e){const t=this.focusableComponents[e];if(!t||this.nativeMode||t.layoutUpdated)return;const{node:n}=t;i(n,(e,r,i,o,s,a)=>{t.layout={x:e,y:r,width:i,height:o,left:s,top:a,node:n}})}updateFocusable(e,{node:t,preferredChildFocusKey:n,focusable:r,blockNavigationOut:i}){if(this.nativeMode)return;const o=this.focusableComponents[e];o&&(o.preferredChildFocusKey=n,o.focusable=null!=r?r:o.focusable,o.blockNavigationOut=i,t&&(o.node=t))}isNativeMode(){return this.nativeMode}getFocusableComponents(){return Object.values(this.focusableComponents)}getFocusableComponentsByParentFocusKey(e){return Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e)}}t.b=w},function(e,t){},function(e,t){},function(e,t,n){"use strict";(function(t){var r=n(2),i=n(56),o=n(12),s=n(40),a=n(41),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,h={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(u=n(42)),u),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),s=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===s?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(68)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){h.headers[e]=r.merge(l)})),e.exports=h}).call(this,n(50))},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,"/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n","",{version:3,sources:["webpack://./src/components/core/App/App.styles.css"],names:[],mappings:"AAAA,oCAAoC;AACpC;EACE,iCAAiC;EACjC,yBAAyB;EACzB,mBAAmB;EACnB,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,yCAAyC;EACzC,mBAAmB;AACrB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,6CAA6C;AAC/C;;AAEA;EACE,8DAA8D;AAChE;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB",sourcesContent:["/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager.sdk--panel-manager-fox {\n padding: 40px 40px 0 20px;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n","",{version:3,sources:["webpack://./src/components/core/PanelManager/PanelManager.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,kBAAkB;EAClB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB",sourcesContent:[".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager.sdk--panel-manager-fox {\n padding: 40px 40px 0 20px;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation.panel-navigation-fox .panel-nav-button-container {\n margin-right: 8px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child,\n.panel-navigation.panel-navigation-fox .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css"],names:[],mappings:"AAAA;EACE,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;;EAEE,eAAe;AACjB",sourcesContent:[".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation.panel-navigation-fox .panel-nav-button-container {\n margin-right: 8px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child,\n.panel-navigation.panel-navigation-fox .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container.panel-nav-button-container-fox button {\n padding: 24px 0;\n border-radius: 24px;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,kBAAkB;EAClB,yBAAyB;EACzB,kCAAkC;EAClC,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;;EAErC,qEAAqE;AACvE;;AAEA;EACE,eAAe;EACf,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;;EAGE,yBAAyB;AAC3B;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;EACvB,qCAAqC;AACvC",sourcesContent:[".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container.panel-nav-button-container-fox button {\n padding: 24px 0;\n border-radius: 24px;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n","",{version:3,sources:["webpack://./src/components/atoms/BaseButton/BaseButton.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,kCAAkC;AACpC;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB",sourcesContent:[".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n","",{version:3,sources:["webpack://./src/components/core/ScrollableContainer/ScrollableContainer.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,YAAY,EAAE,+BAA+B;EAC7C,UAAU;EACV,6BAA6B;AAC/B;;AAEA;EACE,UAAU;EACV,yEAAyE;AAC3E;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY,EAAE,kCAAkC;EAChD,2EAA2E;AAC7E;;AAEA;EACE,WAAW;EACX,YAAY;AACd",sourcesContent:[".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){e.exports=n(73)()},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(31);t.a=({children:e})=>{const t=Object(r.useRef)(null),{setRef:n,removeRef:s}=Object(o.a)();return Object(r.useEffect)(()=>{const e=t.current;return e&&n(e),()=>{e&&s(e)}},[n,s]),i.a.createElement("div",{className:"focusable-item",ref:t},e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(5),s=n.n(o),a=n(27),l={insert:"head",singleton:!1};s()(a.a,l),a.a.locals;function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}const u=i.a.createContext({setRef:()=>{},removeRef:()=>{},scrollToFocusedElement:()=>{}});t.b=({children:e,scrollableContainerRef:t,containerTopOffset:n=0,...o})=>{const[s,a]=Object(r.useState)(!1),l=Object(r.useRef)(new Set),h=Object(r.useRef)(""),d=Object(r.useRef)(""),f=Object(r.useRef)([]),p=Object(r.useCallback)(e=>{l.current.add(e),h.current=Math.random().toString(36).substring(2,15)},[]),g=Object(r.useCallback)(e=>{l.current.delete(e),h.current=Math.random().toString(36).substring(2,15)},[]),y=Object(r.useCallback)(()=>{if(h.current===d.current)return f.current;const e=Array.from(l.current);return f.current=e.sort((e,n)=>{if(!t)return 0;const r=t.getBoundingClientRect(),i=e?e.getBoundingClientRect():{top:0,bottom:0},o=n?n.getBoundingClientRect():{top:0,bottom:0};return i.top-r.top-(o.top-r.top)}),d.current=h.current,f.current},[t]),v=Object(r.useCallback)(async(e,r)=>{if(!t||!e.node)return;const i=(null==r?void 0:r.offsetTop)||0,o=y();var s;await(s=0,new Promise(e=>setTimeout(e,s)));const l=t.getBoundingClientRect(),c=e.node.getBoundingClientRect();let u=-1;for(let t=o.length-1;t>=0;t--)if(o[t].contains(e.node)){u=t;break}if(-1===u)return void console.warn("Element not found in refsMap to focus to. Register the element wrapping it with <FocusableItem />");let h=!1;if(o.slice(u).forEach(e=>{const t=e.getBoundingClientRect();(t.bottom>l.bottom||t.top<l.top)&&(h=!0)}),!h)return;const d=0===u?0:t.scrollTop+(c.top-l.top-n-i);t.scrollTop=d,a(e=>{const t=d>0;return e!==t?t:e})},[t,n,y]),m=Object(r.useMemo)(()=>({setRef:p,removeRef:g,scrollToFocusedElement:v}),[p,g,v]);return i.a.createElement(u.Provider,{value:m},i.a.createElement("div",c({className:"scrollable-container","data-scrolled":s},o),e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(30);const o=()=>{const e=Object(r.useContext)(i.a);if(!e)throw new Error("useScrollableContainer must be used within a ScrollableContainer");return e}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1);const s=Object(r.lazy)(()=>n.e(30).then(n.bind(null,77))),a=Object(r.lazy)(()=>n.e(32).then(n.bind(null,78))),l=Object(r.lazy)(()=>n.e(17).then(n.bind(null,79))),c=Object(r.lazy)(()=>n.e(35).then(n.bind(null,80))),u=Object(r.lazy)(()=>n.e(37).then(n.bind(null,81))),h=Object(r.lazy)(()=>n.e(23).then(n.bind(null,82))),d=Object(r.lazy)(()=>n.e(22).then(n.bind(null,83))),f=Object(r.lazy)(()=>n.e(36).then(n.bind(null,84))),p=Object(r.lazy)(()=>n.e(21).then(n.bind(null,85))),g=Object(r.lazy)(()=>n.e(25).then(n.bind(null,86))),y=Object(r.lazy)(()=>n.e(18).then(n.bind(null,87))),v=Object(r.lazy)(()=>n.e(31).then(n.bind(null,88))),m=Object(r.lazy)(()=>n.e(24).then(n.bind(null,89))),b=Object(r.lazy)(()=>n.e(33).then(n.bind(null,90))),A=Object(r.lazy)(()=>n.e(29).then(n.bind(null,91))),w=Object(r.lazy)(()=>n.e(20).then(n.bind(null,92))),E=Object(r.lazy)(()=>n.e(34).then(n.bind(null,93))),C=Object(r.lazy)(()=>n.e(19).then(n.bind(null,94))),P=Object(r.lazy)(()=>n.e(26).then(n.bind(null,95))),S=Object(r.lazy)(()=>n.e(28).then(n.bind(null,96))),k=Object(r.lazy)(()=>n.e(27).then(n.bind(null,97))),B=Object(r.lazy)(()=>n.e(16).then(n.bind(null,98))),x={...{[o.a.ESPN_KEY_PLAYS]:s,[o.a.ESPN_BETS]:l,[o.a.ESPN_STATS]:c,[o.a.ESPN_FANTASY]:m,[o.a.ESPN_SHOP]:b,[o.a.HELLO_WORLD]:A,[o.a.FOX_STATS]:S,[o.a.FOX_KEY_PLAYS]:P,[o.a.FOX_MULTI_VIEW]:k,[o.a.BUILDER_BLOCK_PANEL]:C},...{play:a,warning:u,expand:h,collapse:d,times:f,checkmark:p,flame:g,betsWarning:y,mobilePhone:v,chat:w,shopifyBlockPanel:E,add:B}},T=e=>i.a.createElement("div",{style:{width:e.width,height:e.height}});class _ extends i.a.Component{render(){const{iconName:e,width:t,height:n}=this.props,o=x[e];return o?i.a.createElement(r.Suspense,{fallback:i.a.createElement(T,{width:t,height:n})},i.a.createElement(o,{iconName:e,width:t,height:n})):i.a.createElement(T,{width:t,height:n})}}t.a=_},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(5),s=n.n(o),a=n(26),l={insert:"head",singleton:!1},c=(s()(a.a,l),a.a.locals,n(29));function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}class h extends i.a.Component{render(){const e=["base-button",this.props.className].join(" ");return i.a.createElement(c.a,null,i.a.createElement("button",u({},this.props,{className:e}),this.props.children))}}t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(){i(this,"_isLoading",new r.a(!1)),i(this,"_error",new r.a(null))}get isLoading(){return this._isLoading}get error(){return this._error}setLoading(e){this._isLoading.value=e}setError(e){this._error.value=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(11),i=n(17),o=n(15);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE"};t.b=class{constructor(e={},t){s(this,"cacheManager",void 0),s(this,"maestroClient",void 0),s(this,"externalClient",void 0),s(this,"pollingTasks",void 0),s(this,"localStorage",void 0),this.pollingTasks=new Map,this.cacheManager=e.cacheManager||new i.a(e.defaultCacheDuration),this.maestroClient=e.networkClient||new r.a({baseURL:"https://api.maestro.io",retries:3,delay:1e3,backoff:2}),this.externalClient=e.externalNetworkClient||new r.a({baseURL:e.externalBaseURL||"",retries:3,delay:1e3,backoff:2}),this.localStorage=t||"undefined"!=typeof globalThis&&globalThis.localStorage||{length:0,clear:()=>{},getItem:()=>null,key:()=>null,removeItem:()=>{},setItem:()=>{}}}setAuthentication(e,t){this.maestroClient.setAuthentication(e,t)}async withCache(e,t,n){const r=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e.endpoint,params:e.params,data:null}));if(t){const e=this.cacheManager.getCache(r);if(e)return e}const i=await n();return t&&this.cacheManager.setCache(r,i),i}handleError(e){if(e.response){var t;const n=e.response.status,r=(null===(t=e.response.data)||void 0===t?void 0:t.message)||e.message;throw 401===n||403===n?new o.a(n,r,e.response.data):404===n?new o.d(r):n>=500?new o.e(n,r):new o.b(n,r)}throw e.request?new o.c("Network request failed"):e}async maestroApiRequest({endpoint:e,method:t=a.GET,params:n={},data:r=null,headers:i={},useCache:o=!1,maestroDefaultHeaders:s=null,skipResponseBodyDeserialization:l=!1}){const c={"x-maestro-maestro-kit-flavor":"MaestroKit_Web",...i};s&&(c["x-maestro-client-id"]=s.siteId,c.Authorization="Bearer "+s.jwt,c["Content-type"]="application/json");const u=t===a.GET&&o,h=async()=>{let i;if(t===a.GET)i=await this.maestroClient.get(e,n,c);else{if(t!==a.POST)throw new Error(`Method ${t} not implemented`);i=await this.maestroClient.post(e,r)}return l&&!i&&(i={}),i};try{return await this.withCache({endpoint:e,params:n},u,h)}catch(e){return this.handleError(e)}}async externalApiRequest({endpoint:e,method:t=a.GET,params:n={},data:r=null,headers:i={},useCache:o=!1,skipResponseBodyDeserialization:s=!1}){const l=t===a.GET&&o,c=async()=>{let o;if(t===a.GET)o=await this.externalClient.get(e,n,i);else{if(t!==a.POST)throw new Error(`Method ${t} not implemented`);o=await this.externalClient.post(e,r)}return s&&!o&&(o={}),o};try{return await this.withCache({endpoint:e,params:n},l,c)}catch(e){return this.handleError(e)}}async externalApiRequestWithHeaders({endpoint:e,method:t=a.GET,params:n={},data:r=null,headers:i={},useCache:o=!1,skipResponseBodyDeserialization:s=!1}){const l=t===a.GET&&o,c=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null}));if(l){const e=this.cacheManager.getCache(c);if(e)return{data:e,headers:{}}}try{let o;if(t===a.GET)o=await this.externalClient.getWithHeaders(e,n,i);else{if(t!==a.POST)throw new Error(`Method ${t} not implemented`);o=await this.externalClient.postWithHeaders(e,r,n,i)}return s&&!o.data&&(o.data={}),l&&this.cacheManager.setCache(c,o.data),o}catch(e){return this.handleError(e)}}pollMaestroApiRequest({endpoint:e,interval:t,method:n=a.GET,params:r={},data:i=null,headers:o={},maestroDefaultHeaders:s=null,skipResponseBodyDeserialization:l=!1,onData:c,onError:u}){const h=`${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var d;this.pollingTasks.has(h)&&(null===(d=this.pollingTasks.get(h))||void 0===d||d.controller.abort(),this.pollingTasks.delete(h));const f=new AbortController,p=f.signal;return(async()=>{for(;!p.aborted;){try{const t=await this.maestroApiRequest({endpoint:e,method:n,params:r,data:i,headers:o,maestroDefaultHeaders:s,skipResponseBodyDeserialization:l,useCache:!1});c(t)}catch(e){u&&u(e)}p.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(h,{controller:f,interval:t}),{stop:()=>{var e;this.pollingTasks.has(h)&&(null===(e=this.pollingTasks.get(h))||void 0===e||e.controller.abort(),this.pollingTasks.delete(h))}}}pollExternalApiRequest({endpoint:e,interval:t,method:n=a.GET,params:r={},data:i=null,headers:o={},skipResponseBodyDeserialization:s=!1,onData:l,onError:c}){const u=`external-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var h;this.pollingTasks.has(u)&&(null===(h=this.pollingTasks.get(u))||void 0===h||h.controller.abort(),this.pollingTasks.delete(u));const d=new AbortController,f=d.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequest({endpoint:e,method:n,params:r,data:i,headers:o,skipResponseBodyDeserialization:s,useCache:!1});l(t)}catch(e){c&&c(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(u,{controller:d,interval:t}),{stop:()=>{var e;this.pollingTasks.has(u)&&(null===(e=this.pollingTasks.get(u))||void 0===e||e.controller.abort(),this.pollingTasks.delete(u))}}}pollExternalApiRequestWithHeaders({endpoint:e,interval:t,method:n=a.GET,params:r={},data:i=null,headers:o={},skipResponseBodyDeserialization:s=!1,onData:l,onError:c}){const u=`external-headers-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var h;this.pollingTasks.has(u)&&(null===(h=this.pollingTasks.get(u))||void 0===h||h.controller.abort(),this.pollingTasks.delete(u));const d=new AbortController,f=d.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequestWithHeaders({endpoint:e,method:n,params:r,data:i,headers:o,skipResponseBodyDeserialization:s,useCache:!1});l(t)}catch(e){c&&c(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(u,{controller:d,interval:t}),{stop:()=>{var e;this.pollingTasks.has(u)&&(null===(e=this.pollingTasks.get(u))||void 0===e||e.controller.abort(),this.pollingTasks.delete(u))}}}stopAllPolling(){for(const[e,{controller:t}]of this.pollingTasks.entries())t.abort(),this.pollingTasks.delete(e)}clearAllCache(){const e=this.localStorage.length;for(let t=0;t<e;t++){const e=this.localStorage.key(t);e&&e.startsWith("maestro-cache-")&&this.localStorage.removeItem(e)}}}},function(e,t){},function(e,t){},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(2);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var r=n(2);e.exports=function(e,n){n=n||new FormData;var i=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,s){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+s);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var a,l=s?s+"."+i:i;if(t&&!s&&"object"==typeof t)if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(a=r.toArray(t)))return void a.forEach((function(e){!r.isUndefined(e)&&n.append(l,o(e))}));e(t,l)}})),i.pop()}else n.append(s,o(t))}(e),n}}).call(this,n(57).Buffer)},function(e,t,n){"use strict";var r=n(2),i=n(61),o=n(62),s=n(39),a=n(43),l=n(65),c=n(66),u=n(40),h=n(12),d=n(16),f=n(67);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,y=e.headers,v=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(g)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var A=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(A+":"+w)}var E=a(e.baseURL,e.url);function C(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),m()}),(function(e){n(e),m()}),o),b=null}}if(b.open(e.method.toUpperCase(),s(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(n(new h("Request aborted",h.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new h(t,r.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var P=(e.withCredentials||c(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;P&&(y[e.xsrfHeaderName]=P)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var S=f(E);S&&-1===["http","https","file"].indexOf(S)?n(new h("Unsupported protocol "+S+":",h.ERR_BAD_REQUEST,e)):b.send(g)}))}},function(e,t,n){"use strict";var r=n(63),i=n(64);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){e.exports=n(51)},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!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:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}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 p(e,t)),1!==c.length||u||a(f)},p.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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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){"use strict";var r=n(2),i=n(38),o=n(52),s=n(45);var a=function e(t){var n=new o(t),a=i(o.prototype.request,n);return r.extend(a,o.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(21));a.Axios=o,a.CanceledError=n(16),a.CancelToken=n(70),a.isCancel=n(44),a.VERSION=n(46).version,a.toFormData=n(41),a.AxiosError=n(12),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(71),a.isAxiosError=n(72),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";var r=n(2),i=n(39),o=n(53),s=n(54),a=n(45),l=n(43),c=n(69),u=c.validators;function h(e){this.defaults=e,this.interceptors={request:new o,response:new o}}h.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var h=[s,void 0];for(Array.prototype.unshift.apply(h,r),h=h.concat(l),o=Promise.resolve(t);h.length;)o=o.then(h.shift(),h.shift());return o}for(var d=t;r.length;){var f=r.shift(),p=r.shift();try{d=f(d)}catch(e){p(e);break}}try{o=s(d)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},h.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){h.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(a(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)})),e.exports=h},function(e,t,n){"use strict";var r=n(2);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(2),i=n(55),o=n(44),s=n(21),a=n(16);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(2),i=n(21);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";(function(e){
|
|
1
|
+
module.exports=function(e){function t(t){for(var n,i,o=t[0],s=t[1],a=0,c=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&c.push(r[i][0]),r[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+""+({}[e]||e)+".maestro-web-sdk.esm.js"}(e);var l=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var l=s;return i(i.s=8)}([function(e,t){e.exports=require("react")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={ESPN_KEY_PLAYS:"espnKeyPlays",ESPN_STATS:"espnStats",ESPN_BETS:"espnBet",ESPN_FANTASY:"espnFantasy",ESPN_SHOP:"espnShop",HELLO_WORLD:"helloWorld",FOX_KEY_PLAYS:"foxKeyPlays",FOX_MULTI_VIEW:"foxMultiView",FOX_STATS:"foxStats",BUILDER_BLOCK_PANEL:"builderBlockPanel"}},function(e,t,n){"use strict";var r,i=n(38),o=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=a("ArrayBuffer");function h(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var f=a("Date"),p=a("File"),g=a("Blob"),y=a("FileList");function v(e){return"[object Function]"===o.call(e)}var m=a("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var A,w=(A="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return A&&e instanceof A});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===o.call(e)||v(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:h,isPlainObject:d,isUndefined:c,isDate:f,isFile:p,isBlob:g,isFunction:v,isStream:function(e){return h(e)&&v(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,s={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)s[o=r[i]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e){r(this,"listeners",[]),r(this,"_value",void 0),this._value=e}get value(){return this._value}set value(e){this._value=e,this.notify()}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter(t=>t!==e)}}notify(){this.listeners.forEach(e=>e(this._value))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(9);const i=[/bbd-web-sdk\.us-central1-dev\.gcp\.maestro\.io/];let o=null,s=[],a=!1;const l=async()=>{if(!o&&!a){0,a=!0;try{const{BrowserClient:e,defaultStackParser:t,defaultIntegrations:l,makeFetchTransport:c}=await n.e(2).then(n.bind(null,99)),u=null!==i.find(e=>e.test(window.location.href));o=new e({dsn:"https://91444a71cbaefc62e8dc813f22bad3bf@o4506894189330432.ingest.us.sentry.io/4509946717470720",transport:c,stackParser:t,integrations:l.filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name)),tracesSampleRate:u?1:.1,release:r.version,environment:u?"development":"production",enabled:!/localhost/.test(window.location.href)}),s.forEach(({error:e,extra:t})=>{var n;null===(n=o)||void 0===n||n.captureException(e,t)}),s=[]}catch(e){console.error("[maestro-web-sdk] Failed to load Sentry:",e)}finally{a=!1}}},c=(e,t)=>{o?o.captureException(e,t):(s.push({error:e,extra:t}),l())}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=a(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(s[h].references++,s[h].updater(d)):s.push({identifier:u,updater:y(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,h=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function y(e,t){var n,r,i;if(t.singleton){var o=g++;n=p||(p=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=o}}}},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(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,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var t=r(e,4),n=t[1],i=t[3];if(!i)return n;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),a="/*# ".concat(s," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([a]).join("\n")}return[n].join("\n")}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ActionTrackEvent",(function(){})),n.d(t,"ImpressionTrackEvent",(function(){})),n.d(t,"Metadata",(function(){})),n.d(t,"PanelClickAction",(function(){})),n.d(t,"PanelViewAction",(function(){})),n.d(t,"PanelEvent",(function(){return c.PanelEvent})),n.d(t,"IMaestroEventDelegate",(function(){return u.a})),n.d(t,"IMaestroEvent",(function(){return f.a})),n.d(t,"IMaestroKeyPlaysResponse",(function(){return _.a})),n.d(t,"MaestroPanelType",(function(){return m.a})),n.d(t,"SDKEventConfigParams",(function(){return h.SDKEventConfigParams})),n.d(t,"SDKStopEventParams",(function(){return h.SDKStopEventParams})),n.d(t,"IUserSettings",(function(){return L.IUserSettings})),n.d(t,"DEFAULT_USER_SETTINGS",(function(){return L.a}));var r=n(0),i=n.n(r),o=n(14),s=n.n(o);function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{constructor(){a(this,"renderersMap",new Map)}async renderPanel(e){if(this.renderersMap.has(e)){this.renderersMap.get(e).unmount(),this.renderersMap.delete(e)}const t=await this.getRenderer(e),r=n(76).default,o=n(75).default;return t.render(i.a.createElement(r,null,i.a.createElement(o,null))),()=>{this.renderersMap.has(e)&&this.renderersMap.get(e)===t&&(t.unmount(),this.renderersMap.delete(e))}}async getRenderer(e){if(this.renderersMap.has(e))return this.renderersMap.get(e);const t=document.getElementById(e);if(!t)throw new Error(`Element with id ${e} not found`);const n={render:e=>{s.a.render(e,t)},unmount:()=>{s.a.unmountComponentAtNode(t),t.innerHTML=""}};return this.renderersMap.set(e,n),n}},c=n(19),u=n.n(c),h=n(20),d=n(36),f=n.n(d),p=n(3),g=n(34),y=n(18),v=n(10),m=n(1);function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class A{getAvailablePanelsFromConfig(){const e=V.getPageConfig();return e&&Array.isArray(e.panels)&&e.panels.length>0?e.panels.filter(e=>{var t,n;return!1!==(null===(t=e.renderer)||void 0===t||null===(n=t.supported_platforms)||void 0===n?void 0:n.bbd)}).map(e=>{const t=e.panel_type;return t&&Object.values(m.a).includes(t)?{type:t,title:e.panel_name||""}:null}).filter(e=>null!==e):[]}constructor(){b(this,"_panels",new p.a([])),b(this,"_currentPanel",new p.a(null)),b(this,"settingsManager",void 0),b(this,"settingsUnsubscribe",null),this.settingsManager=v.a.getInstance(),this.initializePanels(),this.subscribeToSettingsChanges()}initializePanels(){const e=this.filterPanels(),t=V.getIsProdEnv();e.length||t?this._panels.value=e:this._panels.value=[{type:"helloWorld",title:"HELLO WORLD"}],this.updateActivePanel()}subscribeToSettingsChanges(){this.settingsUnsubscribe=this.settingsManager.settings.subscribe(()=>{this.updatePanelsBasedOnSettings()})}filterPanels(){return this.getAvailablePanelsFromConfig().filter(e=>!this.settingsManager.isPanelHidden(e.type))}updateActivePanel(){!this.currentPanel&&this.panels[0]&&(this.currentPanel=this.panels[0].type),this.panels.length>0&&this._currentPanel.value&&!this.panels.find(e=>e.type===this._currentPanel.value)&&(this._currentPanel.value=this.panels[0].type)}updatePanelsBasedOnSettings(){const e=this.filterPanels();this._panels.value=e,this.updateActivePanel()}cleanup(){this.settingsUnsubscribe&&(this.settingsUnsubscribe(),this.settingsUnsubscribe=null)}get panels(){return this._panels.value}get panelsObservable(){return this._panels}get currentPanel(){return this._currentPanel.value}set currentPanel(e){this._currentPanel.value=e}get currentPanelObservable(){return this._currentPanel}setActivePanel(e){e!==this.currentPanel&&void 0!==this.panels.find(t=>t.type===e)&&(this.currentPanel=e,this.updateActivePanel())}getIndex(e){const t=this.panels.findIndex(t=>t.type===e);return-1!==t?t:null}getPanelType(e){var t;return(null===(t=this.panels[e])||void 0===t?void 0:t.type)||null}get panelTypeToLeft(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||0===e?null:this.getPanelType(e-1)}get panelTypeToRight(){if(!this.currentPanel)return null;const e=this.getIndex(this.currentPanel);return null===e||e===this.panels.length-1?null:this.getPanelType(e+1)}getUnlistedPanels(){const e=V.getPageConfig();return e&&Array.isArray(e.panels)?e.panels.filter(e=>!!e.panel_type&&!Object.values(m.a).includes(e.panel_type)).map(e=>({type:e.panel_type,title:e.panel_name||""})):[]}}var w=n(11),E=n(4),C=n(35);function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const S={"664b9c57d59a7a431542d814":"https://static-prod.us-central1-espn-prod.gcp.maestro.io","6930c214fcb9633b5484de81":"https://static-prod.us-central1-espn-prod.gcp.maestro.io","695c05610f99e7584a1b7407":"https://static-prod.us-central1-fox-prod.gcp.maestro.io"};var k=class{constructor(e){P(this,"configObservable",new p.a(null)),P(this,"client",void 0);const t=S[e]||"https://static.gcp.maestro.io";this.client=new C.b({externalNetworkClient:new w.a({backoff:2,baseURL:t,delay:1e3,retries:5})})}async fetchPageConfigByMetadata(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/metadata/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,metadataValue:t}),console.error(`Failed to fetch page configuration for site ${e} and metadata value: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}fetchPageConfig({siteId:e,metadataValue:t,pageId:n}){return n?this.fetchPageConfigById(e,n):t?this.fetchPageConfigByMetadata(e,t):Promise.resolve(null)}async fetchPageConfigById(e,t){try{return await this.client.externalApiRequest({endpoint:`/pages/sites/${e}/pages/${t}.json`})}catch(n){return Object(E.a)(n,{siteId:e,pageId:t}),console.error(`Failed to fetch page configuration for site ${e} and page ID: ${t}:`,n instanceof Error?n.message:String(n)),Promise.resolve(null)}}static isPanelAvailable(e,t){var n;return null==e||null===(n=e.panels)||void 0===n?void 0:n.some(e=>{var n,r;return e.panel_type===t&&!1!==(null===(n=e.renderer)||void 0===n||null===(r=n.supported_platforms)||void 0===r?void 0:r.bbd)})}pollGlobalConfig(e){const t=24e4+Math.floor(12e4*Math.random());return this.client.pollExternalApiRequest({endpoint:"/config/global.json",interval:t,onData:e,onError:e=>{Object(E.a)(e,{context:"StaticService.pollGlobalConfig"}),console.error("Failed to poll global configuration",e instanceof Error?e.message:String(e))}})}};function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class x extends g.a{constructor(e="",t="",n,r){super(),B(this,"_eventId",new p.a("")),B(this,"_pageId",new p.a("")),B(this,"_title",new p.a("")),B(this,"_isLive",new p.a(!1)),B(this,"_isShowingPanel",new p.a(!1)),B(this,"playerTimeCode",null),B(this,"analyticsService",void 0),B(this,"delegate",void 0),B(this,"keyPlaysViewModel",null),B(this,"fantasyViewModel",null),B(this,"betsViewModel",null),B(this,"statsViewModel",null),B(this,"shopViewModel",null),B(this,"builderPanelViewModel",null),B(this,"multiViewViewModel",null),B(this,"panelManagerViewModel",void 0),B(this,"navigation",void 0),this._pageId.value=t,this._eventId.value=e,this.delegate=n,this.analyticsService=r,this.panelManagerViewModel=new A,this.navigation=new y.b}async initViewModels(){const e=V.getPageConfig(),t=[];if(k.isPanelAvailable(e,"espnKeyPlays")&&t.push(n.e(16).then(n.bind(null,234)).then(({default:e})=>{this.keyPlaysViewModel=new e(this.analyticsService)}).catch(e=>{console.warn("Failed to load KeyPlaysViewModel:",e)})),k.isPanelAvailable(e,"espnBet")&&t.push(n.e(12).then(n.bind(null,247)).then(({default:e})=>{this.betsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load BetsViewModel:",e)})),k.isPanelAvailable(e,"espnStats")&&t.push(n.e(10).then(n.bind(null,243)).then(({default:e})=>{this.statsViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load StatsViewModel:",e)})),k.isPanelAvailable(e,"espnFantasy")&&t.push(n.e(13).then(n.bind(null,242)).then(({default:e})=>{this.fantasyViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load FantasyViewModel:",e)})),k.isPanelAvailable(e,"espnShop")&&t.push(n.e(11).then(n.bind(null,245)).then(({default:e})=>{this.shopViewModel=new e(this._eventId.value,this.analyticsService)}).catch(e=>{console.warn("Failed to load ShopViewModel:",e)})),k.isPanelAvailable(e,"foxMultiView")&&t.push(n.e(14).then(n.bind(null,246)).then(({MultiViewViewModel:e})=>{this.multiViewViewModel=new e(this._eventId.value,this.delegate,this.analyticsService)}).catch(e=>{console.warn("Failed to load MultiViewViewModel:",e)})),k.isPanelAvailable(e,"builderBlockPanel")){var r;const i=null==e||null===(r=e.panels)||void 0===r?void 0:r.find(e=>"builderBlockPanel"===e.panel_type);i&&t.push(n.e(15).then(n.bind(null,125)).then(({BuilderPanelViewModel:e})=>{this.builderPanelViewModel=new e(i,this.analyticsService)}).catch(e=>{console.warn("Failed to load BuilderPanelViewModel:",e)}))}await Promise.all(t)}setActivePanel(e){const t=this.panelManagerViewModel.getIndex(e);null!==t?this.navigation.paused?(this.panelManagerViewModel.setActivePanel(e),this.navigation.focusKey="PANEL_NAV_BUTTON_"+t):console.warn("Cannot set active panel while navigation is not paused. Doing so will cause focus issues."):console.warn(`Panel type "${e}" not found.`)}updatePlayerTimeCode(e){var t,n;const r=new Date(e);if(isNaN(r.getTime()))return console.warn("Invalid timestamp provided:",e),void console.warn("Make sure the timestamp is a valid number. \nhttps://developers.maestro.io/sdk/web/maestro-event-interface/state/updatePlayerTimeCode");this.playerTimeCode=e,null===(t=this.keyPlaysViewModel)||void 0===t||t.onUpdatePlayerTimeCode(this.playerTimeCode),null===(n=this.statsViewModel)||void 0===n||n.onUpdatePlayerTimeCode(this.playerTimeCode)}getPlayerTimeCode(){return this.playerTimeCode}setDataToPanel(e){const t=Object.keys(e),n={espnStats:this.statsViewModel,espnBet:this.betsViewModel,espnKeyPlays:this.keyPlaysViewModel,espnFantasy:this.fantasyViewModel,espnShop:this.shopViewModel,builderBlockPanel:this.builderPanelViewModel,foxKeyPlays:null,foxMultiView:this.multiViewViewModel,foxStats:null,helloWorld:null};for(const r of t){const t=e[r];if(!t)continue;const i=n[r];i?i.setDataToPanel&&i.setDataToPanel(t):console.log(`[setDataToPanel] Panel '${r}' not initialized/supported. Data ignored.`)}}async deinit(){var e,t,n,r,i,o;null===(e=this.betsViewModel)||void 0===e||e.cleanup(),null===(t=this.statsViewModel)||void 0===t||t.cleanup(),null===(n=this.fantasyViewModel)||void 0===n||n.cleanup(),null===(r=this.shopViewModel)||void 0===r||r.cleanup(),null===(i=this.builderPanelViewModel)||void 0===i||i.cleanup(),null===(o=this.multiViewViewModel)||void 0===o||o.cleanup(),this.navigation.destroy();try{await this.didHidePanel()}catch(e){console.error("Error during didHidePanel in deinit:",e)}}updateKeyPlaysData(e){return this.keyPlaysViewModel?this.keyPlaysViewModel.setKeyPlays(e,this.playerTimeCode):Promise.resolve()}updateUserSettings(e){return new Promise(t=>{v.a.getInstance().updateSettings(e),t()})}startFocusManagement(){return this.navigation.setCurrentFocusedKey(this.navigation.focusKey||"PANEL_NAV_BUTTON_0"),setTimeout(()=>{this.navigation.resume()},0),Promise.resolve()}didStartPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=e,this.keyPlaysViewModel.clearLoadFailureStatus(e))}didStopPlayingClip(e){this.keyPlaysViewModel&&(this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null)}didFailToPlayClip(e){var t;null===(t=this.keyPlaysViewModel)||void 0===t||t.handleKeyPlayLoadFailure(e)}didUpdatePlaybackProgressOfClip(e,t){this.keyPlaysViewModel&&(this.keyPlaysViewModel.currentClipPlaybackProgress.value=t,this.keyPlaysViewModel.clearLoadFailureStatus(e))}async didShowPanel(){this.isShowingPanel=!0}async didHidePanel(){this.isShowingPanel=!1,this.navigation.focusKey=null}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel&&(this.keyPlaysViewModel.errorState.value="unsupportedEvent")}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentlyPlayingClipIndex.value)&&void 0!==e?e:null}getLastPlayedClipIndex(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.lastPlayedClipIndex.value)&&void 0!==e?e:null}getCurrentClipPlaybackProgress(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.currentClipPlaybackProgress.value)&&void 0!==e?e:null}getKeyPlaysCount(){var e,t;return null!==(e=null===(t=this.keyPlaysViewModel)||void 0===t?void 0:t.allItems.length)&&void 0!==e?e:0}get eventId(){return this._eventId}get title(){return this._title}get isLive(){return this._isLive}get isShowingPanel(){return this._isShowingPanel.value}set isShowingPanel(e){this._isShowingPanel.value=e}deliverFocus(){this.navigation.pause(),this.delegate.startFocusManagement()}}var T=n(37),_=n.n(T);function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class F{constructor(){O(this,"client",void 0),this.client=new w.a({baseURL:"https://insights.maestro.io",backoff:2,delay:1e3,retries:1})}isEnabled(){var e,t,n;const r=V.getGlobalConfig();return null===(e=null==r||null===(t=r.bbd)||void 0===t||null===(n=t.analytics)||void 0===n?void 0:n.enabled)||void 0===e||e}async action(e){if(this.isEnabled())try{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))null!=r&&t.append(n,r.toString());await this.client.post("/action",t,void 0,{"Content-Type":"application/x-www-form-urlencoded"})}catch(t){Object(E.a)(t,{payload:e}),console.error("Failed to send insights action:",t)}else console.warn("InsightsService: Analytics is disabled in global config")}async getServerTime(){if(!this.isEnabled())return{time:Date.now(),diff:0};const e=Date.now();try{return await this.client.get("/time",{_:`${Date.now()}-${this.randomId()}`,client_time:e})}catch(e){return Object(E.a)(e),console.error("Failed to get server time:",e),{time:Date.now(),diff:0}}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}}var M=n(17);function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class j{constructor(){R(this,"currentTime",0),R(this,"serverOffsetTime",0),R(this,"insightsService",void 0),R(this,"cacheManager",void 0),R(this,"pageConfig",null),this.insightsService=new F,this.cacheManager=new M.a}async getPayload(e){return this.currentTime=Date.now(),this.serverOffsetTime=await this.getDeviceOffset(),this.pageConfig=V.getPageConfig(),{...this.getPageInsights(),...this.getDeviceInsights(),...this.getInsightsInsights(),...this.getMetadataInsights(),...this.getReferrerInsights(),...this.getSessionInsights(),...this.getSiteInsights(),...this.getUserInsights(),...this.getEventInsights(e)}}getEventInsights(e){const t=e.ontology;return{e_d:"maestro",e_m:Object.values(e.metadata||{}).length>0?JSON.stringify(e.metadata):null,e_t:this.currentTime+this.serverOffsetTime,e_u:window.location.href,e0:t.kingdom,e1:t.phylum,e2:t.class,e3:t.order,e4:t.family,e5:t.genus,e6:t.species,t:this.currentTime}}getPageInsights(){const e=V.getPageConfig();return{p_c:"pages",p_id:null==e?void 0:e.page._id,p_n:null==e?void 0:e.page.name,p_s:null==e?void 0:e.page.slug,p_t:null==e?void 0:e.page.type}}getDevicePermanentID(){const e=localStorage.getItem("mio:device:permanentId");if(e)return e;const t=this.randomId();return localStorage.setItem("mio:device:permanentId",t),t}getDeviceCreated(){const e=this.cacheManager.getCache("mio:device:created");if(e)return Number(e);const t=(new Date).getTime();return this.cacheManager.setCache("mio:device:created",t.toString()),t}getTabID(){const e=sessionStorage.getItem("mio:device:tabId");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:device:tabId",t),t}getDeviceInsights(){return{d_ct:this.getDeviceCreated(),d_nd:!1,d_np:window.navigator.platform,d_pid:this.getDevicePermanentID(),d_sh:window.screen.height,d_sw:window.screen.width,d_tid:this.getTabID(),d_tim:this.currentTime,d_tof:this.serverOffsetTime,d_ua:window.navigator.userAgent}}randomId(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}async getDeviceOffset(){const e=Date.now(),{diff:t,time:n}=await this.insightsService.getServerTime(),r=Date.now();return(t-(r-e)-(r-n))/2}getInsightsInsights(){var e;return{i_id:null===(e=this.pageConfig)||void 0===e?void 0:e.insights._id}}getMetadataInsights(){return{m_iv:"1.00.0"}}getReferrerInsights(){return{r_d:"$direct",r_s:null,r_u:"$direct"}}getSessionID(){const e=sessionStorage.getItem("mio:session:id");if(e)return e;const t=this.randomId();return sessionStorage.setItem("mio:session:id",t),t}getSessionInsights(){return{se_id:this.getSessionID(),se_s:this.currentTime}}getSiteInsights(){var e,t,n,r,i;return{si_d:null===(e=this.pageConfig)||void 0===e?void 0:e.site.domainUrl,si_id:null===(t=this.pageConfig)||void 0===t?void 0:t.site._id,si_pid:(null===(n=this.pageConfig)||void 0===n?void 0:n.site.package.id)+"-sapphire",si_pv:(null===(r=this.pageConfig)||void 0===r?void 0:r.site.package.version)+"-sapphire",si_s:null===(i=this.pageConfig)||void 0===i?void 0:i.site.slug}}getUserInsights(){return{u_a:null,u_c:null,u_e:null,u_id:null,u_li:!1,u_n:null,u_nu:!1,u_s:null,u_u:null,u_un:null}}}var I=n(9);function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=class{constructor(){N(this,"insightsService",void 0),N(this,"insightsPayloadBuilder",void 0),N(this,"SDKSessionId",""),N(this,"pageSessionId",""),N(this,"pinchBackSessionId",""),N(this,"pageSessionBeaconTimeoutId",null),N(this,"isPageSessionBeaconRunning",!1),N(this,"isPageSessionActive",!1),this.insightsService=new F,this.insightsPayloadBuilder=new j}async trackAction(e){V.getMaestroEventViewModel().delegate.trackAction(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{class:e.e2_class,family:e.e4_family,order:e.e3_order,kingdom:e.e0_kingdom,phylum:e.e1_phylum,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async trackImpression(e){V.getMaestroEventViewModel().delegate.trackImpression(e);const t=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:e.e0_kingdom,phylum:e.e1_phylum,class:e.e2_class,order:e.e3_order,family:e.e4_family,genus:e.e5_genus,species:e.e6_species},metadata:e.metadata});await this.insightsService.action(t)}async panelView(e,t){const n=V.getPageConfig(),r=this.getPanelDataFromPageConfig(e,n);await this.trackImpression({name:"panel_selected",e0_kingdom:"panel",e1_phylum:"view",e2_class:r.panel_type,e3_order:r.panel_id,e4_family:r.panel_name,metadata:{...t||{},...this.getBaseMetadataFromPageConfig(n)}})}async panelClick({type:e,metadata:t,name:n}){const r=V.getPageConfig(),i=this.getPanelDataFromPageConfig(e,r);await this.trackAction({name:n,e0_kingdom:"panel",e1_phylum:"engage",e2_class:i.panel_type,e3_order:i.panel_id,e4_family:i.panel_name,metadata:{...this.getBaseMetadataFromPageConfig(r),...t}})}getBaseMetadataFromPageConfig(e){if(!e)return console.warn("Page Config not found. Could not extract metadata."),{league:"",airing:"",event:"",sport:""};const t=e.page.metadata,n="airing"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"",r="event"===(null==t?void 0:t.external_field_4)&&t.external_field_1||"unknown",i=(null==t?void 0:t.external_field_2)||"";return{league:(null==t?void 0:t.external_field_3)||"",airing:n,event:r,sport:i}}getPanelDataFromPageConfig(e,t){if(!t)return console.warn("Page Config not found. Could not extract panel data."),{panel_id:"",panel_name:"",panel_type:""};const n=t.panels.find(t=>t.panel_type===e);return n?{panel_id:n._id,panel_name:n.panel_name||"",panel_type:n.panel_type||""}:(console.warn(`Panel of type ${e} not found in Page Config.`),{panel_id:"",panel_name:"",panel_type:""})}async SDKSessionStart(){try{this.SDKSessionId=Math.random().toString(36).substring(2,15);const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to start SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionStart"})}}async pageSessionStart(){try{this.pageSessionId=Math.random().toString(36).substring(2,15),this.isPageSessionActive=!0;const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});await this.insightsService.action(n),this.scheduleNextBeacon()}catch(e){console.error("Failed to start page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionStart"})}}async pageSessionEnd(){try{this.isPageSessionActive=!1;const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"page"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId}});console.log("AnalyticsService: pageSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end page session: "+e),Object(E.a)(e,{context:"AnalyticsService.pageSessionEnd"})}finally{this.pageSessionBeaconTimeoutId&&(clearTimeout(this.pageSessionBeaconTimeoutId),this.pageSessionBeaconTimeoutId=null),this.pageSessionId=""}}async pinchBackSessionStart(){try{this.pinchBackSessionId=Math.random().toString(36).substring(2,15);const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"start",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(n)}catch(e){console.error("Failed to start pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionStart"})}}async pinchBackSessionEnd(){try{const e=V.getPageConfig(),t=this.getBaseMetadataFromPageConfig(e),n=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"pinchback"},metadata:{...t,version:I.version,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});console.log("AnalyticsService: pinchBackSessionEnd",n),await this.insightsService.action(n)}catch(e){console.error("Failed to end pinchback session: "+e),Object(E.a)(e,{context:"AnalyticsService.pinchBackSessionEnd"})}finally{this.pinchBackSessionId=""}}async SDKSessionEnd(){try{const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"end",class:"sdk"},metadata:{version:I.version}});await this.insightsService.action(e)}catch(e){console.error("Failed to end SDK session: "+e),Object(E.a)(e,{context:"AnalyticsService.SDKSessionEnd"})}finally{this.SDKSessionId=""}}scheduleNextBeacon(){var e,t;if(!this.isPageSessionActive)return;const n=V.getGlobalConfig(),r=(null==n||null===(e=n.bbd)||void 0===e||null===(t=e.analytics)||void 0===t?void 0:t.beacon_interval)||240;this.pageSessionBeaconTimeoutId=setTimeout(async()=>{await this.sendSessionBeacon()},1e3*r)}async sendSessionBeacon(){if(!this.isPageSessionBeaconRunning&&this.isPageSessionActive){this.isPageSessionBeaconRunning=!0;try{await this.sessionBeacon()}catch(e){console.error("Failed to send session beacon: "+e),Object(E.a)(e,{context:"AnalyticsService.sendSessionBeacon",SDKSessionId:this.SDKSessionId,pageSessionId:this.pageSessionId})}finally{this.isPageSessionBeaconRunning=!1,this.isPageSessionActive&&this.scheduleNextBeacon()}}}async sessionBeacon(){const e=await this.insightsPayloadBuilder.getPayload({ontology:{kingdom:"session",phylum:"beacon",class:"frequent"},metadata:{paywall_gated:!1,viewer_id:this.insightsPayloadBuilder.getDevicePermanentID(),is_billable:!1,session:this.SDKSessionId,page_session:this.pageSessionId,pinchback_session:this.pinchBackSessionId}});await this.insightsService.action(e)}},L=n(13);function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class U{constructor(e){K(this,"renderer",void 0),K(this,"siteID",""),K(this,"maestroEventViewModel",null),K(this,"pageConfig",null),K(this,"globalConfig",null),K(this,"globalConfigPoller",null),K(this,"_analyticsService",null),K(this,"isProdEnv",!0),K(this,"activePanelUnmountFn",null),this.renderer=e}get analyticsService(){return this._analyticsService||(this._analyticsService=new D),this._analyticsService}static getInstance(){if(!U.instance){const e=new l;U.instance=new U(e)}return U.instance}async userDidStartWatchingEvent({eventId:e,pageId:t,userSettings:n,delegate:r,useProdEnv:i=!0}){this.isProdEnv=i;const o=this.getSiteID();if(!o||""===o.trim())throw new Error("siteID must be set before calling userDidStartWatchingEvent.");if(!e&&!t)throw new Error("Either eventId or pageId must be provided to load the page configuration.");const s=new k(o);if(this.pageConfig=await s.fetchPageConfig({siteId:o,metadataValue:e,pageId:t}),!this.pageConfig)throw new Error(`Could not determine page configuration for siteId: ${o}, pageId: ${t} and eventId: ${e}.`);return this.globalConfigPoller=s.pollGlobalConfig(e=>{this.globalConfig=e}),n&&v.a.getInstance().updateSettings(n),await this.analyticsService.SDKSessionStart(),this.maestroEventViewModel=new x(e,t,r,this.analyticsService),await this.maestroEventViewModel.initViewModels(),await this.analyticsService.pageSessionStart(),this.maestroEventViewModel}async userDidStopWatchingEvent(e){this.activePanelUnmountFn&&await this.activePanelUnmountFn(),await this.analyticsService.pageSessionEnd(),this.maestroEventViewModel&&(await this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null),await this.analyticsService.SDKSessionEnd(),this.globalConfigPoller&&(this.globalConfigPoller.stop(),this.globalConfigPoller=null)}configure(e){this.setSiteID(e.siteID),e.userSettings&&v.a.getInstance().updateSettings(e.userSettings),console.info("MaestroWebSDK configured",e)}setSiteID(e){if(!e||""===e.trim())throw new Error("Site ID must be provided");this.siteID=e}getSiteID(){return this.siteID}getIsProdEnv(){return this.isProdEnv}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}async renderPanel(e){await this.analyticsService.pinchBackSessionStart();const t=await this.renderer.renderPanel(e);let n=!1;const r=async()=>{n||(n=!0,t(),await this.analyticsService.pinchBackSessionEnd(),this.activePanelUnmountFn===r&&(this.activePanelUnmountFn=null))};return this.activePanelUnmountFn=r,r}getPageConfig(){return this.pageConfig}getGlobalConfig(){return this.globalConfig}}K(U,"instance",void 0);const H=U.getInstance();var V=t.default=H},function(e){e.exports=JSON.parse('{"name":"@maestro_io/maestro-web-sdk","private":false,"version":"5.2.1","type":"commonjs","license":"MIT","main":"dist/maestro-web-sdk.umd.js","module":"dist/maestro-web-sdk.esm.js","types":"dist/index.d.ts","files":["dist"],"exports":{".":{"import":"./dist/maestro-web-sdk.esm.js","require":"./dist/maestro-web-sdk.umd.js","types":"./dist/index.d.ts"}},"sideEffects":["*.css"],"engines":{"node":">=10"},"scripts":{"dev":"nodemon","sdk-only":"webpack-dev-server --config webpack/webpack.dev.js","lint":"eslint src --ext .ts,.tsx --ignore-pattern \'**/*.test.*\'","test":"jest","build":"webpack --config webpack/webpack.prod.js && tsc --emitDeclarationOnly --declarationDir dist/types && dts-bundle --name @maestro_io/maestro-web-sdk --main dist/types/src/index.d.ts --out ../../index.d.ts && rm -rf dist/types","types":"tsc -b","analyze":"ANALYZE=true webpack --config webpack/webpack.prod.js","format":"prettier --write .","format:check":"prettier --check ."},"devDependencies":{"@babel/core":"7.12.3","@babel/plugin-proposal-class-properties":"7.12.1","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/preset-env":"7.12.1","@babel/preset-react":"7.12.1","@babel/preset-typescript":"7.12.1","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"24.0.25","@types/node":"10","@types/prop-types":"^15.7.10","@types/react":"16.14.34","@types/react-dom":"16.9.18","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","babel-jest":"26.6.3","babel-loader":"8","css-loader":"5","dts-bundle":"^0.7.3","enzyme":"3.11.0","enzyme-adapter-react-16":"1.15.7","eslint":"6.8.0","eslint-config-prettier":"6.0.0","eslint-plugin-react":"7.20.0","file-loader":"^6.2.0","globals":"^10","html-webpack-plugin":"4","husky":"^6.0.0","identity-obj-proxy":"^3.0.0","jest":"26.6.3","nodemon":"^3.1.9","prettier":"2.0.5","react-test-renderer":"16.14.0","style-loader":"2","tsconfig-paths-webpack-plugin":"^4.2.0","typescript":"^4","webpack":"4","webpack-bundle-analyzer":"3.9.0","webpack-cli":"3.3.12","webpack-dev-server":"3.11.2"},"dependencies":{"@sentry/browser":"7.68.0","axios":"^0.27.2","prop-types":"15.8.1","react":"16.14.0","react-dom":"16.14.0"},"peerDependencies":{"react":"^16.0.0","react-dom":"^16.0.0"},"resolutions":{"sockjs-client":"1.5.1","cheerio":"0.22.0","@sentry/replay":"0.6.14"}}')},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),i=n(13),o=n(1);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={[o.a.ESPN_BETS]:"bets",[o.a.ESPN_STATS]:"stats",[o.a.ESPN_KEY_PLAYS]:"keyPlays",[o.a.ESPN_FANTASY]:"fantasy",[o.a.ESPN_SHOP]:"shop"};class l{constructor(){s(this,"_settings",void 0),this._settings=new r.a(i.a)}static getInstance(){return l.instance||(l.instance=new l),l.instance}get settings(){return this._settings}getCurrentSettings(){return this._settings.value}updateSettings(e){if(!this.validateSettings(e))return void console.warn("Invalid user settings provided, using default setting");const t=this.mergeSettings(this._settings.value,e);this._settings.value=t}getPanelSettings(e){var t;return null===(t=this._settings.value.panels)||void 0===t?void 0:t[e]}isPanelHidden(e){const t=this.mapPanelTypeToSettingsKey(e);if(!t)return!1;const n=this.getPanelSettings(t);return!0===(null==n?void 0:n.hidePanel)}shouldHideWagers(){const e=this.getPanelSettings("bets");return!0===(null==e?void 0:e.hideWagers)}resetToDefaults(){this._settings.value=i.a}validateSettings(e){if(!e||"object"!=typeof e)return!1;if(e.panels&&"object"!=typeof e.panels)return!1;if(e.panels)for(const[t,n]of Object.entries(e.panels)){if(n&&"object"!=typeof n)return!1;if(n)for(const[e,r]of Object.entries(n))if(void 0!==r&&"boolean"!=typeof r)return console.warn(`Invalid setting value for ${t}.${e}: expected boolean, got ${typeof r}`),!1}return!0}mergeSettings(e,t){const n={panels:{...e.panels}};if(t.panels)for(const[e,r]of Object.entries(t.panels))if(r){const t={...n.panels[e]};for(const[e,n]of Object.entries(r))void 0!==n&&(t[e]=n);n.panels[e]=t}return n}mapPanelTypeToSettingsKey(e){return e in a?a[e]:null}}s(l,"instance",void 0)},function(e,t,n){"use strict";var r=n(47),i=n.n(r);function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=class{constructor({baseURL:e,retries:t,delay:n,backoff:r,axiosInstance:s}){o(this,"client",void 0),o(this,"retries",void 0),o(this,"delay",void 0),o(this,"backoff",void 0),this.retries=t,this.delay=n,this.backoff=r,this.client=s||i.a.create({baseURL:e,headers:{"Content-Type":"application/json"},timeout:5e3})}async retry(e,t=0){try{return await e()}catch(n){const r=n;if(t<this.retries&&(r.response&&429===r.response.status||"ECONNABORTED"===r.code)){const n=this.delay*Math.pow(this.backoff,t);return console.log(`Retrying request in ${n}ms due to: ${r.message}`),await new Promise(e=>setTimeout(e,n)),this.retry(e,t+1)}throw n}}async get(e,t,n){return this.retry(async()=>(await this.client.get(e,{params:t,headers:n})).data)}async getWithHeaders(e,t,n){return this.retry(async()=>{const r=await this.client.get(e,{params:t,headers:n});return{data:r.data,headers:r.headers}})}async post(e,t,n,r){return this.retry(async()=>(await this.client.post(e,t,{params:n,headers:r})).data)}async postWithHeaders(e,t,n,r){return this.retry(async()=>{const i=await this.client.post(e,t,{params:n,headers:r});return{data:i.data,headers:i.headers}})}setAuthentication(e,t){this.client.defaults.headers.common.Authorization=e?"Bearer "+e:"",this.client.defaults.headers.common["x-maestro-api-key"]=t||""}}},function(e,t,n){"use strict";var r=n(2);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,s,a,l){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,s,a),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={panels:{bets:{hidePanel:!1,hideWagers:!1},stats:{hidePanel:!1},keyPlays:{hidePanel:!1},fantasy:{hidePanel:!1}}}},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return l}));class i extends Error{constructor(e){super(e),this.name="NetworkError"}}class o extends Error{constructor(e,t,n){super(t),r(this,"statusCode",void 0),r(this,"data",void 0),this.name="AuthError",this.statusCode=e,this.data=n}}class s extends Error{constructor(e){super(e),this.name="NotFoundError"}}class a extends Error{constructor(e,t){super(t),r(this,"statusCode",void 0),this.name="ServerError",this.statusCode=e}}class l extends Error{constructor(e,t){super(t),r(this,"statusCode",void 0),this.name="BadRequestError",this.statusCode=e}}},function(e,t,n){"use strict";var r=n(12);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(2).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return i}));class i{constructor(e=36e5,t=5242880,n="1.0"){r(this,"prefix","maestro-cache-"),r(this,"cacheDuration",void 0),r(this,"maxSize",void 0),r(this,"version",void 0),r(this,"accessLog",void 0),this.cacheDuration=e,this.maxSize=t,this.version=n,this.accessLog=new Map}produceCacheKey(e){return`${this.prefix}${this.version}:${e}`}getCurrentSize(){let e=0;for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);if(null!=n&&n.startsWith(this.prefix)){const t=localStorage.getItem(n);t&&(e+=n.length+t.length)}}return e}cleanupOldEntries(){const e=Date.now(),t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);if(null!=r&&r.startsWith(this.prefix)){const n=localStorage.getItem(r);if(n)try{const{timestamp:i}=JSON.parse(n);e-i>this.cacheDuration&&t.push(r)}catch(e){t.push(r)}}}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}cleanupLRUEntries(e){const t=Array.from(this.accessLog.entries()).sort(([,e],[,t])=>e-t);for(;this.getCurrentSize()+e>this.maxSize&&t.length>0;){const[e]=t.shift();localStorage.removeItem(this.produceCacheKey(e)),this.accessLog.delete(e)}}setCache(e,t){this.cleanupOldEntries();const n=this.produceCacheKey(e),r={data:t,timestamp:Date.now()},i=n.length+JSON.stringify(r).length;this.cleanupLRUEntries(i),this.getCurrentSize()+i>this.maxSize||(localStorage.setItem(n,JSON.stringify(r)),this.accessLog.set(e,Date.now()))}getCache(e){this.cleanupOldEntries();const t=this.produceCacheKey(e),n=localStorage.getItem(t);if(!n)return null;try{const{data:r,timestamp:i}=JSON.parse(n),o=Date.now();return o-i>this.cacheDuration?(localStorage.removeItem(t),this.accessLog.delete(e),null):(this.accessLog.set(e,o),r)}catch(n){return localStorage.removeItem(t),this.accessLog.delete(e),null}}clearCache(e){const t=this.produceCacheKey(e);localStorage.removeItem(t),this.accessLog.delete(e)}clearCacheByPattern(e){const t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);null!=r&&r.startsWith(this.prefix)&&r.includes(e)&&t.push(r)}t.forEach(e=>{localStorage.removeItem(e);const t=e.replace(this.prefix+this.version+":","");this.accessLog.delete(t)})}clearAllCache(){const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);null!=n&&n.startsWith(this.prefix)&&e.push(n)}e.forEach(e=>localStorage.removeItem(e)),this.accessLog.clear()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));const r=e=>{let{offsetParent:t}=e;const n=e.offsetHeight,r=e.offsetWidth;let i=e.offsetLeft,o=e.offsetTop;for(;t&&1===t.nodeType;)i+=t.offsetLeft-t.scrollLeft,o+=t.offsetTop-t.scrollTop,({offsetParent:t}=t);return{height:n,left:i,top:o,width:r}};var i=(e,t)=>{const n=e&&e.parentNode;if(n){const i=r(n),{height:o,left:s,top:a,width:l}=r(e);t(s-i.left,a-i.top,l,o,s,a)}};function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s="undefined"!=typeof window&&window.document,a=s?window.innerWidth:0,l=s?window.innerHeight:0;class c{constructor(){o(this,"debugCtx",void 0),o(this,"layoutsCtx",void 0),s?(this.debugCtx=c.createCanvas("sn-debug",1010),this.layoutsCtx=c.createCanvas("sn-layouts",1e3)):(this.debugCtx=null,this.layoutsCtx=null)}static createCanvas(e,t){const n=document.querySelector("#"+e)||document.createElement("canvas");n.setAttribute("id",e);const r=n.getContext("2d");if(!r)throw new Error("Could not get 2d context from canvas");return n.style.cssText="position: fixed; top: 0; left: 0; z-index: "+t,document.body.appendChild(n),n.width=a,n.height=l,r}clear(){s&&this.debugCtx&&this.debugCtx.clearRect(0,0,a,l)}clearLayouts(){s&&this.layoutsCtx&&this.layoutsCtx.clearRect(0,0,a,l)}drawLayout(e,t,n){s&&this.layoutsCtx&&(this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(e.left,e.top,e.width,e.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red",this.layoutsCtx.fillText(t,e.left,e.top+10),this.layoutsCtx.fillText(n,e.left,e.top+25),this.layoutsCtx.fillText("left: "+e.left,e.left,e.top+40),this.layoutsCtx.fillText("top: "+e.top,e.left,e.top+55))}drawPoint(e,t,n="blue",r=10){s&&this.debugCtx&&(this.debugCtx.strokeStyle=n,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(e-r/2,t-r/2,r,r))}}var u=c;function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d="SN:ROOT",f={left:[37],up:[38],right:[39],down:[40],enter:[13],back:[8,10009,461]},p=["#0FF","#FF0","#F0F"],g={leading:!0,trailing:!1},y=(e,t,n={})=>{let r=null,i=0;const{leading:o=!0,trailing:s=!0}=n;return function(...n){const a=Date.now();i||o||(i=a);const l=t-(a-i);l<=0||l>t?(r&&(clearTimeout(r),r=null),i=a,e.apply(this,n)):!r&&s&&(r=window.setTimeout(()=>{i=o?Date.now():0,r=null,e.apply(this,n)},l))}},v=(e,t)=>[...e].sort((e,n)=>{const r=t(e),i=t(n);return r<i?-1:r>i?1:0}),m=e=>e[0],b=(e,t)=>e.filter(e=>!t.includes(e)),A=(e,t)=>e.forEach(t);class w{static getCutoffCoordinate(e,t,n,r){const i=r.left,o=r.top,s=r.width,a=r.height,l=e?o:i,c=e?a:s;return t?n?l:l+c:n?l+c:l}static getRefCorners(e,t,n){const r=n.left,i=n.top,o=n.width,s=n.height,a={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case"up":{const e=t?i+s:i;a.a={x:r,y:e},a.b={x:r+o,y:e};break}case"down":{const e=t?i:i+s;a.a={x:r,y:e},a.b={x:r+o,y:e};break}case"left":{const e=t?r+o:r;a.a={x:e,y:i},a.b={x:e,y:i+s};break}case"right":{const e=t?r:r+o;a.a={x:e,y:i},a.b={x:e,y:i+s};break}}return a}static isAdjacentSlice(e,t,n){const{a:r,b:i}=e,{a:o,b:s}=t,a=n?"x":"y",l=r[a],c=i[a],u=o[a],h=s[a],d=.2*(c-l);return Math.max(0,Math.min(c,h)-Math.max(l,u))>=d}static getPrimaryAxisDistance(e,t,n){const{a:r}=e,{a:i}=t,o=n?"y":"x";return Math.abs(i[o]-r[o])}static getSecondaryAxisDistance(e,t,n){const{a:r,b:i}=e,{a:o,b:s}=t,a=n?"x":"y",l=r[a],c=i[a],u=o[a],h=s[a],d=[];return d.push(Math.abs(u-l)),d.push(Math.abs(u-c)),d.push(Math.abs(h-l)),d.push(Math.abs(h-c)),Math.min(...d)}sortSiblingsByPriority(e,t,n,r){const i="down"===n||"up"===n,o=w.getRefCorners(n,!1,t);return[...e].sort((e,t)=>{const r=w.getRefCorners(n,!0,e.layout),s=w.getRefCorners(n,!0,t.layout),a=w.isAdjacentSlice(o,r,i),l=w.isAdjacentSlice(o,s,i),c=a?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,u=l?w.getPrimaryAxisDistance:w.getSecondaryAxisDistance,h=a?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,d=l?w.getSecondaryAxisDistance:w.getPrimaryAxisDistance,f=c(o,r,i),p=u(o,s,i);return(5*f+h(o,r,i)+1)/(a?5:1)-(5*p+d(o,s,i)+1)/(l?5:1)})}constructor(e={}){h(this,"focusableComponents",void 0),h(this,"focusKey",void 0),h(this,"parentsHavingFocusedChild",void 0),h(this,"nativeMode",void 0),h(this,"throttle",void 0),h(this,"throttleKeypresses",void 0),h(this,"pressedKeys",void 0),h(this,"paused",void 0),h(this,"keyDownEventListener",void 0),h(this,"clickEventListener",void 0),h(this,"keyUpEventListener",void 0),h(this,"keyMap",void 0),h(this,"debug",void 0),h(this,"visualDebugger",void 0),h(this,"logIndex",void 0),this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.pressedKeys={},this.paused=!0,this.keyDownEventListener=null,this.clickEventListener=null,this.keyUpEventListener=null,this.keyMap=f,this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.onKeyEvent=this.onKeyEvent.bind(this),this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.init(e)}init({debug:e=!1,visualDebug:t=!1,nativeMode:n=!1,throttle:r=0,throttleKeypresses:i=!1}={}){this.nativeMode=n,this.throttleKeypresses=i,this.debug=e,this.nativeMode||(Number.isInteger(r)&&r>0&&(this.throttle=r),this.bindEventHandlers(),t&&(this.visualDebugger=new u,this.startDrawLayouts()))}startDrawLayouts(){const e=()=>{requestAnimationFrame(()=>{var t;null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),Object.entries(this.focusableComponents).forEach(([e,t])=>{var n;null===(n=this.visualDebugger)||void 0===n||n.drawLayout(t.layout,e,t.parentFocusKey)}),e()})};e()}destroy(){this.unbindEventHandlers()}getEventType(e){return Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e))}bindEventHandlers(){if("undefined"!=typeof window&&window.addEventListener){const e=e=>{if(!0===this.paused)return;this.debug&&(this.logIndex+=1);const t=this.getEventType(e.keyCode);if(!t)return;this.pressedKeys[t]=this.pressedKeys[t]?this.pressedKeys[t]+1:1,e.preventDefault(),e.stopPropagation();const n={pressedKeys:this.pressedKeys};if(this.focusKey&&this.getNodeLayoutByFocusKey(this.focusKey)&&(n.layout=this.getNodeLayoutByFocusKey(this.focusKey)),"enter"===t&&this.focusKey)return void this.onEnterPress(n);if("back"===t&&this.focusKey)return void this.onBackPress(n);var r;!1===this.onArrowPress(t,n)?(this.log("keyDownEventListener","default navigation prevented"),null===(r=this.visualDebugger)||void 0===r||r.clear()):this.onKeyEvent(e)};this.keyDownEventListener=this.throttle?y(e,this.throttle,g):e,this.keyUpEventListener=e=>{const t=this.getEventType(e.keyCode);var n,r;(t&&delete this.pressedKeys[t],this.throttle&&!this.throttleKeypresses)&&(null===(n=this.keyDownEventListener)||void 0===n||null===(r=n.cancel)||void 0===r||r.call(n));"enter"===t&&this.focusKey&&this.onEnterRelease()},this.clickEventListener=e=>{if(!0===this.paused)return;const t=e.target;if(!t)return;const n=this.findFocusKeyForElement(t);if(!n)return;const r={pressedKeys:{},event:e,mouseClick:!0},i=this.getNodeLayoutByFocusKey(n);i&&(r.layout=i);this.focusKey===n||this.setFocus(n,r),this.onClickPress(r)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.keyDownEventListener),window.addEventListener("click",this.clickEventListener)}}unbindEventHandlers(){"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("keydown",this.keyDownEventListener),window.removeEventListener("click",this.clickEventListener),this.keyDownEventListener=null,this.clickEventListener=null,this.throttle&&(window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null))}findFocusKeyForElement(e){for(const t of Object.keys(this.focusableComponents)){const n=this.focusableComponents[t];if(n&&n.node&&n.focusable&&(n.node===e||n.node.contains(e)))return t}return null}onClickPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onClickPressHandler)||void 0===t||t.call(n,e):this.log("onClickPress","componentNotFocusable"):this.log("onClickPress","noComponent")}onEnterPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onEnterPressHandler)||void 0===t||t.call(n,e):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")}onBackPress(e){var t;const n=this.focusableComponents[this.focusKey];n?n.focusable?null===(t=n.onBackPressHandler)||void 0===t||t.call(n,e):this.log("onBackPress","componentNotFocusable"):this.log("onBackPress","noComponent")}onEnterRelease(){var e;const t=this.focusableComponents[this.focusKey];t?t.focusable?null===(e=t.onEnterReleaseHandler)||void 0===e||e.call(t):this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")}onArrowPress(e,t){var n;const r=this.focusableComponents[this.focusKey];if(r)return null===(n=r.onArrowPressHandler)||void 0===n?void 0:n.call(r,e,t);this.log("onArrowPress","noComponent")}navigateByDirection(e,t={pressedKeys:{}}){if(!0===this.paused)return;const n=["down","up","left","right"];n.includes(e)?(this.log("navigateByDirection","direction",e),this.smartNavigate(e,null,t)):this.log("navigateByDirection",`Invalid direction. You passed: \`${e}\`, but you can use only these: `,n)}onKeyEvent(e){var t;null===(t=this.visualDebugger)||void 0===t||t.clear();const n=Object.keys(this.getKeyMap()).find(t=>this.getKeyMap()[t].includes(e.keyCode));n&&this.smartNavigate(n,null,{pressedKeys:{},event:e})}smartNavigate(e,t,n){this.log("smartNavigate","direction",e),this.log("smartNavigate","fromParentFocusKey",t),this.log("smartNavigate","this.focusKey",this.focusKey),this.nativeMode||t||Object.values(this.focusableComponents).forEach(e=>{e.layoutUpdated=!1});const r=this.focusableComponents[t||this.focusKey];if(this.log("smartNavigate","currentComponent",r?r.focusKey:void 0,r?r.node:void 0),r){this.updateLayout(r.focusKey);const{parentFocusKey:t,focusKey:i,layout:o}=r,s="down"===e||"up"===e,a="down"===e||"right"===e,l=w.getCutoffCoordinate(s,a,!1,o),c=Object.values(this.focusableComponents).filter(e=>{if(e.parentFocusKey===t&&e.focusable){this.updateLayout(e.focusKey);const t=w.getCutoffCoordinate(s,a,!0,e.layout);return a?t>=l:t<=l}return!1});if(this.debug&&this.log("smartNavigate","siblings",c),c.length>0){const t=this.sortSiblingsByPriority(c,o,e,i);this.debug&&this.log("smartNavigate","sortedSiblings",t);const r=t[0];r&&this.setFocus(r.focusKey,n)}else this.log("smartNavigate","noSiblings"),t&&this.smartNavigate(e,t,n)}}saveLastFocusedChildKey(e,t){e&&(this.log("saveLastFocusedChildKey",e.focusKey+" lastFocusedChildKey set",t),e.lastFocusedChildKey=t)}log(e,t,...n){this.debug&&console.log(`%c${e}%c${t}`,`background: ${p[this.logIndex%p.length]}; color: black; padding: 1px 5px;`,"background: #333; color: #BADA55; padding: 1px 5px;",...n)}getNextFocusKey(e){this.log("getNextFocusKey","targetFocusKey",e);const t=this.focusableComponents[e];if(!t)return e;const{trackChildren:n}=t;if(!n)return e;const r=Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e&&t.focusable);if(0===r.length)return e;const{lastFocusedChildKey:i,preferredChildFocusKey:o}=t;if(i&&!t.forgetLastFocusedChild&&this.isParticipatingFocusableComponent(i))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",i),this.getNextFocusKey(i);if(o&&this.isParticipatingFocusableComponent(o))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",o),this.getNextFocusKey(o);r.forEach(e=>this.updateLayout(e.focusKey));const{focusKey:s}=(e=>{const t=v(e,({layout:e})=>Math.abs(e.left)+Math.abs(e.top));return m(t)})(r);return this.log("getNextFocusKey","childKey will be focused",s),this.getNextFocusKey(s)}addFocusable({focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:o,onArrowPressHandler:s,onBecameFocusedHandler:a,onBecameBlurredHandler:l,forgetLastFocusedChild:c,trackChildren:u,onUpdateFocus:h,onUpdateHasFocusedChild:d,preferredChildFocusKey:f,onClickPressHandler:p,autoRestoreFocus:g,focusable:y=!0,blockNavigationOut:v}){this.focusableComponents[e]={focusKey:e,node:t,parentFocusKey:n,onClickPressHandler:p,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:o,onArrowPressHandler:s,onBecameFocusedHandler:a,onBecameBlurredHandler:l,onUpdateFocus:h,onUpdateHasFocusedChild:d,forgetLastFocusedChild:c,trackChildren:u,lastFocusedChildKey:null,preferredChildFocusKey:f,focusable:y,blockNavigationOut:v,autoRestoreFocus:g,layout:{x:0,y:0,width:0,height:0,left:0,top:0,node:t},layoutUpdated:!1},this.nativeMode||(this.updateLayout(e),e===this.focusKey&&this.setFocus(e))}removeFocusable({focusKey:e}){const t=this.focusableComponents[e];if(t){const{parentFocusKey:n}=t;Reflect.deleteProperty(this.focusableComponents,e);const r=this.focusableComponents[n],i=e===this.focusKey;if(i&&(this.paused?this.focusKey=null:this.setFocus("PANEL_NAVIGATION")),r&&r.lastFocusedChildKey===e&&(r.lastFocusedChildKey=null),this.nativeMode)return;i&&r&&r.autoRestoreFocus&&!this.paused&&this.setFocus(n)}}getNodeLayoutByFocusKey(e){const t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null}setCurrentFocusedKey(e,t={pressedKeys:{}}){if(this.isFocusableComponent(this.focusKey)&&e!==this.focusKey){var n,r;const e=this.focusableComponents[this.focusKey],i=this.focusableComponents[e.parentFocusKey];this.saveLastFocusedChildKey(i,this.focusKey),null===(n=e.onUpdateFocus)||void 0===n||n.call(e,!1),null===(r=e.onBecameBlurredHandler)||void 0===r||r.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}if(this.focusKey=e,this.isFocusableComponent(this.focusKey)){var i,o;const e=this.focusableComponents[this.focusKey];null===(i=e.onUpdateFocus)||void 0===i||i.call(e,!0),this.updateParentsHasFocusedChild(this.focusKey,t),null===(o=e.onBecameFocusedHandler)||void 0===o||o.call(e,this.getNodeLayoutByFocusKey(this.focusKey),t)}}updateParentsHasFocusedChild(e,t){const n=[];let r=this.focusableComponents[e];for(;r;){const{parentFocusKey:e}=r,t=this.focusableComponents[e];if(t){const{focusKey:e}=t;n.push(e)}r=t}const i=b(this.parentsHavingFocusedChild,n),o=b(n,this.parentsHavingFocusedChild);A(i,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!1)),this.onIntermediateNodeBecameBlurred(e,t)}),A(o,e=>{var n;const r=this.focusableComponents[e];r&&r.trackChildren&&(null===(n=r.onUpdateHasFocusedChild)||void 0===n||n.call(r,!0)),this.onIntermediateNodeBecameFocused(e,t)}),this.parentsHavingFocusedChild=n}updateParentsLastFocusedChild(e){let t=this.focusableComponents[e];for(;t;){const{parentFocusKey:e}=t,n=this.focusableComponents[e];n&&this.saveLastFocusedChildKey(n,t.focusKey),t=n}}getKeyMap(){return this.keyMap}setKeyMap(e){this.keyMap={...this.getKeyMap(),...e}}isFocusableComponent(e){return!!this.focusableComponents[e]}isParticipatingFocusableComponent(e){return this.isFocusableComponent(e)&&this.focusableComponents[e].focusable}onIntermediateNodeBecameFocused(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameFocusedHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}onIntermediateNodeBecameBlurred(e,t){var n,r;this.isParticipatingFocusableComponent(e)&&(null===(n=(r=this.focusableComponents[e]).onBecameBlurredHandler)||void 0===n||n.call(r,this.getNodeLayoutByFocusKey(e),t))}pause(){var e,t;this.parentsHavingFocusedChild=[],this.pressedKeys={},this.log("pause","paused"),null===(e=this.visualDebugger)||void 0===e||e.clear(),null===(t=this.visualDebugger)||void 0===t||t.clearLayouts(),this.getFocusableComponents().forEach(e=>{var t,n;null===(t=e.onUpdateFocus)||void 0===t||t.call(e,!1),null===(n=e.onUpdateHasFocusedChild)||void 0===n||n.call(e,!1)}),this.paused=!0}resume(){this.paused=!1}setFocus(e,t={pressedKeys:{}}){const n=this.focusKey,r=this.getNextFocusKey(e);this.log("setFocus","newFocusKey",r),this.setCurrentFocusedKey(r,t),this.updateParentsHasFocusedChild(r,t),this.updateParentsLastFocusedChild(n)}updateAllLayouts(){this.nativeMode||Object.entries(this.focusableComponents).forEach(([e])=>{this.updateLayout(e)})}updateLayout(e){const t=this.focusableComponents[e];if(!t||this.nativeMode||t.layoutUpdated)return;const{node:n}=t;i(n,(e,r,i,o,s,a)=>{t.layout={x:e,y:r,width:i,height:o,left:s,top:a,node:n}})}updateFocusable(e,{node:t,preferredChildFocusKey:n,focusable:r,blockNavigationOut:i}){if(this.nativeMode)return;const o=this.focusableComponents[e];o&&(o.preferredChildFocusKey=n,o.focusable=null!=r?r:o.focusable,o.blockNavigationOut=i,t&&(o.node=t))}isNativeMode(){return this.nativeMode}getFocusableComponents(){return Object.values(this.focusableComponents)}getFocusableComponentsByParentFocusKey(e){return Object.values(this.focusableComponents).filter(t=>t.parentFocusKey===e)}}t.b=w},function(e,t){},function(e,t){},function(e,t,n){"use strict";(function(t){var r=n(2),i=n(56),o=n(12),s=n(40),a=n(41),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,h={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(u=n(42)),u),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),s=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===s?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(68)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){h.headers[e]=r.merge(l)})),e.exports=h}).call(this,n(50))},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,"/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n","",{version:3,sources:["webpack://./src/components/core/App/App.styles.css"],names:[],mappings:"AAAA,oCAAoC;AACpC;EACE,iCAAiC;EACjC,yBAAyB;EACzB,mBAAmB;EACnB,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,yCAAyC;EACzC,mBAAmB;AACrB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,6CAA6C;AAC/C;;AAEA;EACE,8DAA8D;AAChE;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,iBAAiB;AACnB",sourcesContent:["/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: var(--sdk-font-body);\n color: var(--sdk-text100);\n --sdk-bets: #20f4ca;\n --sdk-highlightPrimary-rgb: 255, 255, 255;\n}\n\n.sdk-wrapper .focus-ring {\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 10px;\n}\n\n.sdk-wrapper .focus-ring[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.sdk-wrapper .focus-opacity {\n background-color: transparent;\n transition: background-color 0.2s ease-in-out;\n}\n\n.sdk-wrapper .focus-opacity[data-focused='true'] {\n background-color: rgba(var(--sdk-highlightPrimary-rgb), 0.078);\n}\n\n.FONT_BOLD_HEADLINE {\n font-family: var(--sdk-font-headline);\n}\n\n.FONT_BOLD {\n font-family: var(--sdk-font-title);\n}\n\n.TEXT_200 {\n color: var(--sdk-text200);\n}\n\n.T01 {\n font-size: 18px;\n font-weight: 400;\n line-height: 24px;\n}\n\n.T02 {\n font-size: 18px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T04 {\n font-size: 20px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.T05_ALT {\n font-size: 21px;\n font-weight: 500;\n line-height: 28px;\n}\n\n.T10 {\n font-size: 23px;\n font-weight: 500;\n line-height: 32px;\n}\n\n.T20 {\n font-size: 27px;\n font-weight: 500;\n line-height: 36px;\n}\n\n.T30 {\n font-size: 29px;\n font-weight: 700;\n line-height: 36px;\n}\n\n.T50 {\n font-size: 34px;\n line-height: 40px;\n}\n\n.T60 {\n font-size: 38px;\n font-weight: 500;\n line-height: 44px;\n}\n\n.T70 {\n font-size: 48px;\n font-weight: 900;\n line-height: 56px;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager.sdk--panel-manager-fox {\n padding: 40px 40px 0 20px;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n","",{version:3,sources:["webpack://./src/components/core/PanelManager/PanelManager.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,kBAAkB;EAClB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB",sourcesContent:[".sdk--panel-manager {\n padding: 60px;\n padding-left: 48px;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager.sdk--panel-manager-fox {\n padding: 40px 40px 0 20px;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n\n.sdk--panel-loading {\n display: block;\n padding: 40px 20px;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation.panel-navigation-fox .panel-nav-button-container {\n margin-right: 8px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child,\n.panel-navigation.panel-navigation-fox .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css"],names:[],mappings:"AAAA;EACE,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;;EAEE,eAAe;AACjB",sourcesContent:[".panel-navigation {\n width: 100%;\n}\n\n.panel-navigation > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: inline-block;\n margin-right: 12px;\n}\n\n.panel-navigation.panel-navigation-fox .panel-nav-button-container {\n margin-right: 8px;\n}\n\n.panel-navigation .panel-nav-button-container:last-child,\n.panel-navigation.panel-navigation-fox .panel-nav-button-container:last-child {\n margin-right: 0;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container.panel-nav-button-container-fox button {\n padding: 24px 0;\n border-radius: 24px;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,kBAAkB;EAClB,yBAAyB;EACzB,kCAAkC;EAClC,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;;EAErC,qEAAqE;AACvE;;AAEA;EACE,eAAe;EACf,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;;EAGE,yBAAyB;AAC3B;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,kCAAkC;EAClC,oCAAoC;AACtC;;AAEA;;EAEE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;EACvB,qCAAqC;AACvC",sourcesContent:[".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\n font-family: var(--sdk-font-title);\n box-sizing: border-box;\n}\n\n.panel-nav-button-container > * {\n margin-bottom: 0;\n}\n\n.panel-nav-button-container path {\n fill: var(--sdk-highlightSecondary);\n}\n\n.panel-nav-button-container button {\n padding: 8px 0;\n background-color: var(--sdk-surface3);\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container.panel-nav-button-container-fox button {\n padding: 24px 0;\n border-radius: 24px;\n}\n\n.panel-nav-button-container .panel-nav-label {\n margin-top: 10px;\n}\n\n.panel-nav-button-container[data-focused='true'],\n.panel-nav-button-container:hover,\n.panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused='true'] path,\n.panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] rect,\n.panel-nav-button-container:hover rect {\n fill: var(--sdk-highlightTertiary);\n stroke: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused='true'] button,\n.panel-nav-button-container:hover button {\n background-color: var(--sdk-accentPrimary);\n}\n\n.panel-nav-button-active button {\n background-color: var(--sdk-surface5);\n}\n\n.panel-nav-button-active path {\n fill: var(--sdk-highlightPrimary);\n}\n\n.panel-nav-button-container .FONT_BOLD {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--sdk-font-headline);\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n","",{version:3,sources:["webpack://./src/components/atoms/BaseButton/BaseButton.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;EAClB,eAAe;EACf,WAAW;EACX,YAAY;EACZ,kCAAkC;AACpC;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB",sourcesContent:[".base-button {\n border-radius: 6px;\n display: block;\n text-align: center;\n cursor: pointer;\n width: 100%;\n border: none;\n font-family: var(--sdk-font-title);\n}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(7),s=n.n(o)()(i.a);s.push([e.i,".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n","",{version:3,sources:["webpack://./src/components/core/ScrollableContainer/ScrollableContainer.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,YAAY,EAAE,+BAA+B;EAC7C,UAAU;EACV,6BAA6B;AAC/B;;AAEA;EACE,UAAU;EACV,yEAAyE;AAC3E;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY,EAAE,kCAAkC;EAChD,2EAA2E;AAC7E;;AAEA;EACE,WAAW;EACX,YAAY;AACd",sourcesContent:[".scrollable-container {\n position: relative;\n}\n\n.scrollable-container::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 58px; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scrollable-container[data-scrolled='true']::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-container::after {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 96px; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.focusable-item {\n width: 100%;\n height: 100%;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){e.exports=n(73)()},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(31);t.a=({children:e})=>{const t=Object(r.useRef)(null),{setRef:n,removeRef:s}=Object(o.a)();return Object(r.useEffect)(()=>{const e=t.current;return e&&n(e),()=>{e&&s(e)}},[n,s]),i.a.createElement("div",{className:"focusable-item",ref:t},e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(5),s=n.n(o),a=n(27),l={insert:"head",singleton:!1};s()(a.a,l),a.a.locals;function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}const u=i.a.createContext({setRef:()=>{},removeRef:()=>{},scrollToFocusedElement:()=>{}});t.b=({children:e,scrollableContainerRef:t,containerTopOffset:n=0,...o})=>{const[s,a]=Object(r.useState)(!1),l=Object(r.useRef)(new Set),h=Object(r.useRef)(""),d=Object(r.useRef)(""),f=Object(r.useRef)([]),p=Object(r.useCallback)(e=>{l.current.add(e),h.current=Math.random().toString(36).substring(2,15)},[]),g=Object(r.useCallback)(e=>{l.current.delete(e),h.current=Math.random().toString(36).substring(2,15)},[]),y=Object(r.useCallback)(()=>{if(h.current===d.current)return f.current;const e=Array.from(l.current);return f.current=e.sort((e,n)=>{if(!t)return 0;const r=t.getBoundingClientRect(),i=e?e.getBoundingClientRect():{top:0,bottom:0},o=n?n.getBoundingClientRect():{top:0,bottom:0};return i.top-r.top-(o.top-r.top)}),d.current=h.current,f.current},[t]),v=Object(r.useCallback)(async(e,r)=>{if(!t||!e.node)return;const i=(null==r?void 0:r.offsetTop)||0,o=y();var s;await(s=0,new Promise(e=>setTimeout(e,s)));const l=t.getBoundingClientRect(),c=e.node.getBoundingClientRect();let u=-1;for(let t=o.length-1;t>=0;t--)if(o[t].contains(e.node)){u=t;break}if(-1===u)return void console.warn("Element not found in refsMap to focus to. Register the element wrapping it with <FocusableItem />");let h=!1;if(o.slice(u).forEach(e=>{const t=e.getBoundingClientRect();(t.bottom>l.bottom||t.top<l.top)&&(h=!0)}),!h)return;const d=0===u?0:t.scrollTop+(c.top-l.top-n-i);t.scrollTop=d,a(e=>{const t=d>0;return e!==t?t:e})},[t,n,y]),m=Object(r.useMemo)(()=>({setRef:p,removeRef:g,scrollToFocusedElement:v}),[p,g,v]);return i.a.createElement(u.Provider,{value:m},i.a.createElement("div",c({className:"scrollable-container","data-scrolled":s},o),e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(30);const o=()=>{const e=Object(r.useContext)(i.a);if(!e)throw new Error("useScrollableContainer must be used within a ScrollableContainer");return e}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1);const s=Object(r.lazy)(()=>n.e(31).then(n.bind(null,77))),a=Object(r.lazy)(()=>n.e(33).then(n.bind(null,78))),l=Object(r.lazy)(()=>n.e(18).then(n.bind(null,79))),c=Object(r.lazy)(()=>n.e(36).then(n.bind(null,80))),u=Object(r.lazy)(()=>n.e(38).then(n.bind(null,81))),h=Object(r.lazy)(()=>n.e(24).then(n.bind(null,82))),d=Object(r.lazy)(()=>n.e(23).then(n.bind(null,83))),f=Object(r.lazy)(()=>n.e(37).then(n.bind(null,84))),p=Object(r.lazy)(()=>n.e(22).then(n.bind(null,85))),g=Object(r.lazy)(()=>n.e(26).then(n.bind(null,86))),y=Object(r.lazy)(()=>n.e(19).then(n.bind(null,87))),v=Object(r.lazy)(()=>n.e(32).then(n.bind(null,88))),m=Object(r.lazy)(()=>n.e(25).then(n.bind(null,89))),b=Object(r.lazy)(()=>n.e(34).then(n.bind(null,90))),A=Object(r.lazy)(()=>n.e(30).then(n.bind(null,91))),w=Object(r.lazy)(()=>n.e(21).then(n.bind(null,92))),E=Object(r.lazy)(()=>n.e(35).then(n.bind(null,93))),C=Object(r.lazy)(()=>n.e(20).then(n.bind(null,94))),P=Object(r.lazy)(()=>n.e(27).then(n.bind(null,95))),S=Object(r.lazy)(()=>n.e(29).then(n.bind(null,96))),k=Object(r.lazy)(()=>n.e(28).then(n.bind(null,97))),B=Object(r.lazy)(()=>n.e(17).then(n.bind(null,98))),x={...{[o.a.ESPN_KEY_PLAYS]:s,[o.a.ESPN_BETS]:l,[o.a.ESPN_STATS]:c,[o.a.ESPN_FANTASY]:m,[o.a.ESPN_SHOP]:b,[o.a.HELLO_WORLD]:A,[o.a.FOX_STATS]:S,[o.a.FOX_KEY_PLAYS]:P,[o.a.FOX_MULTI_VIEW]:k,[o.a.BUILDER_BLOCK_PANEL]:C},...{play:a,warning:u,expand:h,collapse:d,times:f,checkmark:p,flame:g,betsWarning:y,mobilePhone:v,chat:w,shopifyBlockPanel:E,add:B}},T=e=>i.a.createElement("div",{style:{width:e.width,height:e.height}});class _ extends i.a.Component{render(){const{iconName:e,width:t,height:n}=this.props,o=x[e];return o?i.a.createElement(r.Suspense,{fallback:i.a.createElement(T,{width:t,height:n})},i.a.createElement(o,{iconName:e,width:t,height:n})):i.a.createElement(T,{width:t,height:n})}}t.a=_},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(5),s=n.n(o),a=n(26),l={insert:"head",singleton:!1},c=(s()(a.a,l),a.a.locals,n(29));function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}class h extends i.a.Component{render(){const e=["base-button",this.props.className].join(" ");return i.a.createElement(c.a,null,i.a.createElement("button",u({},this.props,{className:e}),this.props.children))}}t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(){i(this,"_isLoading",new r.a(!1)),i(this,"_error",new r.a(null))}get isLoading(){return this._isLoading}get error(){return this._error}setLoading(e){this._isLoading.value=e}setError(e){this._error.value=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(11),i=n(17),o=n(15);function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE"};t.b=class{constructor(e={},t){s(this,"cacheManager",void 0),s(this,"maestroClient",void 0),s(this,"externalClient",void 0),s(this,"pollingTasks",void 0),s(this,"localStorage",void 0),this.pollingTasks=new Map,this.cacheManager=e.cacheManager||new i.a(e.defaultCacheDuration),this.maestroClient=e.networkClient||new r.a({baseURL:"https://api.maestro.io",retries:3,delay:1e3,backoff:2}),this.externalClient=e.externalNetworkClient||new r.a({baseURL:e.externalBaseURL||"",retries:3,delay:1e3,backoff:2}),this.localStorage=t||"undefined"!=typeof globalThis&&globalThis.localStorage||{length:0,clear:()=>{},getItem:()=>null,key:()=>null,removeItem:()=>{},setItem:()=>{}}}setAuthentication(e,t){this.maestroClient.setAuthentication(e,t)}async withCache(e,t,n){const r=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e.endpoint,params:e.params,data:null}));if(t){const e=this.cacheManager.getCache(r);if(e)return e}const i=await n();return t&&this.cacheManager.setCache(r,i),i}handleError(e){if(e.response){var t;const n=e.response.status,r=(null===(t=e.response.data)||void 0===t?void 0:t.message)||e.message;throw 401===n||403===n?new o.a(n,r,e.response.data):404===n?new o.d(r):n>=500?new o.e(n,r):new o.b(n,r)}throw e.request?new o.c("Network request failed"):e}async maestroApiRequest({endpoint:e,method:t=a.GET,params:n={},data:r=null,headers:i={},useCache:o=!1,maestroDefaultHeaders:s=null,skipResponseBodyDeserialization:l=!1}){const c={"x-maestro-maestro-kit-flavor":"MaestroKit_Web",...i};s&&(c["x-maestro-client-id"]=s.siteId,c.Authorization="Bearer "+s.jwt,c["Content-type"]="application/json");const u=t===a.GET&&o,h=async()=>{let i;if(t===a.GET)i=await this.maestroClient.get(e,n,c);else{if(t!==a.POST)throw new Error(`Method ${t} not implemented`);i=await this.maestroClient.post(e,r)}return l&&!i&&(i={}),i};try{return await this.withCache({endpoint:e,params:n},u,h)}catch(e){return this.handleError(e)}}async externalApiRequest({endpoint:e,method:t=a.GET,params:n={},data:r=null,headers:i={},useCache:o=!1,skipResponseBodyDeserialization:s=!1}){const l=t===a.GET&&o,c=async()=>{let o;if(t===a.GET)o=await this.externalClient.get(e,n,i);else{if(t!==a.POST)throw new Error(`Method ${t} not implemented`);o=await this.externalClient.post(e,r)}return s&&!o&&(o={}),o};try{return await this.withCache({endpoint:e,params:n},l,c)}catch(e){return this.handleError(e)}}async externalApiRequestWithHeaders({endpoint:e,method:t=a.GET,params:n={},data:r=null,headers:i={},useCache:o=!1,skipResponseBodyDeserialization:s=!1}){const l=t===a.GET&&o,c=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null}));if(l){const e=this.cacheManager.getCache(c);if(e)return{data:e,headers:{}}}try{let o;if(t===a.GET)o=await this.externalClient.getWithHeaders(e,n,i);else{if(t!==a.POST)throw new Error(`Method ${t} not implemented`);o=await this.externalClient.postWithHeaders(e,r,n,i)}return s&&!o.data&&(o.data={}),l&&this.cacheManager.setCache(c,o.data),o}catch(e){return this.handleError(e)}}pollMaestroApiRequest({endpoint:e,interval:t,method:n=a.GET,params:r={},data:i=null,headers:o={},maestroDefaultHeaders:s=null,skipResponseBodyDeserialization:l=!1,onData:c,onError:u}){const h=`${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var d;this.pollingTasks.has(h)&&(null===(d=this.pollingTasks.get(h))||void 0===d||d.controller.abort(),this.pollingTasks.delete(h));const f=new AbortController,p=f.signal;return(async()=>{for(;!p.aborted;){try{const t=await this.maestroApiRequest({endpoint:e,method:n,params:r,data:i,headers:o,maestroDefaultHeaders:s,skipResponseBodyDeserialization:l,useCache:!1});c(t)}catch(e){u&&u(e)}p.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(h,{controller:f,interval:t}),{stop:()=>{var e;this.pollingTasks.has(h)&&(null===(e=this.pollingTasks.get(h))||void 0===e||e.controller.abort(),this.pollingTasks.delete(h))}}}pollExternalApiRequest({endpoint:e,interval:t,method:n=a.GET,params:r={},data:i=null,headers:o={},skipResponseBodyDeserialization:s=!1,onData:l,onError:c}){const u=`external-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var h;this.pollingTasks.has(u)&&(null===(h=this.pollingTasks.get(u))||void 0===h||h.controller.abort(),this.pollingTasks.delete(u));const d=new AbortController,f=d.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequest({endpoint:e,method:n,params:r,data:i,headers:o,skipResponseBodyDeserialization:s,useCache:!1});l(t)}catch(e){c&&c(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(u,{controller:d,interval:t}),{stop:()=>{var e;this.pollingTasks.has(u)&&(null===(e=this.pollingTasks.get(u))||void 0===e||e.controller.abort(),this.pollingTasks.delete(u))}}}pollExternalApiRequestWithHeaders({endpoint:e,interval:t,method:n=a.GET,params:r={},data:i=null,headers:o={},skipResponseBodyDeserialization:s=!1,onData:l,onError:c}){const u=`external-headers-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var h;this.pollingTasks.has(u)&&(null===(h=this.pollingTasks.get(u))||void 0===h||h.controller.abort(),this.pollingTasks.delete(u));const d=new AbortController,f=d.signal;return(async()=>{for(;!f.aborted;){try{const t=await this.externalApiRequestWithHeaders({endpoint:e,method:n,params:r,data:i,headers:o,skipResponseBodyDeserialization:s,useCache:!1});l(t)}catch(e){c&&c(e)}f.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(u,{controller:d,interval:t}),{stop:()=>{var e;this.pollingTasks.has(u)&&(null===(e=this.pollingTasks.get(u))||void 0===e||e.controller.abort(),this.pollingTasks.delete(u))}}}stopAllPolling(){for(const[e,{controller:t}]of this.pollingTasks.entries())t.abort(),this.pollingTasks.delete(e)}clearAllCache(){const e=this.localStorage.length;for(let t=0;t<e;t++){const e=this.localStorage.key(t);e&&e.startsWith("maestro-cache-")&&this.localStorage.removeItem(e)}}}},function(e,t){},function(e,t){},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(2);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var r=n(2);e.exports=function(e,n){n=n||new FormData;var i=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,s){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+s);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var a,l=s?s+"."+i:i;if(t&&!s&&"object"==typeof t)if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(a=r.toArray(t)))return void a.forEach((function(e){!r.isUndefined(e)&&n.append(l,o(e))}));e(t,l)}})),i.pop()}else n.append(s,o(t))}(e),n}}).call(this,n(57).Buffer)},function(e,t,n){"use strict";var r=n(2),i=n(61),o=n(62),s=n(39),a=n(43),l=n(65),c=n(66),u=n(40),h=n(12),d=n(16),f=n(67);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,y=e.headers,v=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(g)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var A=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(A+":"+w)}var E=a(e.baseURL,e.url);function C(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),m()}),(function(e){n(e),m()}),o),b=null}}if(b.open(e.method.toUpperCase(),s(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(n(new h("Request aborted",h.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new h(t,r.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var P=(e.withCredentials||c(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;P&&(y[e.xsrfHeaderName]=P)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var S=f(E);S&&-1===["http","https","file"].indexOf(S)?n(new h("Unsupported protocol "+S+":",h.ERR_BAD_REQUEST,e)):b.send(g)}))}},function(e,t,n){"use strict";var r=n(63),i=n(64);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){e.exports=n(51)},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!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:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++h<t;)l&&l[h].run();h=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}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 p(e,t)),1!==c.length||u||a(f)},p.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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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){"use strict";var r=n(2),i=n(38),o=n(52),s=n(45);var a=function e(t){var n=new o(t),a=i(o.prototype.request,n);return r.extend(a,o.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(21));a.Axios=o,a.CanceledError=n(16),a.CancelToken=n(70),a.isCancel=n(44),a.VERSION=n(46).version,a.toFormData=n(41),a.AxiosError=n(12),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(71),a.isAxiosError=n(72),e.exports=a,e.exports.default=a},function(e,t,n){"use strict";var r=n(2),i=n(39),o=n(53),s=n(54),a=n(45),l=n(43),c=n(69),u=c.validators;function h(e){this.defaults=e,this.interceptors={request:new o,response:new o}}h.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var h=[s,void 0];for(Array.prototype.unshift.apply(h,r),h=h.concat(l),o=Promise.resolve(t);h.length;)o=o.then(h.shift(),h.shift());return o}for(var d=t;r.length;){var f=r.shift(),p=r.shift();try{d=f(d)}catch(e){p(e);break}}try{o=s(d)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},h.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){h.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(a(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)})),e.exports=h},function(e,t,n){"use strict";var r=n(2);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(2),i=n(55),o=n(44),s=n(21),a=n(16);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(2),i=n(21);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";(function(e){
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
@@ -7,5 +7,5 @@ module.exports=function(e){function t(t){for(var n,i,o=t[0],s=t[1],a=0,c=[];a<o.
|
|
|
7
7
|
*/
|
|
8
8
|
var r=n(58),i=n(59),o=n(60);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=a(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(u(t),e=a(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!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 T(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(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,r)),l.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){h=!1;break}if(h)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function A(e,t,n,r){return H(K(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return w(e,t,n,r)}function C(e,t,n,r){return H(U(t),e,n,r)}function P(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<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(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):g.apply(this,arguments)},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(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(r,i),u=e.slice(t,n),h=0;h<a;++h)if(c[h]!==u[h]){o=c[h],s=u[h];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=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===r&&(r="utf8")):(r=n,n=void 0)}var 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");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=L(e[o]);return i}function _(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(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 F(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,n,r,o){return o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||O(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 t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),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||F(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===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("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=l.isBuffer(e)?e:K(new l(e,r).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(49))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),s=r[0],a=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,h=a>0?s-4:s;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===a&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===a&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function c(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 u(e,t,n){for(var i,o,s=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
9
9
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+e[t+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=c}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(2),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var r=n(46).version,i=n(12),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var s=r[o],a=t[s];if(a){var l=e[s],c=void 0===l||a(l,s,e);if(!0!==c)throw new i("option "+s+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+s,i.ERR_BAD_OPTION)}},validators:o}},function(e,t,n){"use strict";var r=n(16);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){"use strict";var r=n(74);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}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:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r,i,o,s=n(0),a=n.n(s),l=n(5),c=n.n(l),u=n(23),h={insert:"head",singleton:!1},d=(c()(u.a,h),u.a.locals,n(33)),f=n(32),p=n(25),g={insert:"head",singleton:!1},y=(c()(p.a,g),p.a.locals,n(100));class v extends a.a.Component{getContainerClassName(){const{active:e,isFoxSite:t}=this.props;return t&&e?"panel-nav-button-container panel-nav-button-container-fox T02 panel-nav-button-active":t?"panel-nav-button-container panel-nav-button-container-fox T02":e?"panel-nav-button-container T02 panel-nav-button-active":"panel-nav-button-container T02"}render(){const{iconName:e,isFoxSite:t,children:n,focused:r,width:i}=this.props;return a.a.createElement("div",{className:this.getContainerClassName(),"data-focused":r,style:{width:i}},a.a.createElement(d.a,null,a.a.createElement(f.a,{iconName:e,height:36,width:36})),!t&&a.a.createElement("div",{className:"panel-nav-label FONT_BOLD"},n))}}r=v,o="PanelNavButton",(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i="displayName"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o;var m=Object(y.a)()(v),b=n(24),A={insert:"head",singleton:!1},w=(c()(b.a,A),b.a.locals,n(8));function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class C extends a.a.Component{constructor(...e){super(...e),E(this,"handleArrowPress",(e,t)=>{"left"!==e||0!==this.props.index?this.props.onArrowPress&&this.props.onArrowPress(e):w.default.getMaestroEventViewModel().deliverFocus()})}render(){const{item:e,index:t,isFoxSite:n,width:r}=this.props;return a.a.createElement(m,{iconName:e.iconName,key:e.title,index:t,isFoxSite:n,onBecameFocused:this.props.onBecameFocused(t),active:e.active,focusKey:"PANEL_NAV_BUTTON_"+t,onArrowPress:this.handleArrowPress,parentFocusKey:"PANEL_NAVIGATION",width:r},e.title)}}class P extends a.a.Component{constructor(...e){super(...e),E(this,"handleBecameFocused",e=>()=>{this.props.items[e]&&this.props.items[e].onEnter()})}render(){const e=this.props.items.length,{isFoxSite:t}=this.props;if(0===e)return null;const n=`calc((100% - ${(e-1)*(t?8:12)}px) / ${e})`;return a.a.createElement(k,{focusKey:"PANEL_NAVIGATION",isFoxSite:t},this.props.items.map((e,r)=>a.a.createElement(C,{onBecameFocused:this.handleBecameFocused,key:e.title,item:e,index:r,isFoxSite:t,width:n})))}}class S extends a.a.Component{render(){const{isFoxSite:e}=this.props;return a.a.createElement("div",{className:"panel-navigation"+(e?" panel-navigation-fox":"")},this.props.children)}}const k=Object(y.a)({trackChildren:!0})(S);var B=P;const x={"664b9c57d59a7a431542d814":"espn","69388ee52b46b639897261f1":"maestro","695c05610f99e7584a1b7407":"fox"};function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=Object(s.lazy)(()=>n.e(6).then(n.bind(null,242))),O=Object(s.lazy)(()=>n.e(4).then(n.bind(null,237))),F=Object(s.lazy)(()=>n.e(1).then(n.bind(null,235))),M=Object(s.lazy)(()=>n.e(3).then(n.bind(null,236))),R=Object(s.lazy)(()=>n.e(5).then(n.bind(null,238))),j=Object(s.lazy)(()=>n.e(9).then(n.bind(null,245))),I=Object(s.lazy)(()=>n.e(7).then(n.bind(null,239))),N=()=>a.a.createElement("div",{className:"sdk--panel-loading"}),D={espnKeyPlays:_,espnBet:O,espnStats:F,espnFantasy:M,espnShop:R,helloWorld:j,foxKeyPlays:Object(s.lazy)(()=>n.e(38).then(n.bind(null,232))),foxMultiView:Object(s.lazy)(()=>n.e(8).then(n.bind(null,240))),foxStats:Object(s.lazy)(()=>n.e(40).then(n.bind(null,233))),builderBlockPanel:I};class L extends a.a.Component{constructor(e){super(e),T(this,"unsubscribe",null),T(this,"panelsUnsubscribe",null),T(this,"viewModel",void 0),this.viewModel=w.default.getMaestroEventViewModel().panelManagerViewModel,this.state={activePanel:this.viewModel.currentPanel,visiblePanels:this.viewModel.panelsObservable.value}}componentDidMount(){this.unsubscribe=this.viewModel.currentPanelObservable.subscribe(()=>{this.setState({activePanel:this.viewModel.currentPanel})}),this.panelsUnsubscribe=this.viewModel.panelsObservable.subscribe(e=>{this.setState({visiblePanels:e})})}componentWillUnmount(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.panelsUnsubscribe&&(this.panelsUnsubscribe(),this.panelsUnsubscribe=null)}goToPanel(e){return()=>{this.viewModel.currentPanel!==e&&(this.viewModel.currentPanel=e)}}render(){const{activePanel:e,visiblePanels:t}=this.state,n=(e=>{const t=e.trim().toLowerCase();return"fox"===x[t]})(w.default.getSiteID()),r=t.map(t=>({iconName:t.type,onEnter:this.goToPanel(t.type),title:t.title,active:e===t.type})),i=e?D[e]:null;return a.a.createElement("div",{className:"sdk--panel-manager"+(n?" sdk--panel-manager-fox":"")},a.a.createElement(B,{items:r,isFoxSite:n}),i&&a.a.createElement("div",{className:"sdk--panel-wrapper"},a.a.createElement(s.Suspense,{fallback:a.a.createElement(N,null)},a.a.createElement(i,null))))}}var K=L;t.default=K},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r);const o={_id:"6274067af74b66a544018dac",button:{borderRadius:"rounded",textCapitalization:"uppercase"},colors:{accentPrimary:"#FFFFFF",accentSecondary:"#3C3F47",accentTertiary:"#0C0C0E",surface1:"#080A0C",surface2:"#12141A",surface3:"#1B1E26",surface4:"#242833",surface5:"#363C4D",surface6:"#3E4759",highlightPrimary:"#FFFFFF",highlightSecondary:"#9A9EA9",highlightTertiary:"#0A0C0F",alertConfirmation:"#43D48F",alertWarning:"#F58B00",alertError:"#FF0000",text100:"#F8F9FA",text200:"#C2C5CB",text300:"#8D919D",text400:"#5C606B",text500:"#0C0C0E"},creator:"016901e60000000000000000",name:"Dark Mode",type:"classic",mode:"dark",owner:"016901e60000000000000000",typography:{body:"BentonSans-Medium",headline:"BentonSans-Medium"}};var s=n(5),a=n.n(s),l=n(22),c={insert:"head",singleton:!1},u=(a()(l.a,c),l.a.locals,n(8));const h={body:"BentonSans",headline:"BentonSansBold",title:"BentonSansMedium"};class d extends i.a.Component{get colors(){var e;const t=u.default.getPageConfig();return(null==t||null===(e=t.theme)||void 0===e?void 0:e.colors)||o.colors}componentDidMount(){Object.keys(this.colors).forEach(e=>{document.documentElement.style.setProperty("--sdk-"+e,this.colors[e])}),Object.keys(h).forEach(e=>{document.documentElement.style.setProperty("--sdk-font-"+e,h[e])})}componentWillUnmount(){Object.keys(this.colors).forEach(e=>{document.documentElement.style.removeProperty("--sdk-"+e)}),Object.keys(h).forEach(e=>{document.documentElement.style.removeProperty("--sdk-font-"+e)})}render(){return i.a.createElement("div",{className:"sdk-wrapper"},this.props.children)}}var f=d;t.default=f},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(14),i=n(28),o=n.n(i),s=n(0),a=n(18),l=n(8);function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=()=>{};t.a=({forgetLastFocusedChild:e=!1,trackChildren:t=!1,autoRestoreFocus:n,blockNavigationOut:i=!1}={})=>h=>{var d;return d=class extends s.Component{constructor(...e){var t;super(...e),c(this,"state",{realFocusKey:this.props.focusKey||(t="sn:focusable-item-",`${t}${Math.random().toString(36).substr(2,9)}`),focused:!1,hasFocusedChild:!1,parentFocusKey:this.props.parentFocusKey||a.a}),c(this,"navigation",l.default.getMaestroEventViewModel().navigation),c(this,"setFocus",e=>{this.navigation.isNativeMode()||this.navigation.setFocus(e)}),c(this,"navigateByDirection",this.navigation.navigateByDirection),c(this,"stealFocus",()=>{this.navigation.setFocus(this.state.realFocusKey)}),c(this,"onUpdateFocus",e=>{this.setState({focused:e})}),c(this,"onUpdateHasFocusedChild",e=>{this.setState({hasFocusedChild:e})}),c(this,"onEnterPressHandler",e=>{const{onEnterPress:t=u,...n}=this.props;t(n,e)}),c(this,"onClickPressHandler",e=>{const{onClickPress:t=u,...n}=this.props;t(n,e)}),c(this,"onEnterReleaseHandler",()=>{const{onEnterRelease:e=u,...t}=this.props;e(t)}),c(this,"onBackPressHandler",e=>{const{onBackPress:t=u,...n}=this.props;t(n,e)}),c(this,"onArrowPressHandler",(e,t)=>{const{onArrowPress:n=u,...r}=this.props;return n(e,r,t)}),c(this,"onBecameFocusedHandler",(e,t)=>{const{onBecameFocused:n=u,...r}=this.props;n(e,r,t)}),c(this,"onBecameBlurredHandler",(e,t)=>{const{onBecameBlurred:n=u,...r}=this.props;n(e,r,t)})}getChildContext(){return{parentFocusKey:this.state.realFocusKey}}componentDidMount(){const{realFocusKey:o,parentFocusKey:s}=this.state,{preferredChildFocusKey:a,forgetLastFocusedChild:l=!1,trackChildren:c,focusable:u=!0,autoRestoreFocus:h=!0,blockNavigationOut:d=!1}=this.props;let f;if(this.navigation.isNativeMode())f=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");f=e}this.navigation.addFocusable({focusKey:o,node:f,parentFocusKey:s,preferredChildFocusKey:a,onEnterPressHandler:this.onEnterPressHandler,onClickPressHandler:this.onClickPressHandler,onEnterReleaseHandler:this.onEnterReleaseHandler,onBackPressHandler:this.onBackPressHandler,onArrowPressHandler:this.onArrowPressHandler,onBecameFocusedHandler:this.onBecameFocusedHandler,onBecameBlurredHandler:this.onBecameBlurredHandler,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild,forgetLastFocusedChild:e||l,trackChildren:t||c,blockNavigationOut:i||d,autoRestoreFocus:void 0!==n?n:h,focusable:u})}componentDidUpdate(){const{realFocusKey:e}=this.state,{preferredChildFocusKey:t,focusable:n=!0,blockNavigationOut:o=!1}=this.props;let s;if(this.navigation.isNativeMode())s=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");s=e}this.navigation.updateFocusable(e,{node:s,preferredChildFocusKey:t,focusable:n,blockNavigationOut:i||o})}componentWillUnmount(){const{realFocusKey:e}=this.state;this.navigation.removeFocusable({focusKey:e})}render(){const e=((e,t)=>{const n={...e};return t.forEach(e=>delete n[e]),n})({...this.props,...this.state,setFocus:this.setFocus,navigateByDirection:this.navigateByDirection,stealFocus:this.stealFocus,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild},["onBecameFocusedHandler","onBecameBlurredHandler","onEnterPressHandler","onClickPressHandler","onEnterReleaseHandler","onArrowPressHandler","onUpdateFocus","onUpdateHasFocusedChild","forgetLastFocusedChild","trackChildren","autoRestoreFocus"]);return Object(s.createElement)(h,e)}},c(d,"contextTypes",{parentFocusKey:o.a.string}),c(d,"childContextTypes",{parentFocusKey:o.a.string}),d}}]);
|
|
10
|
+
t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,l=(1<<a)-1,c=l>>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+e[t+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=c}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*l-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(2),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var r=n(46).version,i=n(12),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var s=r[o],a=t[s];if(a){var l=e[s],c=void 0===l||a(l,s,e);if(!0!==c)throw new i("option "+s+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+s,i.ERR_BAD_OPTION)}},validators:o}},function(e,t,n){"use strict";var r=n(16);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){"use strict";var r=n(74);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}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:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r,i,o,s=n(0),a=n.n(s),l=n(5),c=n.n(l),u=n(23),h={insert:"head",singleton:!1},d=(c()(u.a,h),u.a.locals,n(33)),f=n(32),p=n(25),g={insert:"head",singleton:!1},y=(c()(p.a,g),p.a.locals,n(100));class v extends a.a.Component{getContainerClassName(){const{active:e,isFoxSite:t}=this.props;return t&&e?"panel-nav-button-container panel-nav-button-container-fox T02 panel-nav-button-active":t?"panel-nav-button-container panel-nav-button-container-fox T02":e?"panel-nav-button-container T02 panel-nav-button-active":"panel-nav-button-container T02"}render(){const{iconName:e,isFoxSite:t,children:n,focused:r,width:i}=this.props;return a.a.createElement("div",{className:this.getContainerClassName(),"data-focused":r,style:{width:i}},a.a.createElement(d.a,null,a.a.createElement(f.a,{iconName:e,height:36,width:36})),!t&&a.a.createElement("div",{className:"panel-nav-label FONT_BOLD"},n))}}r=v,o="PanelNavButton",(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i="displayName"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o;var m=Object(y.a)()(v),b=n(24),A={insert:"head",singleton:!1},w=(c()(b.a,A),b.a.locals,n(8));function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class C extends a.a.Component{constructor(...e){super(...e),E(this,"handleArrowPress",(e,t)=>{"left"!==e||0!==this.props.index?this.props.onArrowPress&&this.props.onArrowPress(e):w.default.getMaestroEventViewModel().deliverFocus()})}render(){const{item:e,index:t,isFoxSite:n,width:r}=this.props;return a.a.createElement(m,{iconName:e.iconName,key:e.title,index:t,isFoxSite:n,onBecameFocused:this.props.onBecameFocused(t),active:e.active,focusKey:"PANEL_NAV_BUTTON_"+t,onArrowPress:this.handleArrowPress,parentFocusKey:"PANEL_NAVIGATION",width:r},e.title)}}class P extends a.a.Component{constructor(...e){super(...e),E(this,"handleBecameFocused",e=>()=>{this.props.items[e]&&this.props.items[e].onEnter()})}render(){const e=this.props.items.length,{isFoxSite:t}=this.props;if(0===e)return null;const n=`calc((100% - ${(e-1)*(t?8:12)}px) / ${e})`;return a.a.createElement(k,{focusKey:"PANEL_NAVIGATION",isFoxSite:t},this.props.items.map((e,r)=>a.a.createElement(C,{onBecameFocused:this.handleBecameFocused,key:e.title,item:e,index:r,isFoxSite:t,width:n})))}}class S extends a.a.Component{render(){const{isFoxSite:e}=this.props;return a.a.createElement("div",{className:"panel-navigation"+(e?" panel-navigation-fox":"")},this.props.children)}}const k=Object(y.a)({trackChildren:!0})(S);var B=P;const x={"664b9c57d59a7a431542d814":"espn","69388ee52b46b639897261f1":"maestro","695c05610f99e7584a1b7407":"fox"};function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=Object(s.lazy)(()=>n.e(6).then(n.bind(null,241))),O=Object(s.lazy)(()=>n.e(4).then(n.bind(null,237))),F=Object(s.lazy)(()=>n.e(1).then(n.bind(null,235))),M=Object(s.lazy)(()=>n.e(3).then(n.bind(null,236))),R=Object(s.lazy)(()=>n.e(5).then(n.bind(null,238))),j=Object(s.lazy)(()=>n.e(9).then(n.bind(null,244))),I=Object(s.lazy)(()=>n.e(7).then(n.bind(null,239))),N=()=>a.a.createElement("div",{className:"sdk--panel-loading"}),D={espnKeyPlays:_,espnBet:O,espnStats:F,espnFantasy:M,espnShop:R,helloWorld:j,foxKeyPlays:Object(s.lazy)(()=>n.e(39).then(n.bind(null,232))),foxMultiView:Object(s.lazy)(()=>n.e(8).then(n.bind(null,240))),foxStats:Object(s.lazy)(()=>n.e(40).then(n.bind(null,233))),builderBlockPanel:I};class L extends a.a.Component{constructor(e){super(e),T(this,"unsubscribe",null),T(this,"panelsUnsubscribe",null),T(this,"viewModel",void 0),this.viewModel=w.default.getMaestroEventViewModel().panelManagerViewModel,this.state={activePanel:this.viewModel.currentPanel,visiblePanels:this.viewModel.panelsObservable.value}}componentDidMount(){this.unsubscribe=this.viewModel.currentPanelObservable.subscribe(()=>{this.setState({activePanel:this.viewModel.currentPanel})}),this.panelsUnsubscribe=this.viewModel.panelsObservable.subscribe(e=>{this.setState({visiblePanels:e})})}componentWillUnmount(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.panelsUnsubscribe&&(this.panelsUnsubscribe(),this.panelsUnsubscribe=null)}goToPanel(e){return()=>{this.viewModel.currentPanel!==e&&(this.viewModel.currentPanel=e)}}render(){const{activePanel:e,visiblePanels:t}=this.state,n=(e=>{const t=e.trim().toLowerCase();return"fox"===x[t]})(w.default.getSiteID()),r=t.map(t=>({iconName:t.type,onEnter:this.goToPanel(t.type),title:t.title,active:e===t.type})),i=e?D[e]:null;return a.a.createElement("div",{className:"sdk--panel-manager"+(n?" sdk--panel-manager-fox":"")},a.a.createElement(B,{items:r,isFoxSite:n}),i&&a.a.createElement("div",{className:"sdk--panel-wrapper"},a.a.createElement(s.Suspense,{fallback:a.a.createElement(N,null)},a.a.createElement(i,null))))}}var K=L;t.default=K},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r);const o={_id:"6274067af74b66a544018dac",button:{borderRadius:"rounded",textCapitalization:"uppercase"},colors:{accentPrimary:"#FFFFFF",accentSecondary:"#3C3F47",accentTertiary:"#0C0C0E",surface1:"#080A0C",surface2:"#12141A",surface3:"#1B1E26",surface4:"#242833",surface5:"#363C4D",surface6:"#3E4759",highlightPrimary:"#FFFFFF",highlightSecondary:"#9A9EA9",highlightTertiary:"#0A0C0F",alertConfirmation:"#43D48F",alertWarning:"#F58B00",alertError:"#FF0000",text100:"#F8F9FA",text200:"#C2C5CB",text300:"#8D919D",text400:"#5C606B",text500:"#0C0C0E"},creator:"016901e60000000000000000",name:"Dark Mode",type:"classic",mode:"dark",owner:"016901e60000000000000000",typography:{body:"BentonSans-Medium",headline:"BentonSans-Medium"}};var s=n(5),a=n.n(s),l=n(22),c={insert:"head",singleton:!1},u=(a()(l.a,c),l.a.locals,n(8));const h={body:"BentonSans",headline:"BentonSansBold",title:"BentonSansMedium"};class d extends i.a.Component{get colors(){var e;const t=u.default.getPageConfig();return(null==t||null===(e=t.theme)||void 0===e?void 0:e.colors)||o.colors}componentDidMount(){Object.keys(this.colors).forEach(e=>{document.documentElement.style.setProperty("--sdk-"+e,this.colors[e])}),Object.keys(h).forEach(e=>{document.documentElement.style.setProperty("--sdk-font-"+e,h[e])})}componentWillUnmount(){Object.keys(this.colors).forEach(e=>{document.documentElement.style.removeProperty("--sdk-"+e)}),Object.keys(h).forEach(e=>{document.documentElement.style.removeProperty("--sdk-font-"+e)})}render(){return i.a.createElement("div",{className:"sdk-wrapper"},this.props.children)}}var f=d;t.default=f},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(14),i=n(28),o=n.n(i),s=n(0),a=n(18),l=n(8);function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=()=>{};t.a=({forgetLastFocusedChild:e=!1,trackChildren:t=!1,autoRestoreFocus:n,blockNavigationOut:i=!1}={})=>h=>{var d;return d=class extends s.Component{constructor(...e){var t;super(...e),c(this,"state",{realFocusKey:this.props.focusKey||(t="sn:focusable-item-",`${t}${Math.random().toString(36).substr(2,9)}`),focused:!1,hasFocusedChild:!1,parentFocusKey:this.props.parentFocusKey||a.a}),c(this,"navigation",l.default.getMaestroEventViewModel().navigation),c(this,"setFocus",e=>{this.navigation.isNativeMode()||this.navigation.setFocus(e)}),c(this,"navigateByDirection",this.navigation.navigateByDirection),c(this,"stealFocus",()=>{this.navigation.setFocus(this.state.realFocusKey)}),c(this,"onUpdateFocus",e=>{this.setState({focused:e})}),c(this,"onUpdateHasFocusedChild",e=>{this.setState({hasFocusedChild:e})}),c(this,"onEnterPressHandler",e=>{const{onEnterPress:t=u,...n}=this.props;t(n,e)}),c(this,"onClickPressHandler",e=>{const{onClickPress:t=u,...n}=this.props;t(n,e)}),c(this,"onEnterReleaseHandler",()=>{const{onEnterRelease:e=u,...t}=this.props;e(t)}),c(this,"onBackPressHandler",e=>{const{onBackPress:t=u,...n}=this.props;t(n,e)}),c(this,"onArrowPressHandler",(e,t)=>{const{onArrowPress:n=u,...r}=this.props;return n(e,r,t)}),c(this,"onBecameFocusedHandler",(e,t)=>{const{onBecameFocused:n=u,...r}=this.props;n(e,r,t)}),c(this,"onBecameBlurredHandler",(e,t)=>{const{onBecameBlurred:n=u,...r}=this.props;n(e,r,t)})}getChildContext(){return{parentFocusKey:this.state.realFocusKey}}componentDidMount(){const{realFocusKey:o,parentFocusKey:s}=this.state,{preferredChildFocusKey:a,forgetLastFocusedChild:l=!1,trackChildren:c,focusable:u=!0,autoRestoreFocus:h=!0,blockNavigationOut:d=!1}=this.props;let f;if(this.navigation.isNativeMode())f=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");f=e}this.navigation.addFocusable({focusKey:o,node:f,parentFocusKey:s,preferredChildFocusKey:a,onEnterPressHandler:this.onEnterPressHandler,onClickPressHandler:this.onClickPressHandler,onEnterReleaseHandler:this.onEnterReleaseHandler,onBackPressHandler:this.onBackPressHandler,onArrowPressHandler:this.onArrowPressHandler,onBecameFocusedHandler:this.onBecameFocusedHandler,onBecameBlurredHandler:this.onBecameBlurredHandler,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild,forgetLastFocusedChild:e||l,trackChildren:t||c,blockNavigationOut:i||d,autoRestoreFocus:void 0!==n?n:h,focusable:u})}componentDidUpdate(){const{realFocusKey:e}=this.state,{preferredChildFocusKey:t,focusable:n=!0,blockNavigationOut:o=!1}=this.props;let s;if(this.navigation.isNativeMode())s=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");s=e}this.navigation.updateFocusable(e,{node:s,preferredChildFocusKey:t,focusable:n,blockNavigationOut:i||o})}componentWillUnmount(){const{realFocusKey:e}=this.state;this.navigation.removeFocusable({focusKey:e})}render(){const e=((e,t)=>{const n={...e};return t.forEach(e=>delete n[e]),n})({...this.props,...this.state,setFocus:this.setFocus,navigateByDirection:this.navigateByDirection,stealFocus:this.stealFocus,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild},["onBecameFocusedHandler","onBecameBlurredHandler","onEnterPressHandler","onClickPressHandler","onEnterReleaseHandler","onArrowPressHandler","onUpdateFocus","onUpdateHasFocusedChild","forgetLastFocusedChild","trackChildren","autoRestoreFocus"]);return Object(s.createElement)(h,e)}},c(d,"contextTypes",{parentFocusKey:o.a.string}),c(d,"childContextTypes",{parentFocusKey:o.a.string}),d}}]);
|
|
11
11
|
//# sourceMappingURL=maestro-web-sdk.esm.js.map
|